2006-07-11 Peter Dennis Bartok <pbartok@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
2
3         * ThemeWin32Classic.cs: Commented out some debug code and fixed
4           a compile error with csc.
5
6 2006-07-11  Jackson Harper  <jackson@ximian.com>
7
8         * Control.cs: When hiding a control only select the next control
9         if the current control was focused.
10         - Don't handle enter/leave when setting/killing focus, this is
11         done by the container control.
12         - Remove is_selected, it's not needed anymore.
13         - Add utility methods for selecting a child control, and for
14         firing the Enter/Leave events.
15         * ContainerControl.cs: When a control is activated fire the
16         enter/leave events.
17         - Don't wrap when processing the tab key, so that focus can be
18         moved outside of the container.
19         - Use the correct active control
20
21 2006-07-11  Jackson Harper  <jackson@ximian.com>
22
23         * ComboBox.cs: Remove some debug code that was blinding me.
24         * UpDownBase.cs: These controls actually aren't implicit, they are
25         visible to the user.
26
27 2006-07-10  Chris Toshok  <toshok@ximian.com>
28
29         * DataGridTableStyle.cs: just check if the property type is bool.
30         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
31         Don't use CanRenderType.
32
33         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
34         if our text == NullText.  Remove CanRenderType.
35
36         * DataGridBoolColumn.cs: nuke CanRenderType.
37
38         * DataGrid.cs: reenable some code to end the current edit inside
39         of set_CurrentCell.  This fixes the other 1.1.16 regression.
40         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
41         Also, remove the visible_row_count arg from CalcRowHeaders, since
42         we don't need to worry about the actual height of the area.
43
44 2006-07-10  Chris Toshok  <toshok@ximian.com>
45
46         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
47         mode, just return.
48
49         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
50         the real sense of the IsInEditOrNavigateMode property (true =
51         navigate, false = edit).  Also, update OnKeyPress to reflect this.
52
53         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
54         column style exists, we still need to set its property descriptor
55         to match up with our list manager.
56
57 2006-07-10  Chris Toshok  <toshok@ximian.com>
58
59         * ThemeWin32Classic.cs: implement the new row/header painting
60         approach.  The parent row painting will likely go away and
61         replaced with label controls, but the rest seems to work ok (and
62         efficiently).
63
64         * Theme.cs: change the way we draw datagrid rows.  we don't draw
65         the row headers as a block now.  Instead we draw them in the
66         normal draw-row loop.  Add some calls for drawing parent rows and
67         relation rows.
68
69         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
70         a default table style.  Set the defaults from ThemeEngine.Current,
71         not SystemColors.  Fix lots of misc issues with property setters.
72
73         * DataGrid.cs: move loads of style information out of this class
74         as it's being duplicated with DataGridTableStyle.  keep track of a
75         special DataGridTableStyle for the properties we used to mirror
76         here.  Switch all the style properties to access this table style
77         instead of instance fields of this class.  Also add a internal
78         class to represent parent rows (more needs to be stored here, like
79         the selection state from the parent table, as well as the
80         expansion state.)  Also, for datasources with relations, do the
81         right thing for collapse/expand, and add support for the
82         navigation/parent row buttons.
83
84         Lastly, fix the crash in the 1.1.16 build.
85
86         * GridTableStylesCollection.cs: make the explicit interface
87         implementations call the class's methods as opposed to duplicating
88         them.
89
90         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
91         0 so the text doesn't jump around when we move the cursor.
92
93 2006-07-10  Jackson Harper  <jackson@ximian.com>
94
95         * TextBoxBase.cs:
96         * ListBox.cs: Match MS's ToString (this makes debugging focus
97         stuff infinitely easier).
98
99 2006-07-10  Jackson Harper  <jackson@ximian.com>
100
101         * Control.cs (SelectNextControl): When checking the control's
102         parent use this instead of ctrl.parent so that null can be passed
103         to SelectNextControl. (I have unit tests for this).
104         - Remove unused var.
105
106 2006-07-10  Chris Toshok  <toshok@ximian.com>
107
108         * CurrencyManager.cs: correct one regression, the removal of the
109         finalType field.  Also, add a MonoTODO on CanAddRows, implement
110         Refresh() correctly, and fix some event emission in
111         ListChangedHandler.
112
113 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
114
115         * FileDialog.cs: Don't use brackets for new folders if they exist
116           under *nix. Instead use -(number of existing folders +1).
117
118 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
119
120         * FileDialog.cs:
121           - Fixed really nasty bug #78771
122           - Don't block the whole GUI when reading directories with a lot of
123             entries. Use an other thread instead and call BeginInvoke to
124             update the ListView in MWFFileView
125
126 2006-07-07  Chris Toshok  <toshok@ximian.com>
127
128         * Control.cs (Dispose): release any Capture when disposing.
129
130 2006-07-07  Chris Toshok  <toshok@ximian.com>
131
132         * LinkLabel.cs (Select): if we chain up to the parent, set
133         focused_index to -1 so we'll search for the first available link
134         the next time the user tabs into us.  Also, if the direction is
135         backward and focused_index == -1, start the search from the last
136         element.
137
138 2006-07-07  Chris Toshok  <toshok@ximian.com>
139
140         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
141         is beyond the end of the text, don't do anything.
142         (CreateLinkPieces): set our ControlStyles.Selectable based on
143         whether or not we have any links.
144         (Link.Invalidate): use a loop instead of foreach.
145         (Link.set_Start): null out owner.sorted_links so it'll be
146         recreated by CreateLinkPieces.
147
148 2006-07-06  Chris Toshok  <toshok@ximian.com>
149
150         * LinkLabel.cs: revert the SetStyle change.
151
152 2006-07-06  Chris Toshok  <toshok@ximian.com>
153
154         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
155         (OnEnableChanged): s/Refresh/Invalidate
156         (OnGotFocus): if we have a focused index already, refocus it (so
157         if we mouse out/in to the window it'll focus the right link).
158         (OnKeyDown): move the tab handling out of here.
159         (OnLostFocus): don't set focused_index to -1, so we can refocus it
160         when we lose focus.
161         (OnMouseDown): don't Capture here - Control handles it.  Also,
162         focus the active link.
163         (OnMouseUp): don't deal with Capture.
164         (OnPaintBackgroundInternal): remove.
165         (OnTextAlignChanged): CreateLinkPieces before calling the
166         superclass's method.
167         (OnTextChanged): call CreateLinkPieces before calling superclass's
168         method.
169         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
170         move around.
171         (Select): implement this, moving the selection between different
172         links, and call parent.SelectNextControl if we don't have another
173         link to focus in the given direction.
174         (CreateLinkPieces): call Invalidate instead of Refresh.
175         
176 2006-07-06  Chris Toshok  <toshok@ximian.com>
177
178         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
179         new LinkLabel internals.
180
181         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
182         over pieces looking for active/focused/etc links.  also, deal with
183         runs of text (and links) with embedded \n's in them, and use
184         MeasureCharacterRanges instead of MeasureString to figure out the
185         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
186         two-step.
187
188 2006-07-04  Jackson Harper  <jackson@ximian.com>
189
190         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
191         XKB or key auto repeat, do it manually.  Without key auto repeat,
192         when a key is held down we get key press, key release, key press,
193         key release, ... with auto repeat we get key press, key press, key
194         press ..., and then a release when the key is actually released.
195
196 2006-07-03  Jackson Harper  <jackson@ximian.com>
197
198         * TabControl.cs:
199         * ThemeWin32Classic.cs: Tabs do not obey normal background color
200         rules, they are always control color regardless of the background
201         color.
202
203 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
204
205         * FileDialog.cs: Added internal class MWFConfig.
206           Removed Registry support and replaced it with support for the new
207           MWFConfig class. See MWFConfig comments for more information.
208
209 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
210
211         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
212           rectangle. Added some patches from eno from bug #78490 and fixed
213           the arrow position for small up and down CPDrawScrollButtons.
214
215 2006-06-30  Jackson Harper  <jackson@ximian.com>
216
217         * InternalWindowManager.cs: Remove some debug code.
218         * Form.cs: When an MdiParent is set to null, the window is
219         "detatched" and becomes a normal window.
220         * MdiClient.cs: Don't bring the new child form to the front until
221         it is activated (setting it as active does this), this makes the
222         previously active forms titlebar get redrawn as inactive.
223
224 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
225
226         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
227           with later controls
228
229 2006-06-29  Mike Kestner  <mkestner@novell.com>
230
231         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
232         arrow in keynav state.  Fixes #78682.
233
234 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
235
236         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
237           order (fixes #78393)
238
239 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
240
241         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
242           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
243           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
244           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
245           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
246           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
247           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
248           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
249           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
250           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
251           enumerations (FlagsAttribute, SerializableAttribute, added/removed
252           values)
253
254 2006-06-28  Mike Kestner  <mkestner@novell.com>
255
256         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
257
258 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
259
260         * PropertyGrid.cs,
261           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
262           item lines from other area (It also makes BackColor consistent and
263           compatible with .NET). Fixed bug #78564.
264
265 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
266
267         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
268         Patch from Eno for #78555.
269
270 2006-06-27  Chris Toshok  <toshok@ximian.com>
271
272         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
273
274         * DataGridColumnStyle.cs: same.
275
276         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
277         
278         * DataGridDrawingLogic.cs: nuke.
279
280 2006-06-27  Chris Toshok  <toshok@ximian.com>
281
282         * DataGridTableStyle.cs: clean up the constructors, and build the
283         list of child relations for this table.  I have no idea if this is
284         where we should be doing it (it probably isn't), but since we're
285         already iterating over the properties..
286
287         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
288         struct and array for keeping track of row information, similar to
289         what's shown in a hack on
290         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
291
292         * Theme.cs: be consistent about the naming of DataGrid methods,
293         prefering ColumnWidths and RowHeights over columnsWidths and
294         RowsHeights.
295
296         * ThemeWin32Classic.cs: same, and also add support for variable
297         sized rows (and the +/- expansion icons for related rows).
298
299 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
300
301         * TextBoxBase.cs: Applied Eno's patch from #78660
302
303 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
304
305         * Form.cs (ScaleCore): We don't want to scale our form if it's
306           state is minimized or maximized, but we still need to scale our
307           child windows. Also, added try/finally block to ensure layout
308           gets reset (Fixes #78697)
309
310 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
311
312         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
313
314 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
315
316         * Form.cs: Fixed c+p error and added check to resize form if minimum
317           size is bigger than current size (Fixes #78709)
318
319 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
320
321         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
322
323 2006-06-26  Mike Kestner  <mkestner@novell.com>
324
325         * ComboBox.cs: only do Keypress handling in the combo when there  
326         are items in the collection. Fixes #78710.
327
328 2006-06-26  Chris Toshok  <toshok@ximian.com>
329
330         * Binding.cs: make this work bi-directionally.  also, clear up
331         other mixups between Push/Pull Data (e.g. we're supposed to pull
332         data when validating).
333
334         * BindingManagerBase.cs: trim some fully qualified collection
335         types.
336
337         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
338
339 2006-06-23  Chris Toshok  <toshok@ximian.com>
340
341         * PropertyManager.cs: It appears (according to the unit tests)
342         that PropertyManager doesn't use
343         PropertyDescriptor.AddValueChanged to track propery value changes
344         in its datasource, but uses the same scheme as Binding, where it
345         looks for a <Property>Changed event and binds to it.
346
347         Also, according to the docs, IsSuspended always returns false for
348         a property manager with a non-null datasource.
349
350 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
351
352         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
353           need to update the actual DialogResult. (Fixes #78613)
354
355 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
356
357         * Form.cs (ShowDialog): Release any captures before running the
358           new message pump (fixes #78680)
359
360 2006-06-22  Mike Kestner  <mkestner@novell.com>
361
362         * ListView.cs: Layout column widths properly in details mode even 
363         if HeaderStyle.None is set.  Fixes #78691.
364
365 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
366
367         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
368
369 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
370
371         * Control.cs (ContainsFocus): Using new driver method to get focused
372           window, instead of trying to use internal tracking var, which can
373           recursion issues (Fixes #78685)
374         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
375           XplatUIWin32.cs: Added GetFocus method to return focused window
376
377 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
378
379         * ColorDialog.cs: when the mouse button is pressed inside the color
380         matrix, don't let the cursor move out of it until the button is
381         released, which is the behavior on windows. Changed 'colours' by
382         'colors' to use the same word consistently.
383
384 2006-06-21  Chris Toshok  <toshok@ximian.com>
385
386         * DataGrid.cs: add in some basic navigation stuff (navigating to a
387         child relation and back, using a stack).  Also, remove
388         GetDataSource and the code that calls it - it's not needed.  Also,
389         track CurrencyManager.ListName's removal.
390
391 2006-06-21  Chris Toshok  <toshok@ximian.com>
392
393         * CurrencyManager.cs: push some of the original type checking from
394         BindingContext.CreateBindingManager to here, and remove some of
395         the finalType stuff.  Need more tests to make sure I've got the
396         ListName part right, and we might need more in SetDataSource.
397
398         * PropertyManager.cs: add a ctor that takes just the datasource,
399         and no property name.  Make SetDataSource work with a null
400         property_name, and make Current return the data_source if the
401         property descriptor is null.  this makes 'string foo = "hi";
402         BindingContext[foo].Current' return "hi" as it should.
403
404         * RelatedCurrencyManager.cs: make this code more generic - there's
405         no reason the parent manager has to be CurrencyManager, and
406         there's no reason to pass the DataRelation.  It suffices to use a
407         BindingManagerBase and PropetyDescriptor.
408
409         * RelatedPropertyManager.cs: make a similar change here.
410         
411         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
412         flower I knew it could be.
413
414 2006-06-20  Chris Toshok  <toshok@ximian.com>
415
416         * PropertyManager.cs: the PropertyChangedHandler is invoked when
417         data in the source has changed and we need to update the control,
418         so s/PullData/PushData.
419
420         * CurrencyManager.cs: Refresh is meant to update the control from
421         data in the datasource.  So, s/PullData/PushData.
422
423         * BindingContext.cs: add more ugliness (we weren't handling the
424         case where data_source = DataTable and data_member = column_name).
425
426         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
427         from the perspective of the datasource.  PullData pulls from the
428         control, PushData pushes to the control.
429
430 2006-06-20  Chris Toshok  <toshok@ximian.com>
431
432         * BindingContext.cs: rewrite the CreateBindingManager code to
433         handle navigation paths more or less properly.  This could
434         definitely stand some more work, in particular to push the
435         recursion up to the toplevel.  But that relies on fixes in other
436         places (System.Data comes to mind).
437
438         Also, move to a flat hashtable (and encode the twolevel nature of
439         the dictionary into the hash key).  This lets us implement the
440         IEnumerable.GetEnumerator method.
441
442         * RelatedCurrencyManager.cs: new class.  Update our view based on
443         our relation and our parent CurrencyManager's position.
444
445         * CurrencyManager.cs: split out some logic from the ctor into
446         SetView, so it can be called from the new RelatedCurrencyManager
447         subclass.
448
449         * RelatedPropertyManager.cs: new class.  Update our datasource
450         based on the position of our parent CurrencyManager.
451
452         * PropertyManager.cs: split out some logic from the ctor into
453         SetDataSource, so it can be called from the new RelatedDataSource
454         subclass.  Also, make the Current getter return the value
455         of the PropertyDescriptor, not the data_source.
456
457         * Binding.cs: no need to duplicate the string splitting code here.
458
459 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
460
461         * Control.cs:
462           - set_Enabled: OnEnabledChanged is not called if the inherited state 
463             of the control is not altered, even though  we might be changing the
464             internal state of the control (#78458)
465           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
466             OnEnabledChanged, to allow easy altering of any child window state
467           - OnEnabledChanged: Added code to enable/disable driver window state
468           - OnParentEnabledChanged: Instead of firing the event, call 
469             OnEnabledChanged, which will fire the event and also a) set driver
470             window state and pass the enabled state to any grandchildren (#78458)
471
472 2006-06-19  Jackson Harper  <jackson@ximian.com>
473
474         * InternalWindowManager.cs: We don't set the cursor explicitly
475         thats done via the response to NCHITTESTs.
476         - Don't need to adjust for titlebar heights anymore, the
477         coordinates are coming in the correct coordinates now (see peters
478         last patch).
479
480
481 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
482
483         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
484           being translated relative to whole window, instead of client window.
485           That caused broken offsets on mouseclick (and caused gas for our
486           InternalWindowManager)
487
488 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
489
490         * TextControl.cs:
491           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
492           - Undo(): Added replay of cursor move on DeleteChars action; added
493             calling Undo() again if a recorded cursor move is invalid (to
494             ensure that some action is performed on Undo)
495         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
496
497 2006-06-16  Jackson Harper  <jackson@ximian.com>
498
499         * MdiClient.cs: Instead of just sizing maximized windows when
500         there is a resize we also have to adjust the Y of minimized
501         windows, so they stay pinned to the bottom of the mdi container.
502         - Eliminate separate tracking of the active control, we can just
503         get this from the controls collection.
504         - Paint the decorations for the newly activated titlebar so we get
505         a pretty blue bar.
506         * InternalWindowManager.cs:
507         * ThemeWin32Classic.cs: Minimized windows get all three buttons
508         even if they are a tool window.
509         
510 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
511
512         * TextControl.cs (Undo): Handle non-existent cursor locations in the
513           undo buffer, these can happen when text was deleted and the cursor
514           was recorded first. Since we will also have a recorded cursor
515           after the delete this is not an issue. (Fixes #78651)
516
517 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
518
519         * AccessibleObject.cs: Remove dependence on Control.is_selected;
520           instead properly track control states internally (allows us to
521           remove is_selected from Control)
522
523 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
524
525         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
526         whose width is not a multiple of 8.
527
528 2006-06-13  Jackson Harper  <jackson@ximian.com>
529
530         * MdiClient.cs:  Only maximize the next child if the current one
531         is maximized.
532
533 2006-06-13  Chris Toshok  <toshok@ximian.com>
534
535         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
536         modified.  Also, guard against grid or grid_drawing being null in
537         Invalidate.
538
539         * DataGrid.cs: Reformat tons of getters/setters.  In the
540         DataMember setter, just call SetNewDataSource instead of
541         duplicating some of its functionality.  In SetNewDataSource, don't
542         check ListManager for null, since the property getter creates the
543         object if needed.
544
545         * DataGridTableStyle.cs: don't set TableStyle or call
546         SetDataGridInternal on the column here, it's done in
547         GridColumnStylesCollection.Add.
548
549         * GridColumnStylesCollection.cs: fix all the explicit interface
550         implementations to just call our methods.  Nuke AddInternal() and
551         move the body of it to Add().  Also, add a call to
552         column.SetDataGridInternal to Add().
553
554         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
555         base()+duplicate code.  Also, use the Format property instead of
556         format to generate an Invalidate ala MS.  Lastly, create the
557         textbox here, unconditionally.
558         (set_Format): call Invalidate.
559         (get_TextBox): no need to call EnsureTextBox.
560         (Commit): remove the message box.
561         (Edit) remove the call to EnsureTextBox.
562         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
563         (EnterNullValue): no need to check textbox for null.
564         (HideEditBox): no need to check textbox for null.
565         (SetDataGridInColumn): add the textbox to the grid's controls.
566         (EnsureTextBox): nuke.
567         
568 2006-06-13  Jackson Harper  <jackson@ximian.com>
569
570         * MdiWindowManager.cs: Hook up to the maximized menus paint event
571         and redraw the buttons when needed. Unhook when the window is
572         unmaximized.
573         * MainMenu.cs: Add an internal Paint event, the mdi window manager
574         needs this so that it can redraw its buttons when the menu is
575         repainted.
576         * InternalWindowManager.cs:
577         * Form.cs: The method order has changed for DrawMaximizedButtons,
578         so that it can be a PaintEventHandler.
579         
580 2006-06-13  Jackson Harper  <jackson@ximian.com>
581
582         * MdiClient.cs: When we close a maximized mdi window, the next mdi
583         window is activated and maximized, even if it wasn't before.
584         - When  a new window is activated repaint the decorations of the
585         old one, so that it no longer has the Active "look" (the blue
586         titlebar).
587         * InternalWindowManager.cs: Open up CreateButtons to base classes
588         so they can recreate the buttons on state changes.
589         - If a window is maximized give it all three buttons
590         * MdiWindowManager.cs: Create the titlebar buttons when the state
591         is changed, this is needed because a toolwindow will not have all
592         three buttons until it is maximized.
593
594 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
595
596         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
597           Fixed bug #78609.
598
599 2006-06-12  Jackson Harper  <jackson@ximian.com>
600
601         * KeysConverter.cs: Make sure we handle the Ctrl special case
602         if its the only key.
603         
604 2006-06-12  Jackson Harper  <jackson@ximian.com>
605
606         * Theme.cs: Add a method to get the size of a managed window
607         toolbar button.
608         * InternalWindowManager.cs: Remove the ButtonSize property, this
609         should be retrieved from the theme.
610         * MdiWindowManager.cs: Get the button size from the theme
611         * ThemeWin32Classic.cs: Make the method to get the managed window
612         titlebar button size public.
613         - Handle the different button sizes of maximized toolwindows
614         (should match any maximized window).
615         - Get the titlebar height from the theme, not the WM (which gets
616         it from the theme).
617
618 2006-06-12  Jackson Harper  <jackson@ximian.com>
619
620         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
621         event down to the mdi window manager.
622         - Expose some extra stuff to base classes
623         - Make sure to end the Capture on an NC Mouse up, so that we can
624         get double clicks properly, and the sizing doens't stick.
625         - When doing PointToClient contain it in the workable desktop
626         area, this prevents windows from changing size when the cursor is
627         pulled outside of the working area while sizing.
628         * MdiWindowManager.cs: When we get a double click maximize the
629         window.
630         - Reset the cursor after handling mode changes.
631
632 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
633
634         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
635           current desktop, instead of just assuming a 0, 0 origin. This
636           is needed for our internal window manager, to know the top
637           margin of the desktop
638
639 2006-06-12  Chris Toshok  <toshok@ximian.com>
640
641         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
642         we need this to get rid of the selected background in the bool
643         column.
644         (CancelEditing): move the ConcedeFocus call to above the Abort
645         call.  Also, set is_changing to false and invalidate the row
646         header if we were changing before.
647         (ProcessKeyPreviewInternal): remove, since noone outside this
648         class calls it anymore.  Roll the code into ProcessKeyPreview.
649         (EndEdit): remove the internal version.
650         (InvalidateCurrentRowHeader): make private.
651
652         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
653         Keys.Escape handling (and with it the last call to
654         DataGrid.EndEdit from outside the class.)
655
656
657 2006-06-12  Chris Toshok  <toshok@ximian.com>
658
659         * DataGridTextBox.cs (.ctor): isedit defaults to false.
660         (OnKeyPress): set isedit to true.
661         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
662         already handled by the grid.
663
664         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
665         right.  ugh.
666         (set_DataSource): SetDataSource always returns true, so stop
667         putting it in an if statement.
668         (EndEdit): get rid of some {}'s
669         (ProcessGridKey): return true in case Keys.Escape.
670         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
671         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
672         PositionChanged, stopped connecting to CurrentChanged.
673         (GetDataSource): simplify this a bunch.
674         (SetDataSource): change return type from bool to void.
675         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
676         to this, and make sure we don't set ListManager.Position inside
677         set_CurrentCell.
678         (OnListManagerItemChanged): if we're passed an actual index,
679         redraw that row.
680
681         * CurrencyManager.cs (set_Position): don't call PullData here.
682
683 2006-06-09  Jackson Harper  <jackson@ximian.com>
684
685         * TreeNode.cs:  Recalculate the visible order before doing the
686         Expand/Collapse Below calls, because those calls generate an
687         expose.
688         - Reduce calls to the TreeView property, which is mildly expensive
689         by using a local var.
690         * Form.cs: Layout the MDI child windows when creating the parent
691         form.
692         - Don't use the internal constructor anymore
693         * MdiClient.cs: use the parent form width/height (if available)
694         when laying out the child windows, we do this because the
695         mdiclient isn't docked yet when the initial layout is done.
696         - Don't need an internal constructor anymore.
697
698 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
699
700         * FileDialog.cs: handle access errors when trying to create a folder
701         or changing to a directory. No need to initialize out parameters.
702
703 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
704
705         * FileDialog.cs: Append a number when creating a new folder if the
706           folder already exists (use parenthesis instead of square brackets)
707
708 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
709
710         * FileDialog.cs:
711           - Disabled registry support for windows and added better registry
712             error checking for other systems (need to investigate why it
713             works perfectly on my system)
714           - If a folder already exist show an error MessageBox instead of
715             trying to create an indexed name.
716           - Fixed a non intentional typo.
717
718 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
719
720         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
721
722 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
723
724         * FileDialog.cs: When creating a new folder don't crash if the
725           folder already exists.
726
727 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
728
729         * FileDialog.cs: Allmost a complete rewrite.
730           - added a "virtual" file system that handles the differences
731             between unix and windows file systems (especially the directory
732             structure). Moved most of the directory and file handling code
733             into the vfs.
734             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
735             UnixFileSystem and FSEntry.
736           - Recently used folder/directory, size, location and used file names
737             (file name ComboBox) are now stored in the registry and get read
738             before the dialog shows up (fixes part 6 of bug #78446).
739           - Creation of new folders/directories is now possible (context menu
740             or ToolBar). Added TextEntryDialog for this that fills in the gap
741             until ListView.LabelEdit works.
742           - Fixed cursor handling (bug #78527) and focus handling for
743             PopupButtonPanel
744           - Various "Search in" ComboBox enhancements. The content of the
745             dropdown listbox now almost matches ms.
746           - Changed the behaviour when the user switches to SpecialFolder
747             Recent to show the ListView in View.Details.
748           - Beside using the ToolBar to change the View property of the
749             file ListView it is now possible to use the context menu too.
750
751 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
752
753         * ComboBox.cs: Don't create a new ObjectCollection when an item
754           gets inserted. Just insert the item in the existing object_items
755           ArrayList.
756
757 2006-06-08  Jackson Harper  <jackson@ximian.com>
758
759         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
760         that the treeview and root node checks are done also, this fixes a
761         regression i caused in the unit tests.
762
763 2006-06-07  Wade Berrier <wberrier@novell.com> 
764
765         * RichTextBox.cs: More ISO8859-1 -> unicode
766
767 2006-06-07  Mike Kestner  <mkestner@novell.com>
768
769         * ComboBox.cs : use items to hold highlight/selection so that
770         collection insertions don't require synchronization.
771
772 2006-06-07  Jackson Harper  <jackson@ximian.com>
773
774         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
775         routine.  We now always keep the sized edge at the cursor instead
776         of computing movement and adjusting rects.  There is one buglet
777         with this method though when the cursor is moved over area that
778         the window can not expand too (such as the toolbars on the desktop).
779
780 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
781
782         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
783         here. Fixes crash on startup in AlbumSurfer.
784
785 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
786
787         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
788           values
789
790 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
791
792         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
793         statement to avoid calling XNextEvent which will block if another thread
794         took the event that we were expecting. Fixes bug #78605.
795
796 2006-06-07  Mike Kestner  <mkestner@novell.com>
797
798         * ListView.cs : isolated checkbox clicking from the selection logic.
799         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
800
801 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
802
803         * Form.cs: Check that the value passed to Form.DialogResult
804         is a valid enum value.
805
806 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
807
808         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
809         Computer'. Clicking it in the network view goes to 'My Computer'.
810         Added CIFS filesystem type. Display the mount point of filesystems.
811         Avoid duplicate mount points (happens for me with CIFS);
812
813 2006-06-06  Jackson Harper  <jackson@ximian.com>
814
815         * InternalWindowManager.cs: Draw the maximized windows buttons
816         when resizing.
817
818 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
819
820         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
821         all other dialogs. Fixes bug #78585.
822
823 2006-06-06  Mike Kestner  <mkestner@novell.com>
824
825         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
826         Only invalidate checkbox on checkstate changes to avoid flicker.
827         * ListBox.cs : avoid unselect/select when clicking selected item.
828         avoid reselection flicker for already multiselected items.
829         Fixes #78382.
830
831 2006-06-06  Jackson Harper  <jackson@ximian.com>
832
833         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
834         the parent form so that the menu is removed if needed.
835
836 2006-06-06  Mike Kestner  <mkestner@novell.com>
837
838         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
839         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
840
841 2006-06-06  Mike Kestner  <mkestner@novell.com>
842
843         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
844
845
846 2006-06-06  Jackson Harper  <jackson@ximian.com>
847
848         * Control.cs: Use the property (instead of the field) to get the
849         default cursor so it is instantiated correctly.
850         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
851         resizes so we need to manually repaint the window decorations here.
852         - Set the titlebar button locations as soon as they are created,
853         otherwise they are not set correctly on win32.
854         
855 2006-06-06  Chris Toshok  <toshok@ximian.com>
856
857         * CurrencyManager.cs (set_Position): call PullData before
858         OnCurrentChanged.
859         (AddNew): after calling IBindingList.AddNew, update our
860         listposition, and call OnCurrentChanged/OnPositionChanged (without
861         calling PullData).
862         (OnCurrentChanged): remove the call to PullData from here.
863         (OnItemChanged): remove the call to PushData from here.
864         (OnPositionChanged): change the test from == null to != null to
865         match the other methods.
866         (ListChangedHandler): the grossest part of the patch.  Implement
867         this such that it passes the unit tests in CurrencyManagerTest and
868         the output more or less matches that of MS's implementation.
869  
870 2006-06-06  Mike Kestner  <mkestner@novell.com>
871
872         * ListView.cs : only update check state on single click.
873         * ThemeWin32Classic.cs : fix focus drawing for details view without
874         fullrowselect.  Fixes #78454.
875         * XplatUIX11.cs : fix for double click emission.
876
877 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
878
879         * PropertyGridView.cs : Applied Atsushi's patch to fix
880         font dialog bug  (#78197).
881
882 2006-06-05  Jackson Harper  <jackson@ximian.com>
883
884         * TreeNode.cs: Compute the next node for expanding/collapsing
885         correctly. We now factor in nodes without a NextNode
886         correctly. (Fixes somes cases in nunit-gui).
887         * InternalWindowManager.cs: Set the bounds when updating the
888         virtual position of a tool window.
889         
890 2006-06-05  Chris Toshok  <toshok@ximian.com>
891
892         * DataGrid.cs: rename cached_currencymgr to list_manager.
893         (set_CurrentCell): move SetCurrentCell code here, and clean it up
894         some.
895         (CurrentRow, CurrentColumn): single accessors so we can make the
896         cursor movement code a lot easier to understand.
897         (CurrentRowIndex): implement this in terms of CurrentRow.
898         (BeginEdit): clean this up a bit.
899         (CancelEditing): sort out the is_editing/is_changing/is_adding
900         stuff a little.
901         (EndEdit): minor changes.
902         (OnKeyDown): add a comment about a (most likely) unnecessary
903         check.
904         (OnMouseDown): cancel editing when we click on a row header.  And
905         use the CurrentRow setter, not CurrentCell.
906         (ProcessDialogKey): directly call ProcessGridKey.
907         (UpdateSelectionAfterCursorMove): factor out this common block of
908         code (it's used everywhere that we move the cursor by updating row
909         or column).
910         (ProcessGridKey): pretty substantial overhaul.  Use the
911         CurrentRow/CurrentColumn properties to make the code a lot more
912         readable.  Only use the CurrentCell property when we have to
913         modify both row and column at once.  Tab behavior is still broken,
914         and Delete is untested.
915         (Select): if we have no selected rows, set selection_start to
916         @row.
917         (EditCurrentCell): rename EditCell this.  It was only ever invoked
918         with CurrentCell as the arg, so drop the arg and rename it.
919
920         * DataGridColumnStyle.cs: clean up the constructors a little, and
921         drop CommonConstructor().
922
923         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
924         actually get notified when the user hits it.
925         (ProcessKeyMessage): *substantially* simplify this method.
926         There's no reason (that I can see) for the textbox to be making
927         calls into the datagrid at all.  Remove all of them but the ones
928         for Enter handling.  those will take some more work.
929
930         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
931         calling HideEditBox.
932         (HideEditBox): if we have an active textbox, render it invisible
933         without causing a re-layout of the datagrid.
934
935 2006-06-05  Mike Kestner  <mkestner@novell.com>
936
937         * ListView.cs : fix NRE crasher when focuseditem is cleared by
938         collection changes by resetting it to Items[0].  Fixes #78587.
939
940 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
941
942         * MessageBox.cs: if the height of the text is larger than the icon_size,
943         use that. Fixes bug #78575.
944
945 2006-06-05  Jackson Harper  <jackson@ximian.com>
946
947         * TreeView.cs: Fix line drawing when scrolling.  To do this each
948         node is basically responsible for drawing its entire horizontal
949         area.  When drawing a node it draws its parent node lines if
950         needed.
951         - Adjust the clip area to the viewport rectangle
952         - Fix Left/Right key handling to match MS. (It expand/collapses
953         and moves to parents/first child but does not move selection to
954         sibling nodes).
955         - Fix SetTop to work with new bound calculation code
956         - When scrollbars are no longer needed we need to reset scrolling
957         vars and recalculate the visible order so the redraw is correct
958         * TreeNode.cs: We can't expand/collapse nodes with no children.
959
960 2006-06-03  John Luke  <john.luke@gmail.com> 
961
962         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
963         so the colors work without dev packages
964         
965 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
966
967         * Control.cs 
968           - Select: Implemented to just use activate. Seems to match MS 
969             behaviour closest. Documented to only do actual control walking 
970             based on it's parameters if in a container control so I moved 
971             the code there.
972           - Removed selection check logic from our internal Select() method
973         * ContainerControl.cs:
974           - Select: Moved selection logic from Control here, since MS documents
975             that containers obey the bool arguments. No longer calling base
976
977 2006-06-02  Jackson Harper  <jackson@ximian.com>
978
979         * TreeView.cs: If the selected node isn't changed when we get
980         focus update the previously selected node so that we see the
981         selection box.
982
983 2006-06-02  Mike Kestner  <mkestner@novell.com>
984
985         * ComboBox.cs: restructure grab and general mouse event handling.
986         Make the composite control raise mouse events like it was a single
987         control for leaves/enters/motion/up/down events.  fix dropdown list
988         coordinate mangling and refactor it into the scrollbar subclass to
989         reduce code duplication.  Fixes #78282 #78361 and #78457.
990
991 2006-06-02  Mike Kestner  <mkestner@novell.com>
992
993         * ScrollBar.cs: remove Capture setting/clearing, as it happens
994         automatically in the Control.WndProc.
995
996 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
997
998         * FileDialog.cs: fix crash when running SharpChess, which sets the
999         FilterIndex to 2 with only one Filter.
1000
1001 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1002
1003         * ToolBar.cs: add SizeSpecified property.
1004         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
1005         try to figure out our real size, otherwise fallback to what the
1006         container says.
1007
1008 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
1009
1010         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
1011         * Control.cs (WndProc): MS always calls the DefWndProc to pass
1012           up the event
1013
1014 2006-06-01  Mike Kestner  <mkestner@novell.com>
1015
1016         * ListView.cs: revamp the focus management in ListView.  It still
1017         causes churn of LostFocus/GotFocus emissions on clicks, but it's
1018         better than not handling focus at all.  Will revisit when pdb feels
1019         the general focus handling is solid.  Fixes #78526.
1020
1021 2006-06-01  Jackson Harper  <jackson@ximian.com>
1022
1023         * TreeView.cs: Set the default border style in the constructor.
1024         - Move painting to use OnPaintInternal instead of capturing
1025         WM_PAINT, this is the correct way of doing things
1026         - UpdateBelow shouldn't invalidate the scrollbar area
1027         - Cap the top on update below in case the node was above the top
1028         of the viewport rectangle.
1029         - ExpandBelow and Collapse below need to obey Begin/End Update.
1030         * TreeNode.cs: Make is_expanded internal so the treenode
1031         collection can change it without firing the whole event chain.
1032         * TreeNodeCollection.cs: When clearing all the child nodes make
1033         sure to recalc the visible order.
1034         - Improve algo for remove the top node
1035
1036 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
1037
1038         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
1039           SendMessage directly calling window procedures, which in turn might
1040           call SetFocus()
1041
1042 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
1043
1044         * Control.cs: Don't handle WM_SETFOCUS if the same window already
1045           has focus (works around X11 sending a FocusIn after our SetFocus)
1046         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
1047
1048 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
1049
1050         * Mime.cs: Fix for the NET_2_0 build.
1051           NameValueCollection needs StringComparer now.
1052
1053 2006-05-31  Chris Toshok  <toshok@ximian.com>
1054
1055         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
1056         return (via an out parameter) the starting X of the column.
1057         (UpdateVisibleColumn): track change to FromPixelToColumn.
1058         (HitTest): add a ColumnResize case here.
1059         (DrawResizeLine): new function, probably poorly named.
1060
1061         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
1062         only need to keep one reference.
1063         (set_ListManager): same.
1064         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
1065         Also, add support for HitTestType.ColumnResize.
1066         (OnMouseMove): add column resize behavior here, and change the
1067         cursor to the correct one as we move around the datagrid.
1068         (OnMouseUp): terminate the column resize if we're resizing.
1069         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
1070         for the current cell.
1071         (ConnectListManagerEvents): use cached_currencymgr.
1072         (DisconnectListManagerEvents): fill this in, using
1073         cached_currencymgr.
1074         (SetCurrentCell): remove cached_currencymgr_events handling.
1075         (SetDataMember): only call DisconnectListManagerEvents if
1076         cached_currencymgr is != null.
1077         (SetDataSource): same.
1078         (OnListManagerCurrentChanged): cached_currencymgr_events ->
1079         cached_currencymgr.
1080
1081 2006-05-31  Jackson Harper  <jackson@ximian.com>
1082
1083         * BindingManagerBase.cs: Remove somedebug code that creeped into
1084         SVN.
1085         * TreeNode.cs: We get the indent level dynamically right now, so
1086         don't track it as a member.
1087         * TreeNodeCollection.cs: Make sure all nodes added to the list
1088         have parents, treeviews/topnodes setup properly.
1089         - Don't attempt to track indent level.
1090
1091 2006-05-30  Jackson Harper  <jackson@ximian.com>
1092
1093         * BindingContext.cs: Create the currency manager tables here.
1094         This allows us to more easily create null tables (when bad data
1095         members are used), and more easily create related currency
1096         managers.
1097         * CurrencyManager.cs: All the table creation stuff is done by the
1098         binding context now.
1099         - Current should throw an exception if listposition is -1.
1100         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
1101         been bound yet.
1102
1103 2006-05-30  Mike Kestner  <mkestner@novell.com>
1104
1105         * ListView.cs: allow reexpansion of zero-width column headers.
1106         Fixes #78528.
1107
1108 2006-05-28  Chris Toshok  <toshok@ximian.com>
1109
1110         * CurrencyManager.cs (get_Current): after the late binding
1111         listposition = -1 fix, we need to guard against it here and return
1112         null, otherwise we raise an exception (which is swallowed
1113         elsewhere, and breaks datagrid databinding.)
1114
1115 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
1116
1117         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
1118           than WM_SYSKEY, don't throw if get something unexpected (#78507)
1119
1120 2006-05-26  Jackson Harper  <jackson@ximian.com>
1121
1122         * ControlPaint.cs:
1123         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
1124         values, it's faster and it's all we care about (we don't care if
1125         the names aren't equal).
1126         * KeyboardLayouts.cs: Eliminate some dead code.
1127         - Lazy init things
1128         * X11Keyboard.cs: Lazy init keyboard detection.
1129         - Cleanup access modifiers a little.
1130
1131 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
1132
1133         * XplatUIX11.cs: Once again, attempting to get layout just right.
1134
1135 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
1136
1137         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
1138           the sizes of each link section, that will result in sizes that
1139           match DrawString's layout (Fixes #78391)
1140
1141 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
1142
1143         * FileDialog.cs: If AddExtension property is true autocomplete the
1144           extensions in SaveFileDialog correctly. Fixes bug #78453.
1145           Set MyNetwork and MyComputer to "C:\" for windows. This should
1146           fix part 8 of bug #78446 for now.
1147
1148 2006-05-26  Chris Toshok  <toshok@ximian.com>
1149
1150         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
1151         invalidate the current row header if we need to, but presumably
1152         we'll invalidate the row corrsponding to the bounds or
1153         editingControl.
1154         (GridHScrolled): switch back to this method, as it's part of the
1155         public api.  *sigh*.
1156         (GridVScrolled): same.
1157         (OnMouseWheel): hack up something that more or less works.  Call
1158         GridHScrolled/GridVScrolled directly, instead of duplicating much
1159         of their code here.
1160         (EnsureCellVisibility): reinstate a bunch of this code, since we
1161         can't just set the scrollbar Value and expect to do all the work
1162         in the ValueChanged handler.  Also, Call Update() after scrolling
1163         in one direction so the other XplatX11.ScrollWindow call has the
1164         proper stuff in the proper places.
1165         (EditCell): set is_editing to true before calling .Edit.
1166
1167         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
1168         don't bother comparing first.
1169         (OnKeyPress): call grid.ColumnStartedEditing before calling
1170         base.OnKeyPress.  this will set is_changing and invalidate the row
1171         header if necessary.
1172         (ProcessKeyMessage): for WM_CHAR messages, call
1173         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
1174         and WM_KEYDOWN.
1175         
1176         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
1177         it's done in the DataGrid.
1178         (NextState): call grid.ColumnStartedEditing, which takes care of
1179         invalidating the row header (and setting is_changing).
1180
1181         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
1182         here.  it's done in the DataGrid.
1183
1184 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1185
1186         * Control.cs: allow changing the cursor when the mouse position is
1187         out of bounds but Capture is set.
1188         * LinkLabel.cs: handle the case when the mouse button is pressed on the
1189         linklabel but released somewhere else.
1190
1191 2006-05-25  Jackson Harper  <jackson@ximian.com>
1192
1193         * TreeView.cs: When we get focus if there is no selected node make
1194         it the top node
1195         - Remove some uneeded setup code from Draw.
1196         * TreeNodeCollection.cs: If the tree doesn't have a top node when
1197         a new node is inserted make the new node the top.
1198         * XplatUIX11.cs:
1199         * Timer.cs: Use Utc time so that no local time zone stuff needs to
1200         be used (should be faster).
1201         
1202 2006-05-25  Chris Toshok  <toshok@ximian.com>
1203
1204         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
1205         problem with the last commit.
1206
1207 2006-05-25  Chris Toshok  <toshok@ximian.com>
1208
1209         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
1210         need the invalidate call here, while scrolling right-to-left via
1211         the left arrow key (i.e. moving the editing cell while scrolling).
1212
1213         * DataGrid.cs (.ctor): remove the initialization of
1214         ctrl_pressed/shift_pressed.  We no longer track them using key
1215         up/down handlers, but by using Control.ModifierKeys.  Also, switch
1216         to using ValueChanged handlers on the scrollbars instead of
1217         Scrolled event handlers.  This simplifies a bunch of the scrolling
1218         code.
1219         (GridHValueChanged): rename from GridHScrolled, and change it to
1220         work with the new event args.
1221         (GridVValueChanged): same.
1222         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
1223         (OnMouseWheel): actually scroll the datagrid.  Don't change the
1224         selected cell.
1225         (ProcessGridKey): correct all the keyboard navigation stuff I
1226         could find.  Ctrl up/down/left/right/home/end work now.
1227         (EnsureCellVisibility): correct method name spelling.  Also,
1228         simplify this a touch by not explicitly calling the
1229         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
1230         scrollbar value.
1231         (OnKeyUpDG): no need for this method now.
1232         
1233 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1234
1235         * LinkLabel.cs: display the OverrideCursor when hovering the label.
1236         Fixes bug #78392.
1237
1238 2006-05-25  Chris Toshok  <toshok@ximian.com>
1239
1240         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
1241         r61019.
1242
1243 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
1244
1245         * Application.cs: Moved setting of is_modal and closing to before
1246           we create the control, to allow the event handlers called as a
1247           result of creation affect closing. Also removed Gonzalo's previous
1248           change to setting DialogResult, the behaviour has been moved to 
1249           Form.ShowDialog()
1250         * Form.cs: 
1251           - ShowDialog(): Removed explicit creation of the form, let RunLoop
1252             handle it instead
1253           - ShowDialog(): If no dialog result is set, we need to return Cancel
1254           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
1255             the close is cancelled
1256
1257 2006-05-25  Jackson Harper  <jackson@ximian.com>
1258
1259         * StatusBar.cs: We only need to update the sizes of the other
1260         panels when we have auto size contents.  Also we are only updating
1261         the contents of the panel, not the borders, so compensate for the
1262         border width (TODO: get this width from the theme somehow).
1263         * TreeView.cs: Scrollable is true by default
1264         - Use invalidate instead of refresh where needed
1265         - Factor the scrollable value into scrollbar updating
1266         - Update the scrollbars if the Scrollable property is altered
1267         - Update the selected node if its ImageIndex is changed
1268         - Handle null nodes in UpdateNode (mainly so we don't have to
1269         check if selected is null when updating it
1270         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
1271         are factored into the visible count
1272         - Use VisibleCount for clarity in the code
1273         - When the font is changed we need to recurse through all the
1274         nodes and invalidate their sizes
1275         
1276 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1277
1278         * Application.cs: set the DialogResult to fixed when the main form is
1279         hidden or destroyed while being modal.
1280
1281 2006-05-25  Miguel de Icaza  <miguel@novell.com>
1282
1283         * Theme.cs: Use Tangoified messagebox icons. 
1284
1285         (GetSizedResourceImage): Also cope with width = 0 and do not
1286         trigger a warning in that case (0 means "give me your icon from
1287         the resouce, no special size needed).
1288
1289 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
1290
1291         * Application.cs: Leave runloop if the the main modal form is 
1292           hidden (fixes #78484)
1293
1294 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
1295
1296         * BindingContext.cs : reject null datasource in Contains() and
1297           Item[].
1298         * CurrencyManager.cs : check data_member validity when data_source
1299           is dataset. When it is late binding, the initial position is -1.
1300
1301 2006-05-24  Jackson Harper  <jackson@ximian.com>
1302
1303         * TreeNodeCollection.cs: Dont't recalculate the visible order on
1304         inserted nodes that aren't visible.  This changes the
1305         max_visible_order which confuses scrollbar settings.
1306         - Use the enumerator to get the prev node instead of duplicating
1307         code.
1308         * TreeView.cs: Use new method for setting scrollbar values
1309         - Don't set the bounds every time the scrollbar is updated
1310         - When updating below the root node use an invalidate instead of a
1311         refresh to prevent the child controls (scrollbars) from being
1312         refreshed. (UpdateBelow still needs to be reworked anyways).
1313         - Reenable SetBottom now that visible orders are set correctly,
1314         added some debug code incase we ever get bad values there again.
1315         - Set the scrollbar max to 2 less then the max value, this
1316         compensates for the max value being one above the node count, and
1317         for scrollbars adding one extra "notch".
1318         - When drawing image nodes if there is an imagelist we draw the
1319         first image in the list if the supplied image index is out of the
1320         image list's bounds.
1321         
1322 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
1323
1324         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
1325           we receive a size change from the WM (Fixes #78503)
1326
1327 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
1328
1329         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
1330           rectangle (Fixes #78501)
1331
1332 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
1333
1334         * ButtonBase.cs: 
1335           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
1336             as a bitfield.
1337           - Fixed MouseMove to no longer switch pressed state unless the left
1338             mouse button is pressed. Atsushi provided the original patch (#78485)
1339           
1340 2006-05-24  Jackson Harper  <jackson@ximian.com>
1341
1342         * ScrollBar.cs: New internal methods that allow us to change a
1343         couple values on the scrollbar (the most common case is maximum
1344         and large change) without getting multiple invalidates.
1345
1346 2006-05-24  Chris Toshok  <toshok@ximian.com>
1347
1348         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
1349         (Edit): save off the original state in oldState, and set
1350         grid.is_editing to true.
1351         (OnKeyDown): abort editing if escape is pressed.  also, call
1352         NextState if space is pressed.
1353         (OnMouseDown): call NextState.
1354         (NextState): factor out shared code from OnKeyDown and OnMouseDown
1355         here.  Also, only invalidate the row header once (on the initial
1356         is_changing switch) to save on redraws.
1357
1358 2006-05-24  Chris Toshok  <toshok@ximian.com>
1359
1360         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
1361         if the value in the cell is different than it was before.  This
1362         keeps us from triggering a layout when we move around a datarid
1363         with a highlighted cell.
1364         (Edit): suspend layout when creating/positining the text box, and
1365         resume passing false so we don't ever actually re-layout.
1366         (ReleaseHostedControl): same.
1367         (EnsureTextBox): reformat slightly, and set WordWrap to false.
1368
1369         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
1370         control-key sequences should go to the datagrid - remove that
1371         lock.  Also, modify the conditions under which we move between
1372         cells when moving the cursor within a cell, and remove the "this"
1373         and "base" from field accesses.  We weren't even consistent, given
1374         they all were in the base class.
1375
1376 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
1377
1378         * Binding.cs : (.ctor)
1379           An obvious NRE fix for BindingTest.CtorNullTest().
1380
1381 2006-05-23  Chris Toshok  <toshok@ximian.com>
1382
1383         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
1384         them between lines.  This fixes some quirks editing cells in the
1385         datagrid.
1386
1387 2006-05-23  Jackson Harper  <jackson@ximian.com>
1388
1389         * TreeView.cs: Use begin/end update when doing expand/collapse all
1390         so that we don't get flicker on the scrollbar.
1391
1392 2006-05-23  Jackson Harper  <jackson@ximian.com>
1393
1394         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
1395         treenode calculations to be independant of the painting code. To
1396         do this nodes track a visible order which is calculated by the
1397         treeview.
1398         - Call new methods for expanding/collapsing nodes.  These methods
1399         use scrollwindow so we don't have to update everything below the
1400         node.
1401         * TreeView.cs: Refactored drawing and scrolling code.  We don't
1402         need to update nodes when drawing anymore or calculate scrollbar
1403         stuff.
1404         - Added new methods for expanding/collapsing nodes. These methods
1405         use ScrollWindow so as to not have to redraw all the nodes below.
1406         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
1407         we add/remove nodes or sort.
1408         - Handle removing the selected and the top node properly.
1409
1410 2006-05-23  Chris Toshok  <toshok@ximian.com>
1411
1412         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
1413         maybe this should actually happen in the datagrid code?
1414         (EndEdit): no need to invalidate anything, given that
1415         ReleaseHostedControl causes the datagrid to relayout, which
1416         invalidates everything anyway.
1417
1418         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
1419         in SetCurrentCell).
1420         (set_SelectionBackColor): call InvalidateSelection instead of
1421         Refresh.
1422         (set_SelectionForeColor): same.
1423         (BeginEdit): Flesh this out a bit.
1424         (CancelEditing): only do any of this if we're editing/adding.
1425         (EndEdit): same.
1426         (OnMouseDown): there's no need to cancel editing here, it's done
1427         in SetCurrentCell.
1428         (SetCurrentCell): only invalidate the current row header if it's a
1429         different row than the new one.
1430         (ShiftSelection): fix this to work like MS does.
1431         (ResetSelection): factor out the invalidation of selected_rows to
1432         InvalidateSelection.
1433         (SetDataSource): cancel any editing that's going on.
1434
1435         * DataGridColumnStyle.cs
1436         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
1437         call the non-interface version.
1438
1439         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
1440         header rectangle with the clip rectangle so we don't redraw the
1441         entire header for just a small area.  Gets rid of the last flicker
1442         when horizontally scrolling.
1443         (DataGridPaintRow): same.
1444
1445 2006-05-23  Mike Kestner  <mkestner@novell.com>
1446
1447         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
1448         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
1449         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
1450         Critical bug report.
1451
1452 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
1453
1454         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
1455           and this fixes #78493
1456
1457 2006-05-23  Miguel de Icaza  <miguel@novell.com>
1458
1459         * Theme.cs (GetSizedResourceImage): Scale images if the proper
1460         size is not found.  
1461         
1462         * FileDialog.cs: Do not change the background for the side bar as
1463         it wont work nicely with the theme, and also reduces the artifacts
1464         in rendering the icons (which I want to fix too).
1465
1466         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
1467         resources, not resgen resources. 
1468
1469         (PlatformDefaultHandler): Pull images using the new API.
1470
1471 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
1472
1473         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
1474           a reference to the hwnd and will not remove it unless there are
1475           no pending exposures (fixes #78341)
1476         * XplatUI.cs: Improved debug
1477
1478 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
1479
1480         * MenuAPI.cs : don't handle OnClick event when it was not the left
1481           button. Fixed bug #78487.
1482
1483 2006-05-23  Mike Kestner  <mkestner@novell.com>
1484
1485         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
1486         prefer submenus to the top menu for item lookup, to avoid popping down
1487         top-row items.
1488
1489 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
1490
1491         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
1492           Graphics.FillRectangle as the visual results are really bad (even
1493           on win). We now draw perfect arrows (and perfect shadows when the
1494           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
1495           Pen.DashPattern to draw the dots of each line.
1496
1497 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
1498
1499         * FileDialog.cs: Update the filename combobox when navigating through
1500           the ListView with the cursor keys. Fixes part 7 of bug #78446.
1501
1502 2006-05-22  Mike Kestner  <mkestner@novell.com>
1503
1504         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
1505         Fixes #78463.
1506
1507 2006-05-22  Mike Kestner  <mkestner@novell.com>
1508
1509         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
1510         requests. Fix a misspelled parameter and a copy paste exception error
1511         in Select.
1512
1513 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
1514
1515         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
1516           to get the same width/height (5/13) on X11 as the default font has on
1517           win32. This means that our DefaultFont emSize is smaller than the 
1518           the MS SWF equivalent (even thought the width/height stays the same)
1519
1520 2006-05-20  Jackson Harper  <jackson@ximian.com>
1521
1522         * MdiClient.cs:
1523         * MdiWindowManager.cs:
1524         * InternalWindowManager.cs: Make sure to use the border width from
1525         the theme.
1526
1527 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
1528
1529         * PrintDialog.cs: Implements printer details
1530
1531 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
1532
1533         * FileDialog.cs: Added focus handling for PopupButtonPanel.
1534           Fixes part 1 and 2 of bug #78446
1535
1536 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
1537
1538         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
1539           instead of sticking to the first ever calculated value
1540
1541 2006-05-19  Mike Kestner  <mkestner@novell.com>
1542
1543         * ComboBox.cs: fix mouse motion selection to use MousePosition and
1544         PointToClient, since Capture is set. Fixes #78344.
1545
1546 2006-05-19  Mike Kestner  <mkestner@novell.com>
1547
1548         * ListView.cs: match MS behavior in Details view where items are not
1549         drawn if Columns.Count == 0. 
1550         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
1551         Use a separate pen to draw the check, since changing the width affects
1552         the box as well.  Fixes #78454.
1553
1554 2006-05-18  Miguel de Icaza  <miguel@novell.com>
1555
1556         * ListView.cs: ArgumentOutOfRangeException, single versions of the
1557         exception should throw the name of the invalid argument.
1558
1559         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
1560         there are no files listed. 
1561
1562 2006-05-18  Jackson Harper  <jackson@ximian.com>
1563
1564         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
1565         up.
1566
1567 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1568
1569         * Control.cs: Brought back our old UpdateZOrder method as a private
1570           function and switched our calls from UpdateZOrder to the new one.
1571           This fixes the Paint.Net canvas disappearing bug.
1572
1573 2006-05-18  Jackson Harper  <jackson@ximian.com>
1574
1575         * Theme.cs:
1576         * ThemeWin32Classic.cs:
1577         * InternalWindowManager.cs: Move the drawing into the theme,
1578         expose everything the theme should need from the window manager.
1579
1580 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1581
1582         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
1583           from the call to NativeWindow to avoid walking up the parent chain
1584           further than needed (speeds up setting cursors and avoids setting
1585           the wrong cursor if a parent has another cursor defined)
1586         * Cursor.cs: When loading an icon as cursor, MS uses the center of
1587           the icon as hotspot, not what's contained as hotspot in the icon
1588           file. This fixes the perceived drawing offset seen with Paint.Net
1589         
1590 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
1591
1592         * XplatUIX11.cs: 
1593           - Store the calculated rectangle in Hwnd object and use it when 
1594             setting the client size
1595           - Force Toolwindows to always be type Dock, to ensure they're on top
1596
1597 2006-05-18  Mike Kestner  <mkestner@novell.com>
1598
1599         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
1600         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
1601         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
1602         Substantial refactoring to remove confusing nested classes. Coding
1603         standard and Get+Set->property refactorings.  Shift to index based
1604         highlighting in ComboListBox instead of constantly using IndexOf and
1605         Items[]. Add invalidations on resize for DropDownList to fix ugliness
1606         in FileDialog growth.  Draw borders manually since Simple mode needs
1607         to look like two independent controls.  Make listbox border
1608         conditional to DropDownStyle.  Improved OwnerDraw support.
1609
1610 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
1611
1612         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
1613         Don't set the disposed graphics to null, so we can throw the "right"
1614         exception if the graphics is reused later (added a flag to avoid 
1615         double disposing). Some behaviours are different under 2.0 and are
1616         filled under bug #78448.
1617
1618 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
1619
1620         * Control.cs: When double-buffering is enabled, we need to reset
1621           our graphics context between paint calls. Otherwise, any 
1622           transformations and other alterations on the context will 
1623           become cumulative (#77734)
1624
1625 2006-05-18  Mike Kestner  <mkestner@novell.com>
1626
1627         * ListView.cs: do focused item selection like MS on clicks. 
1628         Rework focus handling for ItemControl so LostFocus invalidates as
1629         well.
1630         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
1631         the ListView ItemControl has focus.
1632
1633 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
1634
1635         * XplatUIX11.cs: If client_window ends up being width or height zero
1636           due to border settings, move it off window inside whole_window (#78433)
1637
1638 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1639
1640         * Mime.cs: Shrink the mime file cache correctly.
1641
1642 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
1643
1644         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
1645
1646 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1647
1648         * XplatUIX11.cs (AddExpose): More sanity checks
1649
1650 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1651
1652         * XplatUIX11.cs:
1653           - AddExpose: Don't add expose ranges outside the size of our
1654             window
1655           - Cast opacity values to Int32 to avoid crashes with certain
1656             values
1657           - Added disabled code paths that protect against illegal cross-
1658             thread painting (Developers.exe)
1659
1660 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1661
1662         * ProgressBar.cs: Invalidate the control when it's resized
1663           since block size is based on control size. (#78388)
1664
1665 2006-05-16  Miguel de Icaza  <miguel@novell.com>
1666
1667         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
1668         of setting the incoming argument to the "reset" value, we set the
1669         this.datamember to string.empty (before we were invalidating the
1670         incoming data).   
1671
1672         Fixes 78420
1673
1674 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1675
1676         * Form.cs: Only apply transparency settings after the form
1677           is created. (Fixes #77800)
1678
1679 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
1680
1681         * ApplicationContext.cs: Grab the HandleDestroyed event so
1682           we know when to fire OnMainFormClosed 
1683
1684 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1685
1686         * Application.cs: Introduced sub-class to allow tracking of
1687           threads and centralized triggering of the event mess for
1688           ThreadExit, AppExit, etc..  (#76156)
1689
1690 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
1691
1692         * MimeIcon.cs:
1693           - Do not return a null icon index value for a mime subclass.
1694             Instead try the main mime type class too.
1695           - Seems that some newer distributions don't have a link to some
1696             gnome default icons anymore. So check the default gnome dir too.
1697           
1698
1699 2006-05-16  Jackson Harper  <jackson@ximian.com>
1700
1701         * MdiClient.cs: Don't paint the parent background image if we have
1702         our own background image.
1703
1704 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
1705
1706         * Control.cs:
1707           - PerformLayout: Do not shrink space filled by DockStyle.Fill
1708             controls, all filled controls are supposed to overlap (#78080)
1709           - UpdateZOrder is supposed to update the control's z-order in the
1710             parent's z-order chain. Fixed to behave like that
1711           - BringToFront: Removed obsolete code
1712           - SendToBack: Simplyfied
1713           - SetChildIndex: Trigger layout calculations when Z-order changes
1714             since layout is done by z-order
1715
1716 2006-05-16  Chris Toshok  <toshok@ximian.com>
1717
1718         [ fixes bug #78410 ]
1719         * DataGrid.cs (set_AlternatingBackColor): use
1720         grid_drawing.InvalidateCells instead of Refresh().
1721         (set_BackColor): call grid_drawing.InvalidateCells.
1722         (set_BackgroundColor): use Invalidate instead of Refresh.
1723
1724         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
1725         invalidate the cell area.
1726
1727 2006-05-15  Chris Toshok  <toshok@ximian.com>
1728
1729         [ fixes bug #78011 ]
1730         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
1731         on to DataGridPaintRow.
1732         (DataGridPaintRow): take a clip argument, and only draw the cells
1733         which intersect it.  same with the not_usedarea.
1734
1735         * Theme.cs (DataGridPaintRow) add @clip parameter.
1736
1737         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
1738         XplatUI.ScrollWindow.
1739         (ScrollToRow): same.
1740
1741         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
1742         with last column which was causing a gray swath to appear with the
1743         XplatUI.ScrollWindow code.
1744
1745 2006-05-15  Chris Toshok  <toshok@ximian.com>
1746
1747         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
1748         use XplatUI.ScrollWindow.
1749         (VerticalScrollEvent): use XplatUI.ScrollWindow.
1750
1751 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
1752
1753         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
1754
1755 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1756
1757         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
1758           file since there are no equivalent X11 cursors
1759
1760 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1761
1762         * MonthCalendar.cs : DateTimePicker should reflect selected date
1763           on mouse*up*, not mouse*down*. Fixed originally reported part of
1764           bug #76474.
1765
1766 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
1767
1768         * TabControl.cs : When argument index is equal or more than tab
1769           count, just ignore. Fixed bug #78395.
1770
1771 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
1772
1773         * Control.cs: Dispose all child controls when control is diposed (#78394)
1774
1775 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1776
1777         * ColorDialog.cs: Finally it is possible to select the color with
1778           the text boxes
1779
1780 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1781
1782         * PrintDialog.cs: Fix typo
1783
1784 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
1785
1786         * PrintDialog.cs: PrintDialog is not resizable
1787         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
1788           color. Made some ToolBar drawing methods protected virtual.
1789
1790 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
1791
1792         * PrintDialog.cs: Implementation of the PrintDialog
1793
1794 2006-05-12  Chris Toshok  <toshok@ximian.com>
1795
1796         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
1797         thumb, instead use MoveThumb.  This has the side effect of making
1798         most of the other thumb moving machinery use MoveThumb as well.
1799         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
1800         need to actually invalidate the rectangle where the new thumb will
1801         go.
1802         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
1803         We force an Update() after, so it's not as fast as it could be,
1804         but at least there's zero flicker and no droppings.
1805         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
1806         (UpdateThumbPos): add another argument (dirty), which says whether
1807         or not to calculate/add dirty regions which we later invalidate.
1808         For cases where we know we're going to use MoveThumb, we pass
1809         false for this.  Otherwise, pass true.
1810
1811 2006-05-12  Jackson Harper  <jackson@ximian.com>
1812
1813         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
1814         the status bar.
1815         
1816 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
1817
1818         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
1819           and GetClipRegion methods and UserClipWontExposeParent property.
1820         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
1821           overriding UserClipWontExposeParent property, setting to false, since
1822           Win32 handles the required expose messages to draw our clipped parent
1823           areas internally
1824         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
1825           PaintEventStart to set the user clip region if set.
1826         * Control.cs: 
1827           - Now internally tracking the Region for the control since we need to
1828             store it if the handle is not yet created and only set it when it
1829             becomes created. Before setting the region forced handle creation
1830           - Added code to draw the parents underneath a user-clipped region
1831         * Hwnd.cs: Added UserClip property
1832
1833 2006-05-12  Chris Toshok  <toshok@ximian.com>
1834
1835         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
1836         (set_Maximum): same.
1837         (set_Minimum): same.
1838         (set_SmallChange): same.
1839         (OnMouseUpSB): remove the call to refresh when releasing the
1840         thumb.  We shouldn't need it.
1841         
1842 2006-05-12  Miguel de Icaza  <miguel@novell.com>
1843
1844         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
1845         AutoSize set to None, we do not need to relayout everything, we
1846         just need to invalidate the current region.
1847
1848         (Draw): Do not draw the entire ClientArea, just redraw the
1849         clip area being passed.
1850
1851         * MdiClient.cs: Make MdiClient constructor with the Form argument
1852         internal. 
1853
1854 2006-05-12  Jackson Harper  <jackson@ximian.com>
1855
1856         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
1857         parents background image,  but strangely not their own.
1858         - (DrawStatusBarPanel): Take into account horizontal alignment
1859         when drawing the strings and icons.
1860
1861 2006-05-12  Mike Kestner  <mkestner@novell.com>
1862
1863         * ListBox.cs: avoid invalidations for focus when the collection is
1864         empty. 
1865
1866 2006-05-12  Chris Toshok  <toshok@ximian.com>
1867
1868         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
1869         invalidate the entire thumb area.  Call InvalidateDirty which
1870         limits the redraw to the thumb itself and surrounding pixels.
1871
1872         * XplatUIX11.cs (ScrollWindow): optimize copying.
1873         
1874 2006-05-12  Chris Toshok  <toshok@ximian.com>
1875
1876         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
1877         Figure out the positioning/layout in a single pass instead of
1878         multiple recursive invocations.  Speeds up the initial display of
1879         the data grid.  Also, make many things private that were
1880         originally public but unused outside this class.
1881
1882 2006-05-11  Jackson Harper  <jackson@ximian.com>
1883
1884         * MdiClient.cs: Improved layout code.
1885
1886 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
1887
1888         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
1889           not SelectedObject.
1890
1891 2006-05-11  Chris Toshok  <toshok@ximian.com>
1892
1893         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
1894         union of that will always be {0,0,width,height}.
1895
1896 2006-05-11  Jackson Harper  <jackson@ximian.com>
1897
1898         * Form.cs: Match MS's DefaultSize for forms (they must have
1899         changed the size in sp2).
1900
1901 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1902
1903         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
1904
1905 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
1906
1907         * TextControl.cs : Fixed bug #78109. This incorrect position
1908           comparison caused crash on automatic line split.
1909         * TextBoxBase.cs : reduce duplicate code.
1910
1911 2006-05-10  Jackson Harper  <jackson@ximian.com>
1912
1913         * MdiClient.cs: Active form is only sent to the back when using
1914         the Next form functionality, when a form is clicked the current
1915         active shouldn't be sent to the back.
1916         - Layout the mdi windows when the container is first made visible.
1917         * Form.cs: Give the MdiClient a ref to the containing form when we
1918         create it.
1919         
1920 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1921
1922         * LinkLabel.cs : link_font could be uninitialized, so populate one
1923           before actual use. Fixed bug #78340.
1924
1925 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
1926
1927         * XplatUIX11.cs : clipboard format native value is IntPtr.
1928           Fixed bug #78283.
1929
1930 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1931
1932         * Control.cs: 
1933           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
1934             which is passed up the parent chain by DefWndProc
1935           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
1936             to DefWndProc (#77956)
1937         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
1938
1939 2006-05-10  Jackson Harper  <jackson@ximian.com>
1940
1941         * MdiClient.cs: We need to remove the controls from the mdi
1942         collection, when we close the window.
1943         * MdiWindowManager.cs: Special handling of closing mdi windows.
1944         * InternalWindowManager.cs: Make the close method virtual so the
1945         mdi window manager can handle it specially.
1946
1947 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
1948
1949         * DataGrid.cs:
1950           - Recalculate grid when the data source has changed
1951           - Matches styles provided by user from all data sources types
1952         * DataGridTableStyle.cs: For columns that provided by the user set the
1953         with the preferred value is there was unassigned.
1954         * CurrencyManager.cs: throw OnItemChanged event
1955
1956 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
1957
1958         * PictureBox.cs: Don't animate until handle is created. Start animation
1959           when handle is created.
1960
1961 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1962
1963         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
1964           current codebase.
1965         * XEventQueue.cs: We don't need to provide the extra info
1966
1967 2006-05-10  Jackson Harper  <jackson@ximian.com>
1968
1969         * MdiClient.cs: If the mdi clients parent form has a background
1970         image set, we draw that background image for the mdi area's
1971         background.
1972
1973 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1974
1975         * TextBoxBase.cs: Set IBeam cursor (#78347)
1976
1977 2006-05-10  Mike Kestner  <mkestner@novell.com>
1978
1979         * ToolBar.cs: fix some text padding issues with ButtonSize
1980         calculation. Update the default size to match MS documentation.
1981         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
1982         button size. Fixes #78296.
1983
1984 2006-05-10  Mike Kestner  <mkestner@novell.com>
1985
1986         * ListBox.cs: use is_visible for scrollbar positioning in case the
1987         control isn't on screen yet.  Fix off by one with Right vs Width
1988         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
1989         
1990 2006-05-10  Jackson Harper  <jackson@ximian.com>
1991
1992         * X11Dnd.cs: Drop to a control with another control on top of it.
1993         * ToolBar.cs: Work on a copy of the buttons list, so that it can
1994         be modified in click handlers. TODO: Look for similar problems in
1995         other controls.
1996
1997 2006-05-09  Jackson Harper  <jackson@ximian.com>
1998
1999         * Form.cs: Window managers need the old window state when setting
2000         window state now.
2001         * InternalWindowManager.cs: Allow the base mdi window manager to
2002         handle more of the MDI only stuff (like maximize buttons).
2003         * MdiWindowManager.cs: Fix some snafus in changing the window
2004         state.  Add all the menu functionality, for both popup and
2005         maximized menus.
2006         * MdiClient.cs: When a new form is selected the currently
2007         activated form is sent to the back, this matches MS.
2008         - Implement a new method to activate the next mdi child window.
2009
2010 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
2011
2012         * Control.cs: 
2013           - Added new InternalCapture method to allow controls to prevent
2014             the capture behaviour on the click handlers
2015           - Switched to use InternalCapture
2016         * ComboBox.cs:
2017           - Using InternalCapture to prevent mouse captures from being released
2018             on mouse button release (Fixes #78100)
2019         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
2020           returns Form borders if a caption is present. (Fixes #78310)
2021
2022 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
2023
2024         * TreeNode.cs: Changed serialization .ctor to not require every field
2025           to be present. (#78265)
2026         * OwnerDrawPropertyBag.cs: Added serialization .ctor
2027
2028 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
2029
2030         * MimeIcon.cs: for is faster than foreach for strings.
2031
2032 2006-05-05  Mike Kestner  <mkestner@novell.com>
2033
2034         * CheckedListBox.cs: update check handling code to not use selected.
2035         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
2036         behavior for visual feedback, motion response, shift/ctrl handling,
2037         and properly deal with all 4 selection modes. Updates to bounds
2038         handling logic.  Add scroll wheel support. [Fixes #77842]
2039
2040 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
2041
2042         * ListView.cs:
2043           - Moved adding of Implicit controls into .ctor. That way, subsequent
2044             creation of the controls will not cause them to think they are 
2045             toplevel windows (fixes #78200 header problem)
2046           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
2047           - Switched visibility setting of header control to use internal field
2048             to avoid triggering handle creation
2049           - Now checking if handle is created before causing a refresh when items
2050             are added (This makes us now match handle creation time with MS)
2051         * Splitter.cs: Removed loading of private splitter cursor, switched to
2052           Cursors version now that that is loading the right ones
2053         * Cursors.cs: Load proper splitter cursors from resources
2054         * Cursor.cs: Added second method of loading resource cursors for the 
2055           VS.Net users amongst us
2056
2057 2006-05-05  Mike Kestner  <mkestner@novell.com>
2058
2059         * ListView.cs: give header_control a minimum size based on the
2060         ListView size.
2061
2062 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
2063
2064         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
2065           window seems to do that with metacity, so set that type. (#78120)
2066
2067 2006-05-05  Mike Kestner  <mkestner@novell.com>
2068
2069         * ListViewItem.cs: fix Details mode checkbox layout bug.
2070         * ThemeWin32Classic.cs: draw a ListView column header for unused space
2071         at the end of the header, if it exists. [Fixes for #78200]
2072
2073 2006-05-04  Jackson Harper  <jackson@ximian.com>
2074
2075         * MdiClient.cs: Add a helper property to get the container form.
2076         * MdiWindowManager.cs: We have to make sure to use the menu origin
2077         when drawing the icons and buttons, this fixes maximized window
2078         icons/buttons on win32.
2079         * InternalWindowManager.cs: Reset the restore captions when a
2080         window goes from Maximized to Minimized and vice versa. Move the
2081         DrawMaximizedButtons into the MdiWindowManager source, tool
2082         windows can't be maximized. NOTE: This could use a little
2083         refactoring if time ever permits.
2084         
2085 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
2086
2087         * TextBox.cs: Add MWFCategoryAttributes
2088         * TextBoxBase.cs: Add MWFCategoryAttributes
2089         * Form.cs: Add MWFCategoryAttributes
2090
2091 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
2092
2093         * Control.cs: Add MWFCategoryAttributes
2094         * ScrollableControl.cs: Add MWFCategoryAttributes
2095
2096 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
2097
2098         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
2099           Divider is true. Fix a little glitch in PropertyToolBar
2100           drawing code
2101
2102 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
2103
2104         * Control.cs:
2105           - Dispose: Call base.Dispose, this causes the disposed event
2106             to be fired (and probably other, more important stuff)
2107           - SetVisibleCore: Set is_visible to true after creating the
2108             window so that the window still gets created invisible (if
2109             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
2110             to generate a WM_ACTIVE message
2111         * Form.cs: Call Dispose when we want to destroy the window, instead of
2112           just destroying the handle (Dispose will do that for us)
2113         * XplatUIX11.cs:
2114           - RootWindow also needs a queue, so we can properly process the
2115             property change events from RootWindow (like Activate)
2116           - Generatic synthetic WM_ACTIVE message when the active window is
2117             being destroyed
2118
2119 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
2120
2121         * LinkLabel.cs: Trigger a recalc of our label dimensions when
2122           bounds are changed
2123
2124 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
2125
2126         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
2127           for determining width and height (image might not be assigned if
2128           we're drawing an imagelist)
2129
2130 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
2131
2132         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
2133         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
2134           height from system
2135         * Theme.cs: No longer returns hardcoded menu height, instead calls
2136           new driver method
2137         * Form.cs (OnLoad): Scaling happens before triggering Load events 
2138           on MS (# 78257)
2139
2140 2006-05-01  Mike Kestner  <mkestner@novell.com>
2141
2142         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
2143
2144 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
2145
2146         * TextBoxBase.cs: Removed Fixme
2147         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
2148
2149 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
2150
2151         * XplatUIX11.cs:
2152           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
2153             the rectangle relative to the parent, considering borders. We
2154             don't really want that.
2155           - ScrollWindow: Fixed warning to be more understandable
2156         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
2157           scrollbars and scroll only the visible area
2158         * RichTextBox.cs: Removed debug output
2159
2160 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2161
2162         * NumericUpDown.cs (Text): Just use base
2163         * UpDownBase.cs: Ensure txtView is created before using it
2164
2165 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
2166
2167         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
2168           casting to IntPtr to avoid 64bit overflow errors
2169
2170 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2171
2172         * Control.cs:
2173           - AllowDrop: Don't force handle creation.
2174           - CreateHandle: Added call to tell driver if we're allowed to drop
2175
2176 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2177
2178         * FileDialog.cs: Remember the last directory not only for the
2179           current instance but also for new FileDialog instances.
2180
2181 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
2182         
2183         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
2184           broke sending async messages
2185
2186 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
2187
2188         * XplatUIX11.cs:
2189           - ScrollWindow: Fixed method. We finally generate expose events again
2190             for scrolled areas. This was causing 'garbage' when scrolling
2191             textbox and other controls that used ScrollWindow
2192           - Switched from using the regular queue for paint events to the MS 
2193             model of 'generating' paint events when the queue is empty.
2194             We use the new XQueueEvent.Paint subclass to store which windows
2195             need painting.
2196           - AddExpose now takes the x/y/width/height of the exposed area
2197             and inserts the window into the paint queue if not already there
2198           - InvalidateWholeWindow: Switched to use new AddExpose method
2199           - UpdateMessageQueue: Added which queue to monitor for paint events
2200           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
2201             the unlikely case nothing above handles it. We reset the expose
2202             pending states to get them off the queue.
2203           - GetMessage: Now pulls a paint event if no other events are in the
2204             queue
2205           - Invalidate: Switched to new AddExpose method
2206           - PeekMessage: Updated to understand pending paint events
2207           - UpdateWindow: Fixed logic bug. We were only updating if the window
2208             didn't need updating. Also switched to sending WM_PAINT directly,
2209             like MS does.
2210         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
2211           and random access Remove(). The random access is needed to handle
2212           UpdateWindow() where a WM_PAINT is sent directly without accessing
2213           the queue.
2214         * ScrollBar.cs: Added Update() calls to cause immediate updates to
2215           allow for better feedback when scrolling. Scrollbars are small and
2216           the immediate update should make it 'feel' more responsive without
2217           slowing things down. ScrollBar still needs it's invaliate logic
2218           updated to not always invalidate the whole bar on certain changes.
2219
2220 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2221
2222         * Control.cs:
2223         (BackColor): if the control does not support a transparent background,
2224         return the default backcolor when the parent backcolor is transparent.
2225
2226 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
2227
2228         * Application.cs: Updated to new StartLoop/GetMessage API
2229         * RichTextBox.cs: Provide some output on RTF parsing errors
2230         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
2231           new queue_id argument to GetMessage and PeekMessage to allow faster
2232           handling of per-thread queues in drivers.
2233         * Hwnd.cs: Added Queue tracking and property
2234         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
2235         * XEventQueue.cs: Added thread trackingA
2236         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
2237         * XplatUIX11.cs:
2238           - Implemented new per-thread queue
2239           - GetMessage: Fixed return/break behaviour on several cases. We were
2240             returning stale messages in some cases, instead of just processing
2241             the next message
2242
2243 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
2244
2245         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
2246
2247 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
2248
2249         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
2250           fixed off-by-one comparisons between Width/Height and Right/Bottom.
2251
2252 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
2253
2254         * PropertyGridView.cs: Fix drop down width.
2255
2256 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2257
2258         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
2259           a mess in DrawToolBar, so I removed one of them.
2260
2261 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
2262
2263         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
2264           needed (clip). Otherwise we get artifacts.
2265
2266 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
2267
2268         * FixedSizeTextBox.cs: Added constructor to allow specifying which
2269           dimension is fixed
2270         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
2271           and switched FixedSizeTextBox to only be fixed vertical (#78116)
2272         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
2273           if it matches the scale base font (avoids unneeded scaling)
2274
2275 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
2276
2277         * X11DesktopColors.cs: One gtk_init_check should be enough
2278
2279 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
2280
2281         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
2282           match MS behaviour
2283
2284 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
2285
2286         * TextBoxBase.cs: 
2287           - Generate OnTextChanged for Backspace even if we're only deleting
2288             the current selection
2289           - When setting the Text property, only select all text if the
2290             control does not have focus when it is being set. Otherwise
2291             just place the cursor at the beginning of the control
2292
2293 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
2294
2295         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
2296           Added a little helper to draw PropertyGrid ToolBar with a different
2297           border and a different BackColor.
2298         * PropertyGrid.cs: Some background parts didn't get painted with the
2299           correct background color. Added a class that helps us to draw the
2300           correct border for PropertyGridView and a class that helps us to
2301           draw ToolBars with a different backcolor
2302         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
2303
2304 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
2305
2306         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
2307         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
2308
2309 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
2310
2311         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
2312           into the palette entries. Also, since we're working on a copy
2313           we needed to copy the palette back onto the bitmap.
2314         * Cursor.cs: Same fix as XplatUIWin32.cs.
2315
2316 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
2317
2318         * ImageListStreamer.cs: Need to read the var (or we're off)
2319
2320 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
2321
2322         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
2323           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
2324           TextBoxBase.cs: Unused var fixes
2325         * AxHost.cs: Small 2.0 fix
2326         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
2327           as it seems that is what at least Metacity expects. This will make
2328           icons show up on 64bit platforms. We still have some 64bit size
2329           issues, though, since the startup app window size still won't match.
2330
2331 2006-04-25  Mike Kestner  <mkestner@novell.com>
2332
2333         * *.cs: cleanup newly reported exception var unused warnings.
2334
2335 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2336
2337         * ThemeWin32Classic.cs: Button image alignment now matches exactly
2338           ms
2339
2340 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2341
2342         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
2343           image. The image position is always the same, no matter if the
2344           button is pressed or not.
2345
2346 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
2347
2348         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
2349           selection and set the correct filename for SaveFileDialog.
2350           Patch by Emery Conrad.
2351
2352 2006-04-24  Mike Kestner  <mkestner@novell.com>
2353
2354         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
2355         check for item.X outside the ClientRect instead of item.Y. Fixes
2356         #78151.
2357
2358 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2359
2360         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
2361         trust that value blindly and do some sanity check. Fixes bug #77814.
2362
2363 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2364
2365         * ImageListStreamer.cs: save the mask as a 1bpp image.
2366
2367 2006-04-21  Mike Kestner  <mkestner@novell.com>
2368
2369         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
2370         pass Checked and Indeterminate to the Theme Engine. Improve
2371         encapsulation with ListBox.
2372         * ListBox.cs: Keep a StringFormat instead of calculating it every item
2373         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
2374         nested types.  Move all CheckState functionality to CheckedListBox.
2375         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
2376         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
2377         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
2378         single base list. Fix scrollbar sizing and placement to mirror MS.
2379         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
2380         used.
2381         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
2382         for CheckedListBox by using new DrawItemState info.  Center the
2383         checkboxes on the items. Use new StringFormat property.
2384
2385 2006-04-18  Jackson Harper  <jackson@ximian.com>
2386
2387         * Form.cs: MdiChildren don't do default locations the same way as
2388         regular forms.  This prevents a crash when trying to position the
2389         mdi windows.
2390
2391 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
2392
2393         * PropertyGridTextBox.cs: Formatting, copyright
2394         * PropertiesTab.cs: Formatting
2395         * PropertyGrid.cs: Formatting
2396         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
2397           click toggling of values
2398           
2399 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
2400
2401         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
2402         * Control.cs (.ctor): verify_thread_handle is static, don't reset
2403           every time a control is created
2404         * Application.cs: Removed obsolete EnableRTLMirroring method
2405
2406 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
2407
2408         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
2409         SelectedIndex to -1. Fixes bug #78121.
2410
2411 2006-04-17  Jackson Harper  <jackson@ximian.com>
2412
2413         * Binding.cs: Handle null values for Current and BindingContext.
2414         This occurs when binding is a little delayed.
2415         * CurrencyManager.cs: return null for Current when there are no
2416         items in the list.
2417         - Hookup to the listchanged event on the DataView and update
2418         bindings when the list is changed.  This fixes late binding of
2419         controls.
2420
2421 2006-04-17  Jackson Harper  <jackson@ximian.com>
2422
2423         * X11Dnd.cs:
2424         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
2425         Ringenbach.
2426
2427 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
2428
2429         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
2430           place
2431         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
2432           with the correct ButtonState
2433
2434 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
2435
2436         * XplatUIX11.cs: Improved distinguishing between window types to
2437           tell the WM a type closer to what the app wants (Fixes #78107)
2438
2439 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
2440
2441         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
2442           GrabHandle
2443
2444 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
2445
2446         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
2447           drawing code to reflect the size grip changes
2448
2449 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2450
2451         * ImageListStreamer.cs: fix handling of the mask that follows the main
2452         bitmap when deserializing and serialize it properly. The generated mask
2453         should better be a 1bpp image, but I'll do that later.
2454
2455 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
2456
2457         * FileDialog.cs: Show something in the DirComboBox on *nix if the
2458           path doesn't fit into some of our Current.Places
2459
2460 2006-04-13  Jackson Harper  <jackson@ximian.com>
2461
2462         * ComboBox.cs: Use borders instead of drawing our own decorations,
2463         try to obey correct rules for heights.
2464         * Theme.cs:
2465         * ThemeNice.cs:
2466         * ThemeClearLooks.cs:
2467         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
2468         this is now handled by borders.
2469         - Remove unused DrawListBoxDecorationSize method.
2470         
2471 2006-04-13  Mike Kestner  <mkestner@novell.com>
2472
2473         * MenuAPI.cs: null guarding for the disbled click check fixes crash
2474         reported by Alex.
2475
2476 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
2477
2478         * ThemeWin32Classic.cs: 
2479           - Fixed CPDrawStringDisabled
2480           - Corrected drawing of disabled menu items
2481           - Fixed drawing of disabled radio buttons (bug #78095)
2482           - Draw check in a disabled CheckBox with color ControlDark 
2483
2484 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2485
2486         * Form.cs: Use the provided width when calculating the menu size;
2487           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
2488           and ClientSize.Width won't be updated yet
2489         * Application.cs: Use Visible instead of Show() to make form visible,
2490           this way we create the handle later and menusize is considered
2491
2492 2006-04-12  Mike Kestner  <mkestner@novell.com>
2493
2494         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
2495         reporting.
2496
2497 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2498
2499         * TextBox.cs: Implemented context menu
2500
2501 2006-04-12  Mike Kestner  <mkestner@novell.com>
2502
2503         * ListView.cs: implement box selection. fixes #77838.
2504         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
2505
2506 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2507
2508         * XplatUIX11.cs: Added setting of window type when transient window
2509           is created (metacity would move it otherwise)
2510         * X11Structs.cs: Added WINDOW_TYPE atoms
2511         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
2512           background (the control is Opaque but still wants transparent
2513           backgrounds)
2514
2515 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2516
2517         * Control.cs: Added OnPaintBackgroundInternal to allow controls
2518           that set Opaque but don't mean it (like all ButtonBase-derived
2519           controls) to still draw their background
2520         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
2521           the background
2522
2523 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
2524
2525         * Control.cs (PaintControlBackground): Set the graphics object
2526           on our PaintEvent to null to prevent it from being disposed
2527           when the PaintEvent gets disposed
2528
2529 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
2530
2531         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
2532         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
2533
2534 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
2535
2536         * Control.cs: 
2537           - Added transparency check to BackColor property. Transparent
2538             backgrounds are only allowed if the control styles permit it
2539           - Added recursive painting of parent control background and
2540             foreground if a control with a transparent backcolor is drawn
2541             (Thanks to Tim Ringenback for providing his 'hack' as a base
2542              for this patch) Fixes #77985 and #78026.
2543           - Added Opaque style check before calling OnPaintBackground, no
2544             need to draw the background if the control is opaque
2545           - Removed ControlAccessibleObject owner variable (inherited from
2546             base, no need to define again)
2547           - Added some documentation links explaining the drawing events
2548             and styles
2549
2550 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2551
2552         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
2553           that the affected control is the located at the left border of our
2554           parent (Fixes #77936)
2555
2556 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2557
2558         * TextBoxBase.cs: When rendering disabled or readonly controls,
2559           draw the background with 'Control' instead of 'Window' color as
2560           long as the user hasn't specifically set a color
2561
2562 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
2563
2564         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
2565           since that won't be updated if the user types text (only if it's
2566           programatically set)
2567
2568 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2569
2570         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
2571           layout changes do to app-triggered resizes will have the proper
2572           display rectangle for layout
2573
2574 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
2575
2576         * ThemeWin32Classic.cs:
2577           - Make use of the SystemBrushes and SystemPens wherever possible
2578           - Corrected some highlight colors
2579           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
2580             drawing
2581         * Theme.cs: Added Empty field to CPColor struct
2582
2583 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
2584
2585         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
2586           is displayed when calculating the display rectangle. Thanks to Mike
2587           for teaching me the err of my ways.
2588
2589 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
2590
2591         * ScrollableControl.cs:
2592           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
2593             (instead of 0,0) and we now return the real width/height instead of
2594             just the clientrectangle, adjusted for padding. The rectangle is
2595             now cached and created by the new CalculateDisplayRectangle method.
2596           - Created new CalculateDisplayRectange method, which basically does
2597             what get_DisplayRectangle() did originally, but now using the 
2598             right edge instead of DisplayRectangle to determine the size of
2599             our scrollbars
2600           - get_Canvas(): Fixed it to properly calculate canvas for 
2601             right/bottom controls which seem to be placed to the right/bottom
2602             of any controls that have a fixed location
2603           - Removed TODO that's taken care of
2604           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
2605             and SetDisplayRectLocation according to new MSDN2 docs
2606           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
2607             event when that is called, this is added for compatibility
2608           - ScrollControlIntoView(): Implemented.
2609           - Switched scrollbars to be implicit, they shouldn't be selectable
2610         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
2611           call it when the active control is set/changed
2612         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
2613         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
2614           implicit_control variable (used for native Win32 message generation)
2615         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
2616           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
2617         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
2618         * XplatUIStructs.cs: Added ScrollBarCommands enum
2619
2620 2006-04-10  Jackson Harper  <jackson@ximian.com>
2621
2622         * ButtonBase.cs:
2623         * CheckedListBox.cs:
2624         * ComboBox.cs:
2625         * DataGrid.cs:
2626         * DataGridView.cs:
2627         * Form.cs:
2628         * GroupBox.cs:
2629         * ListBox.cs:
2630         * PrintPreviewControl.cs:
2631         * ProgressBar.cs:
2632         * PropertyGrid.cs:
2633         * Splitter.cs:
2634         * StatusBar.cs:
2635         * TrackBar.cs:
2636         * UpDownBase.cs: Fixup base event overrides.
2637         
2638 2006-04-06  Mike Kestner  <mkestner@novell.com>
2639
2640         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
2641         all user-initiated value changes to min <= value <= max-thumbsz+1.
2642         (set_Value): check for vert/horiz when calculating new thumb position.
2643         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
2644         like MS does.
2645         (OnMouseMoveSB): refactor the thumb dragging code and refine
2646         invalidation logic to reduce flicker.
2647         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
2648         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
2649         (UpdateThumbPosition): small code readability cleanup
2650
2651 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
2652
2653         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
2654           different
2655
2656 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2657
2658         * ThemeNice.cs: Use a better graphics effect when a button is pressed
2659
2660 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
2661
2662         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
2663         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
2664           This dramatically reduces the number of Pen.Dispose calls. 
2665           Where possible call ResPool methods only once instead of calling it
2666           over and over again (for example for the same color).
2667
2668 2006-04-06  Mike Kestner  <mkestner@novell.com>
2669
2670         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
2671         Also remove an unused private field on the collection. Fixes #77972.
2672
2673 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2674
2675         * ThemeNice.cs: Added ToolBar drawing code
2676
2677 2006-04-06  Mike Kestner  <mkestner@novell.com>
2678
2679         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
2680         I'm assuming that means we need to look up the toplevel for the
2681         provided control. Fixes the crash trace in #77911 but exposes another
2682         crash in some strange reflection usage in NDocGui.
2683
2684 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
2685
2686         * ThemeNice.cs: Gave it a little silver touch and added Images
2687           method
2688         * FontDialog.cs: FontDialog is not resizable
2689         * FileDialg.cs: Added SizeGripStyle.Show
2690
2691 2006-04-05  Jackson Harper  <jackson@ximian.com>
2692
2693         * KeyboardLayouts.cs: Remove warning.
2694
2695 2006-04-05  Jackson Harper  <jackson@ximian.com>
2696
2697         * Control.cs: Enable OnPaintInternal so we can use it for drawing
2698         all of our controls instead of Paint +=.
2699         * ListBox.cs:
2700         * ListView.cs:
2701         * MenuAPI.cs:
2702         * MessageBox.cs:
2703         * NotifyIcon.cs:
2704         * ProgressBar.cs:
2705         * ScrollBar.cs:
2706         * Splitter.cs:
2707         * StatusBar.cs:
2708         * TabControl.cs:
2709         * TextBoxBase.cs:
2710         * ToolBar.cs:
2711         * TrackBar.cs:
2712         * UpDownBase.cs:
2713         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
2714         use OnPaintInternal. Remove Width/Height and Visible checks in
2715         paint handler, this is done at a higher level now.
2716         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
2717         * PaintEventArgs.cs: Add a handled flag so controls that don't
2718         want anymore painting after OnPaintInternal can make sure OnPaint
2719         isn't called.
2720
2721 2006-04-05  Mike Kestner  <mkestner@novell.com>
2722
2723         * Form.cs: fix the menu WndProc hacks to respect the native enabled
2724         state of the form, so that we don't process events when Modal dialogs
2725         are up. Fixes #77922.
2726
2727 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
2728
2729         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
2730           checking is done.
2731
2732 2006-04-05  Mike Kestner  <mkestner@novell.com>
2733
2734         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
2735
2736 2006-04-05  Mike Kestner  <mkestner@novell.com>
2737
2738         * ListView.cs (HeaderMouseMove): null guarding for the over column
2739         when setting up the drag_to_index.  Fixes #78015.
2740
2741 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
2742
2743         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
2744           in the taskbar. Transient windows seem to accomplish that.
2745
2746 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
2747
2748         * Form.cs:
2749           - Re-enabled CreateParams.X/Y code for FormStartPosition
2750           - Added code for manual placement when creating the Control
2751           - Incomplete patch to treat MDI forms differently when
2752             setting the ClientSizeCore. (Still need to figure out handling
2753             x/y coords there)
2754         * XplatUIX11.cs:
2755           - When we're explicitly setting the X/Y position of a non-Child
2756             window, let the WM know. Metacity really wants this.
2757
2758 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2759
2760         * ThemeNice.cs: Added CPDrawButton
2761
2762 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2763
2764         * ThemeNice.cs: Changed the color for focused buttons and activated
2765           the arrows for small scroll buttons.
2766
2767 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
2768
2769         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
2770           anymore. Changed some method modifiers to protected (virtual)
2771         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
2772           changes
2773         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
2774           Updated drawing of menus, buttons and progressbars; added
2775           CPDrawBorder3D 
2776
2777 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2778
2779         * ImageListStreamer.cs: implemented serialization/deserialization
2780         of the images.
2781
2782 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
2783
2784         * ThemeWin32Classic.cs:
2785           - Removed all the DrawFrameControl stuff; CPDrawButton,
2786             CPDrawCheckBox and CPDrawRadioButton are now handled directly
2787             inside the methods
2788           - Updated and corrected the drawing code of CPDrawButton,
2789             CPDrawCheckBox and CPDrawRadioButton to better match ms
2790           - Updated theme checkbox and radiobutton code to use the CP*
2791             methods
2792
2793 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2794
2795         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
2796           bug is fixed
2797
2798 2006-03-31  Jackson Harper  <jackson@ximian.com>
2799
2800         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
2801         sometimes.
2802         * UpDownBase.cs: Don't CreateGraphics manually, use a
2803         Refresh. Ideally we would invalidate the correct areas here.
2804
2805 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
2806
2807         * XplatUIX11.cs: 
2808           - We now track the mapping state of windows. If a window (or 
2809             one of it's parents) is not mapped we no longer permit
2810             WM_PAINT messages to be generated since we'd otherwise get 
2811             lots of BadMatch X errors. Jackson did all the work figuring
2812             out the problem.
2813           - Destroying the caret if the window it's contained in is 
2814             destroyed. Can't use regular DestroyCaret method since it
2815             might fall into a drawing function (trying to remove the
2816             caret) and with that generate new BadMatch errors. Again,
2817             Jackson tracked this down.
2818           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
2819             make sure we send the messages to all windows. (The old code
2820             would send the WM_DESTROY to the window, and then all child
2821             windows would be 'gone' because the WM_DESTROY handle lookup
2822             would no longer find the destroyed window)
2823         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
2824         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
2825
2826 2006-03-31  Jackson Harper  <jackson@ximian.com>
2827
2828         * ScrollableControl.cs: Dont recalc if we are not visible.
2829
2830 2006-03-31  Mike Kestner  <mkestner@novell.com>
2831
2832         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
2833         the visibility branch.
2834
2835 2006-03-31  Jackson Harper  <jackson@ximian.com>
2836
2837         * ScrollBar.cs: Cap values when incrementing/decrementing.
2838
2839 2006-03-31  Mike Kestner  <mkestner@novell.com>
2840
2841         * MenuAPI.cs: setup menu.tracker for popup/context menus.
2842         * ToolTip.cs: guard against timer expirations with no active control.
2843         Not sure why it happened.
2844
2845 2006-03-31  Mike Kestner  <mkestner@novell.com>
2846
2847         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
2848         text.
2849         * ToolTip.cs: Position the tooltip based on where the cursor is at
2850         popup time, not at MouseEnter time.  Add a Down state so that we don't
2851         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
2852         positioning offset. Lookup DisplaySize at positioning time, since it
2853         can theoretically change during invocation.
2854         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
2855         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
2856
2857 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2858
2859         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
2860           Fixes behaviour when the Text property of the box is String.Empty
2861
2862 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
2863
2864         * XplatUIX11.cs: Only send mouseleave for our client windows, not
2865           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
2866           a window)
2867
2868 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2869
2870         * FileDialog.cs: Visual enhancement for the popup buttons in 
2871           PopupButtonPanel
2872
2873 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
2874
2875         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
2876           code
2877
2878 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
2879
2880         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
2881           highlighted menu items to match ms
2882
2883 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
2884
2885         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
2886
2887 2006-03-30  Mike Kestner  <mkestner@novell.com>
2888
2889         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
2890         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
2891         go active to account for HotLight to Selected transition.
2892         * MenuItem.cs: add internal Selected prop. Fill out the Status
2893         property by calculating it from item info. Add HotLight,
2894         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
2895
2896 2006-03-30  Mike Kestner  <mkestner@novell.com>
2897
2898         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
2899
2900 2006-03-29  Jackson Harper  <jackson@ximian.com>
2901
2902         * Form.cs: Implement TODO.
2903
2904 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
2905
2906         * PrintPreviewDialog.cs: Implemented missing methods and events; still
2907           missing proper dialog setup in the constructor
2908
2909 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
2910
2911         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
2912         * Control.cs:
2913           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
2914           - Fixed ResetBindings and removed TODO
2915           - Added check for cross-thread calls to get_Handle()
2916           - Added Marshaller attribute for set_Font to satisfy class status
2917         * FontDialog.cs: Removed TODOs that seemed implemented
2918         * UpDownBase.cs: Removed unneeded TODO and Fixme
2919         * MessageBox.cs: Implemented support for Default button and removed TODO
2920         * FileDialog.cs: Removed obsolete TODO
2921         * DomainUpDown.cs: Removed obsolete TODO
2922         * ButtonBase.cs: Removed obsolete TODO
2923         * XplatUIWin32.cs: Removed obsolete TODO
2924         * Form.cs:
2925           - Removed obsolete TODO
2926           - Calling CheckAcceptButton when the acceptbutton is changed to allow
2927             internal status updates
2928           - Making sure the active control is selected when the control is created
2929         * CurrencyManager.cs: Removed obsolete TODO
2930
2931 2006-03-29  Mike Kestner  <mkestner@novell.com>
2932
2933         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
2934         of PrintPreviewDialog and RichTextBox.
2935
2936 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2937
2938         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
2939           DarkDark, Light and LightLight colors for a specific color
2940         * ThemeWin32Classic.cs:
2941           - Use Button drawing code to draw RadioButtons and CheckBoxes with
2942             Appearance = Button 
2943           - Make use of the new ResPool helper CPColor
2944           - Draw ProgressBar and StatusBar with correct 3D borders
2945
2946 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2947
2948         * ColorDialog.cs: Return selected color. Fixes bug #77940.
2949
2950 2006-03-28  Mike Kestner  <mkestner@novell.com>
2951
2952         * ListView.cs: fix Icon layout to plan for scrollbar widths when
2953         calculating col/row counts.
2954
2955 2006-03-28  Mike Kestner  <mkestner@novell.com>
2956
2957         * ColumnHeader.cs:
2958         * ListView.cs:
2959         * ListViewItem.cs:
2960         * Menu.cs: 
2961         switch to explicit interface method implementation for some methods
2962         corcompare identifies as inconsistent with MS.
2963
2964 2006-03-28  Mike Kestner  <mkestner@novell.com>
2965
2966         * MainMenu.cs: 
2967         * Menu.cs:
2968         add a few missing methods from the class status output.
2969
2970 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
2971
2972         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
2973           correct.
2974
2975 2006-03-28  Mike Kestner  <mkestner@novell.com>
2976
2977         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
2978
2979 2006-03-27  Mike Kestner  <mkestner@novell.com>
2980
2981         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
2982         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2983
2984 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
2985
2986         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2987
2988 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2989
2990         * ThemeWin32Classic.cs:
2991           - GroupBox: Inserted a little gap between the text and the lines
2992             on the right side
2993           - Made the code in CPDrawBorder3D more readable
2994           - Corrected the drawing location of the up and down arrows in 
2995             CPDrawScrollButton
2996
2997 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2998
2999         * ControlPaint.cs: Corrected line widths in DrawBorder for
3000           ButtonBorderStyle Inset and Outset
3001
3002 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
3003
3004         * ThemeWin32Classic.cs:
3005           - Rewrote the totally broken CPDrawBorder3D method. That was
3006             one of the main problems for the terrific ThemeWin32Classic
3007             look
3008           - Updated and corrected Button drawing
3009           - Correct the dimensions of the SizeGrip to match ms ones
3010           - Removed a small drawing glitch in DrawComboBoxEditDecorations
3011         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
3012           Border3DStyle.Sunken to match ms.
3013
3014 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
3015
3016         * ThemeWin32Classic.cs: First small part of the "de-uglify
3017           ThemeWin32Classic" effort, SizeGrip
3018
3019 2006-03-24  Jackson Harper  <jackson@ximian.com>
3020
3021         * XplatUIX11.cs: Give a max idle time of one second, this matches
3022         MS and forces an Idle event every second when there are no other
3023         events in the queue.
3024
3025 2006-03-24  Mike Kestner  <mkestner@novell.com>
3026
3027         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
3028         * ListView.Item.cs: fix layout issues with null image lists and images
3029         smaller than checkbox size.
3030         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
3031         mode like MS does.  It's weird, but consistent.  ;-)
3032         Fixes #77890.
3033
3034 2006-03-24  Mike Kestner  <mkestner@novell.com>
3035
3036         * ListView.cs: Scroll wheel support for the item control.  Fixes
3037         #77839.
3038
3039 2006-03-23  Jackson Harper  <jackson@ximian.com>
3040
3041         * ScrollableControl.cs: Special case negative sized areas, not
3042         zero.
3043         * MonthCalendar.cs: Save the rect of the clicked date so we can
3044         use it for invalidation.
3045         - Try to cut down on the number of invalidates
3046         - Invalidate the rect the mouse is over and was over when moving
3047         the mouse, so we get the focus box following the cursor.
3048
3049 2006-03-23  Mike Kestner  <mkestner@novell.com>
3050
3051         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
3052         focus rectangle drawing. Fixes #77835.
3053
3054 2006-03-23  Mike Kestner  <mkestner@novell.com>
3055
3056         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
3057         the if and else if and reverting back to the original == check on the
3058         None conditional.
3059
3060 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
3061
3062         * FontDialog.cs: Update the example panel if the selected index of
3063           the fontListBox changes.
3064
3065 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
3066
3067         * FileDialog.cs: Make FileDialog remember which directory it was in
3068           last in the same execution.
3069
3070 2006-03-22  Mike Kestner  <mkestner@novell.com>
3071
3072         * FileDialog.cs: make the DropDownMenu on the toolbar display
3073         RadioChecks since they are mutually exclusive and that's what MS does.
3074
3075 2006-03-22  Mike Kestner  <mkestner@novell.com>
3076
3077         * Theme.cs: add Color param to CPDrawMenuGlyph.
3078         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
3079         checks and radio marks and arrows are visible on highlighted items.
3080         * ControlPaint.cs: update to use new Theme signature.
3081
3082 2006-03-22  Mike Kestner  <mkestner@novell.com>
3083
3084         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
3085         is active. Fixes #77870.
3086
3087 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
3088
3089         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
3090           to be focused/selected after startup
3091
3092 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
3093
3094         * ColorDialog.cs: 
3095           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
3096             CustomColors and ShowHelp properties
3097           - Some internal rewrites to get better results when using the
3098             ColorMatrix
3099
3100 2006-03-22  Mike Kestner  <mkestner@novell.com>
3101
3102         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
3103         HoverSelection.  Fixes #77836.
3104
3105 2006-03-22  Mike Kestner  <mkestner@novell.com>
3106
3107         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
3108         ToggleButtons.  (De)Sensitize the Back button around a stack count of
3109         1, not 0.  Update ButtonSize based on a pixel count of the win32
3110         control.  Adjust the toolbar size/location for new button size.
3111
3112 2006-03-22  Jackson Harper  <jackson@ximian.com>
3113
3114         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
3115         true.
3116         * ScrollBar.cs: When doing increments and decrements we need to
3117         set the Value property so that ValueChanged gets raised. A
3118         possible optimization here would be to make an internal SetValue
3119         that doesn't invalidate immediately.
3120         * ToolTip.cs: Tooltips get added to their container (when
3121         supplied) so they get disposed when the container is disposed.
3122         - Don't create tooltips for String.Empty. This prevents all these
3123         little 2-3 pixel windows from showing up when running nunit-gui
3124         and driving me mad.
3125         * Form.cs: Don't set topmost when setting the owner if the handles
3126         haven't been created yet.  The topmost set will happen when the
3127         handles are created.
3128
3129 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
3130
3131         * XplatUIX11.cs:
3132           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
3133           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
3134             visible (to allow them to recalculate their sizes)
3135
3136 2006-03-21  Mike Kestner  <mkestner@novell.com>
3137
3138         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
3139         methods. Removed a ton of redundant code.  Still not really happy with
3140         the border rendering, but I think that's mainly because of the
3141         ControlDarkDark being black instead of a dark grey. Depending on how 
3142         close we want to be, we might want to revisit those color choices.
3143         Among the new features added during the refactor were DropDownArrow
3144         pressed rendering, Disabled image rendering.  Proper flat appearance
3145         boundary rendering.  Removed the Divider and Wrapping dividers since I
3146         can't figure out any combination of themes and conditions to make the
3147         MS control draw a horizontal line on a toolbar despite what the
3148         Divider property docs indicate.
3149         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
3150         conditions and incorrect layout.  Updated to coding standard.
3151         * ToolBarButton.cs: refactored layout and positioning code from
3152         ToolBar to here.  Invalidate wherever possible instead of forcing
3153         redraws of the whole toolbar. 
3154         (Known remaining issues: explicit ButtonSize smaller than provided
3155         images.)
3156
3157 2006-03-21  Mike Kestner  <mkestner@novell.com>
3158
3159         * ContextMenu.cs (Show): use the position parameter instead of just
3160         showing at the MousePosition.
3161
3162 2006-03-21  Jackson Harper  <jackson@ximian.com>
3163
3164         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
3165         control handle this.
3166         * TreeNodeCollection.cs: If we are clearing the root node we need
3167         to reset top_node so calcs can still happen.
3168         * ThemeWin32Classic.cs: This is a Flags so we need to check
3169         properly.
3170         
3171 2006-03-21  Jackson Harper  <jackson@ximian.com>
3172
3173         * DataGrid.cs: Create columns when the binding context has been
3174         changed.
3175         * X11Structs.cs: Keysyms are uints.
3176         - Add size to fix build.
3177
3178 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
3179
3180         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3181           XplatUIOSX.cs: 
3182           - Added ResetMouseHover method to allow controls to retrigger
3183             hovering if they need it more than once
3184           - Implemented MouseHoverTime and MouseHoverSize properties
3185         * Timer.cs: Start() must reset the interval
3186         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
3187           properties
3188
3189 2006-03-21  Jackson Harper  <jackson@ximian.com>
3190
3191         * X11Keyboard.cs: improved layout detection. Move the nonchar
3192         tables into this file.
3193         * KeyboardLayouts.cs: Move the tables into resource files.
3194
3195 2006-03-21  Mike Kestner  <mkestner@novell.com>
3196
3197         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
3198
3199 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
3200
3201         * Mime.cs: Various speed optimizations. Looking up mime types
3202           is now 2 times faster than before
3203
3204 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
3205
3206         * CreateParams.cs: Added internal menu field
3207         * Control.cs: 
3208           - Switched call order for UpdateBounds; now we always call
3209             the one that also takes ClientSize, and we're calculating the 
3210             client size via driver method in the others. The previous
3211             method of tracking client size by difference wasn't working
3212             for forms where even the starting client size wouldn't match
3213             the overall form size (due to borders) (Part of fix for #77729)
3214           - CreateParams(): Do not use parent.Handle unless the handle is
3215             already created. Causes havoc with Nexxia and throws off our
3216             creation of controls
3217         * XplatUIX11.cs:
3218           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
3219           - Switched handling of ConfigureNotify over to new PerformNCCalc 
3220             method (consolidates code)
3221           - Changed RequestNCRecalc to use new PerformNCCalc method
3222           - Added calls to RequestNCRecalc when menus and borders are changed
3223             to allow app to set NC size. (Part of fix for #77729) This matches
3224             when MS send a WM_NCRECALC on Win32 windows.
3225           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
3226             (Part of fix for #77729). This matches what MS does, they also
3227             send that message when the form is made visible.
3228           - XException.GetMessage: Improved usability of X errors by including
3229             a translation of the window into Hwnd and Control class
3230           - Improved debug info for window creation, reparenting and destruction
3231           - Created helper method WindowIsMapped() [Currently not used]
3232         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
3233         * Form.cs:
3234           - CreateParams: Now setting our menu on the new internal menu field
3235           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
3236             avoid calculating the same property twice
3237         * Hwnd.cs:
3238           - Improved usability of ToString() for debugging purposes
3239           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
3240             determine the height of the menu, instead of just the font. This
3241             required to also create a graphics context and to keep a bmp 
3242             around (for performance reasons)
3243
3244 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
3245
3246         * MenuAPI.cs: Added OnMouseUp method
3247         * Form.cs:
3248           - Now remembering the requested client size, avoids size errors
3249           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
3250             instead of base if the menu is active. This is required due to
3251             control now capturing and releasing on down/up and it would
3252             prematurely release our menu capture
3253
3254 2006-03-17  Jackson Harper  <jackson@ximian.com>
3255
3256         * KeyboardLayouts.cs: Add the czech layouts.
3257
3258 2006-03-16  Jackson Harper  <jackson@ximian.com>
3259
3260         * Control.cs: Use the viewport space when sizing not the controls
3261         client size, so things like ScrollableControl that effect the
3262         viewport size (when scrollbars are added) are computed correctly.
3263         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
3264         of ManagerEntrys.
3265         - Handle creating BindingManagers for null data sources.
3266         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
3267         source, otherwise when rows are added they are added to the 'fake'
3268         datasource and we will crash when trying to set the position in
3269         those rows.
3270         - Use Implicit scrollbars on the datagrid so they arent
3271         selectable.
3272         
3273 2006-03-16  Jackson Harper  <jackson@ximian.com>
3274
3275         * Binding.cs:
3276         * InternalWindowManager.cs:
3277         * MdiWindowManager.cs:
3278         * X11Keyboard.cs: I really want Mike to love me again (fix
3279         compiler warnings).
3280
3281 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
3282
3283         * DataGrid.cs:
3284           - OnMouseDown: Switch to editing mode when clicking on the cell
3285                          even if we're clicking on the cell that's currently 
3286                          selected
3287           - ProcessGridKey: Left/Right now wrap like MS.Net does
3288           - ProcessGridKey: Tab now knows to add a new row when tab is
3289                             pressed in the cell of the last column of the 
3290                             last row
3291           - ProcessGridKey: Enter now adds another row  if pressed in the last
3292                             row and selectes the new row, same column cell
3293           - ProcessGridKey: Home/End navigate columns, not rows, like 
3294                             originally implemented
3295           - Broke ProcessKeyPreview code out into an extra Internal method
3296             so it can be called from the edit code
3297         * DataGridTextBox.cs (ProcessKeyMessage):
3298           - Switched to accept Tab keypresses
3299           - Added F2 handling to allow jumping to the end of the edited cell
3300           - Added logic to allow moving caret left/right inside edited cell
3301             and making the edited cell jump when the caret hits cell borders
3302           - Tab and Enter are now passed to the datagrid after being handled
3303         * TextBoxBase.cs:
3304           - Removed capture code now that Control handles it
3305           - set_SelectionStart now ensures caret is visible
3306
3307 2006-03-16  Jackson Harper  <jackson@ximian.com>
3308
3309         * TrackBar.cs: Debackwards the increment/decrement for handling
3310         mouse clicks on the bar with vertical trackbars.
3311         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
3312         bottom to match MS.
3313
3314 2006-03-16  Mike Kestner  <mkestner@novell.com>
3315
3316         * ListView.cs: make shift/ctrl keyboard and mouse selection 
3317         consistent with the MS control. Fix a bug in
3318         SelectedListViewItemCollection.Clear that was pissing me off for the
3319         better part of a day because the collection was being altered
3320         underneath us as we walked the list.
3321
3322 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
3323
3324         * Control.cs: Not sure how we could miss this so long, but it seems
3325           that MS.Net has Capture set all the way from before calling 
3326           OnMouseDown through sending the mouse events until after
3327           OnMouseUp. This will fix DataGrid's selection being set to end
3328           at the location of the MouseUp.
3329
3330 2006-03-15  Jackson Harper  <jackson@ximian.com>
3331
3332         * BindingContext.cs: Check the binding after its added so that it
3333           can initialize the binding managers and hookup to events.
3334         * Binding.cs: Data members seem to sometimes include rows/cols in
3335           the format Row.Column we now take this into account.
3336           - Hookup to the position changed event so we can update the
3337           control when the position has changed in the data set.
3338         * CurrencyManager.cs: Take into account the row/col naming
3339           convention when creating dataset tables.
3340         * BindingContext.cs: Using a newer better way of storing
3341           datasource/datamember pairs.  Hopefully this better matches MS for
3342           looking up binding managers.
3343
3344
3345 2006-03-15  Jackson Harper  <jackson@ximian.com>
3346
3347         * BindingContext.cs: The currency manager needs the data member
3348         name, if the member is a data set we use the name to find the
3349         correct table.
3350         * CurrencyManager.cs: When creating the list prefer an IList over
3351         an IListSource.
3352         - Attempt to create a DataTable from a DataSet (TODO: might need
3353         some better error checking here, although MS doesn't seem to have much)
3354         - If we have a DataTable create a view and use it as our list.
3355
3356 2006-03-15  Mike Kestner  <mkestner@novell.com>
3357
3358         * ListView.cs: keep a matrix of the icon mode layout to facilitate
3359         keyboard navigation. Support Up/Down/Left/Right selection correctly
3360         for all 4 View modes.
3361         * ListViewItem.cs: add internal row/col fields for icon layouts.
3362
3363 2006-03-15  Jackson Harper  <jackson@ximian.com>
3364
3365         * TabControl.cs: Redraw the tabs when we resize so their newly
3366         calculated sizes are drawn on screen.
3367         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
3368         composite characters.
3369         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
3370         - filter events so that composite characters can be created
3371         patches by peter
3372         * X11Structs.cs: Add XIMProperties enum.
3373
3374 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
3375
3376         * Control.cs (BringToFront, SendToBack): Don't use window or handle
3377           unless it's created
3378
3379 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
3380
3381         * Control.cs (PerformLayout): We don't need to consider visiblity
3382           for anchoring, only for docking. This fixes 'whacky' alignment
3383           in listbox and other controls that use implicit scrollbars after
3384           the previous PerformLayout patch
3385         * ListBox.cs: Switched to use implicit scrollbars
3386           
3387 2006-03-14  Mike Kestner  <mkestner@novell.com>
3388
3389         * ToolBar.cs: 
3390         * VScrollBar.cs:
3391         - chain up the "new event" overrides to base and use
3392         OnEvent to raise them.  Part of fix for bug #76509.
3393
3394 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
3395
3396         * FileDialog.cs: Do not select an item in the parent directory
3397           on backspace
3398
3399 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
3400
3401         * Control.cs (PerformLayout): It would seem that we considered
3402           invisible windows for our layout. Not quite the right thing
3403           to do. Now we don't any longer, thereby fixing bug #76889.
3404
3405 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
3406
3407         * Control.cs (CanFocus): I goofed. A control can have focus 
3408           even though it's not selectable. Made it match MS docs.
3409
3410 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3411
3412         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
3413           center by default (fixes #76895)
3414         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
3415           all uses of Border3DSides.All with the explicit ORd together
3416           Left|Right|Top|Bottom because I assume that nobody was aware 
3417           that All also implies a center fill. Most places I checked had
3418           a fill right above.
3419         * ProgressBarStyle.cs: Added
3420
3421 2006-03-13  Mike Kestner  <mkestner@novell.com>
3422
3423         * ListView.cs: fix breakage in drag shadow header positioning 
3424         from Peter's csc compilation fix.
3425
3426 2006-03-13  Mike Kestner  <mkestner@novell.com>
3427
3428         * ListView.cs: fix NRE produced by backspacing twice in a focused
3429         FileDialog.
3430
3431 2006-03-13  Mike Kestner  <mkestner@novell.com>
3432
3433         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
3434
3435 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3436
3437         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
3438           be changed
3439         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
3440           the allowed size before making programmatic size changes
3441
3442 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
3443
3444         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
3445           set, metacity is broken and will still use the emty sizes in 
3446           the struct. (Fix for #77089)
3447
3448 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
3449
3450         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
3451           WindowExStyles and marked both enums as Flags
3452         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
3453           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
3454           to match WindowStyles split
3455         * XplatUIX11.cs:
3456           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
3457           - Updated to match WindowStyles split
3458         * XplatUIWin32.cs:
3459           - Fixed FosterParent creation, was using ExStyle on the Style field
3460             (This should help with Popup focus issues)
3461           - Updated to match WindowStyles split
3462
3463 2006-03-13  Jackson Harper  <jackson@ximian.com>
3464
3465         * MdiWindowManager.cs: Use the system menu height. Fixes some
3466         strange sizing issues.
3467
3468 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3469
3470         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
3471         * TextBoxBase.cs:
3472           - Scroll to caret after inserting text (#77672)
3473           - Make scroll range one pixel higher, fixes off-by-one error (and
3474             makes underlines visible on the last line)
3475
3476 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
3477
3478         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
3479           the keyboard state from being stuck with keys in 'pressed' state when
3480           focus is switched away via keyboard
3481         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
3482           reset the keyboard if no X11 KeyUp events are expected to come
3483         * X11Structs.cs: Switched type of Visible to bool to match driver
3484
3485 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
3486
3487         * TextControl.cs:
3488           - Switched caret to be just 1 pixel wide, matches MS and looks less
3489             clunky
3490           - Moved caret display 1 pixel down from the top of the control
3491             to improve view
3492           - InsertCharAtCharet: Update the selection start if moving the caret
3493             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
3494           - No longer always creating the caret when the caret methods are
3495             called. Only the actual ShowCaret/HideCaret will do that now
3496           - Only setting caret visible if the owner control has focus
3497           - UpdateView: Added invalidation-shortcut logic for center and right 
3498             aligned text. Previously we'd update all according to the left
3499             logic which caused drawing errors. Also fixed height of invalidated
3500             areas, now properly invalidating the whole area (was off-by-one)
3501           - owner_HandleCreated: Always generate the document when the
3502             handle is created; this ensures that 
3503         * TextBoxBase.cs:
3504           - Fixed situation where caret would disappear under the right
3505             window border, also improved scrolling behaviour on left-
3506             aligned textboxes
3507           - Fixed right-aligned textboxes to have a border to the
3508             right instead of the caret being under the right border
3509         * XplatUIX11.cs:
3510           - Switched from 'nested' to simple visible/not visible tracking 
3511             for caret (part of fix for #77671)
3512           - No longer passing through translated FocusIn/FocusOut messages
3513             since we were notifying too often and the wrong windows. Instead
3514             we just notify our focussed window of receiving or loosing focus
3515         * XplatUIWin32.cs: Switched from 'nested' show/hide 
3516           counting for caret to simple visible yes/no behaviour (part of 
3517           fix for #77671)
3518
3519 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3520
3521         * Mime.cs: Remove debug code...
3522
3523 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
3524
3525         * MimeGenerated.cs: Removed
3526         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
3527           and subclasses) from /usr/(local/)share/mime and
3528           $HOME/.local/share/mime.
3529
3530 2006-03-10  Jackson Harper  <jackson@ximian.com>
3531
3532         * MdiWindowManager.cs: Recalc the NC area when a window is
3533         maximized/restored so that the menu area is drawn on forms that
3534         don't have a menu.
3535
3536 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3537
3538         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
3539           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
3540           us to force a WM_NCCALCRESIZE message being sent. This is needed
3541           for MDI maximizing.
3542
3543 2006-03-10  Jackson Harper  <jackson@ximian.com>
3544
3545         * Form.cs: We need to use the ActiveMenu when calculating menu
3546         height.
3547         - Fix nullref when the window manager hasn't been created yet.
3548         * Control.cs: Fix nullref when we try to bring a control to the
3549         front that has no parent.
3550         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
3551         height.
3552         - Add a dummy item to the maximized menu so it always has the
3553         correct height. Otherwise when there are no menus we don't get our
3554         icon and buttons.
3555         
3556
3557 2006-03-10  Jackson Harper  <jackson@ximian.com>
3558
3559         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
3560         stuff.
3561         * Form.cs: Make the window_state internal so the window managers
3562         can track it.
3563         - When an MDI child is maximized let its window manager create the
3564         main menu (so it can add its icon).
3565         - Notify the window managers of state changes
3566         - Let the window manager paint its buttons and handle button
3567         clicks on the menu when it is maximized.
3568         * InternalWindowManager.cs: Move the prev_bounds into the mdi
3569         window manager, since tool windows don't use it, only mdi windows.
3570         - Tell the main form that we don't want it to handle NCPAINT
3571         itself to avoid extra painting.
3572         - Handle clicks on a maximized windows menu.
3573         - Handle window state changes
3574         - Handle minimize/maximize clicks correctly by setting the window state.
3575         * MdiWindowManager.cs: Add an icon menu that (the menu you get
3576         when clicking on the forms icon).
3577         - New method to create a forms maximized menu. This is its normal
3578         menu + an icon.
3579         - Handle window state changes.
3580         - Handle sizing of maximized windows.  Maximized windows are just
3581         drawn bigger then the parent visible area. All controls are still
3582         there, they are just outside the visible area (this matches windows).
3583         * MdiClient.cs: No scrollbars when a child window is maximized.
3584         - Let the children windows figure out how big they should be when
3585         sizing maximized windows.
3586         - Implement a version of ArrangeIconicWindows somewhat similar to
3587         Windows version.  There are some little differences, but I don't
3588         think any app will rely on the layout of minimized mdi windows.
3589
3590 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3591
3592         * Padding.cs: Several fixes to allow compiling with csc 2.0
3593
3594 2006-03-09  Jackson Harper  <jackson@ximian.com>
3595
3596         * Menu.cs:
3597         * MenuItem.cs: Cheap hack so we can add items to the list without
3598         the events being raised.  This allows adding mdi items during
3599         drawing. TODO: Should probably find a better time to add the items.
3600
3601 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3602
3603         * ThemeWin32Classic.cs:
3604           - CheckBox_DrawText: Added logic to not wrap if not enough space
3605             is available (Fix for bug #77727)
3606           - RadioButton_DrawText: Added logic not to wrap if not enough
3607             space is available (Fix for bug #77727). Also removed some
3608             duplicate code, DrawString always drawing the regular text
3609             before hitting the if statement.
3610
3611 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
3612
3613         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
3614
3615 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
3616
3617         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
3618         * ContainerControl.cs: Partial implementation of some 2.0 scaling
3619           methods. Moved the new 2.0 properties into alphabetical order with
3620           other properties and added MonoTODO tags
3621
3622 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3623
3624         * AutoScaleMode.cs: Added. Fix build.
3625
3626 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3627
3628         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
3629           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
3630           and was requiring premature handle creation for calls from above
3631         * Form.cs, Control.cs: Removed handle arguments from calls to
3632           CalculateClientRect()
3633
3634 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3635
3636         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
3637           drag_column.column_rect is MarshalByRef and can't be used that way
3638
3639 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3640
3641         * AxHost.cs: Added deserialization constructor for 
3642           AxHost+State (fixes 77743)
3643
3644 2006-03-09  Mike Kestner  <mkestner@novell.com>
3645
3646         * ListView.cs: 
3647         - Added column drag reordering for details view.
3648         - fixed behavior when mouse is dragged off column and
3649         AllowColumnReorder is false.
3650         * ColumnHeader.cs: clone the format too in Clone.
3651         * Theme.cs: add DrawListViewHeaderDragDetails method.
3652         * ThemeWin32Classic.cs:
3653         - impl new method for drawing drag column shadows and targets.
3654         - support column offset for details mode in DrawListViewItem.
3655
3656 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3657
3658         * TextControl.cs: Reset the char_count when the document is cleared
3659           (Fixes bug reported on mono-winforms mailing list)
3660
3661 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
3662
3663         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
3664           of calling base we simply process the key ourselves, since both
3665           DefWindowProc and the handled method would set m.Result. 
3666           (Fixes #77732)
3667
3668 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
3669
3670         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
3671           method also moves the window; instead implemented a copy of
3672           Control.ScaleCore (Part of fix for #77456)
3673         * TextBoxBase.cs: 
3674           - Created new CreateGraphicsInternal method to allow providing
3675             a graphics context when no handle is created without triggering
3676             handle creation. (Part of fix for #77456)
3677           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3678         * TextControl.cs: 
3679           - Switched Constructor to require TextBoxBase instead of Control (to
3680             allow uncast access to CreateGraphicsInternal)
3681           - Safeguarded use of owner.Handle property. No longer accessing it
3682             unless the handle is already created.
3683           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
3684           - Now triggering a recalc when owning control becomes visible
3685         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
3686           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
3687           premature handle creation (Part of fix for #77456)
3688         * Control.cs:
3689           - We now only destroy our double-buffering buffers when the
3690             control is resized or disposed, but not when visibility
3691             changes. (The code even re-created them twice every time)
3692           - Now requiring a redraw of the buffer on visibility changes
3693             (fixes bug 77654 part 2)
3694           - Not passing OnParentVisibleChanged up unless the control
3695             is visible
3696           - CanFocus: Fixed to match MS documentation
3697           - Focus: Fixed to return actual focus state and to check if
3698             setting focus is legal before setting it
3699
3700 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
3701
3702         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
3703           when to draw focus rectangle by looking at parent focus and
3704           selected state instead. This fixes TabPages on Linux sometimes
3705           having none or multiple focus rectangles.
3706         * XplatUIX11.cs (SetFocus): 
3707           - Don't set the focus if the same window already has focus
3708           - Use SendMessage instead of PostMessage (like it's Win32
3709             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
3710             to match MS behaviour
3711         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
3712           are not selectable.
3713
3714 2006-03-07  Jackson Harper  <jackson@ximian.com>
3715
3716         * PictureBox.cs: Revert line I accidently committed last week.
3717
3718 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
3719
3720         * Control.cs: 
3721           - Added new IsRecreating and ParentIsRecreating properties to
3722             allow testing if RecreateHandle has been called on ourselves
3723             or one of our parents
3724           - WndProc(WM_DESTROY): If our control handle is being recreated
3725             we immediately need to create the handle when receiving the
3726             destroy, that way our child windows find a valid parent handle
3727             when they themselves are being recreated upon WM_DESTROY receipt
3728             (fix for bug #77654 part 1)
3729         * XplatUIX11.cs:
3730           - DestroyWindow: WM_DESTROY must be sent to our own window before
3731             notifying any child windows. MS documents that child windows
3732             are still valid when WM_DESTROY is received. (Control now relies on
3733             this behaviour)
3734           - Added some fine-grain debug options
3735
3736 2006-03-06  Jackson Harper  <jackson@ximian.com>
3737
3738         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
3739         box and base calculations off this.
3740         * MdiChildContext.cs:
3741         * MdiWindowManager.cs: Don't need to ensure scrollbars here
3742         anymore.
3743         
3744 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
3745
3746         * Splitter.cs: In situations where the affected control is added
3747           to the parent's control list after the splitter, we would not
3748           populate affected. Now we try populating it on mousedown, if
3749           it's not already set, and force it to be re-set whenever our
3750           parent changes.
3751
3752 2006-03-03  Matt Hargett  <matt@use.net>
3753
3754         * Control.cs: implement Control.Padding
3755         * Padding.cs: -Padding.All returns -1 when constructing with the
3756         implicit default ctor
3757         -Padding.ToString() matches MS.NET
3758         * ContainerControl.cs: implement
3759         ContainerControl.AutoScaleDimensions
3760         * ListControl.cs: implement ListControl.FormattingEnabled
3761         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
3762         * ButtonBase.cs:
3763         * TabPage.cs: Implement UseVisualStyleBackColor.
3764         * PictureBox.cs: Implement PictureBox.InitialImage.
3765
3766 2006-03-03  Mike Kestner  <mkestner@novell.com>
3767
3768         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
3769         event declarations to proxy to base event.
3770         * ListViewItem.cs: update to use ItemControl.
3771         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
3772         * ThemeWin32Classic.cs: update to new ListView theme API and fix
3773         column header label rendering for 0 width columns.
3774
3775 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
3776
3777         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
3778           that causes the control to be created. Fixes #77476.
3779
3780 2006-03-02  Jackson Harper  <jackson@ximian.com>
3781
3782         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
3783         expose_pending.
3784
3785 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
3786
3787         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
3788           passed in for the EventArgs (fixes #77690)
3789
3790 2006-03-01  Jackson Harper  <jackson@ximian.com>
3791
3792         * ScrollBar.cs: Refresh afterbeing resized.
3793
3794 2006-02-28  Mike Kestner  <mkestner@novell.com>
3795
3796         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
3797         Clean up a tracker compile warning.
3798         * MenuItem.cs: add internal PerformPopup method.
3799         [Fixes #77457]
3800
3801 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3802
3803         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
3804           implicit expose) when the text is set to null
3805
3806 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
3807
3808         * RichTextBox.cs (FlushText): When newline is true, we always
3809           need to split the line, even if no text is on it and we may
3810           never eat newlines. (Fixes #77669)
3811
3812 2006-02-28  Mike Kestner  <mkestner@novell.com>
3813
3814         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
3815         and set Selected instead.
3816         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
3817         collections.
3818
3819 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
3820
3821         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
3822
3823 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
3824
3825         * FontDialog.cs:
3826           - Got rid of the panel. All controls are now directly added to
3827             the dialog form
3828           - It is now possible to set a font with the Font property
3829           - MinSize and MaxSize property do now what they should
3830           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
3831           - Searching and selecting a font with the font textbox works now,
3832             the same applies to the style and size textbox
3833           - Draw the correct 3D border in the example panel
3834           - Fixed a little mem leak (unused fonts didn't get disposed)
3835           - Many other internal updates/rewrites...
3836           - Fix typo
3837
3838 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3839
3840         * TextControl.cs: 
3841           - InsertRTFFromStream: Added 'number of characters inserted' argument
3842           - set_SelectedRTF: Now using the number of characters to calculate
3843             the new location for the selection and cursor (x/y cannot be used
3844             due to potentially already wrapped text)
3845
3846 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
3847
3848         * TextControl.cs: Added property and implemented means to allow 
3849           disabling recalculation of a document (can be used to speed up
3850           multiple inserts and is needed to make RTF inserts predictable, see
3851           bug #77659)
3852         * RichTextBox.cs: Using the new NoRecalc property of Document to
3853           keep x/y insert locations predictable. Also makes it faster inserting
3854           large chunks of RTF
3855
3856 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
3857
3858         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
3859           it's easier for a child control to handle the other messages without
3860           having to duplicate the special functionality
3861         * TextBoxBase.cs
3862           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
3863             code to handle processing the key ourselves, in order to get 
3864             access to the result of KeyEventArgs.Handled. We now only call 
3865             ProcessKey if they key hasn't been handled already. Fixes #77526.
3866           - set_Text: If null or empty string is given, just clear the 
3867             document. Fixes part of #77526
3868
3869 2006-02-27  Jackson Harper  <jackson@ximian.com>
3870
3871         * SizeGrip.cs: Paint the background color before painting the grip
3872         so things look right.
3873         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
3874
3875 2006-02-27  Mike Kestner  <mkestner@novell.com>
3876
3877         * ListView.cs:
3878           - Restructure layout and invalidation model to remove a ton of
3879           flicker from the control and speed up performance in general.
3880           - Add manual column resize, flickers like crazy, but I already have
3881           some ideas on how I'll fix that. (#76822)
3882           - Merge the three Icon-based views into a single layout method.
3883           - Move item selection interaction logic from the item since 
3884           interaction with the collections is more appropriate to the view.
3885           - Deselection on non-item clicks.
3886         * ListViewItem.cs:
3887           - Encapsulate most of the layout. Add some internal props to trigger
3888           layout.  Move to a model where Items invalidate themselves instead
3889           of just invalidating the whole control every time something changes.
3890           - Invalidate on Text/Caption changes.
3891           - switch to an offset based layout model to avoid having to absolute
3892           position every element on item moves.
3893           - correct checkbox layout to conform to MS layout.
3894         * ThemeWin32Classic.cs:
3895           - refactor some column header drawing code.
3896           - fix string justification for column headers (#76821)
3897           - make SmallIcon labels top justified for compat with MS impl.
3898         * ThemeClearlooks.cs:
3899           - adjust to new ListViewItem internal checkbox bounds api.
3900
3901 2006-02-27  Jackson Harper  <jackson@ximian.com>
3902
3903         * Control.cs:  Change where implicit controls fall in the zorder.
3904         They are now on top of all children.
3905         - Synced AddImplicit code with Add
3906         - Removed unused enumerator.
3907         * SizeGrip.cs: Remove the TODO as its been TODONE.
3908
3909 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
3910
3911         * TextControl.cs(Insert): Combine the last lines unless the insertion
3912           string ends with \n\n, otherwise we leave one line too many (Fixes
3913           something I noticed with the testapp for #77526; the bug itself was
3914           already fixed in the previous checkin)
3915
3916 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
3917
3918         * RichTextBox.cs:
3919           - SelectionColor and SelectionFont methods no longer set absolute
3920             styles. Instead, the keep font or color respectively (This 
3921             resolves a long-standing FIXME in the code)
3922           - When flushing RTF text, the insert code now considers text trailing
3923             behind the insertion point (Fixes the bug where when replacing
3924             the selected text via SelectedRTF the remainder of the line behind 
3925             the selection would stay on the first insertion line)
3926         * TextBoxBase.cs:
3927           - AppendText now updates the selection points after inserting text
3928           - AppendText now ensures that the last tag (sometimes 0-length) of
3929             the document is used for the style information (Fixes part of 
3930             bug #77220)
3931         * TextControl.cs:
3932           - Created new FontDefiniton class to allow describing partial style
3933             changes
3934           - StreamLine() now takes a lines argument, to allow it to decide
3935             whether an encountered zero-length tag is the last in the document
3936             (which must be kept to not loose the font/color contained in it,
3937             for later appends)
3938           - Created Combine() and Split() methods for Marker structs, to 
3939             support marker updates due to reformatted documents (soft line
3940             wraps)
3941           - Implemented Document.CaretTag setter
3942           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
3943             of the last line (Not the cause, but also exposed by bug #77220)
3944           - Added LineTag argument to InsertString method, to allow callers
3945             to force a certain tag to be used (required to force use of the
3946             trailing zero-length tag of a document)
3947           - Now updating markers in Combine(), to avoid stale tag markers
3948           - Added some method descriptions to aid maintenance
3949           - Implemented new FormatText concept, allowing additive/subtractive
3950             formatting by only specifying the components that are to be 
3951             changed. This was needed for resolving the RTB.SelectedColor/
3952             RTB.SelectedFont fixmes
3953           - Added Break() support method to allow breaking up linetags (used
3954             for partial formatting)
3955           - Added GenerateTextFormat() method. It is used for partial 
3956             formatting and allows to generate a full font/color from given
3957             attributes and an existing tag.
3958
3959 2006-02-26  Jackson Harper  <jackson@ximian.com>
3960
3961         * XplatUIX11.cs:  Use the correct caption height.
3962         - Translate hittest coordinates to screen coords to match MS.
3963         * XplatUIWin32.cs: When we create MDI windows we need to reset
3964         some of the style flags, so we get a nice blank window, and can
3965         draw all the decorations ourselves.
3966         - Set a clipping rectangle on the non client paint event, the
3967         window manager drawing code needs one.
3968         * Form.cs: The window manager needs to know when the window state
3969         has been updated.
3970         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
3971         don't need to factor in border and title sizes in these
3972         methods. TODO: Remove the args and fix the call points.
3973         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
3974         properly.
3975         - Let the driver set the cursors.
3976         - Improve active window handling
3977         - Correct sizes for title bars and buttons.
3978         - Match MS drawing better
3979         * MdiWindowManager.cs: We don't need to handle border style
3980         updates specially anymore.
3981         - Check for scrollbars when windows are done moving
3982         - Handle Active properly.
3983         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
3984         correctly. I am spewing the exception though, so we don't hide the
3985         bugs.
3986         
3987 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
3988
3989         * DataGridViewRowPostPaintEventArgs.cs,
3990           DataGridViewCellPaintingEventArgs.cs,
3991           DataGridViewRowCollection.cs,
3992           DataGridViewRowPrePaintEventArgs.cs,
3993           DataGridViewCell.cs: Clear a few warnings and implement a few
3994           exceptions that should be thrown.
3995
3996 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3997
3998         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
3999           'inheriting' our parent's (non-default) cursor. (Part of
4000            the fix for #77479)
4001
4002 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
4003
4004         * XplatUIX11.cs: Fixed cast to make csc happy
4005
4006 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
4007
4008         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
4009           it's for the client area (part of fix for #77479 and needed
4010           for MDI window cursor handling)
4011         * XplatUIX11.cs
4012           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
4013             the appropriate default cursors and also passing the message
4014             up the parent chain 
4015           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
4016             for non-client areas
4017
4018 2006-02-15  Jackson Harper  <jackson@ximian.com>
4019
4020         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
4021         is a real MDI window
4022
4023 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
4024
4025         * X11DesktopColors.cs: Instead of checking the desktop session
4026           string for "KDE" check if it starts with "KDE"
4027
4028 2006-02-10  Jackson Harper  <jackson@ximian.com>
4029
4030         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
4031         systems).
4032
4033 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
4034
4035         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
4036           errors
4037         * ColorDialog.cs:
4038           - Got rid of the panel. All controls are now directly added to
4039             the dialog form
4040           - Changed to mono coding style
4041
4042 2006-02-10  Jackson Harper  <jackson@ximian.com>
4043
4044         * InternalWindowManager.cs: We don't need the set visibility to
4045         false hack anymore now that peter has written beautiful shutdown
4046         code.
4047
4048 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
4049
4050         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
4051           where already explicitly destroyed
4052
4053 2006-02-10  Jackson Harper  <jackson@ximian.com>
4054
4055         * MdiClient.cs: Handle the case where windows are too high or to
4056         the left and we need scrollbars.
4057
4058 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
4059
4060         * MimeIcon.cs: Added some icons
4061         * FileDialog.cs:
4062           - Fixed bug #77477
4063           - Got rid of the panel. All controls are now directly added to
4064             the dialog form
4065           - Changed to mono coding style
4066           - On Linux "My Computer" and "My Network" will now show some
4067             more usefull information. A new class, MasterMount, gathers
4068             this information from /proc/mount. Updated MWFFileView to make
4069             use of this information
4070           - Fixed a bug that caused FileDialog to crash when
4071             ".recently_used" file had a zero size
4072           - FilterIndex does now what it should
4073           - Some Refactoring
4074         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
4075             FileDialog changes
4076
4077 2006-02-09  Jackson Harper  <jackson@ximian.com>
4078
4079         * ComboBox.cs: Don't touch if null.
4080
4081 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
4082
4083         * Cursor.cs: 64bit safeness fix
4084         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
4085
4086 2006-02-09  Jackson Harper  <jackson@ximian.com>
4087
4088         * Form.cs: If a form is made into an MDI form update the styles so
4089         all the props can get set correctly.
4090         - Kill the mdi_container when we dont need it anymore.
4091         * InternalWindowManager.cs: Add missing NOT
4092
4093 2006-02-08  Jackson Harper  <jackson@ximian.com>
4094
4095         * InternalWindowManager.cs: Respek clipping when drawing MDi
4096         decorations.
4097
4098 2006-02-08  Jackson Harper  <jackson@ximian.com>
4099
4100         * Hwnd.cs: Add bits to track non client expose events.
4101         * XplatUIX11.cs: Track non client expose events on the hwnd. This
4102         gives us a proper invalid rect and will allow for some nice
4103         optimizations with NC client drawing
4104         - MDI windows are children windows, so move their style handling
4105         into the child window block.
4106         * InternalWindowManager.cs: Remove a state reset that was
4107         getting invoked at the wrong time. Fixes managed windows getting
4108         into a 'stuck' captured state.
4109
4110 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
4111
4112         * TextControl.cs (Document.ctor): Now initializing 
4113           selection_anchor. Fixes #77493
4114
4115 2006-02-07  Jackson Harper  <jackson@ximian.com>
4116
4117         * TrackBar.cs: The increment/decrements were backwards.
4118
4119 2006-02-07  Mike Kestner  <mkestner@novell.com>
4120
4121         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
4122         to the instance itself.
4123
4124 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
4125
4126         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
4127           on ulongs and pointers, the size differs between 32bit and 64bit
4128           systems. 
4129
4130 2006-02-07  Mike Kestner  <mkestner@novell.com>
4131
4132         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
4133         for 64 bit platforms to work around a metacity bug. 
4134
4135 2006-02-07  Jackson Harper  <jackson@ximian.com>
4136
4137         * TrackBar.cs: Process the input keys we need, and hookup to
4138         KeyDown instead of using WndProc, so we get key messages.
4139
4140 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
4141
4142         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
4143           machine we're on. 
4144         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
4145           we need to translate the XdndVersion atoms array before sending it
4146
4147 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
4148
4149         * XplatUIX11.cs: 
4150           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
4151             number of bits for the property, not the number of bytes. The
4152             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
4153             but would not crash since it specified 8 bits instead of 4 bits)
4154           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
4155             defined as XID -> long in the C headers)
4156           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
4157             references since those are now IntPtr to begin with
4158           - Switched all Atom.XXX 'int' casts to IntPtr casts
4159           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
4160           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
4161           - Added XChangeActivePointerGrab DllImport (for X11DnD)
4162         * X11Structs.cs:
4163           - Changed 'int' type for Atoms in XEvent structures to IntPtr
4164           - Changed atom in HoverStruct to be IntPtr
4165         * X11DnD.cs:
4166           - Removed local DllImports, switched code to use those from XplatUIX11
4167           - Removed/fixed casts related to the switch of Atom to be a IntPtr
4168
4169 2006-02-06  Mike Kestner  <mkestner@novell.com>
4170
4171         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
4172         method signatures in the import region.  There may still be some
4173         lingering struct marshaling issues, as I didn't drill down into those.
4174         Yet.
4175
4176 2006-02-06  Jackson Harper  <jackson@ximian.com>
4177
4178         * ComboBox.cs: Dont manually set the top_item, this is computed
4179         when the scrollbar position is set.
4180
4181 2006-02-06  Mike Kestner  <mkestner@novell.com>
4182
4183         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
4184         startup crashes on amd64.  There's other fixes needed.  All pinvoke
4185         usage of Atom needs to be mapped to IntPtr for example.  And there are
4186         likely other int/long issues to be addressed.
4187
4188 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
4189
4190         * FileDialog.cs: One more...
4191
4192 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4193
4194         * FileDialog.cs: Next try
4195
4196 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4197
4198         * FileDialog.cs: First part of fix for #77464
4199
4200 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
4201
4202         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
4203           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
4204           AcceptButton border drawing.
4205
4206 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
4207
4208         * Form.cs: Moved positioning of form after auto scaling is applied,
4209           otherwise it would possibly use wrong form size.
4210
4211 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
4212
4213         * Control.cs (RecreateHandle): No need to re-create any child
4214           controls, the child windows will get destroyed automatically by
4215           the windowing system or driver, and re-created when the handle
4216           is being accessed the first time. Fixes #77456
4217         * Form.cs: No longer setting the form to closing if the handle is 
4218           being recreated. This seems like the right thing to do, don't
4219           have a bug or testcase for this, though.
4220
4221 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
4222
4223         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
4224           controls to avoid unwanted side effects
4225
4226 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
4227
4228         * Control.cs: 
4229           - ScaleCore needs to scale the bounds, not the ClientSize of the 
4230             control. Fixes #77416.
4231           - DefaultSize is 0,0 for control
4232         * TextBoxBase.cs: 
4233           - DefaultSize is 100, 20
4234           - SetBoundsCore: Now enforcing the height, no matter if the provided
4235             height is more or less than the preferred one, as long as AutoSize
4236             is on
4237         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
4238
4239 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
4240
4241         * Control.cs:
4242           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
4243             call unless both performLayout is true *and* we have a pending
4244             layout change
4245           - ResumeLayout: MS does not completely nest Suspend and Resume,
4246             they bottom out at 0, fixed our code to match that.
4247           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
4248             SetBoundsCore, we were updating even when we shouldn't. This fixes
4249             swf-anchors mis-anchoring when resizing the app fast and lots.
4250           - UpdateDistances: Now only setting the left and top distance if 
4251             we have a parent and are not suspended, this is based on
4252             a suggestion by Don Edvaldson in bug #77355.
4253           - OnVisibleChanged: Fixed logic when to create the control. We may
4254             not create the control if we have no parent or if it's not visible;
4255             switched to using Visible property instead of is_visible field 
4256             since the property also considers parent states. This fixes a bug
4257             when starting Paint.Net
4258
4259 2006-02-02  Jackson Harper  <jackson@ximian.com>
4260
4261         * Form.cs: If the forms handle hasn't been created yet don't call
4262         into xplatui to make it top most, just set the topmost flag on the
4263         form in CreateParams
4264         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
4265
4266 2006-02-01  Jackson Harper  <jackson@ximian.com>
4267
4268         * ScrollableControl.cs: Refactored the Recalculate method a
4269         little, this wasn't handling all the variants of bottom and right
4270         bars needed to be added and added/removed based on their
4271         counterparts being added/removed (which changes the drawable
4272         size). Also we special case client widths and heights of 0 and
4273         don't add the scrollbar for those.
4274
4275 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
4276
4277         * XplatUIX11.cs: 
4278           - Added method to get AbsoluteGeometry(); currently unused, but might
4279             be used in the future, if we try again to figure out toplevel
4280             coordinates with some more crappy window managers
4281           - Added FrameExtents() method to retrieve the WM set decoration size
4282           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
4283             to deal with at least KDE, FVWM and metacity (Fixes #77092)
4284         * Hwnd.cs: 
4285           - Added whacky_wm tracking var for metacity
4286           - Added logic to have default menu height if the actual menu height
4287             has not yet been calculated (part of fix for #77426)
4288         * Form.cs: Keep track whether client size has been set and re-set 
4289           it if a menu is added/removed afterwards (Fixes #77426)
4290
4291 2006-01-31  Jackson Harper  <jackson@ximian.com>
4292
4293         * Control.cs: When a new Site is set on the component attempt to
4294         pull the AmbientProperties from it.
4295
4296 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
4297
4298         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
4299           in the background of the owning form. Fixes #77332
4300
4301 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
4302
4303         * MimeIcon.cs: Fix for #77409
4304
4305 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
4306
4307         * XplatUIX11GTK.cs: Initial import
4308
4309 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
4310
4311         * FixedSizeTextBox: fixes class signature
4312
4313 2006-01-30  Jackson Harper  <jackson@ximian.com>
4314
4315         * FixedSizeTextBox.cs: New internal class that represents a
4316         textBox that will not be scaled.
4317         * TreeView.cs:
4318         * ComboBox.cs:
4319         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
4320         standard TextBox.
4321                 
4322 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
4323
4324         * XplatUIX11.cs: Retrieve default screen number instead of
4325           assuming 0. Attempted fix for #77318
4326
4327 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
4328
4329         * XplatUIWin32.cs: 
4330           - GetWindowPos: When a window is parented by FosterParent, use 
4331             the desktop instead of FosterParent as the base to get coordinates
4332           - CreateWindow: Don't make FosterParent the parent window for Popups
4333             if we don't want a taskbar entry, Popups automatically don't get one
4334         * Hwnd.cs: Need to call remove to actually remove the key from the
4335           hash table
4336
4337 2006-01-30  Mike Kestner  <mkestner@novell.com>
4338
4339         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
4340
4341 2006-01-30  Jackson Harper  <jackson@ximian.com>
4342
4343         * TreeView.cs:
4344         * TreeNode.cs: Raise events no matter how the treenode is
4345         checked. Patch by Don Edvalson.
4346
4347 2006-01-30  Jackson Harper  <jackson@ximian.com>
4348
4349         * TreeNode.cs: Signature fix.
4350
4351 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
4352
4353         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
4354
4355 2006-01-20  Mike Kestner  <mkestner@novell.com>
4356
4357         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
4358         event forwarding when menus are active.
4359         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
4360         Most of the patch is pdb's with a little rework.
4361
4362 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
4363
4364         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
4365           Removed GetMenuDC and ReleaseMenuDC methods; replaced
4366           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
4367         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
4368         * InternalWindowManager.cs: Added use of PaintEventStart/End to
4369           handling of WM_NCPAINT message, now passing the PaintEventArgs to
4370           the PaintWindowDecorations method
4371         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
4372         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
4373         * MenuAPI.cs: Made tracker window invisible
4374         * XplatUIWin32.cs:
4375           - Removed GetMenuDC and ReleaseMenuDC methods
4376           - Implemented the client=false path for PaintEventStart and
4377             PaintEventEnd
4378
4379 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
4380
4381         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
4382         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
4383           styles
4384         * Form.cs: 
4385           - MaximizeBox, MinimizeBox: Recreate the handle when setting
4386             the style
4387           - CreateParams: Reworked the styles to match MS look'n'feel,
4388             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
4389             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
4390
4391 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
4392
4393         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
4394           window is not mapped, since otherwise every form that's being 
4395           created is considered minimized, which is wrong.
4396         * Form.cs: Catching the exception and returning our internal value
4397           instead
4398
4399 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
4400
4401         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
4402           SetWindowMinMax() to have means to tell the driver about the minimum,
4403           maximum and maximized state window sizes. (Part of the fix for #76485)
4404         * Form.cs:
4405           - Implemented tracking of minimum and maximum window size, now calling
4406             new SetWindowMinMax() driver method to tell the driver (Part of the
4407             fix for #76485)
4408           - Finished handling of WM_GETMINMAXINFO method, now setting all values
4409             (Completes fix for #76485)
4410           - Calling new SetWindowMinMax driver method when the handle for a 
4411             form is created, to make sure the driver knows about it even if
4412             the values have been set before the window was created
4413           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
4414             to avoid messing up our anchoring calculations (partial fix
4415             for #77355)
4416         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
4417         * XplatUIX11.cs:
4418           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
4419           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
4420             (and presumably other freedesktop.org compliant WMs). Left the
4421             assumption unmapped=minimized, needed for SetVisible to work.
4422           - Now setting the window state when creating windows
4423           - Fixed SetVisible to consider/set the window state when mapping
4424             a Form. We cannot set the state before it's mapped, and we cannot
4425             use Form.WindowState once it's mapped (since it would ask the
4426             driver and get 'normal'. Therefore, we grab the state before
4427             mapping, map, and then set state.
4428           - Implmemented SetWindowMinMax method; Metacity does not seem to
4429             honor the ZoomHints, though.
4430         * XplatUIWin32.cs:
4431           - Removed MINMAXINFO (moved to XplatUIStructs)
4432           - Added SetWindowMinMax stub (on Win32 the only way to set that
4433             information is in response to the WM_GETMINMAXINFO message, which
4434             is handled in Form.cs)
4435           - Added logic to SetVisible to set the proper window state when a 
4436             form is made visible (fixes #75720)
4437
4438 2006-01-26  Jackson Harper  <jackson@ximian.com>
4439
4440         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
4441         same way we handle them with Invoke.
4442
4443 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
4444
4445         * Form.cs:
4446           - Added tracking of window state so CreateParams can return
4447             the appropriate style
4448           - Moved setting of WS_CAPTION style in CreateParams to allow
4449             styles without caption
4450         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
4451           control if the TextBox property is accessed. Fixes #77345
4452         * Control.cs:
4453           - get_Created: now uses is_disposed and is_created to determine
4454             return value (suggested by Jackson)
4455           - CreateHandle: No longer exits if the handle is being recreated
4456           - RecreateHandle: If the handle is not yet created call the 
4457             appropriate method to create either control or handle. If the
4458             control is already created CreateHandle will simply exit instead
4459             of just creating the handle
4460         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
4461           now SendMessage WM_DESTROY directly to the control when DestroyWindow
4462           is called.
4463         * XplatUIX11.cs: 
4464           - When DestroyWindow is called, instead of waiting for the 
4465             DestroyNotification from X11, we directly post it to the WndProc
4466             and immediately dispose the hwnd object.
4467             Same applies to DestroyChildWindows, and this obsoletes the
4468             expose_pending tracking. Contrary to Win32 behaviour we destroy our
4469             child windows before our own, to avoid X11 errors.
4470           - Removed the direct sending of WM_PAINT on UpdateWindow
4471         * XplatUIWin32.cs:
4472           - Reworked DoEvents and GetMessage to allow access to internal queue
4473             even when trying non-blocking access to the queue.  Fixes #77335. 
4474             Based on a patch suggestion by Don Edvalson. The new private
4475             GetMessage can now also be used as a backend for a PeekMessage
4476             frontend version.
4477         * XplatUI.cs: Improved debug output for CreateWindow
4478
4479 2006-01-25  Jackson Harper  <jackson@ximian.com>
4480
4481         * Help.cs: Allow param to be null. Patch by Don Edvalson.
4482
4483 2006-01-24  Jackson Harper  <jackson@ximian.com>
4484
4485         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
4486         when we have a MaxDropItems lower then the selected index.
4487
4488 2006-01-24  Jackson Harper  <jackson@ximian.com>
4489
4490         * Control.cs: Don't allow selection of non visible controls, allow
4491         selection of controls without parents.
4492
4493 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4494
4495         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
4496         * DataGridDrawingLogic.cs: Add editing row only when is necessary
4497
4498 2006-01-23  Jackson Harper  <jackson@ximian.com>
4499
4500         * UpDownBase.cs: Make the textbox handle all the selection and
4501         tabbing. This fixes tabing to updown controls.
4502
4503 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
4504
4505         * TextBoxBase.cs: fixes exception thown the object was null
4506
4507 2006-01-23  Jackson Harper  <jackson@ximian.com>
4508
4509         * ButtonBase.cs: Just use the base CreateParams. They set
4510         visibility and enabled correctly.
4511         * ComboBox.cs:
4512         * TrackBar.cs:
4513         * MonthCalendar.cs: Lets let the base set as much of the
4514         createparams as possible so we don't have duplicate code all over
4515         the place.
4516
4517 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
4518
4519         * ThemeGtk.cs: Added TrackBar and some experimental code to
4520           get double buffering back
4521
4522 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
4523
4524         * DataGrid.cs: Allows row number set internally higher than the last
4525         when creating a new row. Restores the editing functionality.
4526
4527 2006-01-20  Mike Kestner  <mkestner@novell.com>
4528
4529         * MimeIcon.cs: delay Image creation until the icons are accessed
4530         instead of creating 190 scaled images on GnomeHandler startup.
4531
4532 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
4533
4534         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
4535           first call base before processing the event. Fixes #77279
4536
4537 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
4538
4539         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
4540           that the stride for the GDI bitmap would match the stride of
4541           a DIB or a Cursor.
4542
4543 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
4544
4545         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
4546
4547 2006-01-19  Jackson Harper  <jackson@ximian.com>
4548
4549         * ComboBox.cs: Hookup the text controls keydown event so we get
4550         those when the text control has the focus.
4551
4552 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4553
4554         * Label.cs: Now using the base events instead of defining new ones;
4555           this allows us to just call the base properties without having to
4556           duplicate all base property logic 
4557
4558 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4559
4560         * Label.cs: A label by default is not a tabstop (Fixes one of our
4561           failing nunit tests)
4562
4563 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
4564
4565         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
4566         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
4567
4568 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
4569
4570         * Cursor.cs: Reimplemented creating cursor bitmaps without using
4571           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
4572           This fixes #77218
4573         * XplatUIWin32.cs: 
4574           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
4575             constructor creates images that can't be saved. Part of the fix
4576             for #76103
4577           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
4578           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
4579             bug fix for handling window state in forms properly)
4580
4581 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4582
4583         * ThemeGtk.cs: Simplify ScrollBar drawing
4584
4585 2006-01-18  Jackson Harper  <jackson@ximian.com>
4586
4587         * Splitter.cs: Set the default dock style for the splitter control
4588         in the constructor.
4589
4590 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4591
4592         * ThemeGtk.cs: Corrected StateType and ShadowType for
4593           gtk_paint_box
4594
4595 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4596
4597         * Control.cs: Make use of Theme.DoubleBufferingSupported
4598         * ThemeGtk.cs:
4599           - Added drawing for flat style buttons
4600           - Added ScrollBar drawing
4601
4602 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
4603
4604         * ThemeClearlooks.cs: Removed some unneeded code.
4605         * ThemeGtk.cs: First part of ThemeGtk enhancements.
4606
4607 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4608
4609         * LinkLabel.cs: We need to update the hover drawing when
4610           leaving the control as well.
4611
4612 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
4613
4614         * DataGrid.cs: Clicking on non empty areas in the columns
4615            area was giving an exception
4616
4617 2006-01-17  Jackson Harper  <jackson@ximian.com>
4618
4619         * ThemeWin32Classic.cs:
4620         * ListView.cs: Do not draw/clip the headers when the header style
4621         is None.
4622
4623 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4624
4625         * DataGrid.cs: Fixes 77260
4626         
4627 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
4628
4629         * DataGrid.cs: Clicking on a column on a empty grid was giving
4630           an exception
4631
4632 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
4633
4634         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
4635           or any keypress will crash the grid.
4636
4637 2006-01-17  Mike Kestner  <mkestner@novell.com>
4638
4639         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
4640         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
4641         invisible/previously-visible items.
4642         [Fixes #76909]
4643
4644 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
4645
4646         * ThemeClearlooks.cs:
4647         - Added CL_Draw_Button method; now other theme controls that are 
4648           not derived from button or do not have a button can draw buttons
4649           too
4650         - Updated ComboBox drawing
4651         - Beautified RadioButton drawing
4652         - Corrected drawing of bottom and left tabs
4653         - Beautified DateTimePicker and MonthCalendar
4654         - Added CPDrawButton and CPDrawRadioButton
4655
4656 2006-01-16  Jackson Harper  <jackson@ximian.com>
4657
4658         * ComboBox.cs: Set the initial value of the scrollbar to the
4659         current index. Reduce the numbers of refreshs and IndexOfs called.
4660
4661 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
4662
4663         * FileDialog.cs: When the file listview is focused hitting the
4664           backspace key moves the fileview to the parent directory
4665
4666 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4667
4668         * Form.cs: 
4669           - Added RecreateHandle call when changing taskbar visibility to 
4670             trigger reparenting in Win32 driver (Fixes #75719)
4671           - If a window has minimize or maximize buttons, it cannot have
4672             a help button
4673         * XplatUIWin32.cs:
4674           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
4675             the toplevel form with FosterParent (A toolwindow not on the
4676             taskbar) (Fixes #75719)
4677           - Made FosterParent a toolwindow
4678
4679 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4680
4681         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
4682
4683 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4684
4685         * ToolTip.cs: If SetToolTip is called from a control and the mouse
4686           is currently over that control, make sure that tooltip_window.Text
4687           gets updated
4688
4689 2006-01-13  Mike Kestner  <mkestner@novell.com>
4690
4691         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
4692
4693 2006-01-13  Jackson Harper  <jackson@ximian.com>
4694
4695         * TreeView.cs: On MS GetNodeAt never actually factors in the X
4696         value passed.  Also redraw the selected node when we recieve
4697         focus, so tabbing between trees works correctly.
4698
4699 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
4700
4701         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
4702           ~/.gconf/%gconf-tree.xml, so use
4703           .gconf/desktop/gnome/interface/%gconf.xml
4704
4705 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4706
4707         * TextControl.cs: Draw text in gray if control is disabled
4708
4709 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
4710
4711         * TreeView.cs: Draw the focus rectangle outside the highlight, to
4712           make sure it's always visible. Fixes #76680.
4713
4714 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
4715
4716         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
4717
4718 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
4719
4720         * PageSetupDialog.cs: Added.
4721         * PrintDialog.cs: Attributes.
4722         * PrintPreviewControl.cs: Updates.
4723         * PrintPreviewDialog.cs: Updates.
4724         
4725 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4726
4727         * Control.cs: Undid my selection check fix, since it's not needed
4728         * TextBoxBase.cs:
4729           - Now considering the presence of hscroll/vscroll when sizing
4730             vscroll/hscroll respectively. Fixed bug #77077
4731           - Added Left/Up/Down/Right to IsInputKey list to prevent
4732             ContainerControl from stealing them. This fixes what I broke
4733             with my last checkin.
4734
4735 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
4736
4737         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
4738           I finally understand how the property can be set without a setter :-)
4739
4740 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4741
4742         * Application.cs:
4743           - Switched RunLoop to use static Message.Create to create a 
4744             Message object
4745           - Added PreProcessMessage call in runloop for keyboard events; this
4746             is part of the fix for #77219, I overlooked this originally in the
4747             MSDN doc for PreProcessMessage
4748         * Control.cs:
4749           - Removed call to PreProcessMessage from handling of keyboard 
4750             messages; it's supposed to be done in the message pump
4751           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
4752             per MSDN documentation.
4753           - IsInputChar: All chars are input chars by default; removed the 
4754             parent calling chain, MS does not document that
4755           - PreProcessMessage: If IsInputChar is true, we want to return false
4756             to allow dispatching of the message
4757           - When selecting the next control, now also check that we're not
4758             selecting ourselves again and therefore return a false positive.
4759         * TextBoxBase.cs:
4760           - Tried to match return values for IsInputKey and ProcessDialogKey
4761             to what MS returns; moved processing of our special keys outside
4762             ProcessDialogKey since MS does not seem to return true on those.
4763           - Moved code that previously was in ProcessDialogKey into new private
4764             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
4765           - Reworked handling of WM_CHAR to not have to duplicate code from
4766             Control.cs anymore, instead we simply call down to base.
4767            
4768 2006-01-12  Jackson Harper  <jackson@ximian.com>
4769
4770         * ComboBox.cs: We always need to refresh the text area when
4771         EndUpdate is called. Fixes the combobox in the file dialog.
4772         * Control.cs: Don't create the creator_thread until the controls
4773         handle is created.  Also in InvokeRequired we check if the
4774         creator_thread is null. This gives the effect of InvokeRequired
4775         returning true if the controls handle is not created yet, and
4776         matches MS.
4777
4778 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4779
4780         * XplatUI.cs:
4781           - Added StartLoop() driver method. This is used to allow drivers to
4782             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
4783             loop for a particular thread
4784           - Added EndLoop() driver method. This is called once the message
4785             pump for the thread is shut down
4786           - Added SupportsTransparency method to allow the driver to indicate
4787             opacity support for windows
4788         * Form.cs:
4789           - Removed TODO attribute, completed AllowTransparency property
4790           - Added documented logic to Opacity
4791         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
4792           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
4793           versions of CompatibleTextRendering
4794         * X11Structs.cs: Added opacity atom to our atom enumeration
4795         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
4796           of a form might be set before it's reparented by the WM, and we need
4797           the opacity value without calling up to Form)
4798         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
4799           SupportsTransparency() driver methods
4800         * Application.cs: Now calling StartLoop and EndLoop driver methods
4801         * XplatUIX11.cs:
4802           - Added opacity atom registration
4803           - Added StartLoop()/EndLoop() methods. They're empty right now but
4804             will need to get implemented when we switch to a per-thread queue
4805           - Implemented SupportsTransparency() method
4806           - Implemented SetWindowTransparency() method
4807           - Added support for setting the opacity value when a window is
4808             reparented (since the opacity needs to be set on the WM frame)
4809         * XplatUIOSX.cs, XplatUIWin32.cs:
4810           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
4811
4812 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4813
4814         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
4815
4816 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
4817
4818         * FileDialog.cs: Added ToolTip for MWFFileView
4819         * MimeIcon.cs: Rewrote GnomeHandler.
4820           - Get currently used gnome icon theme from
4821             ($HOME)/.gconf/%gconf-tree.xml
4822           - Make use of inherited icon themes
4823           - Support SVG icon themes like Tango via librsvg
4824
4825 2006-01-12  Miguel de Icaza  <miguel@novell.com>
4826
4827         Revert's Jackson's revert which broke 2.0 builds.   Fix both
4828         builds. 
4829         
4830         * Application.cs: Move the use_compatible_text_rendering outside
4831         the NET_2_0 define.  If we ever need to use the
4832         use_compatible_text_rendering on the individual controls they will
4833         access the variable from the common shared code paths.
4834
4835 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
4836
4837         * XplatUI.cs:
4838           - Added more granular debug options
4839           - Added method to print both window text and id
4840           - Switched debug output to use new Window() debug method
4841           - Added IsEnabled() driver method
4842           - Added EnableWindow() driver method
4843         * Form.cs:
4844           - Removed end_modal; no longer needed, new loop handles termination
4845             via 'closing' variable
4846           - If form is modal, setting DialogResult will now initiate loop
4847             termination via 'closing' variable
4848           - Added support for is_enabled/WS_DISABLED to CreateParams
4849           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
4850             does all the work
4851           - Removed code that's now in RunLoop from ShowDialog()
4852           - Added various documented sanity checks to ShowDialog()
4853           - Added handling of WM_DESTROY message; we set 'closing' on getting
4854             the message to indicate the message pump to terminate
4855           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
4856             send by the Application.ExitThread method. (We send the message
4857             to destroy the window after all other events have been
4858             processed through the queue, instead of destroying the handle 
4859             directly)
4860           - Moved code from Close() method to WM_CLOSE handler; added logic
4861             to only send close-related events if the form is not displayed
4862             modal
4863         * Splitter.cs (..ctor): Fixed typo in resource name
4864         * Control.cs:
4865           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
4866             brush now
4867           - set_Cursor: Now only setting calling into XplatUI if the handle for
4868             the control is already created; this avoids implict handle creation
4869             or crashes if it's not created
4870           - set_Enabled: Now setting the enabled state via the new driver method
4871             instead of just tracking it
4872           - CreateParams: Added logic to set WS_DISABLED based on enabled state
4873           - CreateControl: Reordered event firing and method calls to more
4874             closely fire events in the order MS does. Now setting the
4875             enabled state in the driver when creating the control.
4876           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
4877             match MS order
4878         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
4879           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
4880         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
4881         * Hwnd.cs:
4882           - Added tracking of window enabled state (get_Enabled/set_Enabled)
4883           - Added EnabledHwnd property to easily allow a driver to find the
4884             handle of the first enabled window in the parent chain (this is
4885             used by drivers to pass up input events of disabled windows)
4886         * XplatUIDriver.cs: Added IsEnabled() method
4887         * Application.cs:
4888           - Removed crude and obsolete exiting tracking variable
4889           - Removed internal ModalRun(); replaced by RunLoop()
4890           - Implemented private CloseForms() method to allow closing all 
4891             windows owned by a particular (or all) threads
4892           - Exit() now properly closes all windows without forcing the message
4893             pump to quit
4894           - Removed obsolete InternalExit() method
4895           - Changed Run() methods to use new RunLoop() message pump
4896           - Implemented new RunLoop() method for both modal and non-modal forms
4897         * CommonDialog.cs:
4898           - get_CreateParams: Added setting of WS_DISABLED
4899           - Simplified ShowDialog(); now all the work is done in RunLoop(),
4900             invoked via Form.ShowDialog()
4901         * NativeWindow.cs: We don't remove the window from the collection when
4902           the handle is destroyed; there might still be messages for it in the
4903           queue (mainly the resulting WM_DESTROY); instead it will be removed
4904           when Control calls InvalidateHandle in the WM_DESTROY handler
4905         * XplatUIX11.cs:
4906           - CreateWindow: Added logic to handle the WS_DISABLED window style
4907           - EnableWindow: Implemented based on Hwnd.Enabled
4908           - GetMessage: Reset PostQuitState so the method can be called again
4909           - Implemented support for disabled windows (passing messages to the
4910             first enabled parent) in handling all input messages
4911           - Added optimizations for handling Expose events
4912           - Implemeted new driver method IsEnabled()
4913           - Now always resetting paint pending tracking vars when we start paint
4914           - Re-implemented UpdateWindow via just sending a WM_PAINT message
4915         * XplatUIOSX.cs: Added IsEnabled method stub
4916         * XplatUIWin32.cs: Implemented new IsEnabled() method
4917
4918 2006-01-11  Jackson Harper  <jackson@ximian.com>
4919
4920         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4921         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
4922         variables a little.
4923         * ColorDialog.cs: Clear out the old form before adding the new
4924         panel.  
4925
4926 2006-01-11  Jackson Harper  <jackson@ximian.com>
4927
4928         * X11Dnd.cs: Make sure to add all the text formats when adding
4929         strings to the data object.
4930         * TreeNodeCollection.cs: When adding to a sorted tree we need to
4931         do some redrawing too.  Also change the UpdateNode to an
4932         UpdateBelow so the newly added node gets painted.
4933         
4934 2006-01-11  Miguel de Icaza  <miguel@novell.com>
4935
4936         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
4937         LinkLabel.cs, PropertyGrid.cs: Implement the
4938         UseCompatibleTextRendering property for 2.x
4939
4940         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
4941
4942 2006-01-11  Jackson Harper  <jackson@ximian.com>
4943
4944         * TreeView.cs: Use the property for setting the selected node so
4945         the correct events get raised.
4946         * TreeNode.cs: Update the tree when the fore/back colours of a
4947         node are set.
4948
4949 2006-01-10  Jackson Harper  <jackson@ximian.com>
4950
4951         * TreeView.cs: Allow setting SelectedNode to null.
4952
4953 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4954
4955         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
4956
4957 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4958
4959         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
4960
4961 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4962
4963         * PrintDialog.cs: Added attributes and set default property values.
4964
4965 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4966
4967         * PrintControllerWithStatusDialog.cs: 
4968         Added PrintControllerWithStatusDialog.
4969
4970 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4971
4972         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
4973         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
4974
4975 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4976
4977         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
4978
4979 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
4980
4981         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
4982         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
4983
4984 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4985
4986         * MimeIcon.cs: Added internal class SVGUtil.
4987
4988 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4989
4990         * FileDialog.cs: Don't crash if there are two files with the
4991           same name but different locations.
4992
4993 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
4994
4995         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
4996         dates across multiple month grids. Used to not highlight entire 
4997         month, but does now.
4998         
4999 2006-01-06  Jackson Harper  <jackson@ximian.com>
5000
5001         * MonthCalendar.cs: Removed DoEvents call to prevent a running
5002         message loop. Change timer intervals to numbers that seem more
5003         natural.
5004
5005 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
5006
5007         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
5008           object for location info since screen object is now implemented.
5009
5010 2006-01-05  Jackson Harper  <jackson@ximian.com>
5011
5012         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
5013         * AsyncMethodResult.cs: We no longer use a WeakReference for the
5014         AsyncMethodResult, this is because we ALWAYS want the
5015         ManualResetEvent to get set.
5016         * Control.cs: When disposing use an async invoke to call shutdown
5017         code, so that thigns don't block on the finalizer thread.  Also
5018         check if we even have a message loop before trying to send
5019         messages, if we don't then don't bother sending messages.
5020         - No more weak references for async methods
5021         * XplatUIDriver.cs: No more weak references for async methods.
5022
5023 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
5024
5025         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
5026           returns two FontFamily with the same name
5027
5028 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
5029
5030         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
5031           drawing disabled text. Instead using the ColorGrayText color
5032
5033 2006-01-04  Jackson Harper  <jackson@ximian.com>
5034
5035         * TreeNode.cs: redraw the node when its image index is changed.
5036
5037 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
5038
5039         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
5040           time I checked there are no others like it.
5041
5042 2006-01-04  Jackson Harper  <jackson@ximian.com>
5043
5044         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
5045         this gives the behavoir I was looking for.
5046         * Control.cs: Special case Invoking EventHandlers, this matches MS
5047         and fixes part of bug #76326.
5048
5049 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
5050
5051         * ThemeClearlooks.cs, FileDialog.cs:
5052           - Reflect the latest Theme class changes
5053           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
5054             with DateTime
5055             
5056 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
5057
5058         * Theme.cs: Cache UI resource images and resize them if needed
5059
5060 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
5061
5062         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
5063           is called. This fixes the crash in Nexxia when setting the font
5064           attributes in the chat. [However, RTF needs a look-over to make sure
5065           that all SelectionXXX methods handle the special case that selection
5066           is empty and therefore the change must be applied to all text starting
5067           at the cursor/selection start]
5068
5069 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
5070
5071         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5072           XplatUIOSX.cs: Added SendMessage and PostMessage methods
5073         * X11Keyboard.cs: Switched to new way of calling PostMessage
5074
5075 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
5076
5077         * Theme.cs: Added theme interface for images to allow the theme to
5078           control what images are used for things like FileDialog, MessageBox
5079           icons, etc.
5080         * MessageBox.cs: Now uses the new Theme icon/image interfaces
5081
5082 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
5083
5084         * FileDialog.cs:
5085           - Removed some dead code
5086           - Opening a recently used file does work now
5087           - Small UI enhancements
5088           - Refactoring
5089
5090 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
5091
5092         * FileDialog.cs: Forgot too add __MonoCS__
5093
5094 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
5095
5096         * FileDialog.cs: We are able to read recently used files now let's
5097           go on and write them.
5098
5099 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
5100
5101         * FileDialog.cs: Breathe some life into "last open"/"recently used"
5102           button
5103         * MimeIcon.cs: Do a check for the top level media type also
5104
5105 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
5106
5107         * ThemeClearlooks.cs:
5108           - Added CPDrawStringDisabled
5109           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
5110             some chars if the text doesn't fit into text_rect
5111           - DrawListViewItem: If View = View.LargeIcon center the image;
5112             rewrote the drawing of ListViewItem.Text if View = 
5113             View.LargeIcon
5114
5115 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
5116
5117         * MimeIcon.cs: Use default KDE icon theme if there is no
5118           "48x48" directory for the current icon theme, fixes #77114
5119         * Mime.cs: Disable not working and actually not used code. 
5120         * ThemeWin32Classic.cs:
5121           - Replace "new SolidBrush" in GetControlBackBrush and
5122             GetControlForeBrush with ResPool.GetSolidBrush
5123           - Changed DrawListViewItem from private to protected virtual
5124         * FileDialog.cs:
5125           - Added form.MaximizeBox = true
5126           - Don't throw an exception if there is a broken symbolic link
5127
5128 2005-12-23  Jackson Harper  <jackson@ximian.com>
5129
5130         * TabControl.cs: Give the panels focus, keyboard navigation is
5131         fixed so this works correctly now.
5132         - We need these key events also.
5133         * ToolBar.cs: Remove some of the poor mans double buffering.
5134         
5135 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
5136
5137         * ComboBox.cs: The internal TextBox now returns the focus.
5138
5139 2005-12-23  Jackson Harper  <jackson@ximian.com>
5140
5141         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
5142
5143 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
5144
5145         * Control.cs: Removed debug code
5146         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
5147           implicit children
5148
5149 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
5150
5151         * Control.cs: When creating the control, update the Z-order after
5152           all it's children are created, too. (Fixes nexxia not showing
5153           picturebox bug)
5154
5155 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
5156
5157         * Control.cs: Do not update the anchoring distances if layout is
5158           suspended, instead do it once layout is resumed
5159
5160 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
5161
5162         * Control.cs: 
5163           - After many hours of debugging, for both Jackson and
5164             myself, it turns out that it helps to set the parent of a control
5165             if you want to actually see it onscreen. In the spirit of that
5166             discovery, we're now setting the parent of the control and
5167             it's children when the control's handle is created. This fix
5168             will make Lutz Roeder's Reflector run happily. 
5169           - now just creating the handle instead of the whole control when
5170             getting a graphics context for the control.
5171
5172 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
5173
5174         * ScrollableControl.cs: When calculating the canvas, don't consider
5175           the scrollbar widths. Instead, predict if horizontal scrollbar
5176           will affect canvas when deciding on vertical display and vice versa.
5177
5178 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
5179
5180         * RichTextBox.cs: Set default RTF font for documents that don't
5181           have a font table (Fixes #77076)
5182
5183 2005-12-22  Jackson Harper  <jackson@ximian.com>
5184
5185         * TextBoxBase.cs: It's difficult to do, but you can have an empty
5186         clipboard. This prevents a NullRef in that case.
5187         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
5188         clipboard. PRIMARY is for the currently selected text only. (We
5189         should implement PRIMARY at some point.
5190
5191 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5192
5193         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
5194           a Unicode function with a structure that was defined in Ansi way.
5195           This fixes #76942.
5196
5197 2005-12-21  Jackson Harper  <jackson@ximian.com>
5198
5199         * StatusBar.cs: Statusbar handles its fore/back colours on it's
5200         on. Because thats how it rolls. (and this avoids it using ambient
5201         colours).
5202         * ThemeWin32Classic.cs: Use the proper back color for filling.
5203         * Menu.cs: Use the system menu bar color for drawing menu
5204         bars. Using the window back color will bring ambient colours into
5205         the picture.
5206
5207 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
5208
5209         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
5210           Bitmaps were created and not disposed.
5211
5212 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5213
5214         * Control.cs (CreateControl): Don't do anything if the control is
5215           already created, otherwise we'd fire the OnCreated event more than
5216           once
5217
5218 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
5219
5220         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
5221           will always match. Instead return -1. Fixes #76464.
5222
5223 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
5224
5225         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
5226           neither the beginning nor the end of the line (Fixes bug #76479)
5227
5228 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
5229
5230         * Control.cs:
5231           - ControlNativeWindow.ControlFromHandle(): Now handling situation
5232             where handle is invalid
5233           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
5234             instead of slower linear search
5235         * NativeWindow.cs: Don't remove the window from the hashtable until
5236           after the driver has destroyed it (since the driver might use
5237           Control.FromHandle to lookup the control object
5238         * Hwnd.cs: Added DestroyPending property to track if a window is 
5239           already destroyed as far as the driver is concerned and only hasn't
5240           yet notified the control
5241         * XplatUIX11.cs:
5242           - Activate(): Check if the window is still valid before using the 
5243             handle
5244           - Implemented DestroyChildWindow() method to mark child windows as
5245             destroyed when a window is destroyed. This prevents situations 
5246             where we might call an X method based on queued events for a
5247             window that already has been destroyed but we haven't yet pulled
5248             the destroy method from the queue.
5249           - Added a call to the new DestroyChildWindow() method to the drivers
5250             DestroyWindow code. Also now marking the destroyed window itself
5251             as pending
5252
5253 2005-12-20  Jackson Harper  <jackson@ximian.com>
5254
5255         * StatusBar.cs:
5256         * StatusBarPanel.cs: Don't calculate panel sizes on draw
5257         anymore. Just do them when needed, also track the rects of panels
5258         so that we can optimize refreshing more in the future.
5259
5260 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
5261
5262         * ColorDialog.cs: Fixed focus drawing in small color controls
5263
5264 2005-12-19  Jackson Harper  <jackson@ximian.com>
5265
5266         * InternalWindowManager.cs:
5267         * MdiWindowManager.cs: Cleanup some coordinate system changes so
5268         moving windows works properly.
5269
5270 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
5271
5272         * Control.cs: 
5273           - Removed call to InitLayout() from SetBoundsCore(); doc says
5274             it's only called when a control is added to a container
5275           - Split InitLayout logic, moved to separate UpdateDistances() method
5276             since we need to perform those calculations more often than just
5277             when adding the control to a container. (Needed to fix #77022)
5278           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
5279           - Reduced the OnBindingContextChanged events count, don't send them
5280             unless the control is created, we still aren't totally matching
5281             MS, but I can't quite figure out some of their rules
5282
5283 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5284
5285         * ThemeClearlooks.cs: Corrected distance between ProgressBar
5286           stripes
5287
5288 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5289
5290         * ThemeClearlooks.cs:
5291           - Updated ProgressBar drawing
5292           - Corrected drawing of ScrollBars and scroll buttons
5293           - Some temporary fixes for minor pixel artefacts
5294
5295 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
5296
5297         * Control.cs:
5298           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
5299             cause events to be sent in the same order as MS does.
5300           - Added ChangeParent() method to trigger various OnXXXChanged events
5301             that need to be fired when a parent changes (This is a reworking
5302             of the patch from r54254, with the X11 errors fixed)
5303           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
5304             since on MS we get OnLayoutChanged events when calling Clear()
5305           - Changed Enabled property to consider parent state as well, if a
5306             parent is not enabled, the control will not be either
5307           - Changed Parent property to simply call Controls.Add() since that
5308             now does all the work required, this way we avoid code duplication
5309           - Threw in a few OnBindingsContextChanged calls to try and match
5310             when MS sends them. We seem to send a few too many, though.
5311           - Added call to CreateControl when adding the control to a parent.
5312             We were never calling CreateControl. Still needs some work, in
5313             some places we treat HandleCreated and ControlCreated as equal, 
5314             which is wrong
5315           - Removed obsolete commented out code from UpdateZOrder()
5316
5317 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
5318
5319         * ThemeClearlooks.cs: Updated TrackBar drawing.
5320
5321 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
5322
5323         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
5324
5325 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
5326
5327         * FileDialog.cs: Add the Help button and the open readonly
5328           checkbox only if needed
5329
5330 2005-12-16  Jackson Harper  <jackson@ximian.com>
5331
5332         * Control.cs: Make sure we have an active menu before trying to
5333         process commands on it. Prevents menu-less forms from crashing
5334         when Alt is pressed.
5335         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
5336         Dieter Bremes.
5337         * RichTextBox.cs: Expand statement to help out gmcs and fix the
5338         2.0 build.
5339
5340 2005-12-16  Jackson Harper  <jackson@ximian.com>
5341
5342         * InternalWindowManager.cs: Don't translate tool windows screen
5343         coordinates. This fixes windows 'bouncing' around when being moved.
5344
5345 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
5346
5347         * TextBoxBase.cs:
5348           - MaxLength now treats 2^31-1 equal to unlimited length (this is
5349             not quite MS compatible, MS uses that number only for single line
5350             and 2^32-1 for multi-line, but I figure it won't hurt keeping
5351             the limit at 2GB)
5352           - Now enforcing the MaxLength limit when entering characters
5353           - Added argument to internal Paste() method to track if it's called
5354             from programatically or via keyboard, since keyboard driven pastes
5355             need to enforce max-length
5356           - Added logic to Paste to only paste as many chars as MaxLength 
5357             allows
5358         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
5359         * TextControl.cs:
5360           - Added Length property to return number of characters in document
5361           - Added private CharCount property which only tracks actual chars
5362             in the document (no linefeeds) and fires event when CharCount
5363             changes
5364           - Added tracking of character count to all methods that alter it
5365           - Added LengthChanged event to allow applications to subscribe
5366             to any changes to the document
5367
5368 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
5369
5370         * TextBox.cs: 
5371           - Removed local password_char field (moved to TextBoxBase)
5372           - Now setting the document's password var when password is
5373             set
5374         * TextBoxBase.cs:
5375           - Added password_char field (needed here so MultiLine can
5376             access it)
5377           - Added logic to MultiLine property setter to set the document's
5378             variable when password display is allowed
5379           - Removed debug code and made some debug code conditional
5380         * TextControl.cs:
5381           - Added RecalculatePasswordLine() method to handle special password
5382             char only lines
5383           - Added PasswordChar property, also added related tracking vars
5384           - Draw() method now uses local text var for grabbing text to draw,
5385             this var is set to line.text unless we're doing password display,
5386             then it is set to the pre-generated all-password-chars line
5387           - Added calling RecalculatePasswordLine() method for password lines
5388
5389 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
5390
5391         * Hwnd.cs: 
5392           - Added Reparented property to allow tracking of Window Manager
5393             reparenting actions (which affect X/Y calculations of toplevel 
5394             windows)
5395           - Made ToString() print window handles in hex
5396         * XplatUIX11.cs:
5397           - AddConfigureNotify(): Now uses reparented state off Hwnd to
5398             determine if X/Y needs offsetting
5399           - AddConfigureNotify(): Fixed offset calculations
5400           - Now adds ReparentNotify messages into the queue
5401           - Now processes ReparentNotify messages and causes a 
5402             WM_WINDOWPOSCHANGED message to be sent upstream if a window
5403             is reparented (as most likely it's X/Y coordinates are changed
5404             due to that)
5405
5406 2005-12-14  Jackson Harper  <jackson@ximian.com>
5407
5408         * XplatUIX11.cs: Tool windows still need to respek focus.
5409
5410 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
5411
5412         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
5413           have a working release
5414
5415 2005-12-13  Jackson Harper  <jackson@ximian.com>
5416
5417         * Form.cs: Update styles after setting the border style regardless
5418         of whether or not the window is using a window manager.
5419
5420 2005-12-13  Jackson Harper  <jackson@ximian.com>
5421
5422         * Form.cs: We now hook into an internal window manager instead of just an
5423         MDI subsystem, this is so we can have properly behaving tool windows.
5424         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
5425         * InternalWindowManager.cs: New internal class that acts as a
5426         window manager for tool windows and as a base for mdi windows.
5427         * MdiWindowManager.cs: New class that acts as a window manager for
5428         mdi windows.
5429
5430 2005-12-12  Jackson Harper  <jackson@ximian.com>
5431
5432         * Control.cs: Updates so we match behavoir for for implicit
5433         controls. Fixes explosions in MDI.
5434
5435 2005-12-12  Jackson Harper  <jackson@ximian.com>
5436
5437         * Control.cs: Implement Invalidate (Region).
5438
5439 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
5440
5441         * Control.cs: 
5442           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
5443             the same events as MS does. MS fires events for each property 
5444             except, for unknown reasons, Cursor, when the control is reparented. 
5445             I can't seem to totally match add/remove since MS also fires some 
5446             VisibleChanged events, which makes no sense. Consolidated the
5447             parenting code into a separate method so it can be called from
5448             both Add and Remove. set_Parent no longer needs any special logic
5449             as it calls the parent's add method which implicitly fires
5450             all events
5451           - Removed some obsolete code and debug output
5452           - Enabled state is inherited from parents, if this is enabled
5453
5454 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
5455
5456         * Form.cs: Removed commented out code
5457
5458 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
5459
5460         * Control.cs:
5461           - Added internal version of Invoke, with additional argument 
5462             indicating if we're calling it from a Dispose() handler. That
5463             way we can avoid BeginInvoke throwing an exception if we're
5464             calling for an already destroyed window.
5465           - Added a dispose argument to BeginInvokeInternal, and made the
5466             check if a valid window handle chain exists conditional on
5467             it not being a dispose call
5468           - Removed code in DestroyHandle to destroy our children. Since we
5469             now handle the WM_DESTROY message we will catch all our children
5470             being destroyed.
5471           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
5472         * Form.cs:
5473           - Added a field to track the application context of the form.
5474           - No need to set closing variable as response to WM_CLOSE, instead
5475             we destroy the window. We also call PostQuitMessage if the form
5476             has an application context (which makes it the main app form,
5477             which, when closed terminates the app)
5478         * XplatUI.cs:
5479           - Dropped Exit() method, it's naming was confusing
5480           - Added PostQuitMessage() which causes GetMessage to return false
5481             once the message queue is empty
5482         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
5483           PostQuitMessage()
5484         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
5485           no longer a valid XplatUI method, but left it in since it's used
5486           internally. Added empty PostQuitMessage() method.
5487         * MenuAPI.cs: Replaced call to Exit() with call to
5488           PostQuitMessage, even though this is probably no longer needed.
5489         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
5490         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
5491         * Application.cs:
5492           - Replaced call to XplatUI.Exit() with PostQuitMessage()
5493           - Removed old debug code that would call XplatUI for exception
5494             display, enabled standard exception handling (Still not enabled
5495             though, until NativeWindow's ExternalExceptionHandler define
5496             is removed
5497         * NativeWindow.cs:
5498           - Added internal method to allow control to update NativeWindow
5499             after a window has been destroyed
5500           - Added handling of already destroyed windows when calling i
5501             DestroyWindow
5502           - Added removal of handle from list on ReleaseHandle
5503         * XplatUIX11.cs:
5504           - Dropped GetMessageResult var and related code
5505           - Added PostQuitState to field to track if PostQuitMessage has been
5506             called
5507           - Dropped Exit() method
5508           - Added PostQuitMessage() method
5509           - GetMessage now will return false if PostQuitState is set and no
5510             more messages are in the queue.
5511           - Expose handler will no longer generate WM_PAINT messages if we are
5512             in PostQuitState since it's very likely any windows have already
5513             been destroyed, and since Hwnd won't get updated until we have
5514             processed the DestroyNotify we'd be causing X errors.
5515         
5516 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5517
5518         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
5519           Thanks to Mike for pointing out the err of my ways.
5520
5521 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5522
5523         * Control.cs(PreProcessMessage): Moved menu handling back, but
5524           after all other key handling, to match MS (who handles Menu in
5525           DefWndProc)
5526         * Menu.cs (WndProc): Removed my brainfart
5527
5528 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5529
5530         * Control.cs(PreProcessMessage): Removed special menu handling 
5531         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
5532
5533 2005-12-07  Mike Kestner  <mkestner@novell.com>
5534
5535         * Control.cs : special case SYSKEYUP so that we can adjust keynav
5536         state according in tracker.
5537         * Menu.cs : promote tracker field to base class and provide a tracker
5538         lookup capability.  Add/Remove shortcuts dynamically if the top menu
5539         has a tracker. Unparent items that are removed from the collection.
5540         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
5541         * Theme*.cs: add always_show_hotkeys field to support configurability
5542         of mnemonic display.  win32 doesn't show mnemonics until Alt is
5543         pressed.
5544
5545 2005-12-07  Jackson Harper  <jackson@ximian.com>
5546
5547         * MdiChildContext.cs: Use Control.ResetCursor.
5548         * Control.cs: ResetCursor needs to set the property so that the
5549         correct XplatUI call gets made.
5550
5551 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5552
5553         * Control.cs: More fixes to make our key events match MS. We
5554           were not setting the modifier state on KeyData, and we were
5555           not generating any events when Alt was pressed with a key
5556           since handling of WM_SYSxxx was missing for the OnKey methods.
5557
5558 2005-12-07  Jackson Harper  <jackson@ximian.com>
5559
5560         * MdiChildContext.cs: reenable the sizing code.
5561         - When the mouse leaves a window reset its cursor.
5562
5563 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5564
5565         * ThemeClearlooks.cs: Reflect latest Hwnd changes
5566
5567 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
5568
5569         * Hwnd.cs: Now using the theme 3d bordersize to calculate
5570           widths of Fixed3D borders
5571
5572 2005-12-07  Jackson Harper  <jackson@ximian.com>
5573
5574         * MdiClient.cs: Fix warnings. Earn Mike's love.
5575
5576 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
5577
5578         * ThemeClearlooks.cs:
5579           - Adjusted mouse over button color
5580           - Added first parts of CheckBox drawing
5581           - Added correct color for selected text background
5582           - Fixed ComboBox drawing
5583           - Added CPDrawBorder3D and CPDrawBorder
5584
5585 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5586
5587         * XplatUIX11.cs: Added call to XBell for AudibleAlert
5588
5589 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
5590
5591         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
5592           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
5593           alert users via sound. We could add an enum arg with different
5594           types of alerts in the future
5595
5596 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
5597
5598         * Control.cs: Fix behaviour problems pointed out by Mike
5599
5600 2005-12-05  Mike Kestner  <mkestner@novell.com>
5601
5602         * StatusBarPanel.cs: add Invalidate method and hook it into all the
5603         prop setters.  Calls parent.Refresh for now, but could be maybe be
5604         optimized with an internal method on StatusBar at some point.
5605         [Fixes #76513]
5606
5607 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
5608
5609         * RichTextBox.cs: Implemented get_SelectionColor
5610
5611 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
5612
5613         * ThemeClearlooks.cs:
5614           - Removed dead code
5615           - Draw black button border only if button is Form.AcceptButton
5616           - Draw correct button color for pressed RadioButton if the mouse 
5617             has entered the button
5618           - Updated ProgressBar drawing!
5619           - Updated CPDrawSizeGrip drawing
5620           - Updated StatusBarPanel drawing
5621
5622 2005-12-05  Mike Kestner  <mkestner@novell.com>
5623
5624         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
5625         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
5626
5627 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
5628
5629         * ThemeClearlooks.cs: Initial check-in, activate with
5630           export MONO_THEME=clearlooks
5631         * ThemeEngine.cs: Added ThemeClearlooks
5632
5633 2005-12-03  Mike Kestner  <mkestner@novell.com>
5634
5635         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
5636         [Fixes #76897]
5637
5638 2005-12-02  Jackson Harper  <jackson@ximian.com>
5639
5640         * Form.cs: If the child form has no menu the default main menu is
5641         used as the active menu.
5642
5643 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
5644
5645         * ListBox.cs: Check if any items exist before trying to resolve 
5646           coordinates into items
5647
5648 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5649
5650         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
5651           as the second color for the background hatch
5652
5653 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
5654
5655         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
5656         * RichTextBox.cs: FormatText position arguments are 1-based, now making
5657           sure that what we pass to FormatText is always 1-based. Fixes #76885
5658
5659 2005-11-29  Miguel de Icaza  <miguel@novell.com>
5660
5661         * NumericUpDown.cs (EndInit): When we are done initializing,
5662         reflect any updates on the UI.
5663
5664 2005-12-02  Jackson Harper  <jackson@ximian.com>
5665
5666         * ImplicitHScrollBar.cs:
5667         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
5668         their container controls.
5669         * TreeView.cs: Use the new implicit scrollbars.
5670
5671 2005-12-02  Jackson Harper  <jackson@ximian.com>
5672
5673         * TreeView.cs: Make top_node internal so the TreeNodeCollections
5674         can play with it.
5675         * TreeNodeCollection.cs: If we remove the topnode we need to
5676         update topnode to the next node in line.
5677         - When clearing nodes go through the same process as removing
5678         them, so they get depareneted and checked if they are top node.
5679
5680 2005-12-01  Jackson Harper  <jackson@ximian.com>
5681
5682         * TreeView.cs: When imagelists are used the image area is
5683         selectable as well as the text.
5684         - If there are no selected nodes select the first one.
5685         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
5686         so don't do it more then we need to.
5687
5688 2005-12-01  Jackson Harper  <jackson@ximian.com>
5689
5690         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
5691         that arrows can be scaled.
5692
5693 2005-12-01  Jackson Harper  <jackson@ximian.com>
5694
5695         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
5696         fail. Patch by Dieter Bremes
5697
5698 2005-11-30  Jackson Harper  <jackson@ximian.com>
5699
5700         * Form.cs: Property is 2.0 only
5701         * PrintDialog.cs: Signature fix.
5702
5703 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5704
5705         * TextControl.cs: 
5706           - No longer artificially moves text 2 pixels down (now that we have
5707             borders this is no longer needed)
5708           - Added calcs for left, hanging and right indent
5709
5710 2005-11-23  Mike Kestner  <mkestner@novell.com>
5711
5712         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
5713
5714 2005-11-30  Jackson Harper  <jackson@ximian.com>
5715
5716         * MdiChildContext.cs: Set the cloned menus forms, as these don't
5717         get cloned as part of CloneMenu ().
5718         * Menu.cs: Make sure the parent of the items get set correctly
5719         when they are added.  And the owners are notified of the changes.
5720         * Form.cs: Create an ActiveMenu property, so that when MDI is used
5721         we can change the menu being displayed/handled by the form without
5722         changing the menu assosciated with the form.
5723         - Don't let Mdi children draw/handle menus.
5724         
5725 2005-11-30  Jackson Harper  <jackson@ximian.com>
5726
5727         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
5728         a MenuChanged event. Just to make the API a little more
5729         consistent.
5730         * MainMenu.cs:
5731         * MenuItem.cs: Use the new OnMenuChanged
5732         * MdiChildContext.cs: Handle menu merging.
5733         * Form.cs: Implement MergedMenu.
5734         
5735 2005-11-30  Jackson Harper  <jackson@ximian.com>
5736
5737         * Menu.cs: We were misusing Add. Add goes behind the specified
5738         index according to the docs, and does not replace the specified
5739         index. So I added an Insert method.
5740
5741 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
5742
5743         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
5744           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
5745           is for Jackson
5746         * RichTextBox.cs: Added calls to base for DnD events
5747
5748 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
5749
5750         * TextControl.cs:
5751           - Fixed drag-selection related crash; style fixes
5752           - Implemented undo class
5753             o Implemented method to capture document state for specified
5754               range in document tree
5755             o Implemented method to restore captured document state
5756             o Implemented cursor tracking
5757             o Implemented basic undo stack
5758           - Added undo cursor tracking to methods altering cursor location
5759           - Added undo tracking to selection deletion (still missing
5760             other text-altering hookups)
5761         * RichTextBox.cs:
5762           - Added SelectionLength property
5763           - Implemented CanPaste()
5764           - Implemented Paste()
5765           - Added missing protected methods
5766           - Fixed RTF->Document conversion; now uses font index 0 and color 
5767             index 0 as the default font for the parsed text
5768           - Fixed RTF<->Document font size translation
5769           - Fixed RTF generation, now properly handles cross-tag boundaries
5770             for single line selection
5771           - No longer always appends blank line to generated RTF
5772           - Removed TODOs
5773           - Added missing attributes
5774           - Hooked up undo-related methods
5775         * TextBoxBase.cs:
5776           - Implemented Copy()
5777           - Implemented Paste()
5778           - Implemented Cut()
5779           - Fixed caret mis-behaviour on backspace across line-boundaries
5780
5781 2005-11-29  Jackson Harper  <jackson@ximian.com>
5782
5783         * MdiClient.cs: Add a method for activating mdi children. Very
5784         basic right now. I imagine someday it might need more girth.
5785         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
5786         children windows names are added to the menu item.
5787         * ThemeWin32Classic.cs: Draw the arrow if the item is an
5788         mdilist. This happens regardless of whether or not there are any
5789         mdi windows to see in the list, and according to my tests happens
5790         before the items are even added. Also happens if there isn't even
5791         an mdi client to get windows from.
5792
5793 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
5794
5795         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
5796         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
5797
5798 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
5799
5800         * DataGridTableStyle.cs:
5801           - Create always the styles for the missing columns even if they are
5802             provided by the user (not default table style)
5803         * DataGrid.cs:
5804           - Fixes bug 76770
5805           - Fixes SetDataBinding (always re-attach source)
5806           - Fixes SetNewDataSource (only clear styles if they are not for 
5807             this source)
5808          -  Expands OnTableStylesCollectionChanged to handle style refresh 
5809             and remove properly
5810
5811 2005-11-29  Jackson Harper  <jackson@ximian.com>
5812
5813         * FileDialog.cs: Implement missing bits, remove some dead
5814         code.
5815         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
5816         creation of the panel so that the options set on the dialog are
5817         seen when the panel is created.
5818         * TreeView.cs: raise a click when items are clicked.
5819         
5820 2005-11-29  Jackson Harper  <jackson@ximian.com>
5821
5822         * MdiClient.cs: Pass some signature methods through to base.
5823
5824 2005-11-28  Jackson Harper  <jackson@ximian.com>
5825
5826         * ListView.cs: Raise the click event when items are clicked.
5827
5828 2005-11-28  Jackson Harper  <jackson@ximian.com>
5829
5830         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
5831         a nullref.
5832
5833 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
5834
5835         * ThemeNice.cs: - Removed 1 pixel bitmaps
5836           - Use SmoothingMode.AntiAlias where it makes sense
5837             (ScrollButton arrow for example)
5838           - Enhanced Button focus drawing
5839           - Fixed ComboBox drawing (no artefacts anymore, focus
5840             rectangle is back again, reduced size of ComboButton, etc.)
5841           - Fixed RadioButton focus drawing for Appearence.Button
5842           - Slight ScrollButton redesign
5843           - Some LinearGradientBrush size fixes
5844           - GroupBoxes have now rounded edges
5845           - Fixed StatusBar drawing
5846
5847 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
5848
5849         * ThemeNice.cs: - Remove dead code
5850           - use correct background colors for menus, etc.
5851           - Fake pixel drawing with 1 pixel bitmaps
5852
5853 2005-11-24  Jackson Harper  <jackson@ximian.com>
5854
5855         * MdiClient.cs: Size the scrollbars when resizing the window.
5856         - Resize the maximized windows when the client is resized
5857         * Form.cs: Make the child context available
5858         
5859 2005-11-23  Jackson Harper  <jackson@ximian.com>
5860
5861         * MdiChildContext.cs: Don't size windows if they are maximized.
5862
5863 2005-11-23  Mike Kestner  <mkestner@novell.com>
5864
5865         * ContextMenu.cs: use MenuTracker.
5866         * Control.cs: remove menu handle usage.
5867         * Form.cs: remove menu handle usage.
5868         * Hwnd.cs: remove menu handle usage.
5869         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
5870         motion and clicks to the new Tracker handlers.
5871         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
5872         and handle usage.
5873         * MenuAPI.cs: refactored to combine popup and menubar event handling.
5874         Killed the MENU and MENUITEM data types and associated collections
5875         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
5876         MenuTracker class that exposes the leftovers from the old MenuAPI
5877         static methods. Restructured Capture handling so that only one grab is
5878         done for the entire menu hierarchy instead of handing off grabs to
5879         submenus. Tracker now has an invisible control to Capture when active.
5880         * MenuItem.cs: add sizing accessors, kill Create
5881         and handle usage.
5882         * Theme.cs: remove menu handle and MENU(ITEM) usage.
5883         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
5884         MENU(ITEM). remove menu handle usage, use Menu directly.
5885         * XplatUIDriver.cs: remove menu handle usage.
5886         * XplatUIOSX.cs: remove menu handle usage.
5887         * XplatUIWin32.cs: remove menu handle usage.
5888         * XplatUIX11.cs: remove menu handle usage.
5889
5890 2005-11-22  Jackson Harper  <jackson@ximian.com>
5891
5892         * Hwnd.cs: Don't compute the menu size for
5893         DefaultClientRectangle.
5894         - Reenable menu sizes being computed for GetClienRectangle.
5895         * Form.cs: Remove comment of trechery
5896         
5897 2005-11-22  Jackson Harper  <jackson@ximian.com>
5898
5899         * Hwnd.cs: The adjustments for the menu bar are made when it is
5900         attached to the form.
5901
5902 2005-11-19  Jackson Harper  <jackson@ximian.com>
5903
5904         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
5905         (just like on windows).
5906
5907 2005-11-19  Jackson Harper  <jackson@ximian.com>
5908
5909         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
5910         use real buttons anymore because they are in non client area. The
5911         one TODO here is that I need to somehow invalidate a section of
5912         the non client area.
5913
5914 2005-11-18  Jackson Harper  <jackson@ximian.com>
5915
5916         * Control.cs: Put the enum check back in now that MDI doesnt have
5917         to use this to set border styles.
5918         * Form.cs: Only set mdi child windows borders if the handle has
5919         been created.
5920         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
5921         this directly on to the driver.
5922         - Get the move start position before adjusting for the titlebar
5923         height, this fixes the windows "skipping" when they are first
5924         moved.
5925
5926 2005-11-18  Jackson Harper  <jackson@ximian.com>
5927
5928         * XplatUIX11.cs: Just compute the mdi borders separately as they
5929         don't totally match up with normal form borders.
5930
5931 2005-11-18  Jackson Harper  <jackson@ximian.com>
5932
5933         * Control.cs: Set WS_ styles for borders, so that the driver does
5934         not have to retrieve the control instance to figure out what kind
5935         of borders it should have.
5936         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
5937         driver can know its an mdi child easily.
5938         * XplatUIX11.cs: Get the border styles and whether the window is
5939         MDI from the Styles and ExStyles params instead of having to get a
5940         control. This prevents a chicken and egg problem.       
5941
5942 2005-11-18  Jackson Harper  <jackson@ximian.com>
5943
5944         * MdiClient.cs: Fix typo so scrollbars show up correctly.
5945
5946 2005-11-18  Jackson Harper  <jackson@ximian.com>
5947
5948         * MdiClient.cs: Calculate when to add and remove scrollbars
5949         correctly.
5950         * MdiChildContext.cs: Adjust the y position to take the titlebar
5951         into account.
5952         - No height for FormBorderStyle.None
5953
5954 2005-11-18  Jackson Harper  <jackson@ximian.com>
5955
5956         * Control.cs: Allow non enum values to be used for
5957         InternalBorderStyle.  MDI does this to set a special border style.
5958         - New utility methods for converting points to/from client coords
5959         - Add the newly created control to the Controls collection before
5960         updating its style. This way UpdateStyle can walk the control
5961         heirarchy to find the control if needed.
5962         so I don't need to create a new Point object all the time.
5963         * Form.cs: Let MDI windows handle their border styles.
5964         - Set styles on MDI windows so the correct title style is derived.
5965         * MdiChildContext.cs: Move all the painting and window handling
5966         into the non client area.
5967         - Use correct sizing and put correct buttons on frames based on
5968         the FormBorderStyle.
5969         - Notify the mdi client about scrolling
5970         - Need to handle the buttons ourselves now, because they are all
5971         in non client areas and we can't add controls there.
5972         * MdiClient.cs: Halfway to scrolling, this implementation is
5973         somewhat broken though, we need to check to make sure other
5974         windows aren't causing scrolling before removing the bars. Also
5975         the bars need to be drawn on top, maybe I can switch implicit
5976         controls to be on top.
5977         * Hwnd.cs: caption_height and tool_caption_height are now
5978         properties of an hwnd, this way they can be set by the driver
5979         based on the type of window they are.  In X11 the window manager
5980         handles the decorations so caption_height is zero unless its an
5981         MDI window.
5982         - Add 3 pixel borders for MDI windows (0xFFFF).
5983         - Get rid of some code duplication, have DefaultClientRectanle
5984         just call GetClientRectangle.
5985         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
5986         Hwnd now.
5987         - Set border styles differently for mdi windows.
5988         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
5989         Hwnd now.
5990         
5991 2005-11-15  Mike Kestner  <mkestner@novell.com>
5992
5993         * Menu.cs: when adding an item to the collection, if item is already 
5994         parented, remove it from the parent.
5995
5996 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
5997
5998         * X11DesktopColors.cs: Added KDE support
5999
6000 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
6001
6002         * XplatUIWin32.cs: 
6003           - Clipboard methods now can translate Rtf format
6004           - No longer removes clipboard contents whenever a new format is added
6005             to allow placing multiple formats on the clipboard
6006         * Clipboard.cs: Clipboard now supports getting a IDataObject and
6007           will place all formats contained in it onto the clipboard. Also
6008           now cleans the clipboard before placing a new object onto it
6009         * RichTextBox.cs:
6010           - Implemented set_Rtf
6011           - Implemented set_SelectedRtf
6012           - Created InsertRTFFromStream() method to allow single code base
6013             for all properties and methods that insert RTF into document
6014           - Removed debug output
6015         * TextControl.cs:
6016           - Fixed Delete(int) to fix up line numbers
6017           - Fixed ReplaceSelection to combine start and end line
6018           - Fixed serious DeleteChars bug that would leave the document tree
6019             broken
6020           - Improved DumpTree with several logic checks to detect broken
6021             document trees
6022           - Removed debug lines
6023           - Fixed Caret.WordForward/WordBack moving code, now always also 
6024             updates caret.tag (fixes crash when word-selecting across tag
6025             boundaries via keyboard)
6026           - Added Insert() method for inserting multiline text into documents
6027           - Fixed DeleteChars() calculation errors that would cause a broken
6028             tag chain with multiple tag lines
6029           - DeleteChars() no longer crashes on multi-tag lines if not all tags
6030           - Split() no longer moves caret if split is at caret location
6031           - ReplaceSelection() now updates the cursor and re-displays it
6032           - ReplaceSelection() now uses new Insert() method to avoid code
6033             duplication
6034           - FormatText() can now handle formatting partial lines
6035         * TextBoxBase.cs:
6036           - Append now uses new TextControl.Insert() method (this avoids 
6037             duplicate code)
6038           - Implemented Ctrl-X (Cut) (
6039           - Implemented Ctrl-C (Copy)
6040           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
6041             regeneration when pasting text; roundtripping Copy&Paste within
6042             edit control still fails due to some calculation bugs in GenerateRTF)
6043           - The Delete key will now remove the current selection if it is visible
6044         * TextBox.cs: Removed debug lines
6045         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
6046           driver to be initialized and can't therefore be done via a static ctor)
6047
6048 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
6049
6050         * TextControl.cs: Added backend code for finding char arrays and strings
6051         * TextBoxBase.cs:
6052           - Added mouse wheel scroll support
6053           - Added support for VScroll and HScroll events
6054         * RichTextBox.cs:
6055           - Implemented all seven Find() variants
6056           - Implemented GetCharFromPosition()
6057           - Implemented GetCharIndexFromPosition()
6058           - Implemented GetLineFromIndex()
6059           - Implemented GetPositionFromCharIndex();
6060           - Implemented SaveFile for PlainText and UnicodeText
6061           - Fixed set_Font, now setting a new font applies that font to
6062             the whole document
6063           - Implemented generic Document to RTF converter
6064           - Implemented SaveFile for RichText format (still missing unicode
6065             conversion for non-ansi chars)
6066           - Implemented get_Rtf
6067           - Implemented get_SelectedRtf
6068
6069 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
6070
6071         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
6072           to allow any captures to be released before triggering OnClick. This
6073           way a click handler may capture the mouse without interference.
6074         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
6075           This way we send them even though X may not allow a grab (if the window
6076           isn't visible, for example)
6077
6078 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
6079
6080         * DataGridViewRowEventArgs.cs: DataGridView implementation
6081         * DataGridViewElement.cs: DataGridView implementation
6082         * DataGridViewComboBoxCell.cs: DataGridView implementation
6083         * DataGridViewDataErrorContexts.cs: DataGridView implementation
6084         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
6085         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
6086         * ImageLayout.cs: DataGridView implementation
6087         * DataGridViewComboBoxColumn.cs: DataGridView implementation
6088         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
6089         * DataGridViewSelectionMode.cs: DataGridView implementation
6090         * IDataGridViewEditingControl.cs: DataGridView implementation
6091         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
6092         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
6093         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
6094         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
6095         * DataGridViewColumnSortMode.cs: DataGridView implementation
6096         * DataGridView.cs: DataGridView implementation
6097         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
6098         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
6099         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
6100         * Padding.cs: DataGridView implementation
6101         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
6102         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
6103         * DataGridViewRowEventHandler.cs: DataGridView implementation
6104         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
6105         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
6106         * DataGridViewButtonCell.cs: DataGridView implementation
6107         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
6108         * DataGridViewEditMode.cs: DataGridView implementation
6109         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
6110         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
6111         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
6112         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
6113         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
6114         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
6115         * DataGridViewCellEventHandler.cs: DataGridView implementation
6116         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
6117         * DataGridViewCellStyleConverter.cs: DataGridView implementation
6118         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
6119         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
6120         * DataGridViewColumnEventArgs.cs: DataGridView implementation
6121         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
6122         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
6123         * QuestionEventArgs.cs: DataGridView implementation
6124         * IDataGridViewEditingCell.cs: DataGridView implementation
6125         * DataGridViewTriState.cs: DataGridView implementation
6126         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
6127         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
6128         * DataGridViewColumnCollection.cs: DataGridView implementation
6129         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
6130         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
6131         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
6132         * DataGridViewColumn.cs: DataGridView implementation
6133         * DataGridViewCellBorderStyle.cs: DataGridView implementation
6134         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
6135         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
6136         * DataGridViewRow.cs: DataGridView implementation
6137         * DataGridViewImageCellLayout.cs: DataGridView implementation
6138         * DataGridViewImageCell.cs: DataGridView implementation
6139         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
6140         * DataGridViewCheckBoxCell.cs: DataGridView implementation
6141         * DataGridViewHeaderCell.cs: DataGridView implementation
6142         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
6143         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
6144         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
6145         * DataGridViewTextBoxColumn.cs: DataGridView implementation
6146         * QuestionEventHandler.cs: DataGridView implementation
6147         * DataGridViewCellStyleScopes.cs: DataGridView implementation
6148         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
6149         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
6150         * DataGridViewCell.cs: DataGridView implementation
6151         * DataGridViewCellEventArgs.cs: DataGridView implementation
6152         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
6153         * DataGridViewCellStyle.cs: DataGridView implementation
6154         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
6155         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
6156         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
6157         * TextFormatFlags.cs: DataGridView implementation
6158         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
6159         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
6160         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
6161         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
6162         * DataGridViewButtonColumn.cs: DataGridView implementation
6163         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
6164         * HandledMouseEventArgs.cs: DataGridView implementation
6165         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
6166         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
6167         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
6168         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
6169         * DataGridViewRowCollection.cs: DataGridView implementation
6170         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
6171         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
6172         * DataGridViewHitTestType.cs: DataGridView implementation
6173         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
6174         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
6175         * DataGridViewColumnEventHandler.cs: DataGridView implementation
6176         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
6177         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
6178         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
6179         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
6180         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
6181         * DataGridViewContentAlignment.cs: DataGridView implementation
6182         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
6183         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
6184         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
6185         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
6186         * DataGridViewPaintParts.cs: DataGridView implementation
6187         * DataGridViewCellCollection.cs: DataGridView implementation
6188         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
6189         * DataGridViewImageColumn.cs: DataGridView implementation
6190         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
6191         * DataGridViewElementStates.cs: DataGridView implementation
6192         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
6193         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
6194         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
6195         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
6196         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
6197         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
6198         * DataGridViewRowHeaderCell.cs: DataGridView implementation
6199         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
6200         * DataGridViewTextBoxCell.cs: DataGridView implementation
6201         * DataGridViewBand.cs: DataGridView implementation
6202         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
6203         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
6204         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
6205         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
6206         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
6207         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
6208         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
6209         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
6210         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
6211         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
6212         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
6213
6214 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
6215
6216         * ThemeWin32Classic.cs: 
6217           - Draw the outside focus rectangle around buttons
6218           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
6219             doesn't use end caps for every dash of a line anymore. This
6220             workaround ignores the forecolor.
6221
6222 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
6223
6224         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
6225           endian safe.
6226
6227 2005-11-07  Jackson Harper  <jackson@ximian.com>
6228
6229         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
6230
6231 2005-11-07  Jackson Harper  <jackson@ximian.com>
6232
6233         * ScrollableControl.cs: Calculate the maximum and change vars
6234         (more) correctly so that scrollbars appear as a sensible size.
6235
6236 2005-11-04  Jackson Harper  <jackson@ximian.com>
6237
6238         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
6239         collection.
6240         * TreeView.cs: When the tree is sorted null out the top_node so
6241         that it is recalculated.
6242         - Use dotted lines instead of dashed lines to match MS better.
6243
6244 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
6245
6246         * ListView.cs: 
6247           - Implements key search for items. Useful when browsing files with FileDialog
6248           - When changing view mode or when clear the items reset scrollbar positions
6249
6250 2005-11-04  Jackson Harper  <jackson@ximian.com>
6251
6252         * CurrencyManager.cs: Implement the MetaDataChanged event, the
6253         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
6254         as to what the method may do as there is no real way of creating a
6255         derived CurrencyManager and calling the method. 
6256
6257 2005-11-03  Jackson Harper  <jackson@ximian.com>
6258
6259         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
6260         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
6261         method which seems to just be used internally to refresh the tabs.
6262
6263 2005-11-03  Jackson Harper  <jackson@ximian.com>
6264
6265         * TabControl.cs: Implement the remove method. Fix some broken
6266         comments.
6267
6268 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6269
6270         * DateTimePicker.cs:
6271           - Added missing DateTimePickerAccessibleObject class
6272           - Added missing events
6273           - Added OnFontChanged method
6274         * Form.cs: Added missing attributes
6275         * TreeView.cs: Added missing attributes
6276
6277 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
6278
6279         * GridItemCollection.cs: Fix signatures
6280
6281 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6282
6283         * XplatUI.cs: Updated build rev/date
6284         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
6285           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
6286         * Application.cs: Trigger context-specific ExitThread events
6287
6288 2005-11-03  Jackson Harper  <jackson@ximian.com>
6289
6290         * Menu.cs:
6291         * MainMenu.cs:
6292         * GridTableStylesCollection.cs:
6293         * Timer.cs:
6294         * TabPage.cs:
6295         * HelpProvider.cs:
6296         * StatusBar.cs:
6297         * MonthCalendar.cs: Signature fixes
6298
6299 2005-11-03  Jackson Harper  <jackson@ximian.com>
6300
6301         * TreeNodeCollection.cs: Remove should not be virtual.
6302         * TreeView.cs: Implement the last of the missing methods.
6303
6304 2005-11-03  Jackson Harper  <jackson@ximian.com>
6305
6306         * TreeNodeConverter.cs: Implement to get off my class-status back.
6307
6308 2005-11-03  Jackson Harper  <jackson@ximian.com>
6309
6310         * TreeView.cs: Hookup the bits for drag and drop.
6311         * TreeNode.cs: Don't cache the tree_view or index anymore, now
6312         that nodes can be moved from tree to tree easily this just causes
6313         all sorts of problems.
6314         * TreeNodeCollection: Don't need to give treenodes an index and
6315         treeview anymore when they are added, these are computed on the
6316         fly. Also make sure to remove a node before its added.
6317
6318 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
6319
6320         * TextControl.cs:
6321           - Added CaretSelection enum
6322           - Added comparison methods to Marker struct, makes selection code
6323             more readable
6324           - Added SelectionStart and SelectionEnd as 'moveable' location for
6325             the CaretDirection enum and handler
6326           - Added selection_prev variable to track optimized invalidation for
6327             word and line selection
6328           - Added SelectionVisible property (returns true if there is a valid 
6329             selection)
6330           - Switched CaretHasFocus to only display the caret if there is no
6331             visible selection
6332           - Avoiding StringBuilder.ToString to retrieve a single char, instead
6333             using the direct character index; should be much faster
6334           - Added various conditional debug statements
6335           - Fixed invalidation calculation for selection ranges
6336           - Added ExpandSelection() method to support word and line selection
6337           - Switched SetSelectionToCaret to use new Marker compare overloads
6338           - Added central IsWordSeparator() method to determine word 
6339             separators/whitespace and FindWordSeparator() to streamline common
6340             usage of IsWordSeparator()
6341         * TextBoxBase.cs:
6342           - Removed unneeded grabbed variable, it was just mirroring
6343             Control.Capture
6344           - No longer firing OnTextChanged event when Text setter is called,
6345             since the base will fire the event for us
6346           - Added handling of Ctrl-Up/Down selection
6347           - Added handling of Shift-Cursorkey selection
6348           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
6349             words
6350           - Added handling of Shift and Ctrl-Shift-Home/End selection
6351           - Removed some debug output
6352           - Added handling for single/double/tripple-click to place caret/
6353             select word/select line respectively (Fixes bug #76031)
6354           - Added support for drag expansion of word/line selection
6355         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
6356           current selection
6357
6358 2005-11-02  Jackson Harper  <jackson@ximian.com>
6359
6360         * X11Dnd.cs: If the drag is going to and from a MWF window just
6361         copy the data instead of sending it out through the X Selection
6362         mechanism.
6363
6364 2005-11-02  Jackson Harper  <jackson@ximian.com>
6365
6366         * X11Dnd.cs:
6367         * XplatUIX11.cs: When in a drag we don't want motion notify
6368         messages to get passed on to the other controls. This prevents
6369         mouse move messages from showing up in the drag source.
6370
6371 2005-11-02  Jackson Harper  <jackson@ximian.com>
6372
6373         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
6374         the correct button is release to end a drag.
6375         * XplatUIX11.cs: Make the button state internal so the drag system
6376         can access it.  Dragging needs to know about all button releases,
6377         not just left button.
6378
6379 2005-11-02  Miguel de Icaza  <miguel@novell.com>
6380
6381         * Form.cs (Icon): If the icon is null, reset the icon to the
6382         default value. 
6383
6384         * Cursor.cs: When writing the AND-mask bitmap do not include the
6385         number of colors, but hardcode those to two (black and white),
6386         fixes the loading of color cursors (Paint Dot Net).
6387
6388         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
6389         turn off autoscaling.
6390
6391         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
6392
6393 2005-11-02  Jackson Harper  <jackson@ximian.com>
6394
6395         * X11Dnd.cs: Make sure to send a status message if the pointer
6396         enters a control that can not accept a drop, otherwise the cursor
6397         isn't updated correctly. Also tried to compress the lines of code
6398         a bit.
6399
6400 2005-11-02  Jackson Harper  <jackson@ximian.com>
6401
6402         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
6403         set actions correctly.  This isn't perfect as XDND and win32 have
6404         some differences on how you allow actions. I'll clear this up by
6405         adding a path for drag from MWF to MWF windows.
6406         * XplatUIX11.cs: Hook into the dnd system.
6407
6408 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
6409
6410         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
6411         previously shown but they are no longer need it. Very obvious when 
6412         browsing files with FileDialog.
6413
6414 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
6415
6416         * Control.cs: We always need to call OnPaintBackground. We pretty much
6417           ignore AllPaintingInWmPaint and always do the painting there, whether 
6418           it's set or not, since we always ignore the WM_ERASEBKGND message 
6419           (which we don't generate on X11). This fixes #76616.
6420         * Panel.cs: Removed unneeded background painting. This happens properly
6421           in Control.cs already
6422
6423 2005-10-31  Mike Kestner  <mkestner@novell.com>
6424
6425         * Menu.cs: Add items to collection before setting their index.
6426         * MenuItem.cs : add range checking with ArgumentException like MS.
6427         [Fixes #76510]
6428
6429 2005-10-31  Jackson Harper  <jackson@ximian.com>
6430
6431         * ListBox.cs: Invalidate if the area is visible at all not just
6432         contained in the visible rect. Fixes unselection of semi visible
6433         items.
6434
6435 2005-10-31  Jackson Harper  <jackson@ximian.com>
6436
6437         * Control.cs: Consistently name the dnd methods. Make them
6438         internal so we can override them to match some MS behavoir
6439         internally.
6440         * Win32DnD.cs: Use the new consistent names.
6441
6442 2005-10-31  Jackson Harper  <jackson@ximian.com>
6443
6444         * TreeView.cs: Don't draw the selected node when we lose focus.
6445
6446 2005-10-31  Jackson Harper  <jackson@ximian.com>
6447
6448         * X11Dnd.cs: We still need to reset the state even though a full
6449         reset isn't being done, otherwise status's still get sent all over
6450         the place.
6451
6452 2005-10-31  Jackson Harper  <jackson@ximian.com>
6453
6454         * Control.cs: Make the dnd_aware flag internal so the dnd
6455         subsystem can check it. Catch exceptions thrown in dnd handlers to
6456         match MS behavoir.
6457         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
6458         * X11Dnd.cs: Handle null data in the converters. Set the XDND
6459         version when sending a XdndEnter. Use the control/hwnd dnd_aware
6460         flags to reduce the number of dnd enters/status's sent.
6461
6462 2005-10-31  Jackson Harper  <jackson@ximian.com>
6463
6464         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
6465
6466 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
6467
6468         * PictureBox.cs: Fixes 76512
6469
6470 2005-10-28  Jackson Harper  <jackson@ximian.com>
6471
6472         * X11Dnd.cs: Early implementation to support winforms being a drag
6473         source for data on X11. Also restructured the converters so they
6474         can go both ways now.
6475         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
6476         
6477 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
6478
6479         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
6480           clipboard requests
6481
6482 2005-10-27  Jackson Harper  <jackson@ximian.com>
6483
6484         * TreeNode.cs: Implement serialization so my DnD examples will work.
6485
6486 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
6487
6488         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
6489           TreeView.cs: Don't dispose objects that are not owned.
6490           
6491 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
6492
6493         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
6494           should retrieve the current cursor and report that, but XplatUI
6495           doesn't (yet) have an interface for that (and I'm not sure I even
6496           can, on X11)
6497         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
6498           until any message loop processing is done (and the WM_SETCURSOR
6499           replaces the cursor to the proper one)
6500         * XplatUIX11.cs: 
6501           - Fixed override behaviour, we can't set the cursor globally on X11, 
6502             just for our windows.
6503           - Invalidating the System.Drawing X11 display handle when we are
6504             shutting down
6505         * Control.cs: Fix to make csc happy
6506
6507 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
6508
6509         * TextBoxBase.cs: 
6510           - get_Text: Add last line (without trailing newline) to returned
6511             value (Fixes 76212)
6512           - get_TextLength: Count last line in returned length
6513           - ToString: Call Text property instead of duplicating code
6514
6515 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
6516
6517         * ImageList.cs: Dispose ImageAttributes objects.
6518
6519 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6520
6521         * ImageList.cs: Use attribute constructors with less arguments where
6522           possible.
6523
6524 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
6525
6526         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
6527           Use typeof instead of strings when assembly is referenced. Added
6528           some more comments.
6529
6530 2005-10-21  Jackson Harper  <jackson@ximian.com>
6531
6532         * ListView.cs: Raise a double click event. Also tried to somewhat
6533         fix when the selectedindexchanged event is raised. Its still
6534         broken though.
6535
6536 2005-10-21  Jackson Harper  <jackson@ximian.com>
6537
6538         * TreeView.cs: New method to invalidate the plus minus area of a
6539         node without invalidating the whole node (maybe this can be used
6540         in some more places).
6541         * TreeNodeCollection.cs: When adding to an empty node we need to
6542         invalidate its plus minus area so the little block shows up.
6543         
6544 2005-10-21  Jackson Harper  <jackson@ximian.com>
6545
6546         * TreeView.cs: Make sure that when we invalidate a node the bounds
6547         are big enough to cover the selected box and the focus
6548         rectangle. Use a different colour for the lines connecting nodes
6549         so they show up with all themes.
6550
6551 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6552
6553         * NativeWindow.cs: Don't call anything that could call into the driver,
6554           we might be on a different thread.
6555
6556 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
6557
6558         * Control.cs(Dispose): Since Dispose might run on a different thread,
6559           make sure that we call methods that could call into the driver via
6560           invoke, to avoid thread issues
6561
6562 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
6563
6564         * XplatUI.cs: Removed finalizer
6565         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
6566           not allowing to be called on the finalizer thread.
6567
6568 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
6569
6570         * ImageList.cs:
6571           - Reverted r51889 and r51891.
6572           - Added ImageListItem class that stores unmodified image items and image
6573             properties required to create list images until handle is created.
6574           - Added AddItem and moved image creation logic to AddItemInternal.
6575           - Added CreateHandle method that creates images based on unmodified items.
6576           - Added DestroyHandle that changes state to store unmodified items.
6577           - Add and AddStrip methods no more create handle.
6578           - ReduceColorDepth has no return value.
6579           - Dispose destroys handle.
6580           - Modified other methods to reflect the above changes.
6581           - Implemented key support.
6582           - Added profile 2.0 members and attributes.
6583           - Added private Reset and ShouldSerialize methods that provide the same
6584             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
6585             them as they are private.
6586           - Added some more comments about implementation details.
6587
6588 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6589
6590         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
6591
6592 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6593
6594         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
6595
6596 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
6597
6598         * DataGridDrawingLogic.cs: Fixes column hit calcultation
6599         * DataGridColumnStyle.cs: Remove debug message
6600
6601 2005-10-20  Jackson Harper  <jackson@ximian.com>
6602
6603         * TreeView.cs: We can always get input keys regardless of whether
6604         or not editing is enabled. They are used for navigation.
6605
6606 2005-10-20  Jackson Harper  <jackson@ximian.com>
6607
6608         * TreeNode.cs: Use the viewport rect for determining if a node
6609         needs to be moved for visibility. Don't use Begin/End edit. This
6610         calls a full refresh when its done.
6611         * TreeView.cs: New SetBottom works correctly.  Make the viewport
6612         rect property internal so the treenodes can see it. When clicking
6613         on a node we need to ensure that its visible because it might just
6614         be partly visible when clicked.
6615
6616 2005-10-20  Jackson Harper  <jackson@ximian.com>
6617
6618         * TreeNodeCollection.cs: Remove debug code.
6619
6620 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6621
6622         * Datagrid.cs: Implements column sorting in Datagrid
6623         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
6624
6625 2005-10-20  Jackson Harper  <jackson@ximian.com>
6626
6627         * TreeNodeCollection.cs: Remove items properly. Update the correct
6628         area after removing them.
6629
6630 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
6631
6632         * Datagrid.cs: Should not call base.OnPaintBackground
6633
6634 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6635
6636         * XplatUIX11.cs (GetMessage):
6637           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
6638             window instead of client window
6639           - Now properly calculates NC_xBUTTONUP message coordinates
6640           - ScreenToMenu now properly calculates it's coordinates of whole 
6641             window, since menus are in the whole window, not in the client
6642             window
6643           - Added WholeToScreen coordinate translation method
6644
6645 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
6646
6647         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
6648           want to return a message, loop back to the beginning of the function
6649           and grab the next real message to process instead.
6650
6651 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
6652
6653         * Splitter.cs: Properly set limits if no filler control is used
6654
6655 2005-10-19  Jackson Harper  <jackson@ximian.com>
6656
6657         * ColorDialog.cs: Don't show the help button if it is not enabled
6658         instead of disabling it (this is what MS does). Don't create the
6659         panel until the dialog is run, otherwise the vars (such as
6660         ShowHelp) are not set yet.
6661
6662 2005-10-19  Jackson Harper  <jackson@ximian.com>
6663
6664         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
6665         are reduced when adding nodes.
6666         * TreeNode.cs:
6667         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
6668         tree.
6669         
6670 2005-10-19  Jackson Harper  <jackson@ximian.com>
6671
6672         * FolderBrowserDialog.cs: End editing our treeview so the window
6673         actually gets refreshed.
6674
6675 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6676
6677         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
6678           Obsoleted handling of WM_ERASEBKGND, now always draws our background
6679           inside of WM_PAINT
6680
6681 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6682
6683         * MenuAPI.cs: Returns after Hidding window
6684         * XplatUIX11.cs: Added TODO found while debugging menu issues
6685
6686 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
6687
6688         * XplatUIX11.cs: Do not re-map the whole window when it's size
6689           becomes non-zero unless it's supposed to be actually visible
6690
6691 2005-10-18  Jackson Harper  <jackson@ximian.com>
6692
6693         * TreeView.cs: We don't need to keep a count anymore.
6694         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
6695         use the Grow method.
6696
6697 2005-10-18  Jackson Harper  <jackson@ximian.com>
6698
6699         * TreeNodeCollection.cs: Insert is not supported on arrays, so
6700         implement it manually here.
6701
6702 2005-10-18  Jackson Harper  <jackson@ximian.com>
6703
6704         * ImageList.cs: Dont kill the list when the colour depth is
6705         changed, just change the colour depth of all the images.
6706         - Same goes for setting the image size. Just resize them all
6707         instead of killing the list softly.
6708
6709 2005-10-18  Jackson Harper  <jackson@ximian.com>
6710
6711         * Control.cs: Don't invalidate empty rectangles.
6712
6713 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6714
6715         * ListViewItem.cs:
6716           - Adds checked item to the Checked/Item lists (where empty before)
6717           - Do not add items to the Selected lists if they are already present
6718         * ListView.cs:
6719           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
6720           - When deleting items make sure that we delete them for the Selected
6721           and Checked list also.
6722
6723 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
6724
6725         * Label.cs: Dispose objects no longer used
6726         * ThemeWin32Classic.cs: Dispose objects no longer used
6727
6728 2005-10-18  Jackson Harper  <jackson@ximian.com>
6729
6730         * TabControl.cs: Don't refresh the whole control when the tabs are
6731         scrolled, we just need to refresh the tab area.
6732
6733 2005-10-17  Jackson Harper  <jackson@ximian.com>
6734
6735         * XplatUIX11.cs: Compress code a little bit. Only calculate the
6736         after handle when we need it.
6737
6738 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6739
6740         * Control.cs: When the parent size changes, recalculate anchor 
6741           positions. Partial fix for #76462
6742
6743 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
6744
6745         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
6746           drawn. Fixes #76462
6747
6748 2005-10-17  Jackson Harper  <jackson@ximian.com>
6749
6750         * MonthCalendar.cs: Don't create the numeric up down until our
6751         handle is created. Otherwise our handle is created in the
6752         constructor and we don't know if we are a WS_CHILD or WS_POPUP
6753         yet.
6754
6755 2005-10-17  Jackson Harper  <jackson@ximian.com>
6756
6757         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
6758         correctly.
6759
6760 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6761         * TreeNode.cs : small logical fix (was using local var instead of field)
6762         
6763 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6764
6765         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
6766
6767 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
6768
6769         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
6770
6771 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
6772
6773         * Control.cs: 
6774           - Re-implemented anchoring code. My first version was really broken.
6775             This fixes bug #76033. Unlike the previous implementation we will
6776             no longer have round errors since all numbers are calculated from
6777             scratch every time. Removed various anchor-related obsolete vars.
6778           - InitLayout no longer causes layout event firing and layout to be 
6779             performed
6780
6781 2005-10-16  Jackson Harper  <jackson@ximian.com>
6782
6783         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
6784         which was broken).
6785
6786 2005-10-16  Jackson Harper  <jackson@ximian.com>
6787
6788         * TabControl.cs: Remove debug code.
6789
6790 2005-10-16  Jackson Harper  <jackson@ximian.com>
6791
6792         * XEventQueue.cs: Increase the default queue size (very simple
6793         apps needed to grow the queue).
6794         * Hwnd.cs: No finalizer so we don't need to suppress
6795         finalization. Compute the invalid area manually so a new rectangle
6796         does not newto be created.
6797         * ScrollableControl.cs: Don't set any params (otherwise visibility
6798         isn't set correctly).
6799         * MdiChildContext.cs: New constructor takes the mdi parent so it
6800         doesn't have to be computed and avoids a crash on windows. Draw
6801         the window icon properly, and allow the text to be seen.
6802         * Form.cs: Use new MdiChildContext constructor. Make sure the
6803         child context isn't null in wndproc.
6804         * TabControl.cs: Don't set focus, this is muddling keyboard
6805         behavoir. Expand the tab rows when a window size increase will
6806         allow extra tabs to be seen. Don't allow tabs smaller than the
6807         width of a window to be scrolled out of view.
6808         * TreeNode.cs:
6809         * TreeView.cs: Use measure string to calculate a nodes width, the
6810         width is cached and only updated when the text or the font is
6811         changed. Don't check for expand/collapse clicks on the first level
6812         nodes if root lines are disabled.
6813         
6814 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
6815
6816         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
6817
6818 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6819
6820         * DataGridBoolColumn.cs: fixes warning
6821
6822 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
6823
6824         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
6825         to match more to match more precisely the MS Net behavior
6826
6827 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6828
6829         * Hwnd.cs: Added field to track if window is mapped
6830         * XplatUIX11.cs: 
6831           - Unmap windows if they become 0-size, re-map when 
6832             they are >0 again; fixes #76035
6833           - Re-set our error handler after initializing X11Desktop
6834             to override any error handlers Gtk or whatever was called
6835             may have set.
6836
6837 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
6838
6839         * CheckedListBox.cs: Removed unused vars
6840         * ListView.cs: Fixed signatures
6841         * RichTextBox.cs: Removed unused vars
6842         * TextBoxBase.cs: Removed unused vars
6843         * XplatUIWin32.cs: Removed unused vars
6844         * XplatUIX11.cs: Removed unused vars
6845         * XplatUI.cs: Updated version and date to latest published
6846
6847 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6848
6849         * Cursor.cs: Added private .ctor to work around a bug in
6850           resourceset (Thanks to Geoff Norton for the help on this)
6851         * SplitterEventArgs.cs: Made fields accessible so we don't
6852           waste boatloads of objects and can reuse the same one
6853           in Splitter
6854         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
6855           any captions and borders when generating screen coordinates
6856         * Splitter.cs: Reimplemented control, now fully complete, uses
6857           rubberband drawing, supports and obeys all properties, has
6858           proper cursors
6859
6860 2005-10-13  Miguel de Icaza  <miguel@novell.com>
6861
6862         * Form.cs (Form): Setup default values for autoscale and
6863         autoscale_base_size;  Make these instance variables, not static
6864         variables. 
6865
6866         (OnLoad): on the first load, adjust the size of the form.
6867
6868 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
6869
6870         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
6871           width argument to DrawReversibleRectangle()
6872         * XplatUIWin32.cs, XplatUIX11.cs: 
6873           - Implemented width for DrawReversibleRectangle()
6874           - Added logic to DrawReversibleRectangle that recognizes a zero
6875             width or height and only draws a line in that situation
6876         
6877 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
6878
6879         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
6880         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
6881         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
6882           method (it uses our FosterParent window to get a graphics context)
6883
6884 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
6885
6886         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
6887           and SetWindowBackground methods
6888         * Control.cs:
6889           - Setting proper ControlStyles
6890           - We no longer call XplatUI.SetWindowBackground and XplatUI.
6891             EraseWindowBackground, instead we draw the window background
6892             ourselves in PaintControlBackground. This behaviour is
6893             required to match MS, where, when OnPaintBackground is not
6894             called, the background is not drawn.
6895           - Removed unneeded Refresh() in set_Text
6896         * Hwnd.cs: Dropped the ErasePending support. No longer needed
6897         * XplatUIX11.cs:
6898           - Created DeriveStyles method to translate from CreateParams to
6899             FormBorderStyle and TitleStyle, also handles BorderStyle (which
6900             matches FormBorderStyle enum values)
6901           - Consolidated SetHwndStyles and CalculateWindowRect border/title
6902             style calculations into single DeriveStyles method
6903           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
6904             from redrawing the whole window on any resize or expose.
6905           - Fixed CreateWindow usage of SetWindowValuemask. Before not
6906             all styles were applied to our whole/client window appropriately
6907           - Removed EraseWindowBackground() and SetWindowBackground() methods
6908           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
6909             no longer clear/redraw the background through X
6910           - Removed handling of erase_pending bit, we have no use for it (or
6911             so it seems)
6912         * XplatUIOSX.cs:
6913           - Removed generation and handling of WM_ERASEBKGND message
6914           - Removed EraseWindowBackground() and SetWindowBackground() methods
6915           - Removed handling of hwnd.ErasePending flag
6916         * XplatUIWin32.cs:
6917           - Removed EraseWindowBackground() and SetWindowBackground() methods
6918           - We no longer call EraseWindowBackground on PaintEventStart, we 
6919             ignore the fErase flag, erasing is handled in Control in the
6920             background handler
6921         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
6922           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
6923           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
6924           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
6925           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
6926           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
6927           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
6928
6929 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
6930
6931         * PropertyGrids.cs: Get sub properties
6932         * PropertyGridView.cs: Fix drawing code
6933
6934 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6935
6936         * ListBox.cs: Fixes 76383
6937
6938 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6939
6940         * DataGridTextBoxColumn.cs: Sets location and size before attachment
6941         * ThemeWin32Classic.cs: Fixes border drawing and calculations
6942         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
6943
6944
6945 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6946
6947         * ComboBox.cs: Fixes border drawing
6948
6949 2005-10-10  Miguel de Icaza  <miguel@novell.com>
6950
6951         * MimeIcon.cs: Ignore errors if the file can not be read.
6952
6953 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6954
6955         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
6956          - Fixed border calculations
6957          - Fixed horizontal scrolling in single column listboxes
6958          - Fixed drawing issues
6959
6960 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
6961
6962         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
6963           FormBorderStyle enum
6964         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
6965           code to determine FormBorderStyles from CreateParams
6966         * Form.cs:
6967           - Fixed bug where we'd set the wrong window styles if we were
6968             not creating an MDI window
6969           - Added call to XplatUI.SetBorderStyle when form borders are set
6970         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
6971         * Hwnd.cs:
6972           - Removed obsolete edge style
6973           - Switched from BorderStyle to FormBorderStyle
6974         
6975 2005-10-10  Jackson Harper  <jackson@ximian.com>
6976
6977         * Form.cs: Use the property to get the window handle instead of
6978         accessing it directly. Prevents a null reference exception.
6979
6980 2005-10-10  Jackson Harper  <jackson@ximian.com>
6981
6982         * TreeView.cs: Don't adjust the rect given to DrawString now that
6983         our libgdiplus draws correctly.
6984
6985 2005-10-08  Jackson Harper  <jackson@ximian.com>
6986
6987         * TreeView.cs: Don't try to find the clicked on node if there are
6988         no nodes in the tree.
6989
6990 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6991
6992         * RichTextBox.cs:
6993
6994           restore
6995
6996 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6997
6998         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
6999           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
7000           ErrorProvider.cs:
7001           Use ResPool for brushes and dispose System.Drawing objects that
7002           are not used anymore.
7003
7004 2005-10-07  Jackson Harper  <jackson@ximian.com>
7005
7006         * MdiChildContext.cs: Use the new borders instead of drawing them
7007         ourselves.
7008
7009 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
7010
7011         * Calling UpdateBounds after changing the window's BorderStyle 
7012         since the style can change the ClientSize
7013
7014 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
7015
7016         * Control.cs: Made PaintControlBackground virtual
7017         * Panel.cs: Overriding PaintControlBackground instead of using paint
7018           event; paint event method was interfering with 'real' users of the
7019           event.
7020
7021 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
7022
7023         * ThemeWin32Classic.cs: remove border drawing since it is handled
7024         by the base control class now and was causing double border drawing.
7025
7026 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
7027
7028         * Panel.cs: Redraw our background on paint. Not a pretty solution,
7029           but it does seem to match MS behaviour. This fixes bug #75324
7030
7031 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
7032
7033         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
7034           somewhat hackish looking
7035
7036 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
7037
7038         * TextBoxBase.cs:
7039           - We now accept Enter even if AcceptEnter is false, if the containing
7040             form does not have an AcceptButton configured (fixes bug #76355)
7041           - Calculations are now fixed to no longer use Width/Height, but
7042             ClientSize.Width/Height, since we now support borders (this was
7043             a result of fixing borders and therefore bug #76166)
7044           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
7045             true (fixes bug #76354)
7046         
7047 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
7048
7049         * Control.cs: 
7050           - Defaulting BorderStyle and setting it in XplatUI when our window 
7051             is created
7052           - Added enum check to InternalBorderStyle setter
7053         * XplatUIX11.cs: 
7054           - Added drawing of window borders
7055           - Now properly calculates WM decorations offset for toplevel 
7056             windows (fixes bug #74763)
7057         * XplatUIWin32.cs: 
7058           - Implemented BorderStyles for windows (we're letting win32 draw 
7059             the border for us)
7060           - Fixed the signature for SetWindowLong
7061         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
7062           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
7063           setting borders
7064         * UpDownBase.cs: Remove drawing of borders, this is handled by
7065           the driver, outside the client area
7066         * ListView.cs: Removed bogus border calculations. The control should
7067           be oblivious to borders, since those are not part of the client
7068           area. 
7069         * X11DesktopColors.cs: Commented out (currently) unneeded variables
7070         * ThemeWin32Classic.cs: Removed border calculations from ListView 
7071           drawing code
7072
7073 2005-10-06  Jackson Harper  <jackson@ximian.com>
7074
7075         * MdiChildContext.cs: Clear out the old virtual position remove
7076         all the unneeded calls to CreateGraphics.
7077
7078 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
7079
7080         * TextControl.cs: Use proper color for highlighted text; fixes #76350
7081
7082 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
7083
7084         * Form.cs: 
7085           - Added loading and setting of our new default icon
7086           - Only set icon if window is already created
7087
7088 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
7089
7090         * Label.cs:
7091           - Do not explicitly set the foreground and background colors, to
7092             allow inheriting from parents (fixes #76302)
7093           - Use Control's InternalBorderStyle property to deal with borders
7094
7095 2005-10-06  Jackson Harper  <jackson@ximian.com>
7096
7097         * MdiChildContext.cs: Use the new xplatui function to draw a
7098         reversible rect.
7099
7100 2005-10-06  Jackson Harper  <jackson@ximian.com>
7101
7102         * Form.cs: Add the parent before creating the child context cause
7103         we need the parent when setting up the child.
7104
7105 2005-10-06  Jackson Harper  <jackson@ximian.com>
7106
7107         * FolderBrowserDialog.cs: redo the tree population code so a
7108         second thread isn't used. Should be a lot faster and more stable
7109         now.
7110
7111 2005-10-05  Jackson Harper  <jackson@ximian.com>
7112
7113         * TreeView.cs: There are no expand/collapse boxes if the node has
7114         no children.
7115
7116 2005-10-05  Jackson Harper  <jackson@ximian.com>
7117
7118         * X11DesktopColors.cs: Get menu colours for the gtk theme.
7119
7120 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
7121
7122         * FileDialog.cs: Fix InitialDirectory
7123
7124 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
7125
7126         * ComboBox.cs:
7127                 - Fixes changing between styles
7128                 - Fixes simple mode
7129                 - Fixes last item crashing when navigating with keyboard
7130
7131 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
7132
7133         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
7134
7135 2005-10-05  Jackson Harper  <jackson@ximian.com>
7136
7137         * TreeView.cs: If updating the root node do a full refresh.
7138         * TreeNode.cs: The root node should be expanded by default. Also
7139         added a utility prop to tell if we are the root node.
7140         * TreeNodeCollection.cs: Only refresh if the node we are being
7141         added to is expanded. Also added a comment on a potential
7142         optimization.
7143         
7144 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
7145
7146         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
7147           in dispose method. Fixes #76330
7148
7149 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
7150
7151         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
7152
7153                 - Implements vertical and horizontal scrolling using XplatUI
7154                 - Fixes keyboard navagation
7155                 - Fixes EnsureVisible
7156                 - Drawing fixes
7157                 - Handles and draws focus properly
7158
7159
7160 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
7161
7162         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
7163           Create handle. NET_2_0: Destroy handle when value is null.
7164
7165 2005-10-03  Jackson Harper  <jackson@ximian.com>
7166
7167         * ScrollBar.cs: My last scrollbar patch was broken. This is a
7168         revert and a new patch to prevent the thumb from refreshing so
7169         much.
7170
7171 2005-10-02  Jackson Harper  <jackson@ximian.com>
7172
7173         * ScrollBar.cs: Don't update position if it hasn't actually
7174         changed. This occurs when you hold down the increment/decrement
7175         buttons and the thumb gets to the max/min.
7176
7177 2005-10-01  Jackson Harper  <jackson@ximian.com>
7178
7179         * Form.cs:
7180         * MdiChildContext.cs:
7181         * MdiClient.cs: Implement ActiveMdiChild in Form.
7182
7183 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
7184
7185         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
7186
7187 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
7188
7189         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
7190           be found
7191
7192 2005-09-30  Jackson Harper  <jackson@ximian.com>
7193
7194         * ListBox.cs: Don't do a full refresh unless some data has
7195         actually changed.
7196
7197 2005-09-30  Jackson Harper  <jackson@ximian.com>
7198
7199         * TreeView.cs: Make sure that the checkboxes size is factored in
7200         even when not visible.
7201
7202 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
7203
7204         * FileDialog.cs: Fix Jordi's build break
7205
7206 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
7207
7208         * FileDialog.cs: 
7209                 - Use standard the Windows colours for the combobox as espected
7210                 - Dispose objects that use resouces when no longer need them
7211
7212 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
7213
7214         * X11DesktopColors.cs: Initial incomplete implementation
7215         * XplatUIX11.cs: Added call to initialize X11DesktopColors
7216
7217 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
7218
7219         * Theme.cs: 
7220           - Switched Theme color names to match the names defined in 
7221             System.Drawing.KnownColors. Life's hard enough, no need to make 
7222             it harder.
7223           - Added setters to all theme color properties so themes can set
7224             their color schemes. The setters also propagate the color changes
7225             to System.Drawing.KnownColors via reflection
7226         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
7227           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
7228           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
7229           use the new, more logical theme color names
7230         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
7231           post-NT colors
7232         * ThemeWin32Classic.cs:
7233           - Removed code to set the old classic Windows colors. Instead it
7234             now relies on the colors returned by System.Drawing.KnownColors
7235             which will be either modern static colors (Unix) or colors
7236             read from the user's configuration (Win32)
7237           - Updated to use the new, more logical theme color names
7238           - Switched DataGrid drawing code to use only Theme colors instead of
7239             a mix of System.Drawing.KnownColors and Theme colors
7240           - DrawFrameControl(): Removed code that fills the button area, the
7241             fill would overwrite any previous fill done by a control. This
7242             fixes bug #75338 
7243           - Added DrawReversibleRectangle() stub
7244         * ScrollableControl.cs: Set visible state to false when scrollbars
7245           are removed (pdn fix)
7246         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
7247           DrawReversibleRectangle() method to allow drawing primitive 
7248           'rubber bands'
7249         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
7250
7251 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7252
7253         * ImageList.cs: Add(Icon): Create handle.
7254
7255 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
7256
7257         * ListView.cs:
7258         * ThemeWin32Classic.cs:
7259                 - Fixes detail mode
7260                 - Sets clippings
7261                 - Issues with drawing
7262
7263 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7264
7265         * ImageList.cs: Moved RecreateHandle back to ImageList as event
7266           source has to be the ImageList.
7267
7268 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7269
7270         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
7271
7272 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7273
7274         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
7275
7276 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7277
7278         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
7279
7280 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
7281         * GridItem.cs: Fixed TODOs
7282         * GridItemCollection.cs: Added ICollection interface
7283
7284 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
7285
7286         * ImageList.cs: Resize icons when needed.
7287
7288 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
7289
7290         * ListViewItem.cs
7291                 - Fixes GetBounds and returns on screen rects
7292         * ListView.cs:
7293                 - Fixes vertical and horzintal scrolling of items
7294         * ThemeWin32Classic.cs:
7295                 - Fixes drawing
7296                 
7297 2005-09-29  Raja R Harinath  <harinath@gmail.com>
7298
7299         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
7300
7301 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
7302
7303         * ImageList.cs: Added comments about handle creation. Moved Handle,
7304           HandleCreated and OnRecreateHandle implementations to ImageCollection.
7305           Handle is created in Add methods.
7306
7307 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
7308          
7309         * DataGridDrawingLogic.cs: 
7310                 - Takes rows into account on Colum calculations
7311                 - Returns the column when clickig
7312         * DataGrid.cs:
7313                 - Fixes default HitTestInfo values
7314                 - Fixes HitTestInfo.ToString
7315                 - Fixes ResetBackColor          
7316         
7317 2005-09-28  Jackson Harper  <jackson@ximian.com>
7318
7319         * MdiChildContext.cs: Obey rules for fixed sized windows (no
7320         sizing or cursor changes). Also added some temp code to draw the
7321         titlebars text (Makes dev a little easier).
7322
7323 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
7324
7325         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
7326
7327 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
7328          
7329         * ListBox.cs: Fixes bug 76253
7330
7331 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
7332
7333         * ImageList.cs: Added comments about the current implementation. Added
7334           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
7335           Format32bppArgb to preserve transparency and can use Graphics.FromImage
7336           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
7337           with Bitmap.LockBits for better performance. Revised the whole file to
7338           match MS.NET behaviour and provide better performance. Non-public
7339           interface members are calling public members even when they throw
7340           NotSupportedException for better maintainability. Moved ColorDepth,
7341           ImageSize, ImageStream and TransparentColor implementations to
7342           ImageCollection for better performance as these properties are not used
7343           by ImageList.
7344         * ImageListStreamer.cs: Added a new internal constructor that takes an
7345           ImageList.ImageCollection and serializes Images based on
7346           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
7347           match ImageList property name.
7348
7349 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
7350
7351         * ListBox.cs: Fixes IndexFromPoint for last item
7352
7353 2005-09-27  Jackson Harper  <jackson@ximian.com>
7354
7355         * Form.cs: Set the position of new mdi children correctly.
7356
7357 2005-09-27  Jackson Harper  <jackson@ximian.com>
7358
7359         * MdiClient.cs: New mdi children need to be added to the back of
7360         the controls collection so the zorder is set correctly. Also add a
7361         count of all the child windows that have been created.
7362
7363 2005-09-27  Jackson Harper  <jackson@ximian.com>
7364
7365         * Form.cs (CreateParams): Setup MDI forms correctly.
7366
7367 2005-09-27  Jackson Harper  <jackson@ximian.com>
7368
7369         * MdiChildContext.cs:
7370         * MonthCalendar.cs:
7371         * UpDownBase.cs:
7372         * ListBox.cs:
7373         * ListView.cs:
7374         * TextBoxBase.cs:
7375         * TreeView.cs:
7376         * ScrollableControl.cs:
7377         * ComboBox.cs: Add implicit controls using the new implict control
7378         functionality in ControlCollection. Also try to block multiple
7379         control add in a suspend/resume layout to save some cycles.
7380         
7381 2005-09-27  Jackson Harper  <jackson@ximian.com>
7382
7383         * Control.cs: Add functionality to the controls collection to add
7384         'implicit controls' these are controls that are created by the
7385         containing control but should not be exposed to the user. Such as
7386         scrollbars in the treeview.
7387         * Form.cs: The list var of the ControlsCollection is no longer
7388         available because of the potential of implicit controls getting
7389         ignored by someone accessing the list directly.
7390
7391 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
7392
7393         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
7394           loose it's parent. (Fixed bug introduced in r49103 when we added
7395           setting the child parent to null on Remove)
7396
7397 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
7398
7399         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
7400         * Splitter.cs: Added missing attributes for BorderStyle property.
7401         * TextBoxBase.cs: Marked Calculate* methods internal.
7402         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
7403         MS.NET.
7404
7405 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
7406          
7407         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
7408
7409 2005-09-25  Jackson Harper  <jackson@ximian.com>
7410
7411         * TreeView.cs: Update the node bounds correctly regardless of
7412         whether the node is visible.
7413
7414 2005-09-25  Jackson Harper  <jackson@ximian.com>
7415
7416         * ImageList.cs: Don't dispose the image after it is added to the
7417         image list. Only reformat images that need to be resized.
7418
7419 2005-09-25  Jackson Harper  <jackson@ximian.com>
7420
7421         * ImageList.cs: Don't set the format when changing the image.
7422
7423 2005-09-25  Jackson Harper  <jackson@ximian.com>
7424
7425         * TreeView.cs: We can't just assume the node has a font. Use the
7426         treeviews font if no node font is available.
7427
7428 2005-09-25  Jackson Harper  <jackson@ximian.com>
7429
7430         * TreeView.cs: Allow the scrollbars to be reset with negative
7431         values.
7432         - Don't add scrollbars to negative sized windows.
7433
7434 2005-09-23  Jackson Harper  <jackson@ximian.com>
7435
7436         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
7437         old Mono.Posix. Also remove some stray code that shouldn't have
7438         been committed.
7439
7440 2005-09-23  Jackson Harper  <jackson@ximian.com>
7441
7442         * TreeView.cs: Attempt at proper sizing of the horizontal
7443         scrollbar. Also don't resize the scrollbars unless they are
7444         visible.
7445
7446 2005-09-23  Jackson Harper  <jackson@ximian.com>
7447
7448         * TreeView.cs: We don't need to expand the invalid area when the
7449         selection changes, as this is all drawn in the node's bounding
7450         box. The area needs to be expanded (previous typo was contracting
7451         it) when the focus rect moves.
7452
7453 2005-09-23  Jackson Harper  <jackson@ximian.com>
7454
7455         * TreeView.cs: Display the selection box under the correct
7456         circumstances. We were rendering white text with no selection box
7457         before.
7458
7459 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
7460
7461         * TextControl.cs(Split): Now updates selection start/end if it points 
7462           into a line that's being split. Fixes a FIXME and bug #75258
7463
7464 2005-09-23  Jackson Harper  <jackson@ximian.com>
7465
7466         * Binding.cs:
7467         * ListControl.cs: Don't use the path when retrieving binding
7468         managers from the binding context. My bat sense tells me that the
7469         path is only used on insertion.
7470
7471 2005-09-22  Jackson Harper  <jackson@ximian.com>
7472
7473         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
7474
7475 2005-09-22  Jackson Harper  <jackson@ximian.com>
7476
7477         * Splitter.cs: There are special cursors used for splitting.
7478         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
7479
7480 2005-09-22  Jackson Harper  <jackson@ximian.com>
7481
7482         * Splitter.cs: Change the cursor appropriately when the splitter
7483         is moused over, so the user actually knows there is a splitter
7484         there.
7485
7486 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7487
7488        * Label.cs : Fix ToString method to give same output as MS.NET
7489
7490 2005-09-22  Jackson Harper  <jackson@ximian.com>
7491
7492         * TreeView.cs: Create the scrollbars when the handle is created
7493         and add them right away, just make them invisble. Also account for
7494         the window being shrunk vertically to the point that the vert
7495         scrollbar needs to be added.
7496         - Remove some 0.5 adjustments to get around anti aliasing issues.
7497         
7498 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
7499          
7500         * MainMenu.cs: Fixes default value
7501         * MenuItem.cs: Fixes default value
7502
7503 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
7504
7505         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
7506
7507 2005-09-21  Jackson Harper  <jackson@ximian.com>
7508
7509         * Control.cs: Don't try to set the border style on the window if
7510         it hasn't been created. When the window is created the border
7511         style will be used.
7512
7513 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7514
7515         * Control.cs (Update): Don't call XplatUI if we don't have a
7516           window handle yet
7517
7518 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7519
7520         * ContainerControl.cs: Instead of throwing an exception, print
7521           a one-time warning about Validate not being implemented
7522         * XplatUIWin32.cs: Removed debug output
7523
7524 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
7525
7526         * Control.cs: Only set XplatUI background if we expect the windowing
7527           system to handle the background. This stops controls that draw their
7528           own background from flickering
7529
7530         * XplatUIX11.cs: Support custom visuals and colormaps for window 
7531           creation. This allows, amongst other things, using MWF X11 windows 
7532           with OpenGL.
7533
7534 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
7535
7536         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
7537           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
7538           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
7539           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
7540           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
7541           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
7542           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
7543           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
7544           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
7545           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
7546           GridColumnStylesCollection.cs, 
7547           IDataGridColumnStyleEditingNotificationService.cs,
7548           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
7549           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
7550           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
7551           TreeNodeCollection.cs, AmbientProperties.cs, 
7552           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7553           DataObject.cs, ErrorProvider.cs, Splitter.cs,
7554           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
7555           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
7556           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
7557           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
7558           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
7559           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
7560           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
7561           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
7562           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
7563           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
7564           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
7565           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
7566           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
7567           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
7568           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
7569           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
7570           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
7571           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
7572           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
7573           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
7574           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
7575           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
7576           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
7577           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
7578           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
7579           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
7580           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
7581           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
7582           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
7583           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
7584           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
7585           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
7586           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
7587           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
7588           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
7589
7590 2005-09-21  Jackson Harper  <jackson@ximian.com>
7591
7592         * TreeNode.cs: Call Before/After Expand not Collapse when
7593         expanding.
7594
7595 2005-09-20  Jackson Harper  <jackson@ximian.com>
7596         
7597         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
7598
7599 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7600          
7601         * ListViewItem.cs:
7602                 - Fixes bug 76120
7603                 - Fixes proper storing of subitems
7604                 - Fixes not updated items
7605
7606 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
7607
7608         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
7609           things if our window handle isn't created yet. Also disabled 
7610           debug for TextBoxBase
7611
7612 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
7613
7614         * MenuAPI.cs: Remove filtering of events to allow menu usage
7615
7616 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7617
7618         * Cursor.cs: Allow null to be passed to Cursor.Current.
7619
7620 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
7621
7622         * ThemeWin32Classic.cs:
7623           - Change some private methods/fields to protected virtual so that 
7624             they can be accessed and overriden in derived classes
7625           - First refactoring of some methods. Derived themes now don't 
7626             need to duplicate the complete code from ThemeWin32Classic
7627         * ThemeNice.cs:
7628           - Added nice StatusBar
7629           - Derive from ThemeWin32Classic and not Theme
7630           - Removed duplicate ThemeWin32Classic code
7631
7632 2005-09-20  Miguel de Icaza  <miguel@novell.com>
7633
7634         * Control.cs (ControlCollection.Add): If the value null is passed
7635         the control is ignored. 
7636
7637         Optimize this loop.
7638
7639 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
7640
7641         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
7642           PostQuitMessage state.
7643         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
7644
7645 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
7646
7647         * Application.cs: Our constructor will never get called, move 
7648           initialization to fields; fixes bug #75933
7649
7650 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
7651
7652         * FileDialog.cs :
7653                 - Allow files to be selected properly using file name
7654                 combo box.
7655                 - Add ability to change diretory (absolute / relative)
7656                 using file name combo box.
7657
7658 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
7659          
7660         * ListBox.cs: 
7661                 - Fixes Multicolumn listboxes item wrong calculations
7662                 - Allows to click when only one item is in the listbox
7663                 - Fixes crash when no items using keyboard navigation
7664
7665 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
7666
7667         * ComboBox.cs: Reverted almost everything from the latest patch which
7668           broke ComboBox
7669
7670 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
7671         
7672         * ToolTip.cs:
7673                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
7674         * ComboBox.cs:
7675                 - When DropDownStyle is Simple, it does not show scrollbar 
7676                 to the last item of the list.
7677                 - When DropDownStyle is Simple, it crashed when the list was 
7678                 scrolled down with the down cursor key.
7679                 - Fixed a bug that when DropDownStyle is DropDownList, the 
7680                 selected item was not shown.
7681                 - The position of the selected item was not preserved when 
7682                 the next dropdown happened.
7683         * ThemeWin32Classic.cs:
7684                 - Items were wrapped at the right end.
7685         * CheckedListBox.cs:
7686                 - Fixed Add method
7687         * ListBox.cs:
7688                 - Items should be fully shown.
7689                 - When resizing and vertical scrollbar disappeared, the item 
7690                 of index 0 should be on the top of the list.
7691                 - GetItemRectangle should consider the size of ver. scrollbar
7692         * StatusBar.cs:
7693                 - SizingGrip area should not be allocated when it is not 
7694                 displayed.
7695                 - Now it reflects MinWidth of the containing panel and 
7696                 fixed a crash that happens when its width becomes so small.
7697
7698 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7699
7700         * CheckedListBox.cs: Fixes bug 76028
7701         * ListBox.cs: Fixes bug 76028
7702
7703 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
7704
7705         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
7706         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
7707
7708 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
7709
7710         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
7711
7712 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7713
7714         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
7715
7716 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
7717
7718         * IRootGridEntry.cs: Added
7719         * PropertyGridCommands.cs: Added
7720         * PropertiesTab.cs: Added missing methods and property
7721         * PropertyGridView.cs: Made class internal
7722         * PropertyGridTextBox.cs: Made class internal
7723
7724 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7725
7726         * MimeIcon.cs: Try to check some other environment variables
7727           if "DESKTOP_SESSION" returns "default"
7728
7729 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7730
7731         * ThemeNice.cs: Corrected background colors (e.g. menus)
7732         * ColorDialog.cs: Use correct background colors for controls
7733
7734 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
7735
7736         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
7737
7738 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
7739
7740         * RichTextBox.cs: Added initial implementation
7741         * lang.cs: Removed. Was accidentally checked in long time ago
7742         * TODO: Removed. Contents were obsolete
7743
7744 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7745                                                                                 
7746         * PropertiesTab.cs : Added
7747
7748 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
7749                                                                                 
7750         * PropertyGrid.cs : Update
7751         * PropertyGridView.cs : Update
7752         * System.Windows.Forms.resx : Added images and strings
7753
7754 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
7755
7756         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
7757  
7758 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
7759
7760         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
7761           a busy loop right after the Ungrab the X11 display is otherwise 
7762           blocked
7763
7764 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
7765
7766         * ThemeWin32Classic.cs: Optimise the use of clipping
7767
7768 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
7769
7770         * DataGrid.cs: fixes recursion bug
7771
7772 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
7773
7774         * ThemeNice.cs: 
7775           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
7776           - Cleanup
7777
7778 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
7779
7780         * ThemeNice.cs: Draw nice ProgressBars
7781
7782 2005-09-01  Miguel de Icaza  <miguel@novell.com>
7783
7784         * VScrollBar.cs: Another buglet found by Aaron's tool. 
7785
7786         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
7787         bug finder.
7788
7789 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
7790
7791         * ThemeNice.cs:
7792           - Added nicer menu drawing
7793           - Updated DrawTab
7794           - some refactoring
7795
7796 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7797
7798         * CreateParams.cs (ToString): Made output match MS
7799         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
7800             handle is already created (to avoid forcing window creation)
7801         * XplatUIX11.cs: Set window text to caption after creating window,
7802           in case Text was set before window was created
7803         * Form.cs: Use this.Text instead of a static string as caption
7804
7805 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7806
7807         * NotifyIcon.cs: Don't set the window to visible; this screws
7808           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
7809           OnPaint without a bitmap)
7810         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
7811           happen very often anyway; we could add the check to the WM_PAINT 
7812           event generation code
7813
7814 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
7815
7816         * NotifyIcon.cs: Fill the icon area with a background color, to 
7817           avoid 'residue' when transparent icons are drawn
7818         * XplatUIX11.cs:
7819           - Handle whole_window == client_window when destroying windows
7820           - SystrayAdd(): Set client_window to whole_window value to
7821             get mouse and other events passed to NotifyIcon
7822
7823 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
7824
7825         * Form.cs: Set proper default for Opacity property
7826         * NotifyIcon.cs:
7827           - ShowSystray(): Don't bother creating telling the OS
7828             about the systray item if no icon is provided
7829           - Now handles WM_NCPAINT message to deal with whole/client window
7830             split
7831           - Create window as visible to not get caught by Expose optimization
7832         * Hwnd.cs: Removed debug message
7833         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
7834           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
7835             PaintEventStart/End to use new client argument
7836         * TextBoxBase.cs:
7837           - Commented out debug messages
7838           - Switched PaintEventStart/End to use new client argument
7839         * XplatUI.cs: Added client window bool to PaintEventStart()/
7840           PaintEventEnd() calls, to support drawing in non-client areas
7841         * XplatUIDriver.cs: 
7842           - Added client window bool to PaintEventStart()/PaintEventEnd() 
7843             calls, to support drawing in non-client areas
7844           - Added conditional compile to allow using MWF BeginInvoke 
7845             on MS runtime
7846         * XplatUIX11.cs:
7847           - Added some conditional debug output
7848           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
7849             whole/client window split
7850           - Implemented handling of client argument to PaintEventStart()/End()
7851         * Control.cs:
7852           - Throw exception if BeginInvoke() is called and the window handle
7853             or one of the window's parent handles is not created
7854           - Added conditional compile to allow using MWF BeginInvoke on
7855             MS runtime
7856           - get_Parent(): Only sets parent if handle is created. This avoids
7857             forcing window handle creation when parent is set.
7858           - Now fires Layout and Parent changed events in proper order
7859           - Switched to use Handle instead of window.Handle for Z-Order setting,
7860             the get_Parent() patch above causes us to possibly get null for 'window'
7861           - Implemented handling of client argument to PaintEventStart()/End()
7862           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
7863             default handling)
7864           - Now sends a Refresh() to all child windows when Refresh() is called
7865
7866 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
7867
7868         * Form.cs: Added (non-functional) Opacity property
7869         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
7870
7871 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
7872         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
7873           use export MONO_THEME=nice to activate it.
7874           Currently supported controls:
7875           - Button
7876           - ComboBox
7877           - ScrollBar
7878           - TabControl (TabAlignment.Top only, other will follow)
7879         * ThemeEngine.cs: Add theme nice
7880         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
7881           if enabled
7882
7883 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
7884
7885         * Splitter.cs: Resize docked control and its neighbor.
7886
7887 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7888         -- Making Windows with Menus layout correctly --
7889         * Form.cs : The first leg of the fix
7890                 Menu setter - adjust Client Size as needed to make space for the menu
7891                 SetClientSizeCore - doesn't call base version to be able to pass the 
7892                         menu handle to XplatUI.CalculateWindowRect
7893         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
7894         * XplatUIX11.cs: The critical second leg of the fix
7895                 GetWindowPos needs to use a recalculated client_rect
7896                 so that resizing the window doesn't break layout of child controls. 
7897                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
7898                 Lots of \t\n killed
7899
7900 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
7901
7902         * Label.cs: Now properly recalculates width and height on Font and Text
7903           changes if AutoSize is set
7904
7905 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
7906         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
7907
7908 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
7909
7910         * ImageList.cs: Makes ToString method compatible with MS
7911
7912 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
7913
7914         * MenuAPI.cs: fixes bug 75716
7915
7916 2005-08-11 Umadevi S <sumadevi@novell.com>
7917         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
7918
7919 2005-08-11 Umadevi S <sumadevi@novell.com>
7920         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
7921
7922 2005-08-10  Umadevi S <sumadevi@novell.com>
7923         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
7924
7925 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
7926
7927         * Menu.cs: fixes bug 75700
7928         * MenuAPI.cs: fixes navigation issues
7929
7930 2005-08-09  Umadevi S <sumadevi@novell.com>
7931         * CheckedListBox.cs - simple fix for GetItemChecked.
7932
7933 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
7934
7935         * ComboBox.cs: Serveral fixes
7936         * ListBox.cs: Serveral fixes
7937
7938 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7939
7940         * ComboBox.cs: Fixes FindString methods and GetItemHeight
7941         * ListBox.cs: Fixes FindString methods
7942
7943 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
7944
7945         * DataGrid.cs: fixes bugs exposed by new tests
7946
7947 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
7948
7949         * Mime.cs: Compile Mono assembly references only if compiling
7950           with Mono (Allows to build with VS.Net again)
7951
7952 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
7953
7954         * Control.cs (PaintControlBackground): Draw background image
7955         corrrectly.
7956         (CheckForIllegalCrossThreadCalls): Stubbed.
7957         
7958         * Form.cs (OnCreateControl): Center when should be centered.
7959         
7960         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
7961
7962 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
7963
7964         * Binding.cs: Binding to properties should be case unsensitive
7965
7966 2005-07-18 vlindos@nucleusys.com
7967
7968         * DataGrid.cs: fixes setmember order
7969
7970 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
7971
7972         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
7973         * FileDialog.cs: FileDialog is now resizable and uses the new
7974           MimeIconEngine
7975
7976 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
7977
7978         * DataGridTextBoxColumn.cs: default value
7979         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
7980         * GridTableStylesCollection.cs: fixes checking MappingName
7981         * DataGridDrawingLogic.cs: fixes drawing logic issues
7982         * DataSourceHelper.cs: rewritten to make compatible with more data sources
7983         * DataGrid.cs: fixes    
7984
7985 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
7986
7987         * MimeGenerated.cs: Use case sensitive comparer for
7988           NameValueCollections
7989
7990 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
7991
7992         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
7993         * ThemeWin32Classic.cs: bug fixes, code refactoring
7994         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
7995         * DataGrid.cs: bug fixes, code refactoring
7996         * DataGridTextBox.cs: bug fixes, code refactoring
7997         * DataGridColumnStyle.cs:  bug fixes, code refactoring
7998         * Theme.cs:  bug fixes, code refactoring
7999
8000 2005-07-01  Peter Bartok  <pbartok@novell.com> 
8001
8002         * TextControl.cs: Quick fix for the reported crash on ColorDialog
8003           and other text box usage
8004
8005 2005-07-01  Jackson Harper  <jackson@ximian.com>
8006
8007         * TabControl.cs: Make sure the bottom of the tab covers the pages
8008         border.
8009
8010 2005-06-30  Peter Bartok  <pbartok@novell.com> 
8011
8012         * Form.cs (ShowDialog): Assign owner of the dialog
8013         * TextBoxBase.cs: Always refresh caret size when deleting, caret
8014           might have been moved to a tag with different height
8015
8016 2005-06-30  Jackson Harper  <jackson@ximian.com>
8017
8018         * Form.cs: Don't create an infinite loop when setting focus
8019         * MenuItem.cs: Don't dirty the parents if we don't have any
8020
8021 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
8022
8023         * LibSupport.cs: Rename
8024
8025 2005-06-29  Peter Bartok  <pbartok@novell.com>
8026
8027         * TextBoxBase.cs: Re-align caret after deleting a character
8028         * TextControl.cs:
8029           - DeleteChars(): Ensure that tag covers the provided position
8030           - StreamLine(): Drop reference for dropped tag
8031
8032 2005-06-29  Peter Bartok  <pbartok@novell.com> 
8033
8034         * TextControl.cs: 
8035           - Selections now work properly, anchoring at the initial location
8036             and properly extending in either direction (SetSelectionToCaret(),
8037             SetSelectionStart() and SetSelectionEnd())
8038           - No longer redraws the whole control on selection change, now
8039             calculates delta between previous and new selection and only
8040             invalidates/redraws that area
8041           - Fixed FindPos() math off-by-one errors
8042           - Changed DeleteChars() to verify the provided tag covers the
8043             provided position, selections may have a tag that doesn't cover
8044             the position if the selection is at a tag border
8045           - Fixed off-by-one errors in DeleteChars()
8046           - Added missing streamlining check in DeleteChars() to remove
8047             zero-length tags
8048           - Implemented Invalidate() method, now properly calculates exposures
8049             between two given lines/positions
8050           - Implemented SetSelection()
8051           - Obsoleted and removed FixupSelection()
8052           - Improved RecalculateDocument() logic, removing code duplication
8053
8054 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8055
8056         * LibSupport.cs: changes to match different input/output arguments.
8057
8058 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8059
8060         * LibSupport.cs: added libsupport.so init routine.
8061
8062 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
8063         
8064         * ControlBindingsCollection.cs
8065                 - Throws an exception on null datasource when adding
8066                 - Checks for duplicated bindings when adding
8067
8068 2005-06-28  Jackson Harper  <jackson@ximian.com>
8069
8070         * TreeView.cs (OnKeyDown): Support left and right properly
8071         (navigates as well as expanding and collapsing.
8072         - Add support for Multiply, this expands all the selected nodes
8073         children.
8074         - Fix some tabbing.
8075
8076 2005-06-28  Jackson Harper  <jackson@ximian.com>
8077
8078         * TreeView.cs: Implement keyboard navigation, currently supports,
8079         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
8080         support for toggling checkboxes with the space bar.
8081
8082 2005-06-28  Jackson Harper  <jackson@ximian.com>
8083
8084         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
8085         tree.
8086
8087 2005-06-28  Jackson Harper  <jackson@ximian.com>
8088
8089         * TreeView.cs: Add missing event.
8090
8091 2005-06-27  Peter Bartok  <pbartok@novell.com> 
8092
8093         * TextControl.cs:
8094           - Made line ending size configurable (now allows for counting 
8095             lineendings as \n or \r\n)
8096           - Added margin to viewport to keep caret visible on right side
8097           - Fixed translation routines for line/pos to documentpos to consider
8098             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
8099           - Fixed some line-endings to be unix style
8100           - Fixed Document.FormatText to perform it's calculations 1-based
8101           - Added descriptions for a few methods that might otherwise get 
8102             used wrong
8103           - Added NOTE section with some basic conventions to remember at 
8104             the top of the file
8105           - Major fixup for RichTextBox selection drawing:
8106             * Fixed crashes when multiple tags on a single line were selected
8107             * fixed selection box drawing not overlaying text
8108             * fixed bogus offset calculation for tags not starting at index 1
8109             * Switched behaviour from using multiple Substrings of a 
8110               StringBuilder.ToString() to using multiple 
8111               StringBuilder.ToString(start, length) statements, hoping this is
8112               faster (kept original version commented out in the code, in case
8113               original version was faster)
8114         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
8115           alignment != Left
8116         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
8117           call it as well
8118
8119 2005-06-27  Jackson Harper  <jackson@ximian.com>
8120
8121         * TabControl.cs: Move to the left and right with the arrow
8122         keys. These keys don't cycle beyond first and last like
8123         tab. Refresh all the tabs when scrolling them to the left or
8124         right.
8125
8126 2005-06-27  Jackson Harper  <jackson@ximian.com>
8127
8128         * TabControl.cs:
8129           - ToString: Added method
8130           - CreateParams: Remove TODO and comment
8131           - OnKeyDown: Cycle through bounds properly.
8132           - SelectedIndex: Scroll to the right or left if we need to
8133           display the newly selected tab.
8134
8135 2005-06-23  Jackson Harper  <jackson@ximian.com>
8136
8137         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
8138         set.
8139
8140 2005-06-23  Jackson Harper  <jackson@ximian.com>
8141
8142         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
8143         CTRL-SHIFT-TAB, and HOME, END are there any others?
8144
8145 2005-06-23  Jackson Harper  <jackson@ximian.com>
8146
8147         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
8148
8149 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
8150         
8151         * DataGridTextBoxColumn.cs: fixes and enhancements
8152         * ThemeWin32Classic.cs: fixes and enhancements
8153         * DataGridBoolColumn.cs:  fixes and enhancements
8154         * DataGridDrawingLogic.cs:  fixes and enhancements
8155         * CurrencyManager.cs: fixes and enhancements
8156         * DataGrid.cs: fixes and enhancements
8157         * DataGridColumnStyle.cs:  fixes and enhancements
8158
8159 2005-06-22  Jackson Harper  <jackson@ximian.com>
8160
8161         * TabControl.cs: Add some missing methods that just call into the
8162         base. Make the TabPageCollection's IList interface behave in the
8163         same manner as the MS implementation.
8164
8165 2005-06-22  Peter Bartok  <pbartok@novell.com> 
8166
8167         * TextControl.cs: Added sanity check
8168         * TextBoxBase.cs: 
8169           - Fixed wrapping behaviour, don't set wrap on single line controls
8170             (this fixes the breakage of colordialog introduced in an earlier
8171              checkin)
8172           - Added rudimentary support for autoscrolling right-aligned controls
8173             (still needs fixing, also, center alignment scroll is missing)
8174
8175 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
8176         
8177         * ScrollBar.cs: Fixes thumbpos on Maximum values
8178
8179 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
8180         
8181         * PropertyGridView.cs: Pass context information to UITypeEditors 
8182
8183 2005-06-21  Peter Bartok  <pbartok@novell.com> 
8184
8185         * TextBoxBase.cs:
8186           - Now calling PositionCaret with absolute space coordinates
8187           - Enabled vertical scrolling
8188           - Better tracking of scrollbar changes, tied into WidthChange
8189             event
8190           - Improved cursor tracking
8191           - Removed debug output
8192         * TextControl.cs:
8193           - PositionCaret coordinates are now works in absolute space, not 
8194             the canvas
8195           - Improved tracking of document size
8196           - Added events for width and height changes
8197
8198 2005-06-21  Peter Bartok  <pbartok@novell.com>
8199
8200         * Form.cs: Set focus to active control when form is activated
8201         * TextControl.cs: 
8202           - Added word-wrap functionality to RecalculateLine() 
8203           - Added some short function descriptions for VS.Net to aid in
8204             writing dependent controls
8205           - Added Caret property, returning the current coords of the caret
8206           - Added ViewPortWidth and ViewPortHeight properties
8207           - Added Wrap property
8208           - Added CaretMoved event
8209           - Removed some old debug code
8210           - Split() can now create soft splits
8211           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
8212           - Added method to format existing text
8213           - Fixed size/alignment calculations to use viewport
8214           - RecalculateDocument now can handle changing line-numbers while
8215             calculating lines
8216
8217         * TextBox.cs:
8218           - Added some wrap logic, we don't wrap if alignment is not left
8219           - Added casts for scrollbar var, base class switched types to
8220             also support RichTextBoxA
8221           - Implemented handling of scrollbar visibility flags
8222
8223         * TextBoxBase.cs:
8224           - Switched scrollbars type to RichTextBoxScrollBars to support
8225             RichTextBox
8226           - Added tracking of canvas width/height
8227           - Switched scrollbars to be not selectable (to keep focus on text)
8228           - Added central CalculateDocument() method to handle all redraw
8229             requirements
8230           - Added ReadOnly support
8231           - Added WordWrap support
8232           - Fixed handling of Enter key (we now treat it as a DialogKey)
8233           - Fixed caret positioning when h or v scroll is not zero
8234           - Fixed placing/generation of vertical scrollbar
8235           - Added CalculateScrollBars() method to allow updating scrollbar
8236             limits and visibility
8237           - Fixed handling of horizontal scroll
8238           - Added handling of vertical scroll
8239           - Implemented auto-'jump' when caret moves to close to a left or
8240             right border and there is text to be scrolled into view (currently
8241             there's the potential for a stack overflow, until a bug in
8242             scrollbar is fixed)
8243
8244 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
8245         
8246         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
8247
8248 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
8249
8250         * Mime.cs:
8251         - added inodes.
8252         - return application/x-zerosize for files with size zero
8253           (if no extension pattern matches).
8254         - check matches collection for strings too.
8255         - return only the first mime type if the name value
8256           collection has more than one mime type.
8257
8258 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
8259         
8260         * PropertyGrid.cs: Cleaned up some TODOs
8261         * PropertyGridView.cs: Added support for UITypeEditors
8262
8263 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
8264         
8265         * DataGrid.cs: clears cached value
8266
8267 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
8268
8269         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
8270         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
8271         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
8272         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
8273         
8274 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
8275
8276         * ThemeWin32Classic.cs: fixes colour
8277
8278 2005-06-15  Peter Bartok  <pbartok@novell.com>
8279
8280         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
8281         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
8282         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
8283         * Control.cs: Added some MWFCategory and MWFDescription attributes
8284         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
8285
8286 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
8287
8288         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
8289         usage
8290
8291 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
8292
8293         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
8294         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
8295         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
8296         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
8297         * DataGrid.cs: default datagrid settings for Default Styles, fixes
8298         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
8299
8300 2005-06-13  Jackson Harper  <jackson@ximian.com>
8301
8302         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
8303         isn't printed when the user enables dropping. (X11 does accept
8304         drops).
8305         
8306 2005-06-13  Jackson Harper  <jackson@ximian.com>
8307
8308         * TreeView.cs: Remove some TODOS.
8309
8310 2005-06-13  Jackson Harper  <jackson@ximian.com>
8311
8312         * Form.cs: Hook into the mdi framework.
8313         * MdiClient.cs: Use the base control collections add method so
8314         parents get setup correctly. Set the default back colour and dock
8315         style.
8316         * MdiChildContext.cs: New class, this bad actor handles an
8317         instance of an MDI window. Right now there is only basic
8318         support. You can drag, close, and resize windows. Minimize and
8319         Maximize are partially implemented.
8320
8321 2005-06-13  Jackson Harper  <jackson@ximian.com>
8322
8323         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
8324         freaky when both vals are negative. NOTE: There are probably other
8325         places in XplatUIX11 that this needs to be done.
8326
8327 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
8328
8329         * DataGrid.cs: implement missing methods, move KeyboardNavigation
8330         * DataGridColumnStyle.cs: fixes signature
8331
8332 2005-06-12  Jackson Harper  <jackson@ximian.com>
8333
8334         * XplatUIX11.cs: Use sizing cursors similar to the ones on
8335         windows.
8336
8337 2005-06-11  Jackson Harper  <jackson@ximian.com>
8338
8339         * StatusBarPanel.cs: Signature cleanups. Implement
8340         BeginInit/EndInit.
8341
8342 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
8343
8344         * DataGridTextBoxColumn.cs: Honors aligment
8345         * GridColumnStylesCollection.cs: Contains is case unsensitive
8346         * GridTableStylesCollection.cs: several fixes
8347         * DataGridTableStyle.cs: default column creation
8348         * DataGridDrawingLogic.cs: fixes
8349         * CurrencyManager.cs: ListName property
8350         * DataGrid.cs: multiple styles support
8351         * DataGridColumnStyle.cs: fixes
8352         
8353
8354 2005-06-10  Peter Bartok  <pbartok@novell.com>
8355
8356         * Control.cs(Select): Moved SetFocus call to avoid potential
8357           loops if controls change the active control when getting focus
8358         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
8359           the up/down buttons
8360
8361 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
8362
8363         * ImageListConverter.cs: Implemented
8364
8365 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
8366
8367         * MonthCalendar.cs: Wired in NumericUpDown control for year
8368
8369 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
8370
8371         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
8372           DoubleClick events, since they are not meant to be fired.
8373
8374 2005-06-09  Peter Bartok  <pbartok@novell.com>
8375
8376         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
8377           Jonathan's standalone controls into MWF, implemented missing
8378           events, attributes and methods; added xxxAccessible classes
8379         * AccessibleObject.cs: Made fields internal so other classes
8380           can change them if needed
8381
8382 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
8383
8384         * UpDownBase.cs: Complete implementation
8385         * NumericUpDown.cs: Complete implementation
8386         * DomainUpDown.cs: Complete implementation
8387
8388 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
8389
8390         * DataGridTextBoxColumn.cs: drawing fixes
8391         * DataGridCell.cs: fixes ToString method to match MSNet
8392         * DataGridTableStyle.cs: fixes
8393         * DataGridBoolColumn.cs: fixes, drawing
8394         * DataGridDrawingLogic.cs: fixes, new methods
8395         * DataGridTextBox.cs: Keyboard and fixes
8396         * DataGrid.cs:
8397                 - Keyboard navigation
8398                 - Scrolling fixes
8399                 - Row selection (single, multiple, deletion, etc)
8400                 - Lots of fixes
8401         
8402 2005-06-07  Jackson Harper  <jackson@ximian.com>
8403
8404         * ThemeWin32Classic.cs: Clear the background area when drawing
8405         buttons.
8406
8407 2005-06-06  Peter Bartok  <pbartok@novell.com>
8408
8409         * ImageListStreamer.cs: Fixed signature for GetData
8410         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
8411         * ComboBox.cs:
8412           - Added missing ChildAccessibleObject class
8413           - Added missing OnXXXFocus overrides, switched to using those
8414             instead of the event handler
8415         * Control.cs:
8416           - Added Parent property for ControlAccessibleObject
8417           - Fixed signatures
8418           - Fixed attributes
8419           - Added ResetBindings()
8420         * ListBindingConverter.cs: Implemented some methods
8421         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
8422         * ImageList.cs: Implemented basic handle scheme, removed TODOs
8423         * ContainerControl.cs: Fixed signature, now subscribing to the
8424           ControlRemoved event instead of overriding the handler, LAMESPEC
8425         * CurrencyManager.cs: Added missing attribute
8426         * MonthCalendar.cs: Added missing properties
8427
8428 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
8429
8430         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
8431         
8432 2005-06-06  Gaurav Vaish and Ankit Jain
8433
8434         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
8435         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
8436         
8437 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
8438
8439         * Control.cs: fixes CreateParams Width / Height.
8440
8441 2005-06-05  Peter Bartok  <pbartok@novell.com>
8442
8443         * Win32DnD.cs: Removed compilation warnings
8444
8445 2005-06-05  Peter Bartok  <pbartok@novell.com>
8446
8447         * Control.cs (CreateParams): Since we don't know if one of the
8448           properties we use is overridden, lets make sure if we fail accessing
8449           we continue with a backup plan
8450
8451 2005-06-05  Peter Bartok  <pbartok@novell.com>
8452
8453         * Win32DnD.cs:
8454           - Removed debug output
8455           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
8456             struct
8457           - Plugged resource leak
8458         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
8459           MS size
8460
8461 2005-06-05  Peter Bartok  <pbartok@novell.com>
8462
8463         * XplatUIWin32.cs: Removed DnD code
8464         * Win32DnD.cs: Implemented drop source and drop target functionality
8465
8466 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8467
8468         * UpDownBase.cs: remove duplicate addition of event, enable some code
8469         that was commented out.
8470         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
8471         Validate input when a key is pressed. It works fine now for every
8472         combination of Hexadecimal. Only missing some drawing love when sharing
8473         space with other controls.
8474
8475 2005-06-04  Peter Bartok  <pbartok@novell.com>
8476
8477         * Control.cs:
8478           - We need to pass a window for DragDrop, so enable callback events
8479           - Added DnD callback events when being a DragSource
8480         * XplatUI.cs (StartDrag): Added window handle argument
8481         * XplatUIDriver.cs (StartDrag): Added window handle argument
8482         * QueryContinueDragEventArgs: Made fields internally accessible so
8483           drivers can set them
8484         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
8485           can set them
8486
8487 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
8488
8489         * DataGridTextBoxColumn.cs: column text editing
8490         * DataGridTableStyle.cs: Respect columns styles created by the user
8491         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
8492         * DataGridBoolColumn.cs: bool column editing
8493         * DataGrid.cs: fixes to scrolling, properties, etc
8494         * DataGridTextBox.cs: handle keyboard
8495         * DataGridColumnStyle.cs: fixes
8496
8497 2005-06-02  Jackson Harper  <jackson@ximian.com>
8498
8499         * ImageListStreamer.cs: Somewhat broken implementation of
8500         GetObjectData. The RLE needs some work to match MS properly.
8501
8502 2005-06-02  Jackson Harper  <jackson@ximian.com>
8503
8504         * X11Dnd.cs: Attempting to keep at least one file in MWF
8505         monostyled.
8506
8507 2005-06-02  Peter Bartok  <pbartok@novell.com>
8508
8509         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
8510           that way
8511
8512 2005-06-02  Peter Bartok  <pbartok@novell.com>
8513
8514         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
8515         * XplatUI.cs: Added DoDragDrop() method
8516         * XplatUIDriver.cs: Added DoDragDrop() method
8517
8518 2005-06-02  Jackson Harper  <jackson@ximian.com>
8519
8520         * Splitter.cs: Implement BorderStyle.
8521
8522 2005-06-02  Jackson Harper  <jackson@ximian.com>
8523
8524         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
8525         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
8526         X11 using XDND.
8527
8528 2005-06-02  Peter Bartok  <pbartok@novell.com>
8529
8530         * DataObject.cs:
8531           - Added Data setter
8532           - Fixed broken insertion code for SetData, now also
8533             overwrites any existing entry of the same format name
8534         * Hwnd.cs: Added list of pointers that automatically gets
8535           freed when the window is disposed
8536         * XplatUI.cs: Call driver initialization method when loading
8537           a driver
8538         * Control.cs:
8539           - OnDragLeave takes EventArgs, not DragEventArgs
8540           - Added setting of WS_EX_ACCEPTFILES style when dropping is
8541             supported
8542           - Forces style update when drop state changes
8543         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
8544           not perfect since we cannot (yet) call the IDataObject.GetData()
8545           method, we keep getting 0x80004005 error, dunno why)
8546
8547 2005-06-02  Peter Bartok  <pbartok@novell.com>
8548
8549         * DragEventArgs.cs: Make fields internal so we can cache the
8550           object and re-set the fields from XplatUI
8551
8552 2005-06-02  Jackson Harper  <jackson@ximian.com>
8553
8554         * Control.cs: Add some internal methods so the DnD subsystem can
8555         raise DnD events. Also call into the driver when AllowDrop is set.
8556         * XplatUI.cs:
8557         * XplatUIDriver.cs: New method for setting whether or not a window
8558         is allowed to accept drag and drop messages.
8559                 
8560 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
8561         
8562         * ScrollBar.cs: Make sure that values sent in Scroll events
8563         are always between Maximum and Minimum.
8564
8565 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
8566
8567         * Menu.cs: Call MenuChanged when menuitem visibility has been
8568         changed.
8569         * MenuItem.cs: Rebuild menu when item is (not) visible.
8570         * MainMenu.cs: MainMenu has special MenuChanged.
8571         * Theme.cs: Caption and FrameBorderSize are not fixed.
8572         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
8573         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
8574         * XplatUIX11.cs,
8575         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
8576         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
8577
8578 2005-05-30  Jackson Harper  <jackson@ximian.com>
8579
8580         * DataFormat.cs: We can't statically initialize this stuff because
8581         it calls into the xplatui and could create a loop. So we lazy init
8582         it.
8583
8584 2005-05-28  Jackson Harper  <jackson@ximian.com>
8585
8586         * Control.cs: Proper implementation of Product(Name/Version).
8587
8588 2005-05-27  Jackson Harper  <jackson@ximian.com>
8589
8590         * DataObject.cs: Dont crash if no data is found.
8591
8592 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
8593         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
8594                 as per status page, guessing it should be set to true
8595
8596 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
8597
8598         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
8599         * DataGridTableStyle.cs: set proper formatting text, def header text
8600         * ThemeWin32Classic.cs: new themable paramaters
8601         * DataGridBoolColumn.cs: paint check box, get data, fixes
8602         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
8603         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
8604         * DataGridColumnStyle.cs: fixes
8605         * Theme.cs: new themable paramaters
8606                 
8607 2005-05-26  Peter Bartok  <pbartok@novell.com>
8608
8609         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
8610
8611 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8612         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
8613
8614 2005-05-24  Peter Bartok  <pbartok@novell.com>
8615
8616         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
8617           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
8618           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
8619           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
8620           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
8621           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
8622           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
8623           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
8624           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
8625           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
8626           missing attributes, etc
8627         * DataGridPreferredColumnWidthTypeConverter.cs: Added
8628
8629 2005-05-24  Peter Bartok  <pbartok@novell.com>
8630
8631         * Help.cs: Added, implemented trivial functions, throws up MessageBox
8632           when user tries to get help
8633         * DataObject.cs, DataFormats.cs, LinkArea.cs,
8634           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
8635           to suppress warnings
8636         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
8637           avoid unreachable code warning
8638
8639 2005-05-20  Peter Bartok  <pbartok@novell.com>
8640
8641         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
8642
8643 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8644
8645         * DataGridTextBoxColumn.cs: Basic painting methods
8646         * DataGridTableStyle.cs: Set table style in the column
8647         * ThemeWin32Classic.cs: Use Theme for colors
8648         * DataGridDrawingLogic.cs: Implement more drawing
8649         * DataGrid.cs: drawing, theming, enhacements, fixes
8650         * DataGridColumnStyle.cs: fixes, drawing
8651         * Theme.cs: theming for Datagrid
8652
8653 2005-05-20  Peter Bartok  <pbartok@novell.com>
8654
8655         * Cursor.cs: Implemented GetObjectData() method
8656
8657 2005-05-20  Peter Bartok  <pbartok@novell.com>
8658
8659         * Cursors.cs: Added setting of cursor name
8660         * Cursor.cs:
8661           - Implemented constructors
8662           - Implemented Draw and DrawStretched
8663           - Implemented Current property
8664           - Implemented == and != operators
8665           - Implemented Dispose()
8666           - Implemented ToString
8667           - Added missing attributes
8668         * XplatUIX11.cs:
8669           - Added missing reset for OverrideCursor when DoEvents is called
8670           - Fixed creation of cursor, logic was wrong
8671         * XplatUIWin32.cs:
8672           - Added missing reset for OverrideCursor when DoEvents is called
8673           - Fixed creation of cursor, bit arrays were swapped
8674         * Clipboard.cs: Removed obsolete MonoTODO attribute
8675
8676 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8677
8678         * ComboBox.cs: fixes OnSelectedItemChanged
8679         * ControlBindingsCollection.cs: fixes item range check
8680
8681 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
8682
8683         * UpDownBase.cs:
8684                 - Calc preferred height properly
8685                 - Implement missing properties
8686                 
8687         * NumericUpDown.cs: Implement missing events
8688
8689 2005-05-19  Jackson Harper  <jackson@ximian.com>
8690
8691         * TabControl.cs: New method that resizes the tab pages before
8692         redrawing them. This as needed as the control is double buffered
8693         and sizing will not be recalculated unless ResizeTabPages is
8694         called.
8695         * TabPage.cs: Set base.Text instead of Text in the constructor so
8696         that UpdateOwner does not get called. Use the new Redraw method of
8697         TabControl instead of Refresh so the sizing is recalculated.
8698         * ThemeWin32Classic.cs: Draw the text for button tabs.
8699
8700 2005-05-19  Jackson Harper  <jackson@ximian.com>
8701
8702         * Control.cs: Paint control background images. Fix typo where
8703         PaintControlBackground was not getting called correctly.
8704
8705 2005-05-19  Peter Bartok  <pbartok@novell.com>
8706
8707         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
8708           I can investigate, apparently I broke FileDialog
8709
8710 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
8711
8712         * AxHost.cs: Some simple properties.
8713         * Control.cs: window must be accessible after ctor.
8714         * Form.cs: Added TransparencyKey property.
8715         * TextBoxBase.cs: Implemented Clear. Text property can be null.
8716         * XplatUIWin32.cs: SetBorderStyle implemented.
8717
8718 2005-05-18  Peter Bartok  <pbartok@novell.com>
8719
8720         * DataObject.cs: Entries are not global but particular to the
8721           DataObject, now it behaves that way
8722         * XplatUIWin32.cs: Implemented Clipboard methods
8723         * Clipboard.cs: Implemented
8724         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
8725         * XplatUIOSX.cs: Updated to final clipboard prototypes
8726         * XplatUIX11.cs: Implemented Clipboard methods
8727         * XplatUIDriver.cs: Updated to final clipboard prototypes
8728         * XplatUIStructs.cs:
8729           - Added BITMAPINFOHEADER struct
8730           - Added ClipboardFormats enum
8731         * X11Structs.cs:
8732           - Added ClipboardStruct
8733           - Added Atom enum items for clipboard types
8734           - Fixed atom types for Selection event structures
8735         * DataFormats.cs:
8736           - Added internal properties and methods for drivers to enumerate
8737             all known formats
8738           - Switched initialization method to allow drivers to assign their
8739             own IDs even for the MS predefined clipboard IDs
8740         * XplatUI.cs: Updated to final clipboard interface
8741
8742 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8743         * PropertyGridView.cs: Fixed compiler warnings.
8744
8745 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
8746         * PropertyGrid.cs: Added some event calls
8747         * PropertyGridView.cs: Change drawing code to use double buffering
8748         * PropertyGridTextBox.cs: Changed Text property name
8749         * GridItem.cs: Added Bounds property.
8750         * GridEntry.cs: Added Bounds property.
8751
8752 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
8753
8754         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
8755         since GetType() may not return the correct type if the object is
8756         a remoting proxy.
8757
8758 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
8759
8760         * TreeNodeCollection.cs: fixes get/set item ranges
8761         
8762 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8763
8764         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
8765                 
8766 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
8767
8768         * ComboBox.cs: Fix item range comparation
8769         * ListView.cs: Fix item range comparation
8770
8771 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8772
8773         * FontDialog.cs:
8774           - Clear example panel when OnPaint is called
8775           - Better solution for displaying the example panel text
8776           - Select default indexes in the ListBoxes
8777
8778 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8779
8780         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
8781
8782 2005-05-11  Peter Bartok  <pbartok@novell.com>
8783
8784         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
8785         * SelectionRangeConverter.cs: Implemented
8786         * PropertyGrid.cs: Fixed attribute value
8787         * Control.cs:
8788           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
8789           - Added Sebastien Pouliot's CAS Stack Propagation fixes
8790         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
8791           that's common to all drivers. First methods to go there are
8792           Sebastien Pouliot's CAS Stack Propagation helper methods
8793         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
8794           Sebastien Pouliot for CAS Stack Propagation
8795
8796 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
8797
8798         * OSXStructs.cs:
8799           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
8800
8801 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
8802
8803         * DataGridTextBoxColumn.cs: fixed some members
8804         * GridColumnStylesCollection.cs: indexed column is case insensitive
8805         * DataGridTableStyle.cs: fixes
8806         * ThemeWin32Classic.cs: add new theme parameter
8807         * Theme.cs: add new theme parameter
8808         * DataGridDrawingLogic.cs: Datagrid's drawing logic
8809         * DataGrid.cs: fixes, new internal properties, etc.
8810         * DataGridColumnStyle.cs: allows to set grid value
8811         *
8812
8813 2005-05-10  Peter Bartok  <pbartok@novell.com>
8814
8815         * AccessibleObject.cs:
8816           - Removed MonoTODO attribute on help, method is correct
8817           - Fixed Bounds property
8818         * AxHost.cs: Moved MonoTODO
8819         * ButtonBase.cs: Now setting AccessibleObject properties
8820         * RadioButton.cs: Setting proper AccessibleObject role
8821         * CheckBox.cs: Setting proper AccessibleObject role
8822         * ControlBindingsCollection.cs: Added properties, methods and attributes
8823         * DataFormats.cs: Fixed awkward internal API, and changed to enable
8824           userdefined DataFormats.Format items as well
8825         * ListControl.cs: Removed data_member from the public eye
8826         * OpenFileDialog.cs:
8827           - Made class sealed
8828           - Added missing attributes
8829         * SaveFileDialog.cs: Added missing attributes
8830         * ImageListStreamer.cs: Fixed code that caused warnings
8831         * LinkLabel.cs: Removed unreachable code
8832         * TreeView.cs: Fixed code that caused warnings
8833         * PropertyGridView.cs: Fixed code that caused warnings
8834         * GridColumnStylesCollection.cs: Added missing attributes
8835         * GridTableStylesCollection: Added missing attribute
8836         * PropertyManager: Added .ctor
8837         * SecurityIDType: Added
8838         * DataObject.cs: Implemented class
8839         * LinkArea.cs: Added missing attribute
8840
8841 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
8842
8843         * RadioButton.cs: call base method to allow to fire OnClick event
8844         * UpDownBase.cs: OnMouseUp call base method
8845         * CheckedListBox.cs: call base method before returning
8846         * TrackBar.cs: call base method before returning
8847         
8848
8849 2005-05-10  Peter Bartok  <pbartok@novell.com>
8850
8851         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
8852           for messages
8853
8854 2005-05-10  Peter Bartok  <pbartok@novell.com>
8855
8856         * DataFormats.cs: Implemented
8857         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
8858           XplatUIX11.cs: Added Clipboard APIs
8859         * XplatUIWin32.cs: Implemented Clipboard APIs
8860         * FolderBrowserDialog.cs: Added missing event, attributes
8861
8862 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
8863
8864         * CheckBox.cs: call base method to allow to fire OnClick event
8865
8866 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
8867
8868         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
8869
8870 2005-05-06  Peter Bartok  <pbartok@novell.com>
8871
8872         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
8873         * Screen.cs: Implemented
8874         * HelpNavigator.cs: Added
8875         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
8876           property
8877         * HelpProvider.cs: Implemented all we can do until we have a CHM
8878           help library (which means that "What's This" does work now)
8879
8880 2005-05-06  Jackson Harper  <jackson@ximian.com>
8881
8882         * XplatUIX11.cs: Fix waking up the main loop.
8883                 
8884 2005-05-05  Peter Bartok  <pbartok@novell.com>
8885
8886         * XplatUI.cs: Updated revision
8887         * Form.cs: Removed enless loop
8888         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
8889         * Label.cs (OnPaint): Added call to base.OnPaint()
8890         * ToolTip.cs: Made ToolTipWindow reusable for other controls
8891         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
8892         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
8893         * AxHost.cs: Added
8894         * ButtonBase.cs: Moved base.OnPaint() call to end of method
8895         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
8896           to ToolTip.ToolTipWindow for drawing and size methods; this allows
8897           reuse of ToolTipWindow by other controls
8898         * SizeGrip.cs: Moved base.OnPaint() call to end of method
8899         * XplatUIX11.cs: Now clipping drawing area (experimental)
8900         * PictureBox.cs: Moved base.OnPaint() call to end of method
8901         * Theme.cs: Fixed ToolTip abstracts to match new format
8902         * ErrorProvider.cs: Implemented
8903
8904 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
8905
8906         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
8907         * LinkLabel.cs:
8908                 - Adds cursors
8909                 - Handles focus
8910                 - Implements LinkBehavior
8911                 - Fixes many issues
8912
8913 2005-05-03  Jackson Harper  <jackson@ximian.com>
8914
8915         * ListView.cs: Calculate the scrollbar positioning on resize and
8916         paint, so they get put in the correct place.
8917
8918 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
8919
8920         * ColorDialogs.cs: The small color panels are now handled by
8921           SmallColorControl. This fixes drawing of the focus rectangle
8922           and adds a 3D border.
8923
8924 2005-05-03  Peter Bartok  <pbartok@novell.com>
8925
8926         * Control.cs: Modified version of Jonathan Chamber's fix for
8927           double-buffering
8928
8929 2005-05-03  Jackson Harper  <jackson@ximian.com>
8930
8931         * ListView.cs: Remove redraw variable. Control now handles whether
8932         or not a redraw needs to be done, and will only raise the paint
8933         event if redrawing is needed.
8934
8935 2005-05-03  Jackson Harper  <jackson@ximian.com>
8936
8937         * Splitter.cs: No decorations for the splitter form. Cache the
8938         hatch brush.
8939
8940 2005-05-03  Jackson Harper  <jackson@ximian.com>
8941
8942         * TreeView.cs: Use dashed lines to connect nodes. Use the
8943         ControlPaint method for drawing the focus rect instead of doing
8944         that in treeview.
8945
8946 2005-05-02  Peter Bartok  <pbartok@novell.com>
8947
8948         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
8949
8950 2005-04-29  Jackson Harper  <jackson@ximian.com>
8951
8952         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
8953         entire image buffer. Just clear the clipping rectangle.
8954
8955 2005-04-29  Jackson Harper  <jackson@ximian.com>
8956
8957         * ThemeWin32Classic.cs: Don't draw list view items that are
8958         outside the clipping rectangle.
8959
8960 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
8961
8962         * ListBox.cs: added horizontal item scroll
8963
8964 2005-04-29  Jackson Harper  <jackson@ximian.com>
8965
8966         * ThemeWin32Classic.cs: Remove some old debug code that was
8967         causing flicker with the new double buffering code.
8968
8969 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
8970
8971         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
8972         behave like combobox and comboboxlist (still not sure if this is
8973         correct though).
8974
8975 2005-04-28  Jackson Harper  <jackson@ximian.com>
8976
8977         * ThemeWin32Classic.cs: Don't fill the middle of progress
8978         bars. This fills areas outside of the clip bounds that don't need
8979         to be filled.
8980
8981 2005-04-28  Jackson Harper  <jackson@ximian.com>
8982
8983         * Control.cs: Don't expose functionality to touch the image buffers.
8984         * ProgressBar.cs:
8985         * ListView.cs: We do not need to (and no longer can) manipulate
8986         the image buffers directly. All of this is handled by Control.
8987
8988 2005-04-28  Peter Bartok  <pbartok@novell.com>
8989
8990         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8991           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
8992           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
8993
8994 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8995
8996         * Combobox:
8997                 - Adjust control's height for non-simple comboboxes (bug fix)
8998                 - Remove dead code
8999         * MenuAPI.cs: remove unused var
9000         * ScrollBar.cs: remove unsed var
9001                  
9002         * ListBox.cs: unselect items when clearing
9003
9004 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
9005
9006         * ListControl.cs: honors OnPositionChanged and default Selected Item
9007         * ListBox.cs: unselect items when clearing
9008
9009 2005-04-27  Jackson Harper  <jackson@ximian.com>
9010
9011         * X11Keyboard.cs: Initialize a default keyboard and give a warning
9012         if a "correct" keyboard is not found. This will make us not crash,
9013         but might give some users bad keyboard layouts...seems to be the
9014         same thing rewind does.
9015
9016 2005-04-27  Jackson Harper  <jackson@ximian.com>
9017
9018         * BindingManagerBase.cs: Attach the current/position changed
9019         handlers to their respective events.
9020
9021 2005-04-27  Jackson Harper  <jackson@ximian.com>
9022
9023         * Control.cs: Make sure that the first WM_PAINT does a full draw,
9024         not just a blit.
9025         * ThemeWin32Classic.cs: Don't fill the background for picture
9026         boxes. This could overright user drawing.
9027         * ComboBox.cs: Just fill the clipping rect not the entire client
9028         rect when drawing the background. This prevents pieces of the
9029         image buffer from getting overwritten and is theoretically faster.
9030
9031 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
9032
9033         * ComboBox.cs: Databinding support fixes, fire missing events
9034         * ListControl.cs: implement missing methods and properties, fixes
9035         * ThemeWin32Classic.cs: Databiding support on Drawing
9036         * CheckedListBox.cs: Databinding support fixes, fire missing events
9037         * ListBox.cs: Databinding support fixes, fire missing events
9038         
9039 2005-04-25  Peter Bartok  <pbartok@novell.com>
9040
9041         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
9042
9043 2005-04-25  Jackson Harper  <jackson@ximian.com>
9044
9045         * TreeView.cs: Use the horizontal scrollbars height not width when
9046         determining how much of the client area is available.
9047
9048 2005-04-25  Jackson Harper  <jackson@ximian.com>
9049
9050         * Control.cs: Double buffering is handled differently now. As per
9051         the spec, the extra buffer is created in the WM_PAINT message and
9052         passed down to the control's drawing code.
9053         * GroupBox.cs:
9054         * Label.cs:
9055         * CheckBox.cs:
9056         * ProgressBar.cs:
9057         * RadioButton.cs:
9058         * ColorDialog.cs:
9059         * ComboBox.cs:
9060         * PropertyGridView.cs:
9061         * UpDownBase.cs:
9062         * MessageBox.cs:
9063         * MenuAPI.cs:
9064         * ListView.cs:
9065         * ButtonBase.cs:
9066         * SizeGrip.cs:
9067         * ScrollBar.cs:
9068         * ListBox.cs:
9069         * TrackBar.cs:
9070         * ToolBar.cs:
9071         * PictureBox.cs:
9072         * DateTimePicker.cs:
9073         * StatusBar.cs:
9074         * TreeView.cs: Update to new double buffering system.
9075         * MonthCalendar.cs: Uncomment block, as Capture is now
9076         working. Update to new double buffering
9077         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
9078         * PaintEventArgs.cs: New internal method allows us to set the
9079         graphics object. This is used for double buffering.
9080         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
9081         rectangle. The internal paint_area var has been removed from
9082         StatusBar. The clipping rect should be used instead.
9083         * Theme.cs: Give the PictureBox drawing method a clipping rect.
9084         * TabPage.cs: The RefreshTabs method was removed, so just call the
9085         tab controls Refresh method now.
9086         * TabControl.cs: Update to new double buffering. Make sure the
9087         handle is created before sizing the tab pages, otherwise we will
9088         get stuck in a loop.
9089
9090 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
9091
9092         * LinkLabel.cs: Fix typo, bug #74719; patch
9093           from Borja Sanchez Zamorano
9094
9095 2005-04-22  Jackson Harper  <jackson@ximian.com>
9096
9097         * TreeNode.cs: Implement Handle stuff.
9098         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
9099
9100 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
9101
9102         * DataGridTextBoxColumn.cs: call base constructors, fixes
9103         * GridColumnStylesCollection.cs: missing events, methods, and functionality
9104         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
9105         * DataGridTableStyle.cs: implements create default column styles
9106         * DataGridBoolColumn.cs: which types can handle
9107         * DataGrid.cs: missing methods, fixes, new functionality
9108         * DataGridColumnStyle.cs: fixes
9109
9110 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
9111         * FolderBrowserDialog.cs:
9112         - Use a thread to fill the TreeView
9113         - Adjusted some sizes
9114
9115 2005-04-19  Peter Bartok  <pbartok@novell.com>
9116
9117         * LinkLabel.cs: (Re-)create the pieces when setting the Text
9118           property. Fixes #74360.
9119
9120 2005-04-19  Jackson Harper  <jackson@ximian.com>
9121
9122         * XEventQueue.cs: Lock when getting the lockqueue size.
9123         * PictureBox.cs: Call base OnPaint
9124         
9125 2005-04-19  Peter Bartok  <pbartok@novell.com>
9126
9127         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
9128           messages were no longer being processed (this broke BeginInvoke)
9129
9130           
9131 2005-04-18  Jackson Harper  <jackson@ximian.com>
9132
9133         * TreeView.cs: buglet that caused node images to get drawn
9134         regardless of whether or not they were in the clipping rectangle.
9135
9136 2005-04-18  Jackson Harper  <jackson@ximian.com>
9137
9138         * CurrencyManager.cs: There are four rules for GetItemProperties:
9139         - If the type is an array use the element type of the array
9140         - If the type is a typed list, use the type
9141         - If the list contains an Item property that is not an object, use
9142         that property
9143         - use the first element of the list if there are any elements in
9144         the list.
9145         
9146 2005-04-17  Jackson Harper  <jackson@ximian.oom>
9147
9148         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
9149         click. This handles offsets for scrolling properly and reduces
9150         memory. Also fixed GetNode to not offset now that TopNode works
9151         properly.
9152         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
9153         
9154 2005-04-17  Jackson Harper  <jackson@ximian.com>
9155
9156         * CursorConverter.cs: Initial implementation.
9157
9158 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
9159
9160         * ListControl.cs: work towards complex data binding support on ListControl
9161         * CurrencyManager.cs: work towards complex data binding support on ListControl
9162         * ListBox.cs: work towards complex data binding support on ListControl
9163
9164
9165 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
9166
9167         * GridTableStylesCollection.cs: fixes name and constructor
9168         * DataGridTableStyle.cs: fixes
9169         * DataGridBoolColumn.cs: fixes names and constructors
9170         * DataGrid.cs: define methods and properties. Some init implementations
9171         * DataGridCell.cs: define methods and properties. Some init implementations
9172         * GridTablesFactory.cs: Define methods and properties
9173
9174 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
9175
9176         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
9177         graphics port changes.  We still want the coordinates in global screen
9178         coordinates.
9179
9180 2005-04-14  Jackson Harper  <jackson@ximian.com>
9181
9182         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
9183         check plus minus or checkbox clicks unless those features are enabled.
9184
9185 2005-04-14  Jackson Harper  <jackson@ximian.com>
9186
9187         * TreeView.cs: Add methods for setting the top and bottom visible
9188         nodes. TreeNode::EnsureVisible uses these methods.
9189         * TreeNode.cs: Implement EnsureVisible
9190
9191 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
9192
9193         * Form.cs: Pospone menu assignation if the window has not been created yet
9194         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
9195         size and position
9196
9197 2005-04-12  Jackson Harper  <jackson@ximian.com>
9198
9199         * TreeView.cs: Set the TopNode properly when scrolling
9200         occurs. This has the added benifit of reducing the amount of
9201         walking that needs to be done when drawing. Also removed an old
9202         misleading TODO.
9203         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
9204         
9205 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
9206
9207         * Timer.cs: fixes interval setting when the timer is already enabled
9208         
9209 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
9210
9211         * FolderBrowserDialog.cs: First approach
9212
9213 2005-04-09  Peter Bartok  <pbartok@novell.com>
9214
9215         * FolderBrowserDialog: Added
9216
9217 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
9218
9219         * LinkLabel.cs: move drawing code into the theme
9220         * ThemeWin32Classic.cs: drawing code and painting background bugfix
9221         * Theme.cs: define DrawLinkLabel method
9222
9223 2005-04-05  Jackson Harper  <jackson@ximian.com>
9224
9225         * BindingContext.cs: Use weak references so these bad actors don't
9226         stay alive longer then they need to.
9227
9228 2005-04-05  Jackson Harper  <jackson@ximian.com>
9229
9230         * ListControl.cs: Basic implementation of complex databinding.
9231         * ComboBox.cs:
9232         * ListBox.cs: Add calls to ListControl databinding methods.
9233
9234 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
9235
9236         * FileDialog.cs:
9237           - Don't change PopupButtonState to Normal when the
9238             PopupButton gets pressed several times.
9239           - Renamed ButtonPanel to PopupButtonPanel
9240
9241 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
9242
9243         * ColorDialog.cs: Use cached objects instead of creating them
9244         * LinkLabel.cs: Use cached objects instead of creating them
9245         * Splitter.cs: Use cached objects instead of creating them
9246         * FontDialog.cs: Use cached objects instead of creating them
9247         * PropertyGridView.cs: Use cached objects instead of creating them
9248         * MessageBox.cs: Use cached objects instead of creating them
9249         * FileDialog.cs: Use cached objects instead of creating them
9250         * ThemeWin32Classic.cs: Use cached objects instead of creating them
9251         * TreeView.cs: Use cached objects instead of creating them
9252         
9253 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
9254
9255         * Control.cs: use Equals to compare the font since no == op
9256         * ScrollBar.cs: use Equals to compare the font since no == op
9257
9258 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
9259
9260         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
9261
9262 2005-04-01  Jackson Harper  <jackson@ximian.com>
9263
9264         * Binding.cs: Implement IsBinding.
9265         * BindingManagerBase.cs:
9266         * PropertyManager.cs:
9267         * CurrencyManager.cs: Add IsSuspended property.
9268
9269 2005-04-01  Jackson Harper  <jackson@ximian.com>
9270
9271         * Binding.cs: Had some IsAssignableFrom calls backwards.
9272
9273 2005-04-01  Jackson Harper  <jackson@ximian.com>
9274
9275         * Binding.cs: Handle null data members when pulling data.
9276         * PropertyManager.cs: Handle the data member being a property that
9277         does not exist.
9278
9279 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
9280
9281         * DataGridTextBoxColumn.cs: fixes signature
9282         * DataGrid.cs: calls right constructor
9283
9284 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
9285
9286         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
9287         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
9288         * GridTableStylesCollection.cs: implements GridTableStylesCollection
9289         * DataGridTableStyle.cs: implements DataGridTableStyle
9290         * DataGridBoolColumn.cs: implements DataGridBoolColumn
9291         * DataGridTextBox.cs: implements DataGridTextBox
9292         * DataGridColumnStyle.cs: implements DataGridColumnStyle
9293
9294 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
9295
9296         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
9297
9298 2005-03-29  Peter Bartok  <pbartok@novell.com>
9299
9300         * Application.cs:
9301           - Properly implemented CompanyName property
9302           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
9303             returns a path that includes CompanyName, ProductName and
9304             Version (fixes bug #70330)
9305
9306 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
9307
9308         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
9309           fixes bug #72588.
9310
9311 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
9312
9313         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
9314         
9315           - Added ReadOnly CheckBox
9316           - Further refactoring: moved some code from Open-/SaveFileDialog
9317             to FileDialog
9318
9319 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
9320
9321         * OpenFileDialog.cs: Fixed CheckFileExists
9322         * FileDialog.cs:
9323           Moved FileView and DirComboBox outside FileDialog class.
9324           They can now be used outside FileDialog
9325
9326 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
9327
9328         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
9329         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
9330
9331 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
9332
9333         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9334           - Added missing CreatePrompt property in SaveDialog
9335           - Overall SaveDialog handling should be better now
9336           - Added non standard ShowHiddenFiles property
9337           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
9338           - Added InitialDirectory and RestoreDirectory support
9339
9340 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
9341
9342         * FileDialog.cs: Made dirComboBox usable
9343
9344 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
9345
9346         * FileDialog.cs: Added Filter support (case sensitiv)
9347
9348 2005-03-24  Jackson Harper  <jackson@ximian.com>
9349
9350         * TabControl.cs: Need a couple more pixels for the lines.
9351
9352 2005-03-23  Jackson Harper  <jackson@ximian.com>
9353
9354         * TabControl.cs: Give the tab page focus when it is selected.
9355
9356 2005-03-23  Jackson Harper  <jackson@ximian.com>
9357
9358         * TabControl.cs: Account for the drawing of tabs borders when
9359         invalidating. If the slider was clicked dont do click detection on
9360         the tabs.
9361
9362 2005-03-23  Jackson Harper  <jackson@ximian.com>
9363
9364         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
9365
9366 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
9367
9368         * CategoryGridEntry.cs: Added
9369         * GridItem.cs: Added helper properties
9370         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
9371         * GridEntry.cs: Updated code for collection
9372         * PropertyGrid.cs: Cleaned up some formatting
9373         * PropertyGridView.cs: Added drop down functionality for enums.
9374         * GridItemCollection.cs: Added enumerator logic
9375         * PropertyGridEntry.cs: Added
9376
9377 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
9378
9379         * FileDialog.cs:
9380           - Removed unnecessary commented code
9381           - Fixed handling for entering the filename manually in the combobox
9382
9383 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
9384
9385         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
9386
9387 2005-03-18  Peter Bartok  <pbartok@novell.com>
9388
9389         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
9390           them being touching the border
9391
9392 2005-03-18  Peter Bartok  <pbartok@novell.com>
9393
9394         * TextControl.cs: Quick hack to center text better
9395
9396 2005-03-18  Peter Bartok  <pbartok@novell.com>
9397
9398         * ControlPaint.cs:
9399           - Don't throw NotImplemented exceptions, just print a notice once
9400             instead (requested by Miguel). This makes running existing SWF
9401             apps a bit easier
9402         * Control.cs:
9403           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
9404           - Added context menu trigger on right click
9405         * Panel.cs: Trigger invalidate on resize
9406         * StatusBar.cs:
9407           - Removed old double-buffer drawing
9408           - Added ResizeRedraw style to force proper update of statusbar
9409         * ListView.cs:
9410           - Removed debug output
9411         * ThemeWin32Classic.cs:
9412           - Fixed drawing of status bar, now draws Text property if there
9413             are no defined panels
9414
9415 2005-03-18  Jackson Harper  <jackson@ximian.com>
9416
9417         * ImageList.cs: When the image stream is set pull all the images
9418         from it.
9419         * ImageListStreamer.cs: Implement reading image list streams.
9420
9421 2005-03-18  Peter Bartok  <pbartok@novell.com>
9422
9423         * ThemeWin32Classic.cs (DrawPictureBox):
9424           - Fixed calculations for centered drawing
9425           - Fixed drawing for normal mode, not scaling the image on normal
9426
9427 2005-03-18  Peter Bartok  <pbartok@novell.com>
9428
9429         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
9430           textbox
9431         * FileDialog.cs:
9432           - Made Open/Save button the accept button for FileDialog
9433           - Tied the cancel button to the IButtonControl cancel button
9434           - Save/Open now properly builds the pathname
9435           - Now handles user-entered text
9436           - Preventing crash on right-click if no item is selected
9437           - Fixed Text property, now uses contents of textbox
9438           - Fixed SelectedText property, now just returns the text part that
9439             is selected in the text box
9440
9441 2005-03-18  Jackson Harper  <jackson@ximian.com>
9442
9443         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
9444         rect, make sure to de-adjust the interior rect after drawing the
9445         tab text.
9446
9447 2005-03-18  Peter Bartok  <pbartok@novell.com>
9448
9449         * MenuAPI.cs: Remove menu *before* executing selected action to
9450           prevent the menu from 'hanging around'
9451           
9452 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
9453
9454         * XplatUIOSX.cs: Implemented WorkingArea property
9455
9456 2005-03-17  Peter Bartok  <pbartok@novell.com>
9457
9458         * XplatUIX11.cs: Fixed menu coord calculations
9459         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
9460           for calculating offsets
9461
9462 2005-03-17  Peter Bartok  <pbartok@novell.com>
9463
9464         * Hwnd.cs: Do not consider menu presence for default client
9465           rectangle location/size
9466         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
9467           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
9468           translation functions
9469         * FileDialog.cs: Fixed (what I presume is a) typo
9470
9471 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
9472
9473         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
9474           X access (avoids X-Async errors)
9475
9476 2005-03-16  Jackson Harper  <jackson@ximian.com>
9477
9478         * TabControl.cs: Raise the SelectedIndexChanged event.
9479
9480 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
9481
9482         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
9483           - Removed vertical ToolBar and replaced it with a custom panel
9484             (desktop and home button already work)
9485           - Added Help button (some controls get resized or relocated then)
9486           - Draw correct text depending on Open or Save.
9487           - Fixed some typos...
9488
9489 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
9490
9491         * ScrollBar.cs:
9492           - Only change Maximum and Minimum when need it (bug fix)
9493
9494 2005-03-15  Peter Bartok  <pbartok@novell.com>
9495
9496         * Form.cs: Use Handle for icon, to trigger creation if
9497           the window does not yet exist
9498         * Control.cs:
9499           - CanSelect: Slight performance improvement
9500           - Focus(): Preventing possible recursion
9501           - Invalidate(): Removed ControlStyle based clear flag setting
9502           - WM_PAINT: fixed logic for calling OnPaintBackground
9503           - WM_ERASEBKGND: Fixed logic, added call to new driver method
9504             EraseWindowBackground if the control doesn't paint background
9505         * XplatUIWin32.cs:
9506           - Moved EraseWindowBackground() method to internal methods
9507           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
9508             is sent via SendMessage on BeginPaint call on Win32
9509         * XplatUIX11.cs:
9510           - Added EraseWindowBackground() method
9511           - No longer sends WM_ERASEBKGND on .Expose, but on call to
9512             PaintEventStart, which more closely matches Win32 behaviour
9513           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
9514           - Fixed SetFocus() to properly deal with client and whole windows
9515         * Hwnd.cs: Added ErasePending property
9516         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
9517         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
9518
9519 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
9520
9521         * XplatUIOSX.cs:
9522           - Fix hard loop when timers exist.
9523           - Fix bugs with middle and right click for 3 button mice.
9524
9525 2005-03-11  Peter Bartok  <pbartok@novell.com>
9526
9527         * XplatUIX11.cs:
9528           - get_WorkingArea: Need to call X directly, GetWindowPos only
9529             returns cached data now
9530           - Added sanity check to GetWindowPos hwnd usage
9531
9532 2005-03-11  Jackson Harper  <jackson@ximian.com>
9533
9534         * BindingManagerBase.cs: This method isn't used anymore as
9535         PullData now updates the data in the control.
9536
9537 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
9538
9539         * Form.cs: fixes menu drawing on X11
9540         * MenuAPI.cs:  fixes menu drawing on X11
9541
9542 2005-03-11  Peter Bartok  <pbartok@novell.com>
9543
9544         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
9545           from Jonathan Gilbert; should fix bug #73606
9546         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
9547           in Screen coordinates. Thanks, Jordi.
9548         * Form.cs: Added missing attribute
9549
9550 2005-03-11  Peter Bartok  <pbartok@novell.com>
9551
9552         * Form.cs:
9553           - Rudimentary Mdi support
9554           - Removed outdated FormParent code
9555           - Implemented lots of missing properties and methods, still missing
9556             transparency support
9557           - Added missing attributes
9558           - Implemented support for MaximumBounds
9559           - Added firing of various events
9560         * XplatUI.cs: Added SetIcon() method
9561         * XplatUIDriver.cs: Added SetIcon() abstract
9562         * XplatUIOSX.cs: Stubbed out SetIcon() method
9563         * XplatUIX11.cs:
9564           - Implemented SetIcon() support
9565           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
9566           - Switched to unix line endings
9567         * XplatUIWin32.cs:
9568           - Made POINT internal so for can access it as part of MINMAX
9569           - Implemented SetIcon() support
9570           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
9571             native Mdi support again, might have to go managed)
9572         * Control.cs: Now fires the StyleChanged event
9573         * MdiClient.cs: Added; still mostly empty
9574
9575 2005-03-10  Peter Bartok  <pbartok@novell.com>
9576
9577         * SaveFileDialog.cs: Added emtpy file
9578
9579 2005-03-08  Peter Bartok  <pbartok@novell.com>
9580
9581         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
9582           in turn triggers OnCreateContro) when creating a handle for the
9583           first time.
9584         * TextControl.cs: Fixed endless loop in certain cases when
9585           replacing the current selection
9586
9587 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
9588
9589         * ScrollBar.cs:
9590           - Honors NewValue changes in Scroll events allowing apps to change it
9591           - Adds First and Last Scroll events
9592           - Fixes Thumb events
9593
9594 2005-03-07  Peter Bartok  <pbartok@novell.com>
9595
9596         * Hwnd.cs: Added DefaultClientRectangle property
9597         * XplatUI.cs: Now using the X11 driver Where() method, which provides
9598           more detailed debug information
9599         * XplatUIX11.cs:
9600           - Fixed size-change feedback loop, where we would pull an old size
9601             off the queue and mistakenly change our window's size to an
9602             earlier value
9603           - Now compressing ConfigureNotify events, to reduce looping and
9604             redraw issues
9605         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
9606           is called
9607
9608 2005-03-07  Jackson Harper  <jackson@ximian.com>
9609
9610         * Binding.cs: Push data pushes from data -> property. Check if the
9611         property is readonly when attempting to set it.
9612
9613 2005-03-07  Jackson Harper  <jackson@ximian.com>
9614
9615         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
9616         instead of IsSubclassOf. Pulling data now sets the value on the
9617         control.
9618         * PropertyManager.cs:
9619         * CurrencyManager.cs: Just need to pull data when updating now,
9620         because PullData will set the value on the control.
9621
9622 2005-03-04  Jackson Harper  <jackson@ximian.com>
9623
9624         * Binding.cs: Implement data type parsing and converting on pulled
9625         data. TODO: Are there more ways the data can be converted?
9626
9627 2005-03-04  Jackson Harper  <jackson@ximian.com>
9628
9629         * Binding.cs: Support <Property>IsNull checks. Also bind to the
9630         controls Validating method so we can repull the data when the
9631         control loses focus.
9632
9633 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
9634
9635         * ColumnHeader.cs:
9636           - Fixes null string format
9637           
9638         * ListView.cs:
9639           - Adds enum type checks
9640           - Fixes redrawing and recalc need after changing some properties
9641           - Fixes on focus_item set after the event
9642           - Fixes adding columns after the control has been created
9643           
9644         * ThemeWin32Classic.cs:
9645           - Fixes CheckBox focus rectangle
9646           - Fixes ColumnHeader drawing
9647
9648
9649 2005-03-03  Jackson Harper  <jackson@ximian.com>
9650
9651         * Binding.cs: Bind to <Property>Changed events so we can detect
9652         when properties are changed and update the data.
9653
9654 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
9655
9656         * ImageList.cs:
9657           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
9658           - Fixes ImageList constructor with ImageList container
9659           - Fixes image scaling (wrong parameters at DrawImage)
9660
9661 2005-02-02  Jackson Harper  <jackson@ximian.com>
9662
9663         * Binding.cs: Make property searches case-insensitive. Eliminate
9664         some duplicated code.
9665
9666 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
9667
9668         * ComboBox.cs:
9669                 - Handle focus event
9670                 - Fix scrollbar events
9671                 - Discard highlighted item if remove it
9672                 - Fixes SelectedItem with strings
9673
9674 2005-03-01  Peter Bartok  <pbartok@novell.com>
9675
9676         * Control.cs:
9677           - Fixed Visible property, now follows (once again) parent chain
9678             to return false if any control in the chain is visible=false
9679           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
9680           - Fixed several places where is_visible instead of Visible was used
9681           - Implemented FIXME related to focus selection when setting focused
9682             control to be invisible
9683
9684         * XplatUIWin32.cs: Now using proper method to find out if window is
9685           visible. Thanks to Jordi for pointing it out
9686
9687 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
9688
9689         * ComboBox.cs: show/hide scrollbar instead of creating it
9690
9691 2005-02-27  Jackson Harper  <jackson@ximian.com>
9692
9693         * CurrencyManager.cs: Add PositionChanged stuff.
9694
9695 2005-02-27  Peter Bartok  <pbartok@novell.com>
9696
9697         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
9698         * XplatUIOSX.cs: Added GetMenuOrigin() stub
9699         * XplatUIWin32.cs: Implemented GetMenuOrigin()
9700         * XplatUIX11.cs:
9701           - Implemented GetMenuDC()
9702           - Implemented GetMenuOrigin()
9703           - Implemented ReleaseMenuDC()
9704           - Implemented generation of WM_NCPAINT message
9705           - Implemented generation and handling of WM_NCCALCSIZE message
9706         * Form.cs: Added debug helper message for Jordi's menu work
9707         * Hwnd.cs:
9708           - Modified ClientRect property; added setter, fixed getter to handle
9709             setting of ClientRect
9710           - Added MenuOrigin property
9711
9712 2005-02-26  Peter Bartok  <pbartok@novell.com>
9713
9714         * XplatUIX11.cs:
9715           - Destroys the caret if a window that's being destroyed contains it
9716           - Ignores expose events coming from the X11 queue for windows that
9717             already are destroyed
9718           - Now uses the proper variable for handling DestroyNotify, before we
9719             marked the wrong window as destroyed
9720           - Improved/added some debug output
9721
9722 2005-02-26  Peter Bartok  <pbartok@novell.com>
9723
9724         * X11Keyboard.cs: Fixes to work on 64bit systems
9725
9726 2005-02-26  Peter Bartok  <pbartok@novell.com>
9727
9728         * Control.cs:
9729           - Now calling OnHandleDestroyed from DestroyHandle()
9730             instead of Dispose()
9731           - Removed bogus call to controls.Remove() from DestroyHandle()
9732
9733 2005-02-26  Peter Bartok  <pbartok@novell.com>
9734
9735         * Control.cs: Properly destroy child windows when our handle is
9736           destroyed
9737
9738 2005-02-25  Peter Bartok  <pbartok@novell.com>
9739
9740         * XplatUI.cs:
9741           - Added 'DriverDebug' define to allow tracing XplatUI API calls
9742           - Alphabetized Static Methods and Subclasses
9743
9744         * XplatUIX11.cs:
9745           - Added XException class to allow custom handling of X11 exceptions
9746           - Created custom X11 error handler, tied into XException class
9747           - Added support for MONO_XEXCEPTIONS env var to allow the user
9748             to either throw an exception on X errors or continue running
9749             after displaying the error
9750           - Added handling of DestroyNotify message
9751           - Added handler for CreateNotify message (still disabled)
9752           - Improved (tried to at least) Where method to provide file and lineno
9753         * X11Structs.cs:
9754           - Added XErrorHandler delegate
9755           - Added XRequest enumeration (to suppor translation of errors)
9756
9757 2005-02-25  Jackson Harper  <jackson@ximian.com>
9758
9759         * PropertyManager.cs: Implement editing features
9760         * CurrencyManager.cs:
9761         * Binding.cs: First attempt at UpdateIsBinding
9762         * BindingManagerBase.cs: Call UpdateIsBinding before
9763         pushing/pulling data.
9764
9765 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
9766
9767         * MenuAPI.cs: Respect disabled items
9768         * ThemeWin32Classic.cs
9769                 - Caches ImageAttributes creation for DrawImageDisabled
9770                 - Fixes vertical menu line drawing
9771                 - Draws disabled arrows in disable menu items
9772
9773 2005-02-24  Peter Bartok  <pbartok@novell.com>
9774
9775         * Hwnd.cs:
9776           - Added UserData property to allow associating arbitrary objects
9777             with the handle
9778           - Fixed leak; now removing Hwnd references from static windows array
9779         * XplatUIWin32.cs:
9780           - Fixed Graphics leak in PaintEventEnd
9781           - Removed usage of HandleData, switched over to Hwnd class
9782         * HandleData.cs: Removed, obsoleted by Hwnd.cs
9783
9784 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9785
9786         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
9787         * ScrollBar.cs: Fixes bug
9788         * TrackBar.cs: removes death code, clipping, mimize refreshes,
9789          keyboard navigation enhancements
9790
9791 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
9792
9793         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
9794         * GroupBox.cs: Add control styles
9795         * Label.cs: Add control styles
9796         * UpDownBase.cs: Add control styles
9797         * ListBox.cs: Add control styles
9798         * XplatUIWin32.cs: Fixes wrong parameter order
9799
9800
9801 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
9802
9803         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
9804
9805 2005-02-23  Jackson Harper  <jackson@ximian.com>
9806
9807         * PropertyManager.cs: Implement property binding. This doesn't
9808         seem to work yet though as (I think) there are some bugs in
9809         System.ComponentModel.PropertyDescriptor.
9810         * BindingContext.cs: Use new PropertyManager constructor.
9811
9812 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
9813
9814         * ProgressBar.cs: use clip region in ProgressBar
9815         * ThemeWin32Classic.cs: use clip region in ProgressBar
9816
9817 2004-02-22  Jackson Harper  <jackson@ximian.com>
9818
9819         * BindingsCollection.cs: Remove some debug code.
9820
9821 2005-02-22  Jackson Harper  <jackson@ximian.com>
9822
9823         * BindingContext.cs:
9824         * ControlBindingsCollection.cs:
9825         * CurrencyManager.cs:
9826         * Binding.cs:
9827         * BindingManagerBase.cs: Initial implementation
9828         * BindingsCollection.cs: Add an internal contains method that the
9829         BindingManagerBase uses to ensure bindings aren't added twice to
9830         the collection.
9831         * PropertyManager.cs: Stubbed out.
9832         * Control.cs:
9833         * ContainerControl.cs: Hook up databinding
9834         
9835 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
9836
9837         * XplatUIOSX.cs:
9838           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
9839           Fixed Invalidate/Update chain.
9840           Fixed tons of other minor bugs (this is almost a complete rewrite).
9841
9842 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
9843
9844         * ComboBox.cs: do subcontrol creation when the control is created
9845
9846 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9847
9848         * Label.cs: fixes image drawing (image and imagelist)
9849         * ThemeWin32Classic.cs: cache brushes
9850         
9851 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9852
9853         * Form.cs: Move menu drawing code to Theme class
9854         * ComboBox.cs: Move ComboBox drawing code to Theme class
9855         * MenuItem.cs: Move menu drawing code to Theme class
9856         * MenuAPI.cs: Move menu drawing code to Theme class
9857         * ThemeWin32Classic.cs: New methods
9858         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
9859         * ListBox.cs: Move Listbox drawing code to Theme class
9860         * Theme.cs: New methods
9861
9862 2005-02-20  Peter Bartok  <pbartok@novell.com>
9863
9864         * Control.cs:
9865           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
9866             only process mnemonics on those)
9867           - Fixed event sequence for key handling; first calling
9868             ProcessKeyEventArgs now
9869         * TextBoxBase.cs:
9870           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
9871             for processing non-character keys
9872           - Fixed WM_CHAR to generate proper event sequence before processing
9873         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
9874           generation
9875
9876 2005-02-19  Peter Bartok  <pbartok@novell.com>
9877
9878         * UserControl.cs: Added TextChanged event; added attributes
9879         * SizeGrip.cs: Implemented resizing and optional display of grip
9880         * Form.cs: Fixed attribute
9881         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
9882           Changed meaning of ScrollWindow bool argument; instead of the
9883           clear attribute (which will be true usually anyway), it gives the
9884           option of moving child controls as well.
9885         * XplatUIX11.cs:
9886           - Changed to match new ScrollWindow argument
9887           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
9888             now handles the implicit parent window a WM puts around us
9889         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
9890           to work)
9891         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
9892         * TreeView.cs: Adjusted to new ScrollWindow arguments
9893
9894 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
9895
9896         * Form.cs: Menu integration with non-client area
9897         * MenuItem.cs: Menu integration with non-client area
9898         * MenuAPI.cs: Menu integration with non-client area
9899
9900 2005-02-18  Peter Bartok  <pbartok@novell.com>
9901
9902         * MethodInvoker.cs: Added
9903         * MdiLayout.cs: Added
9904         * SendKeys.cs: Started implementation
9905         * ErrorIconAlignment.cs: Added
9906
9907 2005-02-18  Peter Bartok  <pbartok@novell.com>
9908
9909         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
9910         * Form.cs: Added handling for Menu-related Non-client messages
9911
9912 2005-02-17  Peter Bartok  <pbartok@novell.com>
9913
9914         * UpDownBase.cs: Fixed typo, compilation errors
9915         * DomainUpDown.cs: Fixed attribute value
9916
9917 2005-02-16  Miguel de Icaza  <miguel@novell.com>
9918
9919         * UpDownBase.cs: Attach entry events.
9920         Propagate events.
9921         Add ForeColor property, Focused, InterceptArrowKeys (interception
9922         does not work yet).
9923
9924 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
9925
9926         * Form.cs:
9927                 - Redraw non client are on Setmenu
9928                 - Calc proper menu starting point
9929
9930 2005-02-17  Peter Bartok  <pbartok@novell.com>
9931
9932         * Application.cs: Fixed message_filter check
9933
9934 2005-02-17  Peter Bartok  <pbartok@novell.com>
9935
9936         * Application.cs: Now calls registered message filters
9937         * DockStyle.cs: Fixed attribute
9938         * Form.cs: Fixed attribute
9939         * Menu.cs: Fixed attribute
9940         * ToolTip.cs: Fixed attribute
9941         * TreeNode.cs: Added missing attributes and arranged in regions
9942         * PropertyGrid.cs: Fixed signatures
9943         * TreeNodeCollection.cs: Added attributes
9944         * Splitter.cs: Added missing attributes; arranged into regions
9945         * TabPage.cs: Added missing attributes; arranged into regions
9946         * TextBoxBase.cs: Added missing attributes
9947         * TextBox.cs: Added missing attributes
9948         * ArrangeDirection.cs: Added missing attributes
9949         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
9950         * ToolBarButton.cs: Fixed attributes
9951         * AnchorStyles.cs: Fixed attribute
9952         * TrackBar.cs: Fixed attributes
9953         * TabControl.cs: Added missing attributes and arranged into regions
9954         * ToolBar.cs: Fixed attribute
9955         * StatusBar.cs: Fixed signature, organized into regions and added
9956           attributes
9957         * StatusBarPanel.cs: Fixed attributes
9958         * ContentsResizedEventArgs.cs: Implemented
9959         * ContentsResizedEventHandler.cs: Implemented
9960         * DateBoldEventArgs.cs: Implemented
9961         * DateBoldEventHandler.cs: Implemented
9962         * UpDownEventArgs.cs: Implemented
9963         * UpDownEventHandler.cs: Implemented
9964         
9965 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
9966
9967         * Form.cs: first Menu NC refactoring
9968         * MenuAPI.cs: first Menu NC refactoring
9969         
9970 2005-02-16  Peter Bartok  <pbartok@novell.com>
9971
9972         * ImeMode.cs: Added missing attributes
9973         * Menu.cs: Fixed attribute
9974         * GroupBox.cs: Fixed attribute
9975         * Label.cs: Fixed attribute
9976         * ColorDialog.cs (RunDialog): Removed TODO attribute
9977         * ComboBox.cs: Fixed attributes
9978         * ListControl.cs: Added missing attributes
9979         * PropertyGrid.cs: Fixed attributes
9980         * Control.cs: Fixed attributes
9981         * ListViewItem.cs: Added TypeConverter attribute
9982         * NotifyIcon.cs: Fixed attributes
9983         * ListView.cs: Fixed attributes
9984         * ButtonBase.cs: Fixed attribute
9985         * ImageList.cs: Added missing attributes
9986         * ContainerControl.cs: Fixed signature
9987         * CheckedListBox.cs: Fixed attribute; added missing attributes
9988         * Panel.cs: Fixed attributes
9989         * PropertyTabChangedEventArgs.cs: Added missing attribute
9990         * PropertyValueChangedEventArgs.cs: Added missing attribute
9991         * Binding.cs: Fixed attribute
9992         * ListViewItemConverter: Implemented ListViewSubItemConverter class
9993         * ListBox.cs: Fixed attribute; added missing attributes;
9994         * ScrollableControl.cs: Added missing attributes
9995         * PictureBox.cs: Added missing attributes; implemented missing property
9996         * DateTimePicker.cs: Added missing attributes
9997         * Theme.cs (ToolWindowCaptionHeight): Fixed type
9998         * MonthCalendar.cs: Fixed attributes
9999         * StatusBarPanel.cs: Added missing attributes
10000         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
10001
10002 2005-02-16  Peter Bartok  <pbartok@novell.com>
10003
10004         * TextBoxBase.cs: The previous method to enforce height yet remember
10005           the requested high was less than ideal, this is an attempt to do
10006           it better.
10007         * Control.cs: Added comment about possible problem
10008         * Copyright: Updated format
10009         * GridItemType.cs: Fixed swapped values
10010
10011 2005-02-15  Jackson Harper  <jackson@ximian.com>
10012
10013         * BaseCollection.cs: Use property so we never access an
10014         uninitialized list. Also initialize the list in the property.
10015
10016 2005-02-15  Peter Bartok  <pbartok@novell.com>
10017
10018         * GroupBox.cs (ProcessMnemonic): Implemented
10019         * Label.cs (ProcessMnemonic): Implemented
10020         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
10021           hotkeys
10022
10023 2005-02-15  Peter Bartok  <pbartok@novell.com>
10024
10025         * RadioButton.cs (ProcessMnemonic): Implemented
10026         * CheckBox.cs (ProcessMnemonic): Implemented
10027         * Control.cs:
10028           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
10029             handling
10030           - Added internal method to allow calling ProcessMnemonic from other
10031             controls
10032         * ContainerControl.cs:
10033           - Started support for handling validation chain handling
10034           - Implemented ProcessMnemonic support
10035           - Added Select() call to Active, to make sure the active control
10036             receives focus
10037         * Form.cs: Setting toplevel flag for Forms (this was lost in the
10038           FormParent rewrite)
10039         * ThemeWin32Classic.cs:
10040           - DrawCheckBox(): Fixed stringformat to show hotkeys
10041           - DrawRadioButton(): Fixed stringformat to show hotkeys
10042         * CommonDialog.cs: Removed WndProc override, not needed
10043
10044 2005-02-14  Peter Bartok  <pbartok@novell.com>
10045
10046         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
10047           missed those in the rewrite
10048
10049 2005-02-14  Miguel de Icaza  <miguel@novell.com>
10050
10051         * NumericUpDown.cs (Increment, ToString): Add.
10052         (DecimalPlaces): implement.
10053         
10054         Add attributes.
10055         
10056         * UpDownBase.cs: Add the designer attributes.
10057
10058 2005-02-13  Peter Bartok  <pbartok@novell.com>
10059
10060         * Panel.cs: Removed border_style, now in Control
10061         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
10062           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
10063
10064 2005-02-13  Peter Bartok  <pbartok@novell.com>
10065
10066         * MouseButtons.cs: Added missing attributes
10067         * XplatUIStructs.cs: Added enumeration for title styles
10068         * LeftRightAlignment.cs: Added missing attributes
10069         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
10070           it compatible with Graphics.FromHwnd()
10071         * SelectedGridItemChangedEventArgs.cs: Fixed property type
10072         * Keys.cs: Added missing attributes
10073         * SelectionRange.cs: Added missing attributes
10074         * SelectionRangeConverter.cs: Added
10075         * XplatUI.cs:
10076           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
10077             ReleaseMenuDC methods
10078           - Renamed ReleaseWindow to UngrabWindow
10079           - Added proper startup notice to allow version identification
10080         * Form.cs:
10081           - Added missing attributes
10082           - Removed FormParent concept
10083         * Label.cs: Removed border_style field, now in Control
10084         * RadioButton.cs: Now properly selects RadioButton when focus is
10085           received
10086         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
10087         * Control.cs:
10088           - Added missing attributes
10089           - Added borderstyle handling
10090           - Removed FormParent concept support
10091           - Fixed calls to XplatUI to match changed APIs
10092           - Fixed bug that would case us to use disposed Graphics objects
10093           - Removed unneeded internal methods
10094           - PerformLayout(): Fixed to handle DockStyle.Fill properly
10095           - SelectNextControl(): Fixed to properly check common parents
10096         * TextBoxBase.cs: Removed border_style field (now in Control)
10097         * MessageBox.cs:
10098           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
10099             fixed calculations for form size
10100           - Added support for localized strings and icons
10101           - Improved form size calculations, added border
10102         * ListView.cs: Removed border_style field (now in Control)
10103         * X11Structs.cs: Moved several structs from X11 driver here
10104         * X11Keyboard.cs: Changed debug message
10105         * Application.cs: Removed FormParent concept support
10106         * CommonDialog.cs:
10107           - Resetting end_modal flag
10108           - Removed FormParent concept support
10109         * NativeWindow.cs: Removed FormParent concept support
10110         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
10111           Client area and Non-Client whole window to allow support for WM_NC
10112           messages
10113         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
10114           prevent using it until it supports Hwnd as per Geoff Norton's request
10115         * ToolBar.cs: Fixed drawing, was not doing proper drawing
10116         * PictureBox.cs: Removed border_style field, now in Control
10117         * XplatUIWin32.cs: Added new driver methods
10118
10119 2005-02-12  Peter Bartok  <pbartok@novell.com>
10120
10121         * OpacityConverter.cs: Implemented
10122         * Hwnd.cs: Internal class to support drivers that need to emulate
10123           client area/non-client area window behaviour
10124
10125 2005-02-11  Peter Bartok  <pbartok@novell.com>
10126
10127         * KeysConverter.cs: Implemented
10128
10129 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
10130
10131         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
10132         * LinkLabel: Added missing attributes
10133         * MainMenu.cs: fixes ToString
10134         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
10135         * ListBox.cs: fixes event position
10136         * TrackBar.cs: adds missing attributes and events
10137         
10138 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
10139
10140         * MenuItem.cs: Use SystemInformation and bug fixes
10141         * MenuAPI.cs: Use SystemInformation and bug fixes
10142
10143 2005-02-09  Jackson Harper  <jackson@ximian.com>
10144
10145         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
10146         their keystate otherwise things like VK_MENU get stuck "on".
10147
10148 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
10149
10150         * ListBox.cs: Fixes AddRange bug
10151         
10152 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
10153
10154         * ProgressBar.cs
10155                 - Add missing attributes
10156                 - Add missing method
10157                 
10158         * CheckedListBox.cs: Added missing attributes
10159                 - Add missing attributes
10160                 - Remove extra method
10161         
10162         * ComboBox.cs: Added missing attributes
10163         * VScrollBar.cs: Added missing attributes
10164         * ScrollBar.cs:  Added missing attributes
10165         * ListBox.cs: Fixes signature, add missing consts
10166         * LinkArea.cs:   Added missing attributes
10167         
10168
10169 2005-02-08  Peter Bartok  <pbartok@novell.com>
10170
10171         * Menu.cs: Added missing attributes
10172         * MainMenu.cs: Added missing attributes
10173         * GroupBox.cs: Added missing attributes
10174         * Label.cs: Added missing attributes
10175         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
10176         * ColorDialog.cs:
10177           - Added Instance and Options properties
10178           - Added missing attributes
10179         * Cursor.cs: Made Serializable
10180         * NotifyIcon: Added missing attributes
10181         * MenuItem.cs: Added missing attributes
10182         * TextBoxBase.cs: Implemented AppendText() and Select() methods
10183         * Panel.cs: Added Missing attributes
10184         * MonthCalendar.cs: Fixed CreateParams
10185
10186 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
10187         
10188         * LinkLabel.cs:
10189                 - Fixes signature
10190                 - Fixes issues with links
10191                 - Adds the class attributes
10192
10193 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
10194         
10195         * ComboBox.cs:
10196                 - Fixes button when no items available in dropdown
10197                 - Fixes repainting problems
10198                 - Adds the class attributes
10199                 
10200 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10201
10202         * XplatUIOSX.cs: Detect the menu bar and title bar height from
10203         the current theme.  Cache these on startup.
10204
10205 2005-02-07  Jackson Harper  <jackson@ximian.com>
10206
10207         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
10208         the scrollbar buttons when they are depressed.
10209
10210 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10211
10212         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
10213         Get the display size from the main displayid.  We currently dont
10214         support multiple display configurations.
10215
10216 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
10217
10218         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
10219
10220 2005-02-07  Miguel de Icaza  <miguel@novell.com>
10221
10222         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
10223
10224 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
10225
10226         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
10227
10228 2005-02-04  Jackson Harper  <jackson@ximian.com>
10229
10230         * ThemeWin32Classic.cs: Respect the clipping rect when
10231         drawing. Only fill the intersection of clips and rects so there
10232         isn't a lot of large fills.
10233         * ScrollBar.cs: Pass the correct clipping rect to the theme
10234         engine. Remove some debug code.
10235
10236 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
10237         
10238         * DateTimePicker.cs:
10239                 - Fixed crash on DateTime.Parse, use Constructor instead
10240
10241 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
10242         
10243         * MenuItem.cs:
10244         * MenuAPI.cs:
10245                 - Owner draw support (MeasureItem and DrawItem)
10246
10247 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
10248         
10249         *  Menu.cs:
10250                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
10251                 - Fixes MenuItems.Add range
10252         * MenuItem.cs:
10253                 - MergeMenu and Clone and CloneMenu functions
10254
10255 2005-02-03  Jackson Harper  <jackson@ximian.com>
10256
10257         * ScrollBar.cs: Make abstract
10258         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
10259         is abstract.
10260
10261 2005-02-03  Jackson Harper  <jackson@ximian.com>
10262
10263         * ScrollBar.cs: First part of my scrollbar fixups. This removes
10264         all the unneeded refreshes and uses invalidates with properly
10265         computed rects.
10266
10267 2005-02-03  Peter Bartok  <pbartok@novell.com>
10268
10269         * ComponentModel.cs: Added
10270         * IDataGridEditingService.cs: Added
10271         * Timer.cs: Added missing attributes
10272         * ToolTip.cs: Added missing attributes
10273
10274 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
10275
10276         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
10277
10278 2005-02-03  Peter Bartok  <pbartok@novell.com>
10279
10280         * ListBox.cs: Added missing attributes
10281
10282 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
10283         
10284         * ListBox.cs:
10285                 - Fixes font height after font change
10286                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
10287                 
10288 2005-02-02  Peter Bartok  <pbartok@novell.com>
10289
10290         * HandleData.cs: Introduced static methods to allow class
10291           to be more self-contained and track it's own HandleData objects
10292         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
10293           HandleData to use new static methods
10294
10295 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
10296
10297         * Combobox.cs:
10298                 - Fixes default size and PreferredHeight
10299                 - Missing events
10300                 - ObjectCollection.Insert implementation
10301                 
10302         * ListControl.cs
10303                 - Fixes signature
10304         * ListBox.cs:
10305                 - Several fixes
10306                 - ObjectCollection.Insert implementation
10307                 - No selection after clean
10308                 - Small fixes
10309
10310 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
10311
10312         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
10313
10314 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
10315
10316         * Combobox.cs:
10317                 - Caches ItemHeight calculation for OwnerDrawVariable
10318                 - Handles dropdown properly
10319                 - Fixes several minor bugs
10320
10321 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
10322
10323         * ListBox.cs:
10324                 - Fixes 71946 and 71950
10325                 - Fixes changing Multicolumn on the fly
10326                 - Fixes keyboard navigation on Multicolumn listboxes
10327
10328 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10329         
10330         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
10331         crash reporter log.
10332
10333 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10334
10335         * XplatUIOSX.cs: Allow applications to actually exit.
10336
10337 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
10338
10339         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
10340         their parent at creation time rather than lazily later.  Fixes a major
10341         regression we were experiencing.
10342
10343 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
10344
10345         * ThemeWin32Classic.cs: more date time picker painting fixes
10346         * DateTimePicker.cs: more monthcalendar drop down fixes
10347         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
10348
10349 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
10350
10351         * ScrollBar.cs:
10352                 - When moving the thumb going outside the control should stop the moving
10353                 - Adds the firing of missing events
10354                 - Fixes no button show if Size is not specified
10355                 - End / Home keys for keyboard navigation
10356
10357 2005-01-30  Peter Bartok  <pbartok@novell.com>
10358
10359         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
10360           sanity check to prevent theoretical loop
10361         * XplatUIWin32.cs (SetVisible): Removed debug output
10362         * XplatUIX11.cs (SystrayChange): Added sanity check
10363         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
10364         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
10365           behaviour, valid until the X11 client window rewrite is done
10366         * TextBox.cs (ctor): Setting proper default foreground and background
10367           colors
10368
10369 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
10370
10371         * Theme: Added DrawDateTimePicker to interface
10372         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
10373         * DateTimePicker.cs: Created (still needs keys and painting code)
10374         * DateTimePickerFormat.cs: added
10375         * MonthCalendar.cs: fixed CreateParams for popup window mode
10376           
10377 2005-01-29  Peter Bartok  <pbartok@novell.com>
10378
10379         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
10380           this should also the calculations for ligher/darker
10381         * Theme.cs: Fixed defaults for ScrollBar widths/heights
10382
10383 2005-01-29  Peter Bartok  <pbartok@novell.com>
10384
10385         * ArrangeDirection.cs: Added
10386         * ArrangeStartingPositon.cs: Added
10387         * SystemInformation.cs: Implemented
10388         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10389           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
10390           used by SystemInformation class
10391         * X11Strucs.cs: Added XSizeHints structure
10392         * MenuAPI.cs:
10393           - Fixed CreateParams to make sure the menu window is always visible
10394           - TrackPopupMenu: Added check to make sure we don't draw the
10395             menu offscreen
10396
10397 2005-01-29  Peter Bartok  <pbartok@novell.com>
10398
10399         * HandleData.cs: Added method for altering invalid area
10400         * TextBoxBase.cs: Implemented TextLength
10401
10402 2005-01-28  Peter Bartok  <pbartok@novell.com>
10403
10404         * XplatUIX11.cs: Improvement over last patch, not sending
10405           the WM_PAINT directly anymore, instead we scroll any pending
10406           exposed areas and let the system pick out the WM_PAINT later
10407
10408 2005-01-28  Peter Bartok  <pbartok@novell.com>
10409
10410         * SWF.csproj: Deleted, no longer used. Instead,
10411           Managed.Windows.Forms/SWF.csproj should be used
10412         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
10413           directly, to avoid a potential race condition with the next
10414           scroll
10415
10416 2005-01-28  Peter Bartok  <pbartok@novell.com>
10417
10418         * XplatUI.cs: Made class internal
10419
10420 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
10421
10422         * CheckedListBox.cs:
10423                 - Draw focus
10424                 - Fixed Drawing
10425                 - Missing methods and events
10426
10427 2005-01-27  Peter Bartok  <pbartok@novell.com>
10428
10429         * Application.cs (Run): Don't use form if we don't have one
10430
10431 2005-01-27  Peter Bartok  <pbartok@novell.com>
10432
10433         * TextBoxBase.cs (get_Lines): Fixed index off by one error
10434
10435 2005-01-27  Peter Bartok  <pbartok@novell.com>
10436
10437         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
10438         * GridItem.cs: Added; Patch by Jonathan S. Chambers
10439         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
10440         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
10441         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
10442         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
10443         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10444         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10445         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10446         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10447         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
10448         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
10449
10450 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
10451
10452         * Combobox.cs:
10453                 - Draw focus on Simple Combobox
10454                 - Fixes drawing issues
10455                 - fixes 71834
10456
10457 2005-01-27  Peter Bartok  <pbartok@novell.com>
10458
10459         * Form.cs:
10460           - Place window in default location, instead of hardcoded 0/0
10461           - Send initial LocationChanged event
10462         * Control.cs:
10463           - UpdateBounds after creation to find out where the WM placed us
10464           - Make sure that if the ParentForm changes location the Form
10465             is notified
10466         * XplatUIX11.cs: XGetGeometry will not return the coords relative
10467             to the root, but to whatever the WM placed around us.
10468             Translate to root coordinates before returning toplevel
10469             coordinates
10470         * XplatUIWin32.cs: Removed debug output
10471         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
10472           flag to GetWindowPos, to allow translation of coordinates on X11
10473
10474 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
10475
10476         * ListBox.cs: connect LostFocus Event
10477
10478 2005-01-27  Peter Bartok  <pbartok@novell.com>
10479
10480         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10481           XplatUIX11.cs: Extended the Systray API
10482         * Form.cs: Removed debug output
10483         * Application.cs: Fixed focus assignment, always need to call
10484           XplatUI.Activate() since Form.Activate() has rules that may
10485           prevent activation
10486         * NotifyIcon.cs: Should be complete now
10487         * ToolTip.cs: Worked around possible timer bug
10488
10489 2005-01-27  Jackson Harper  <jackson@ximian.com>
10490
10491         * TabControl.cs:
10492         - Only invalidate the effected tabs when the
10493         selected index changes. This reduces drawing and gets rid of some
10494         flicker.
10495         - Only refresh if the tabs need to be shifted, otherwise only
10496         invalidate the slider button.
10497         - On windows the tabs are not filled to right if the slider is
10498         visible.
10499         
10500 2005-01-27  Jackson Harper  <jackson@ximian.com>
10501
10502         * TabControl.cs: Only refresh on mouseup if we are showing the
10503         slider. Also only invalidate the button whose state has changed.
10504
10505 2005-01-26  Peter Bartok  <pbartok@novell.com>
10506
10507         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
10508         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
10509           and SystrayRemove() methods
10510         * XplatUIOSX.cs: Stubbed Systray methods
10511         * XplatUIX11.cs:
10512           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
10513             methods
10514           - Fixed broken XChangeProperty calls (marshalling messed up things)
10515         * X11Structs.cs: Added enums and structs required for Size hinting
10516         * NotifyIcon.cs: Added & implemented
10517
10518 2005-01-26  Jackson Harper  <jackson@ximian.com>
10519
10520         * TabControl.cs: Space vertically layed out tabs properly.
10521
10522 2005-01-26  Peter Bartok  <pbartok@novell.com>
10523
10524         * Form.cs (CreateClientParams): Always set the location to 0,0
10525           since we're a child window.
10526
10527         * Control.cs (SetVisibleCore): Always explicitly setting the location
10528           of a toplevel window, apparently X11 doesn't like to move windows
10529           while they're not mapped.
10530
10531 2005-01-26  Jackson Harper  <jackson@ximian.com>
10532
10533         * TabControl.cs: Implement FillToRight size mode with vertically
10534         rendered tabs.
10535
10536 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10537
10538         * ControlPaint.cs, ThemeWin32Classic.cs
10539                 - Fixes DrawFocusRectangle
10540
10541 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
10542
10543         * MenuAPI.cs:
10544                 - MenuBar tracking only starts when item is first clicked
10545                 - Fixes menu hidding for multiple subitems
10546                 - Unselect item in MenuBar when item Executed
10547                 - Fixes bug 71495
10548
10549 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
10550
10551         * ListControl.cs:
10552                 - IsInputKey for ListBox
10553         * ListBox.cs:
10554                 - Focus item
10555                 - Shift and Control item selection
10556                 - Implement SelectionMode.MultiExtended
10557                 - Fixes RightToLeft
10558         * ComboBox.cs:
10559                 - IsInputKey implemented
10560                 - Do not generate OnTextChangedEdit on internal txt changes
10561                 
10562 2005-01-23  Peter Bartok  <pbartok@novell.com>
10563
10564         * AccessibleObject.cs: Partially implemented Select()
10565         * MonthCalendar.cs: Added missing attributes and events
10566         * Form.cs: Fixed CreateParams behaviour, now controls derived from
10567           form can properly override CreateParams.
10568         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10569           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
10570           Control performs Invalidate & Update
10571         * NativeWindow (CreateHandle): Added special handling for Form
10572           and Form.FormParent classes to allow overriding of From.CreateParams
10573         * Control.cs:
10574           - ControlNativeWindow: Renamed 'control' variable to more intuitive
10575             name 'owner'
10576           - ControlNativeWindow: Added Owner property
10577           - Removed usage of Refresh() on property changes, changed into
10578             Invalidate(), we need to wait until the queue is processed for
10579             updates, direct calls might cause problems if not all vars for
10580             Paint are initialized
10581           - Added call to UpdateStyles() when creating the window, to set any
10582             styles that CreateWindow might have ignored.
10583           - Added support for Form CreateParent overrides to UpdateStyles()
10584         * MessageBox.cs: Removed no longer needed FormParent override stuff,
10585           CreateParams are now properly overridable
10586         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
10587           CreateParams are now properly overridable
10588
10589 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
10590
10591         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
10592         OnTextBoxChanged.
10593
10594         Capture LostFocus and OnTextBoxChanged.  The later introduces a
10595         recursive invocation that I have not figured out yet.
10596
10597         Reset the timer when not using (it was accumulating).
10598
10599
10600         (OnTextBoxChanged): Set UserEdit to true here to track whether the
10601         user has made changes that require validation.
10602
10603         Reset changing to avoid loops.
10604
10605 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
10606
10607         * NumericUpDown.cs: Display value at startup.
10608
10609         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
10610         ValidateEditText.
10611
10612         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
10613         filled in.  Added some basic parsing of text.
10614
10615         Still missing the OnXXX method overrides, and figuring out the
10616         events that must be emitted.
10617
10618         * UpDownBase.cs: Handle UserEdit on the Text property.
10619         
10620 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
10621
10622         * ComboBox.cs:
10623           - Fixes IntegralHeight
10624           - ToString method
10625
10626 2005-01-21  Jackson Harper  <jackson@ximian.com>
10627
10628         * TabControl.cs: Set the SelectedIndex property when SelectedTab
10629         is set so that the page visibility is updated and the tabs are
10630         sized correctly.
10631
10632 2005-01-21  Jackson Harper  <jackson@ximian.com>
10633
10634         * TabControl.cs: Use cliping rectangle for blitting. Give the
10635         theme the clipping rect so we can do clipping while
10636         drawing. Remove some debug code.
10637
10638 2005-01-21  Jackson Harper  <jackson@ximian.com>
10639
10640         * TabPage.cs: Add a new method so tab pages can force the tab
10641         control to recalculate the tab page sizes.
10642         * TabControl.cs: UpdateOwner needs to make the tab control recalc
10643         sizes.
10644
10645 2005-01-20  Jackson Harper  <jackson@ximian.com>
10646
10647         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
10648
10649 2005-01-20  Jackson Harper  <jackson@ximian.com>
10650
10651         * TreeView.cs: Set the bounds for nodes properly. They were
10652         getting screwed up when checkboxes were not enabled, but images
10653         were.
10654
10655 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
10656
10657         * ListBox.cs:
10658                 - Owner draw support
10659                 - Fixes
10660                 
10661 2005-01-20  Jackson Harper  <jackson@ximian.com>
10662
10663         * XplatUIStructs.cs: More misc keys
10664         * X11Keyboard.cs: Ignore some control keys.
10665
10666 2005-01-20  Jackson Harper  <jackson@ximian.com>
10667
10668         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
10669         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
10670
10671 2005-01-19  Peter Bartok  <pbartok@novell.com>
10672
10673         * Control.cs: Un-selecting the control when it is loosing focus
10674
10675 2005-01-19  Jackson Harper  <jackson@ximian.com>
10676
10677         * TreeView.cs: Hook up to the text controls leave event so we can
10678         end editing when the users clicks outside the text box.
10679         
10680 2005-01-19  Jackson Harper  <jackson@ximian.com>
10681
10682         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
10683         get set in the conversion array.
10684
10685 2005-01-19  Peter Bartok  <pbartok@novell.com>
10686
10687         * Application.cs (ModalRun): Added a call to CreateControl to ensure
10688           focus is properly set
10689         * Button.cs:
10690           - Added missing attributes
10691           - removed styles, those are already set in the base class
10692         * ButtonBase.cs:
10693           - Added missing attributes
10694           - Added clip window styles
10695         * CheckBox.cs: Added missing attributes
10696         * CommonDialog.cs:
10697           - FormParentWindow.CreateParams: Added required clip styles
10698         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
10699           also filters modifier keys
10700         * MessageBox.cs:
10701           - Added assignment of Accept and Cancel button to enable Enter
10702             and Esc keys in MessageBox dialogs
10703           - FormParentWindow.CreateParams: Added required clip styles
10704         * RadioButton.cs: Added missing attributes
10705         * TextControl.cs: No longer draws selection if control does not
10706           have focus
10707         * TextBoxBase.cs:
10708           - Now draws simple rectangle around test area to make it obvious
10709             there's a control. This is a hack until we properly support borders
10710           - A few simple fixes to support selections better, now erases selected
10711             text when typing, and resets selection when using movement keys
10712
10713 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
10714
10715         * UpDownBase.cs: Added some new properties.
10716
10717         * DomainUpDown.cs: Implement a lot to get my test working.
10718
10719 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10720
10721         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
10722
10723 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10724
10725         * OSXStructs (WindowAttributes): Fixed csc complaints
10726
10727 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10728
10729         * XplayUIOSX.cs:
10730           OSXStructs.cs: Initial refactor to move enums and consts into
10731           OSXStructs and use them in the driver for greater readability.
10732
10733 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
10734
10735         * XplatUIOSX.cs: Initial support for Standard Cursors.
10736         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
10737
10738 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
10739
10740         * ComboBox.cs: ability to change style when the ctrl is already
10741         created, missing methods and events, bug fixes, signature fixes
10742
10743 2005-01-19  Peter Bartok  <pbartok@novell.com>
10744
10745         * Cursors.cs (ctor): Added ctor to fix signature
10746
10747 2005-01-18  Peter Bartok  <pbartok@novell.com>
10748
10749         * Button.cs: Implemented DoubleClick event
10750         * ButtonBase.cs:
10751           - Fixed keyboard handling to behave like MS, where the press of
10752             Spacebar is equivalent to a mousedown, and the key release is
10753             equivalent to mouseup. Now a spacebar push will give the same
10754             visual feedback like a mouse click.
10755           - Added missing attributes
10756           - Added ImeModeChanged event
10757           - Added support for generating DoubleClick event for derived classes
10758         * CheckBox.cs:
10759           - Implemented DoubleClick event
10760           - Added missing attributes
10761         * CommonDialog.cs: Added missing attribute
10762         * ContextMenu.cs: Added missing attributes
10763         * RadioButton.cs:
10764           - AutoChecked buttons do not allow to be unselected when clicked
10765             (otherwise we might end up with no selected buttons in a group)
10766           - Added missing attributes
10767           - Implemented DoubleClickEvent
10768         * ThreadExceptionDialog.cs: Enabled TextBox code
10769
10770 2005-01-18  Peter Bartok  <pbartok@novell.com>
10771
10772         * Form.cs: Removed debug output
10773         * Button.cs: Added support for DoubleClick method
10774
10775 2005-01-18  Peter Bartok  <pbartok@novell.com>
10776
10777         * Form.cs:
10778           - Added method to parent window that allows triggering size
10779             calculations when a menu is added/removed
10780           - set_Menu: Cleaned up mess from early days of Form and Control,
10781             now properly triggers a recalc when a menu is added/removed
10782           - Added case to select form itself as focused form if no child
10783             controls exist
10784           - Added PerformLayout call when showing dialog, to ensure properly
10785             placed controls
10786         * Control.cs:
10787           - Select(): Made internal so Form can access it
10788           - Focus(): Only call Xplat layer if required (avoids loop), and sets
10789             status
10790         * Application.cs (Run): Removed hack and calls PerformLayout instead
10791           to trigger calculation when Form becomes visible
10792
10793 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
10794
10795         * ComboBox.cs: fixes for ownerdraw
10796
10797 2005-01-18  Peter Bartok  <pbartok@novell.com>
10798
10799         * TextControl.cs:
10800           - Sentinel is no longer static, each Document gets it's own, this
10801             avoids locking or alternatively overwrite problems when more
10802             than one text control is used simultaneously.
10803           - Switched to use Hilight and HilightText brushes for text selection
10804
10805         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
10806
10807 2005-01-18  Peter Bartok  <pbartok@novell.com>
10808
10809         * Control.cs:
10810           - Hooked up the following events:
10811                 o ControlAdded
10812                 o ControlRemoved
10813                 o HandleDestroyed
10814                 o ImeModeChanged
10815                 o ParentChanged
10816                 o TabStopChanged
10817                 o Invalidated
10818                 o SystemColorsChanged
10819                 o ParentFontChanged
10820                 o Move
10821           - Removed debug output
10822           - Added a call to the current theme's ResetDefaults when a color change
10823             is detected
10824         * Form.cs: Now setting the proper ImeMode
10825         * Theme.cs: Defined a method to force recreation of cached resources
10826           and rereading of system defaults (ResetDefaults())
10827         * ThemeWin32Classic.cs: Added ResetDefaults() stub
10828
10829 2005-01-17  Peter Bartok  <pbartok@novell.com>
10830
10831         * Control.cs: Added missing attributes
10832
10833 2005-01-17  Jackson Harper  <jackson@ximian.com>
10834
10835         * TreeNode.cs: Implement editing. Add missing properties selected
10836         and visible.
10837         * TreeView.cs: Implement node editing. Also some fixes to use
10838         Invalidate (invalid area) instead of Refresh when selecting.
10839
10840 2005-01-17  Peter Bartok  <pbartok@novell.com>
10841
10842         * Control.cs:
10843           - Implemented InvokeGotFocus() method
10844           - Implemented InvokeLostFocus() method
10845           - Implemented InvokePaint() method
10846           - Implemented InvokePaintBackground() method
10847           - Implemented InvokeClick() method
10848           - Implemented FindForm() method
10849           - Implemented RectangleToClient() method
10850           - Implemented ClientToRectangle() method
10851           - Implemented ResetBackColor() method
10852           - Implemented ResetCursor() method
10853           - Implemented ResetFont() method
10854           - Implemented ResteForeColor() method
10855           - Implemented ResetImeMode() method
10856           - Implemented ResetLeftToRight() method
10857           - Implemented ResetText() method
10858           - Implemented Scale() methods
10859           - Implemented ScaleCore() method
10860           - Implemented Update() method
10861           - Removed unused variables
10862           - Stubbed AccessibilityNotifyClients and
10863             ControlAccessibleObject.NotifyClients() methods (dunno what to do
10864             with those yet)
10865           - Now setting proper default for RightToLeft property
10866           - Fixed bug in SetClientSizeCore that would cause windows to get
10867             really big
10868           - Now sending Click/DoubleClick events
10869           - Now selecting controls when left mouse button is clicked on
10870             selectable control
10871         * AccessibleEvents.cs: Added
10872         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
10873         * XplatUIOSX.cs: Stubbed UpdateWindow() method
10874         * XplatUIWin32.cs: Implemented UpdateWindow() method
10875         * XplatUIX11.cs: Implemented UpdateWindow() method
10876         * Form.cs: Removed stray semicolon causing CS0162 warning
10877         * ThemeWin32Classic.cs: Fixed unused variable warnings
10878         * ScrollableControl.cs: Now calls base method for ScaleCore
10879         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
10880           style to avoid interference with internal click handler (which is
10881           different than standard Control click handling)
10882         * RadioButton.cs:
10883           - Now unchecks all sibling radio buttons when control is
10884             selected (Fixes #68756)
10885           - Removed internal tabstop variable, using the one inherited from
10886             Control
10887
10888 2005-01-17  Jackson Harper  <jackson@ximian.com>
10889
10890         * NavigateEventArgs.cs: Fix base type.
10891         * LinkLabel.cs: Sig fix
10892         
10893 2005-01-17  Jackson Harper  <jackson@ximian.com>
10894
10895         * TreeView.cs: Only invalidate the effected nodes bounds when
10896         selecting nodes.
10897
10898 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10899
10900         * XplatUIWin32.cs: fixes Win32 marshaling
10901         * XplatUIX11.cs: fixes method signature
10902
10903 2005-01-17  Peter Bartok  <pbartok@novell.com>
10904
10905         * XplatUIX11.cs: Clean up resources when we no longer need them
10906
10907 2005-01-17  Peter Bartok  <pbartok@novell.com>
10908
10909         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
10910           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
10911           and DestroyCursor() methods.
10912         * Cursor.cs: Partially implemented, now supports standard cursors;
10913           still contains some debug code
10914         * Cursors.cs: Implemented class
10915         * Control.cs:
10916           - WndProc(): Added handling of WM_SETCURSOR message, setting the
10917             appropriate cursor
10918           - Implemented Cursor property
10919           - Replaced break; with return; more straightforwar and possibly
10920             faster
10921           - Now properly setting the result for WM_HELP
10922         * X11Structs.cs: Added CursorFontShape enum
10923         * XplatUIStructs.cs:
10924           - Added StdCursor enum (to support DefineStdCursor() method)
10925           - Added HitTest enum (to support sending WM_SETCURSOR message)
10926         * XplatUIX11.cs:
10927           - Now sends the WM_SETCURSOR message
10928           - Implemented new cursor methods
10929         * XplatUIOSX.cs: Stubbed new cursor methods
10930         * XplatUIWin32.cs:
10931           - Implemented new cursor methods
10932           - Added GetSystemMetrics function and associated enumeration
10933
10934 2005-01-15  Peter Bartok  <pbartok@novell.com>
10935
10936         * Control.cs:
10937           - WndProc(): Now handles EnableNotifyMessage
10938           - SelectNextControl(): Fixed bug where if no child or sibling
10939             controls exist we looped endlessly
10940
10941 2005-01-14  Jackson Harper  <jackson@ximian.com>
10942
10943         * TreeView.cs: Recalculate the tab pages when a new one is added
10944         so that the proper bounding rects are created.
10945
10946 2005-01-14  Jackson Harper  <jackson@ximian.com>
10947
10948         * TreeView.cs: Draw a gray box instead of a grip in the lower
10949         right hand corner when there are both horizontal and vertical
10950         scroll bars.
10951
10952 2005-01-14  Jackson Harper  <jackson@ximian.com>
10953
10954         * Control.cs: When erasing backgrounds use FromHwnd instead of
10955         FromHdc when there is a NULL wparam. This occurs on the X driver.
10956         * XplatUIX11.cs: Set the wparam to NULL.
10957
10958 2005-01-13  Jackson Harper  <jackson@ximian.com>
10959
10960         * PictureBox.cs: Implement missing methods (except ToString, need
10961         to test that on windows) and events. When visibility is changed we
10962         need to redraw the image because the buffers are killed. When size
10963         is changed refresh if the sizemode needs it.
10964
10965 2005-01-13  Peter Bartok  <pbartok@novell.com>
10966
10967         * Control.cs (SelectNextControl): Was using wrong method to select
10968           a control
10969
10970 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10971
10972         * ComboBox.cs: fixes dropstyle
10973
10974 2005-01-13  Peter Bartok  <pbartok@novell.com>
10975
10976         * Form.cs:
10977           - Implemented Select() override
10978           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
10979           - Now sets keyboard focus on startup
10980         * Control.cs (SelectNextControl): Now properly handles directed=true
10981         * TextBoxBase.cs:
10982           - WndProc: Now passes tab key on to base if AcceptTabChar=false
10983           - Added (really bad) focus rectangle (mostly for testing)
10984         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
10985           to enforce redraw on focus changes
10986         * ContainerControl.cs:
10987           - Fixed detection of Shift-Tab key presses
10988           - Fixed traversal with arrow keys
10989         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
10990           gonna keep this or if it's complete yet
10991         
10992 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10993
10994         * ComboBox.cs: missing properties, fixes
10995
10996 2005-01-13  Peter Bartok  <pbartok@novell.com>
10997
10998         * Panel.cs (ctor): Setting Selectable window style to off
10999         * Splitter.cs (ctor): Setting Selectable window style to off
11000         * GroupBox.cs (ctor): Setting Selectable window style to off
11001         * Label.cs (ctor): Setting Selectable window style to off
11002
11003 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
11004
11005         * UpDownBase.cs (InitTimer): If the timer has been already
11006         created, enable it.
11007
11008         Use a TextBox instead of a Label.
11009
11010 2005-01-12  Jackson Harper  <jackson@ximian.com>
11011
11012         * TreeView.cs: Refresh the tree after sorting the nodes. Always
11013         draw the connecting node lines (when ShowLines is true).
11014         * TreeNode.cs: The nodes index can now be updated. This is used
11015         when a node collection is sorted.
11016         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
11017         insert or an existing unsorted node collection can be sorted.
11018         
11019 2005-01-12  Peter Bartok  <pbartok@novell.com>
11020
11021         * ContainerControl.cs: Implemented ProcessDialogKeys()
11022
11023 2005-01-12  Peter Bartok  <pbartok@novell.com>
11024
11025         * Control.cs:
11026           - Implemented SelectNextControl() method
11027           - Several focus related bug fixes
11028           - Fixed Docking calculations to match MS documentation and
11029             behaviour
11030
11031 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
11032
11033         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
11034         bug fixes
11035
11036 2005-01-12  Peter Bartok  <pbartok@novell.com>
11037
11038         * Control.cs:
11039           - Fixed broken Contains() method
11040           - Implemented GetNextControl() method. Finally. This is the pre-
11041             requisite for focus handling.
11042
11043 2005-01-12  Peter Bartok  <pbartok@novell.com>
11044
11045         * OSXStrucs.cs: Added
11046
11047 2005-01-12  Peter Bartok  <pbartok@novell.com>
11048
11049         * XplatUIWin32.cs:
11050           - Removed PeekMessageFlags
11051           - Implemented SetWindowStyle() method
11052         * XplatUIStructs.cs: Added PeekMessageFlags
11053         * X11Structs: Added missing border_width field to XWindowChanges struct
11054         * XplatUIX11.cs:
11055           - PeekMessage: Now throws exception if flags which are not yet
11056             supported are passed
11057           - Implemented SetWindowStyle() method
11058           - Fixed SetZOrder to handle AfterHwnd properly
11059         * XplatUI.cs: Added SetWindowStyle() method
11060         * XplatUIDriver.cs: Added SetWindowStyle() abstract
11061         * Control.cs:
11062           - Implemented UpdateStyles() method
11063           - Implemented UpdateZOrder() method
11064         * XplatUIOSX.cs: Added SetWindowStyle() stub
11065
11066 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
11067
11068         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
11069         button mouse).
11070
11071
11072 2005-01-11  Jackson Harper  <jackson@ximian.com>
11073
11074         * TreeView.cs: Still need to draw lines to siblings even if out of
11075         the current node is out of the clip.
11076
11077 2005-01-11  Jackson Harper  <jackson@ximian.com>
11078
11079         * TreeView.cs: When setting the hbar/vbar/grip position use
11080         SetBounds so that perform layout is only called once. Also suspend
11081         and resume layout so layout is only done once for all controls.
11082         - Removed some debug fluff
11083         * SizeGrip.cs: Call base implmentation in overriding methods.
11084         - When visibility is changed the drawing buffers are killed so we
11085         need to redraw.
11086
11087 2005-01-11  Jackson Harper  <jackson@ximian.com>
11088
11089         * TreeView.cs: Calculate the open node count while drawing. This
11090         saves us an entire tree traversal for every paint operation. Use
11091         a member var for the open node count so less vars are passed around.
11092
11093 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
11094
11095         * MonthCalendar.cs:
11096         - fixed selection to use mousemove, not mouse polling on timer
11097         * ThemeWin32Classic.cs
11098         - removed redundant unused variable "no_more_content"
11099         
11100 2005-01-11  Peter Bartok  <pbartok@novell.com>
11101
11102         * XplatUIX11.cs (DoEvents): Needs to return when no more events
11103           are pending, so it now calls PeekMessage instead of GetMessage;
11104           implemented a incomplete version of PeekMessage
11105         
11106 2005-01-11  Peter Bartok  <pbartok@novell.com>
11107
11108         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
11109           I18n issues
11110         * TextBoxBase.cs: Added sending of TextChanged event
11111
11112 2005-01-10  Jackson Harper  <jackson@ximian.com>
11113
11114         * TreeView.cs: Try not to draw outside the clipping rectangle on
11115         each node element.
11116
11117 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
11118
11119         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
11120
11121 2005-01-10  Jackson Harper  <jackson@ximian.com>
11122
11123         * TreeView.cs:
11124         - Implement fast scrolling. Now only the newly
11125         exposed nodes are drawn and the old image is moved using the
11126         XplatUI::ScrollWindow method.
11127         - Factor in height of nodes when calculating whether or not the
11128         node is in the clipping rect.
11129
11130 2005-01-10  Jackson Harper  <jackson@ximian.com>
11131
11132         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
11133
11134 2005-01-10  Peter Bartok  <pbartok@novell.com>
11135
11136         * Application.cs: Added temporary hack to resolve all our resize
11137           required issues on startup. This will get fixed properly at
11138           some point in the future
11139
11140 2005-01-10  Jackson Harper  <jackson@ximian.com>
11141
11142         * SizeGrip.cs: New internal class that is used as a sizing
11143         grip control...hence the name.
11144
11145 2005-01-10  Peter Bartok  <pbartok@novell.com>
11146
11147         * Control.cs: Implemented proper TabIndex handling, now assigning
11148           a tabindex when a control is added to a container
11149         * GroupBox.cs (ctor): Now sets the Container style bit, required
11150           for Control.GetNextControl()
11151
11152 2005-01-09  Jackson Harper  <jackson@ximian.com>
11153
11154         * TextBoxBase.cs: Clear window when scrolling (fixes build).
11155
11156 2005-01-09  Peter Bartok <pbartok@novell.com>
11157
11158         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
11159           XplatUIX11.cs: Added ability to control ScrollWindow expose and
11160           an overload for ScrollWindow to allow only scrolling a rectangle
11161
11162 2005-01-09  Peter Bartok <pbartok@novell.com>
11163
11164         * Form.cs:
11165           - Implemented SetDesktopBounds method
11166           - Implemented SetDesktopLocation method
11167
11168 2005-01-08  Jackson Harper  <jackson@ximian.com>
11169
11170         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
11171         the node count has changed, this removes to VScroll::Refresh calls
11172         when drawing.
11173
11174 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
11175
11176         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
11177
11178 2005-01-07  Jackson Harper  <jackson@ximian.com>
11179
11180         * TreeNode.cs: Just update the single node when it is
11181         checked. Don't refresh after toggling, the Expand/Collapse already
11182         handles this.
11183         * TreeView.cs: Respect clipping a little more when drawing. Try
11184         not to redraw things that don't need to be redrawn. Just hide the
11185         scrollbars when they are no longer needed instead of removing
11186         them, so they don't have to be created again and again.
11187         
11188 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
11189
11190         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
11191         coordinates to window space to place the caret properly, FIXED.
11192         Implement GetWindowState & SetWindowState
11193
11194 2005-01-06  Peter Bartok <pbartok@novell.com>
11195
11196         * Form.cs:
11197           - Implemented ClientSize property
11198           - Implemented DesktopBounds property
11199           - Implemented DesktopLocation property
11200           - Implemented IsRestrictedWindow property
11201           - Implemented Size property
11202           - Implemented TopLevel property
11203           - Implemented FormWindowState property
11204         * Control.cs:
11205           - Implemented GetTopLevel() method
11206           - Implemented SetTopLevel() method
11207         * X11Structs.cs (Atom):
11208           - Added AnyPropertyType definition
11209           - Added MapState definiton and updated XWindowAttribute struct
11210         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
11211         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
11212         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
11213         * XplatUIWin32.cs:
11214           - Implemented GetWindowState() and SetWindowState() methods
11215           - Fixed Win32GetWindowLong return type
11216         * XplatUIX11.cs:
11217           - Introduced central function for sending NET_WM messages
11218           - Implemented GetWindowState() and SetWindowState() methods
11219         * TextBoxBase.cs (set_Lines):
11220           - Now uses Foreground color for text added via Text property (Duh!)
11221           - Added code to remember programmatically requested size (fixes
11222             behaviour when Multiline is set after Size)
11223           - Added AutoSize logic
11224
11225 2005-01-06  Jackson Harper  <jackson@ximian.com>
11226
11227         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
11228
11229 2005-01-06  Jackson Harper  <jackson@ximian.com>
11230
11231         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
11232         set to less then 0.
11233
11234 2005-01-06  Jackson Harper  <jackson@ximian.com>
11235
11236         * ScrollableControl.cs: Lazy init the scrollbars.
11237         
11238 2005-01-06  Jackson Harper  <jackson@ximian.com>
11239
11240         * Theme.cs: Speed up getting pens and solid brushes, by using
11241         their ARGB as a hash instead of tostring and not calling Contains.
11242
11243 2005-01-06  Peter Bartok <pbartok@novell.com>
11244
11245         * Form.cs:
11246           - Implemented OnActivated and OnDeactivate event trigger
11247           - Implemented Activate() method
11248           - Fixed ShowDialog() to activate the form that was active before
11249             the dialog was shown
11250         * XplatUIX11.cs:
11251           - Added global active_window var that tracks the currently active
11252             X11 window
11253           - Now always grabs Property changes from the root window to always
11254             catch changes on the active window property
11255           - Added code to PropertyNotify handler to send Active/Inactive
11256             messages when state changes. This puts X11 and Win32 en par on
11257             WM_ACTIVATE notifications (except for double notifications when
11258             the user clicks away from our modal window to another one of our
11259             windows)
11260
11261 2005-01-05  Jackson Harper  <jackson@ximian.com>
11262
11263         * ImageList.cs: Implment ctor
11264
11265 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11266
11267         * XplatUIOSX.cs: Implement Activate/SetTopmost
11268
11269 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11270
11271         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
11272
11273 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
11274
11275         * XplatUIOSX.cs: Implement GetActive/SetFocus.
11276
11277 2005-01-05  Peter Bartok <pbartok@novell.com>
11278
11279         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
11280           XplatUIOSX.cs: Added GetActive method to return the currently
11281           active window for the application (or null, if none is active)
11282         * Form.cs:
11283           - Implemented ActiveForm
11284           - Commented out owner assignment for modal dialogs (causes problems
11285             on Win32, since the owner will be disabled)
11286           - Reworked some Active/Focus handling (still incomplete)
11287         * CommonDialog.cs: Commented out owner assignment for modal dialogs
11288           (causes problems on Win32, since the owner will be disabled)
11289         * IWin32Window: Added ComVisible attribute
11290
11291 2005-01-05  Peter Bartok <pbartok@novell.com>
11292
11293         * ToolTip.cs (WndProc): Enable setting focus now that we have the
11294           required XplatUI functions.
11295
11296 2005-01-05  Peter Bartok <pbartok@novell.com>
11297
11298         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
11299           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
11300           to implement focus and activation handling; still incomplete and
11301           with debug output
11302
11303 2005-01-04  Peter Bartok <pbartok@novell.com>
11304
11305         * TextBoxBase.cs: Changed access level for Document property to
11306           match switch to internal for TextControl
11307
11308 2005-01-04  Peter Bartok <pbartok@novell.com>
11309
11310         * AccessibleObject: Added ComVisible attribute
11311
11312 2005-01-04  Jackson Harper  <jackson@ximian.com>
11313
11314         * X11Keyboard.cs: Remove unneeded var.
11315
11316 2005-01-04  Jackson Harper  <jackson@ximian.com>
11317
11318         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
11319         but PAINT.
11320         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
11321         ClientMessage. This makes apps exit cleanly (more often).
11322         
11323 2005-01-04  Jackson Harper  <jackson@ximian.com>
11324
11325         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
11326         handling focus, return correct colors and fonts,
11327         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
11328         handle selection, horizontal scrolling, and mouse interaction.
11329
11330 2005-01-04  Peter Bartok <pbartok@novell.com>
11331
11332         * ICommandExecutor.cs: Added
11333         * IDataGridColumnStyleEditingNotificationService.cs: Added
11334         * IFeatureSupport.cs: Added
11335         * IFileReaderService.cs: Added
11336         * IDataObject.cs: Added ComVisible attribute
11337         * AmbientProperties.cs: Added
11338         * BaseCollection.cs: Added missing attributes
11339         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
11340         * BaseCollection.cs: Added missing attributes
11341         * Binding.cs: Added TypeConverter attribute
11342         * BindingContext.cs: Added DefaultEvent attribute
11343         * BindingsCollection.cs: Added DefaultEvent attribute
11344         * Button.cs: Added DefaultValue attribute
11345         * DragEventArgs.cs: Added ComVisible attribute
11346         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
11347         * KeyEventArgs.cs: Added ComVisible attribute
11348         * KeyPressEventArgs.cs: Added ComVisible attribute
11349         * MouseEventArgs.cs: Added ComVisible attribute
11350         * NavigateEventArgs.cs: Added
11351         * NavigateEventHandler.cs: Added
11352         * FeatureSupport.cs: Added
11353         * OSFeature.cs: Added
11354         * Theme.cs: Added abstract Version property to support OSFeature
11355         * ThemeWin32Classic.cs: Added Version property to
11356           support OSFeature.Themes
11357         * ProgressBar.cs: Removed OnPaintBackground override, not required since
11358           the proper styles to avoid background drawing are set, also doesn't
11359           match MS signature
11360         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
11361         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
11362         * ScrollEventArgs.cs: Added ComVisible attribute
11363         * SplitterEventArgs.cs: Added ComVisible attribute
11364         * AccessibleSelection.cs: Added Flags attribute
11365         * Appearance.cs: Added ComVisible attribute
11366         * Border3DSide.cs: Added ComVisible attribute
11367         * Border3DStyle.cs: Added ComVisible attribute
11368         * BorderStyle.cs: Added ComVisible attribute
11369         * DragAction.cs: Added ComVisible attribute
11370         * ErrorBlinkStyle.cs: Added
11371         * ScrollEventType.cs: Added ComVisible attribute
11372         * AnchorStyles.cs: Added Editor attribute
11373         * DockStyle.cs: Added Editor attribute
11374         * HorizontalAlignment.cs: Added ComVisible attribute
11375         * HelpEventArgs.cs: Added ComVisible attribute
11376         * PaintEventArgs.cs: Added IDisposable
11377
11378 2005-01-04  Peter Bartok <pbartok@novell.com>
11379
11380         * TextControl.cs: Switched Line, LineTag and Document classes to
11381           internal
11382
11383 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
11384
11385         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
11386         Simple mode, fixes, IntegralHeight, etc.
11387
11388 2005-01-04  Peter Bartok <pbartok@novell.com>
11389
11390         * TextBoxBase.cs: Using proper font variable now
11391
11392 2005-01-04  Peter Bartok <pbartok@novell.com>
11393
11394         * Form.cs (ShowDialog): Set parent to owner, if provided
11395         * GroupBox.cs: Removed unused vars
11396         * TextControl.cs:
11397           - Added GetHashCode() for Document and LineTag classes
11398           - Removed unused variables
11399           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
11400             to allow translation between continuous char position and line/pos
11401         * CheckBox.cs: Removed vars that are provided by base class
11402         * RadioButton.cs: Removed vars that are provided by base class, added
11403           new keyword where required
11404         * LinkLabel.cs: Added new keyword where required
11405         * Control.cs (WndProc): Removed unused variable
11406         * TextBoxBase.cs:
11407           - Finished SelectionLength property
11408           - Implemented SelectionStart property
11409           - Implemented Text property
11410           - Removed unused vars
11411         * MessageBox.cs: Added new keyword where required
11412         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
11413           WndProc signature
11414         * MenuAPI.cs: Added new keyword where required
11415         * ButtonBase.cs: Removed vars that are provided by base class, added
11416           new keyword where required
11417         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
11418           argument to double, to allow compiling with csc 2.0 (Atsushi ran
11419           into this)
11420         * Application.cs (Run): Now triggers the ThreadExit event
11421         * CommonDialog.cs: Added new keyword where required; now properly sets
11422           parent (owner) for dialog
11423         * XplatUIX11.cs: Commented out unused vars
11424         * StatusBar.cs: Fixed signature for Text property
11425         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
11426
11427 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
11428
11429         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
11430         TrackBar.cs, MonthCalendar.cs: remove unused vars
11431
11432 2005-01-03  Jackson Harper  <jackson@ximian.com>
11433
11434         * ThemeWin32Classic.cs:
11435         * X11Keyboard.cs: Remove unused vars.
11436
11437 2005-01-03  Peter Bartok  <pbartok@novell.com>
11438
11439         * TextBox.cs:
11440           - set_Text: Tied into TextControl
11441           - set_TextAlignment: Tied into TextControl
11442         * TextControl.cs:
11443           - Added alignment properties and implemented alignment handling
11444             and drawing (still has a bug, not generating proper expose events)
11445           - Added new Line() constructor to allow passing the line alignment
11446           - Fixed selection setting, properly handling end<start now
11447           - Added aligment considerations to RecalculateDocument()
11448         * TextBoxBase.cs:
11449           - Now properly enforces control height for single line controls
11450           - Added support for CharacterCasing
11451           - Added IsInputKey override
11452           - Fixed Keys.Enter logic
11453           - Added SetBoundsCore override
11454           - Fixed mouse selection handling
11455
11456 2005-01-03  Jackson Harper  <jackson@ximian.com>
11457
11458         * TreeView.cs:
11459           - Collapse and uncheck all nodes when CheckBoxes is disabled.
11460           - Checkboxes are always aligned to the bottom of the node,
11461           regardless of item height.
11462           - Use the node bounds to draw the text so we can center it when
11463           the item height is greater then the font height.
11464           - Node::Bounds are only the text part of the node.
11465         * TreeNode.cs: New method to combine collapsing and unchecking all
11466           nodes recursively.
11467
11468 2005-01-02  Jackson Harper  <jackson@ximian.com>
11469
11470         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
11471         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
11472         tree when a check is changed. TODO: Only refresh the checked node.
11473
11474 2004-12-30  Jackson Harper  <jackson@ximian.com>
11475
11476         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
11477         * TreeNode.cs: When collapsing make sure to never collapse the
11478         root node.
11479
11480 2004-12-29  Jackson Harper  <jackson@ximian.com>
11481
11482         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
11483         
11484 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
11485
11486         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
11487
11488 2004-12-28  Peter Bartok  <pbartok@novell.com>
11489
11490         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
11491           not yet assigned
11492
11493 2004-12-28  Peter Bartok  <pbartok@novell.com>
11494
11495         * Control.cs (WndProc): Added WM_HELP handler, now generates
11496           HelpRequested event
11497         * Form.cs: Added HelpButton property and required support code
11498         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
11499
11500 2004-12-28  Peter Bartok  <pbartok@novell.com>
11501
11502         * CommonDialog.cs:
11503           - Made DialogForm.owner variable internal
11504           - Added check to ensure owner form is set before setting
11505             owner properties in CreateParams
11506
11507 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
11508
11509         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
11510           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
11511           GetCursorPos.  Fix major visibility issues.  Rework the windowing
11512           system to support borderless/titleless windows (implements menus).
11513           Fix GetWindowPos.  Implement initial background color support for
11514           views.
11515
11516 2004-12-28  Peter Bartok  <pbartok@novell.com>
11517
11518         * Form.cs (get_CreateParams): Make sure we have an owner before using
11519           the owner variable. Implement proper default if no owner exists
11520
11521 2004-12-28  Peter Bartok  <pbartok@novell.com>
11522
11523         * In preparation for making Managed.Windows.Forms the default build target
11524           for System.Windows.Forms, the following stubbed files were added.
11525           Dialogs are currently being implemented by contributors and are only
11526           short-term place holders.
11527         * ColorDialog.cs: Initial check-in (minmal stub)
11528         * DataGrid.cs: Initial check-in (minimal stub)
11529         * DataGridLineStyle.cs: Initial check-in (minimal stub)
11530         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
11531         * DataGridTableStyle.cs: Initial check-in (minimal stub)
11532         * FontDialog.cs: Initial check-in (minimal stub)
11533         * FileDialog.cs: Initial check-in (minimal stub)
11534         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
11535         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
11536         * OpenFileDialog: Initial check-in (minimal stub)
11537         * IComponentEditorPageSite.cs: Initial check-in
11538         * Splitter.cs: Initial check-in (for Jackson)
11539         * SplitterEventArgs.cs: Initial check-in (for Jackson)
11540         * SplitterEventHandler.cs: Initial check-in (for Jackson)
11541         * TextBox.cs: Initial check-in; still needs some wiring to
11542           TextControl backend
11543         * Form.cs: Implemented ControlBox property
11544         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
11545         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
11546         * TextControl.cs: Added selection functionality; added todo header
11547         * TextBoxBase.cs:
11548           - Implemented Lines property
11549           - Implemented TextHeight property
11550           - Implemented SelectedText property
11551           - Implemented SelectionLength property
11552           - Implemented SelectAll method
11553           - Implemented ToString method
11554           - Removed and cleaned up some debug code
11555           - Implemented (still buggy) mouse text selection
11556
11557 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
11558
11559         * ComboBox.cs: Complete DropDownList implementation, fixes.
11560
11561 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
11562
11563         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
11564         * ComboBoxStyle.cs: ComboBoxStyle enum
11565         * ComboBox.cs: Initial work on ComboBox control
11566
11567 2004-12-21  Peter Bartok  <pbartok@novell.com>
11568
11569         * Control.cs (ctor, CreateParams): Moved setting of is_visible
11570           forward so that anything that creates a window gets the default,
11571           also no longer uses Visible property in CreateParams to avoid
11572           walking up the parent chain and possibly get the wrong visible
11573           status. Fixed IsVisible to no longer walk up to the parent.
11574
11575 2004-12-21  Peter Bartok  <pbartok@novell.com>
11576
11577         * Form.cs (ShowDialog): Unset modality for the proper window
11578  
11579 2004-12-20  Peter Bartok  <pbartok@novell.com>
11580
11581         * CommonDialog.cs: Initial check-in
11582
11583 2004-12-20  Peter Bartok  <pbartok@novell.com>
11584
11585         * Control.cs (Visible): Now uses the parent window instead of the
11586           client area window for the property
11587
11588         * Form.cs
11589           - ShowDialog(): Now uses the proper window for modality
11590           - The default visibility state for the form parent is now false. This
11591             will prevent the user from seeing all the changes to the form and
11592             its controls before the application hits Application.Run()
11593           - Removed some stale commented out code
11594
11595         * NativeWindow.cs:
11596           - Added FindWindow() method to have a method to check for existence
11597             of a window handle
11598           - Added ability to override default exception handling (for example
11599             when debugging with VS.Net; to do this the ExternalExceptionHandler
11600             define must be set
11601           - Removed some useless debug output
11602
11603         * XplatUIX11.cs:
11604           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
11605             not working as expected
11606           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
11607             property to allow switching back to the modal window if focus is
11608             given to another one of our windows (Application Modal)
11609           - Now only sets override_redirect if we create a window
11610             without WS_CAPTION
11611           - Moved EventMask selection before mapping of newly created window
11612             so we can catch the map event as well
11613           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
11614           - Added various Atom related DllImports
11615           - Implemented Exit() method
11616           - .ctor() : No longer shows window if WS_VISIBLE is not defined
11617             in the CreateParams
11618
11619         * MessageBox.cs: Now properly deals with the FormParent window by
11620           providing an override the FormParent CreateParams property to
11621           set as POPUP instead of OVERLAPPED window.
11622
11623 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11624
11625         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
11626         Minor code cleanup.
11627
11628 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
11629         
11630         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
11631
11632 2004-12-18  Peter Bartok  <pbartok@novell.com>
11633
11634         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
11635           implementing SetModal() method
11636
11637 2004-12-18  Peter Bartok  <pbartok@novell.com>
11638
11639         * X11Structs.cs (XGCValues): Fixed type of function element
11640         * XplatUI.cs: Added ScrollWindow() method
11641         * XplatUIDriver.cs: Added ScrollWindow() abstract
11642         * XplatUIWin32.cs: Implemented ScrollWindow() method
11643         * XplatUIX11.cs: Implemented ScrollWindow() method
11644         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
11645
11646 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11647
11648         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
11649         Some more keyboard support (INCOMPLETE)
11650
11651 2004-12-17  Peter Bartok  <pbartok@novell.com>
11652
11653         * TextControl.cs:
11654         - Added color attribute to line tags.
11655         - Added color argument to all functions dealing with tags
11656         - Added color argument support to various functions
11657         - Fixed miss-calculation of baseline/shift in certain circumstances
11658
11659         * TextBoxBase.cs: Added new color option to test code
11660
11661 2004-12-17  Jackson Harper  <jackson@ximian.com>
11662
11663         * TreeNode.cs:
11664         * MonthCalendar.cs: Signature fixes
11665
11666 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11667
11668         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
11669         keyboard event moved it.  Create a new graphics context for each paint resolves this
11670
11671 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
11672
11673         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
11674         Make caret exist and go blink blink.  Initial keyboard support.
11675         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
11676         works.
11677
11678 2004-12-17  Jackson Harper  <jackson@ximian.com>
11679
11680         * XplatUIStructs.cs: Updated set of virtual keycodes.
11681         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
11682
11683 2004-12-17  Jackson Harper  <jackson@ximian.com>
11684
11685         * XplatUIX11.cs: Prune old keyboard code.
11686
11687 2004-12-17  Jackson Harper  <jackson@ximian.com>
11688
11689         * XplatUIX11.cs: When generating mouse wparams get the modifier
11690         keys from the ModifierKeys property.
11691
11692 2004-12-17  Jackson Harper  <jackson@ximian.com>
11693
11694         * X11Keyboard.cs: Send up/down input when generating
11695         messages. Remove some unused vars.
11696
11697 2004-12-17  Jackson Harper  <jackson@ximian.com>
11698
11699         * TabControl.cs:
11700         * TreeView.cs: get rid of warnings.
11701
11702 2004-12-17  Jackson Harper  <jackson@ximian.com>
11703
11704         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
11705
11706 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
11707
11708         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
11709           CheckedListBox.cs: Implementation
11710
11711 2004-12-17  Peter Bartok  <pbartok@novell.com>
11712
11713         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
11714
11715 2004-12-16  Peter Bartok  <pbartok@novell.com>
11716
11717         * TextControl.cs:
11718           - InsertCharAtCaret(): Fixed start pos fixup
11719           - CaretLine_get: No longer derives the line from the tag, the tag
11720             could be stale if lines in the document have been added or deleted
11721           - RebalanceAfterDelete(): Fixed bug in balancing code
11722           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
11723           - Line.Streamline(): Now can also elminate leading empty tags
11724           - DumpTree(): Added a few more tests and prevented exception on
11725             uninitialized data
11726           - Added Debug section for Combining lines
11727           - Delete(): Now copies all remaining properties of a line
11728           
11729         * TextBoxBase.cs:
11730           - Left mousebutton now sets the caret (and middle button still acts
11731             as formatting tester, which must go away soon)
11732           - Added Debug section for Deleting/Combining lines
11733           - Fixed calculations for UpdateView after Combining lines
11734
11735 2004-12-16  Peter Bartok  <pbartok@novell.com>
11736
11737         * TextControl.cs: Now properly aligns text on a baseline, using the
11738           new XplatUI.GetFontMetrics() method. Simplified several calculations
11739         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
11740           defined
11741
11742 2004-12-16  Peter Bartok  <pbartok@novell.com>
11743
11744         * XplatUI.cs: Added GetFontMetrics() method
11745         * XplatUIDriver.cs: Added GetFontMetrics() abstract
11746         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
11747           into libgdiplus, our private GetFontMetrics function
11748         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
11749         * XplatUIWin32.cs: Implemented GetFontMetrics() method
11750
11751 2004-12-16  Jackson Harper  <jackson@ximain.com>
11752
11753         * XplatUIStruct.cs: Add enum for dead keys
11754         * X11Keyboard.cs: Map and unmap dead keys.
11755
11756 2004-12-16  Jackson Harper  <jackson@ximian.com>
11757
11758         * X11Keyboard.cs: Detect and use the num lock mask.
11759
11760 2004-12-16  Peter Bartok  <pbartok@novell.com>
11761
11762         * Control.cs (CreateGraphics): Added check to make sure the
11763           handle of the window exists before calling Graphics.FromHwnd()
11764
11765 2004-12-16  Peter Bartok  <pbartok@novell.com>
11766
11767         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
11768           contains a lot of code that's not supposed to be there for the
11769           real thing, but required for developing/testing the textbox
11770           backend.
11771
11772 2004-12-16  Peter Bartok  <pbartok@novell.com>
11773
11774         * TextControl.cs:
11775         - Fixed Streamline method
11776         - Added FindTag method to Line
11777         - Added DumpTree method for debugging
11778         - Added DecrementLines() method for deleting lines
11779         - Fixed UpdateView to update the cursor to end-of-line on single-line
11780           updates
11781         - Added PositionCaret() method
11782         - Fixed MoveCaret(LineDown) to move into the last line, too
11783         - Added InsertChar overload
11784         - Fixed InsertChar tag offset calculations
11785         - Added DeleteChar() method
11786         - Added Combine() method for folding lines
11787         - Fixed Delete() method, no longer allocates wasted Line object and
11788           now copies all properties when swapping nodes
11789         - Delete() method now updates document line counter
11790
11791 2004-12-15  Jackson Harper  <jackson@ximian.com>
11792
11793         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
11794         * X11Keyboard.cs: Expose the currently selected modifier keys
11795         through a property.
11796
11797 2004-12-15  Peter Bartok  <pbartok@novell.com>
11798
11799         * TextControl.cs: Initial check-in. Still incomplete
11800
11801 2004-12-15  Jackson Harper  <jackson@ximian.com>
11802
11803         * TreeNode.cs:
11804         * TreeView.cs: Fix build on csc (second time today ;-))
11805
11806 2004-12-15  Jackson Harper  <jackson@ximian.com>
11807
11808         * TreeView.cs: Store the treenodes plus/minus box bounds when it
11809         is calculated and use this for click testing.
11810         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
11811
11812 2004-12-15  Jackson Harper  <jackson@ximian.com>
11813
11814         * TreeView.cs: Pass the nodes image index to the image list when
11815         drawing that image.
11816
11817 2004-12-15  Jackson Harper  <jackson@ximian.com>
11818
11819         * X11Keyboard.cs: Set messages hwnd.
11820         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
11821         post_message calls.
11822
11823 2004-12-15  Jackson Harper  <jackson@ximian.com>
11824
11825         * X11Keyboard.cs: Fix to compile with csc.
11826         
11827 2004-12-15  Jackson Harper  <jackson@ximian.com>
11828
11829         * X11Structs.cs: Add key mask values
11830         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
11831         * X11Keyboard.cs: New file - Extrapolates and interpolates key
11832         down/up foo into WM_CHAR foo
11833         * KeyboardLayouts.cs: Common keyboard layouts
11834         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
11835         post messages into the main queue.
11836
11837 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
11838
11839         * Button.cs: implement ProcessMnemonic
11840         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
11841           brushes everytime
11842         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
11843         * ButtonBase.cs: Show HotkeyPrefix (not the &)
11844
11845 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
11846         
11847         * MonthCalendar.cs: Implemented click-hold for next/previous month
11848           and date selection
11849           
11850 2004-12-11  Peter Bartok  <pbartok@novell.com>
11851
11852         * X11Structs.cs:
11853           - Added XKeyboardState (moved from XplatUIX11.cs)
11854           - Added XCreateGC related enums and structures
11855           - Added GXFunction for XSetFunction
11856
11857         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
11858
11859         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
11860           CaretVisible() calls
11861
11862         * ToolTip.cs: Added code to prevent stealing focus from app windows
11863
11864         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
11865           DestroyCaret, SetCaretPos and CaretVisible)
11866
11867         * XplatUIX11.cs:
11868           - Added implementation for caret functions
11869           - Moved hover variables into a struct, to make it a bit easier
11870             on the eyes and to debug
11871           - Removed XKeyboardState (moved to XplatUIX11.cs)
11872           - Moved Keyboard properties into the properties region
11873
11874         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
11875           call to get a graphics context for our control
11876
11877         * XplatUIOSX.cs: Added empty overrides for the new caret functions
11878
11879         * TreeView.cs: Fixed bug. No matter what color was set it would always
11880           return SystemColors.Window
11881
11882         * XplatUIWin32.cs: Implemented caret overrides
11883
11884 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
11885
11886         * ListBox.cs: fire events, implement missing methods and properties,
11887         sorting.
11888
11889 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
11890
11891         * MonthCalendar.cs: invalidation bug fixing
11892         * ThemeWin32Classic.cs: paint fixing
11893
11894 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
11895
11896         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
11897         prepare the CGContextRef there now.
11898
11899 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
11900
11901         * MonthCalendar.cs:
11902           - optimisationL only invalidate areas that have changed
11903         * ThemeWin32Classic.cs:
11904           - only paint parts that intersect with clip_area
11905
11906 2004-12-09  Peter Bartok  <pbartok@novell.com>
11907
11908         * Application.cs: Undid changes from r37004 which cause problems
11909         on X11
11910
11911 2004-12-09  Ravindra  <rkumar@novell.com>
11912
11913         * ToolBar.cs: Added support for displaying ContextMenu
11914         attached to a button on ToolBar.
11915         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
11916         property.
11917
11918 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11919
11920         * Label.cs: autosize works in text change and removes unnecessary
11921         invalidate
11922
11923 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
11924
11925         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
11926         remove warnings
11927
11928 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
11929
11930         * XplatUIOSX.cs: Added mouse move/click/grab support
11931         Remove some debugging WriteLines not needed anymore.
11932         Add window resizing/positioning.
11933         Fix visibility on reparenting.
11934
11935 2004-12-08  Peter Bartok  <pbartok@novell.com>
11936
11937         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
11938
11939 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
11940
11941         * XplatUIOSX.cs: Initial checkin
11942         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
11943
11944 2004-12-03  Ravindra <rkumar@novell.com>
11945
11946         * ListView.cs: Added some keybindings and fixed scrolling.
11947         ScrollBars listen to ValueChanged event instead of Scroll
11948         Event. This would let us take care of all changes being
11949         done in the scrollbars' values programmatically or manually.
11950         * ListView.cs (CanMultiselect): Added a check for shift key.
11951         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
11952         * ListViewItem.cs (Clone): Fixed. We need to make a copy
11953         of ListViewSubItemCollection as well.
11954
11955 2004-12-06  Peter Bartok <pbartok@novell.com>
11956
11957         * Control.cs (Parent): Added check and exception to prevent
11958         circular parenting
11959
11960 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
11961
11962         * ListBox.cs: implemented clipping, selection single and multiple,
11963         bug fixing
11964
11965 2004-12-03  Ravindra <rkumar@novell.com>
11966
11967         * ListView.cs (ListView_KeyDown):
11968         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
11969         when CTRL key is pressed.
11970         * ListViewItem.cs (Selected): Fixed setting the property.
11971
11972 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11973
11974         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
11975
11976         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
11977         MinimizeBox, ShowInTaskbar, TopMost properties.
11978
11979         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
11980         will be implemented).
11981
11982 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11983
11984         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
11985
11986         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
11987         tests.
11988         
11989         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
11990         
11991         * TreeView.cs: BackColor is Colors.Window.
11992
11993 2004-12-01  Jackson Harper  <jackson@ximian.com>
11994
11995         * TreeView.cs: When resizing the tree if the user is making it
11996         smaller we don't get expose events, so we need to handle adding
11997         the horizontal scrollbar in the size changed handler as well as
11998         the expose handler.
11999
12000 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
12001
12002         * DrawItemState.cs: fixes wrong enum values
12003
12004 2004-12-01  Jackson Harper  <jackson@ximian.com>
12005
12006         * TreeView.cs: Resize the hbar as well as the vbar on resize.
12007
12008 2004-12-01  Jackson Harper  <jackson@ximian.com>
12009
12010         * NodeLabelEditEventArgs.cs:
12011         * NodeLabelEditEventHandler.cs:
12012         * OpenTreeNodeEnumerator.cs:
12013         * TreeNode.cs:
12014         * TreeNodeCollection.cs:
12015         * TreeView.cs:
12016         * TreeViewAction.cs:
12017         * TreeViewCancelEventArgs.cs:
12018         * TreeViewCancelEventHandler.cs:
12019         * TreeViewEventArgs.cs:
12020         * TreeViewEventHandler.cs: Initial implementation.
12021
12022 2004-12-01  Ravindra <rkumar@novell.com>
12023
12024         * ListView.cs (CalculateListView): Fixed scrolling related
12025         calculations. Also, removed some debug statements from other
12026         places.
12027         * ListViewItem.cs: Changed access to 'selected' instance variable
12028         from private to internal.
12029         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
12030
12031 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
12032
12033         * ThemeWin32Classic.cs: remove cache of brush and pens for
12034         specific controls and use the global system, fixes scrollbutton
12035         bugs (for small sizes, disabled, etc)
12036         
12037         * ScrollBar.cs: does not show the thumb for very small controls
12038         (as MS) and allow smaller buttons that the regular size
12039
12040 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
12041
12042         * UpDownBase.cs: Add abstract methods for the interface.
12043         Add new virtual methods (need to be hooked up to TextEntry when it
12044         exists).
12045         Add override methods for most features.
12046         Computes the size, forces the height of the text entry.
12047
12048         * NumericUpDown.cs: Put here the current testing code.
12049
12050         * Set eol-style property on all files that do not have mixed line
12051         endings, to minimize the future problems.  There are still a few
12052         files with mixed endings, and someone should choose whether they
12053         want to move it or not.
12054
12055 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
12056
12057         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
12058         System.Colors
12059         
12060 2004-11-30  Ravindra <rkumar@novell.com>
12061
12062         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
12063         drawing and replaced use of SystemColors by theme colors.
12064         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
12065         * ListView.cs (ListViewItemCollection.Add): Throw exception when
12066         same ListViewItem is being added more than once.
12067
12068 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
12069
12070         * MonthCalendar.cs:
12071           - ControlStyles love to make the control not flicker
12072           
12073 2004-11-30  Peter Bartok  <pbartok@novell.com>
12074
12075         * CharacterCasing.cs: Added
12076
12077 2004-11-29  Peter Bartok  <pbartok@novell.com>
12078
12079         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
12080           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
12081           I am removing these files as they conflict with already completed
12082           work. While it is fantastic to get contributions to MWF, I
12083           respectfully ask that everyone please coordinate their contributions
12084           through mono-winforms-list or #mono-winforms at this time. We're
12085           explicitly avoiding stubbing and don't want controls that don't have
12086           their basic functionality implemented in svn. Please also see
12087           http://www.mono-project.com/contributing/winforms.html
12088
12089
12090 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
12091
12092         * Application.cs (ModalRun): Don't hang after exit.
12093
12094         * Theme.cs: New TreeViewDefaultSize property.
12095
12096         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
12097         with less hardcoded SystemColors constant.
12098         Implemented TreeViewDefaultSize.
12099
12100         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
12101         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
12102
12103
12104 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
12105
12106         * MonthCalendar.cs:
12107           - Fix NextMonthDate and PrevMonthDate click moving calendar
12108
12109 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
12110
12111         * MonthCalendar.cs:
12112           - Fix usage of ScrollChange Property when scrolling months
12113
12114 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
12115
12116         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
12117          - Fixes menu destroying
12118          - Support adding and removing items on already created menus
12119
12120 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
12121
12122         * MonthCalendar.cs:
12123           - Re-worked all bolded dates handling to match win32
12124         * ThemeWin32Classic.cs:
12125           - Fixed rendering with bolded dates
12126
12127 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
12128
12129         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
12130         - Horizontal scroolbar
12131         - Multicolumn
12132         - Fixes
12133
12134
12135 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
12136
12137         * MonthCalendar.cs:
12138           - Fix Usage of MaxSelectionCount from SelectionRange
12139           - Fixed Shift + Cursor Selection
12140           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
12141           - Fixed normal cursor selection to be compat with win32
12142           - Fixed Shift + Mouse Click selection
12143
12144 2004-11-24  Peter Bartok <pbartok@novell.com>
12145
12146         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
12147         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
12148         * XplatUIX11.cs:
12149           - CreatedKeyBoardMsg now updates keystate with Alt key
12150           - Added workaround for timer crash to CheckTimers, Jackson will
12151             develop a proper fix and check in later
12152           - Implemented DispatchMessage
12153           - Removed calling the native window proc from GetMessage (call
12154             now moved to DispatchMessage)
12155
12156         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
12157           the keydata (Fixes bug #69831)
12158
12159         * XplatUIWin32.cs:
12160           - (DispatchMessage): Switched to return IntPtr
12161           - Added DllImport for SetFocus
12162
12163 2004-11-24  Ravindra <rkumar@novell.com>
12164
12165         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
12166         background drawing.
12167         * ListViewItem.cs: Fixed various properties, calculations
12168         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
12169         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
12170         and some internal properties. Fixed MouseDown handler and Paint
12171         method.
12172
12173 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12174
12175         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
12176
12177 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12178
12179         * ContainerControl.cs: correct accidental check in of local changes
12180
12181 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
12182
12183         * ThemeWin32Classic.cs:
12184                 - Fixed Drawing Last month in grid (sometimes not showing)
12185         * MonthCalendar.cs:
12186                 - Fixed title width calculation bug (makeing title small)
12187
12188 2004-11-23  Peter Bartok <pbartok@novell.com>
12189
12190         * XplatUIX11.cs:
12191           - Added generation of WM_MOUSEHOVER event
12192           - Added missing assignment of async_method atom
12193           - Fixed WM_ERASEBKGND; now only redraws the exposed area
12194
12195 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
12196
12197         * ThemeWin32Classic.cs:
12198                 - Fixed Drawing of today circle when showtodaycircle not set
12199                 - fixed drawing of first and last month in the grid (gay dates)
12200         * MonthCalendar.cs:
12201                 - Fixed Drawing of today circle
12202                 - Fixed drawing of grady dates
12203                 - Fixed HitTest for today link when ShowToday set to false
12204                 - Fixed DefaultSize to obey ShowToday
12205
12206 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
12207
12208         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
12209         * System.Windows.Forms/Theme.cs
12210         * MonthCalendar.cs: added for MonthCalendar
12211         * SelectionRange.cs: added for MonthCalendar
12212         * Day.cs: added for MonthCalendar: added for MonthCalendar
12213         * DateRangeEventArgs.cs: added for MonthCalendar
12214         * DateRangeEventHandler.cs: added for MonthCalendar
12215
12216 2004-11-22  Ravindra <rkumar@novell.com>
12217
12218         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
12219         property.
12220
12221 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
12222
12223         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
12224         event handler.
12225         
12226         * NumericUpDown.cs: Added new implementation.
12227         * UpDownBase.cs: Added new implementation.
12228
12229         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
12230         implementations.
12231         
12232         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
12233         implementations.
12234
12235         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
12236         methods.
12237
12238 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
12239
12240         * Timer.cs  (Dispose): Should call the base dispose when
12241         overriding.
12242
12243 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
12244
12245         * ScrollBar.cs: updates thumb position when max, min or increment
12246         is changed
12247
12248 2004-11-21  Ravindra <rkumar@novell.com>
12249
12250         * ListView.cs: Implemented item selection, activation and
12251         column header style. Fixed properties to do a redraw, if
12252         required. Added support for MouseHover, DoubleClick, KeyDown
12253         and KeyUp event handling and some minor fixes.
12254         * ListViewItem.cs: Fixed constructor.
12255         * ThemeWin32Classic.cs: Improved drawing for ListView.
12256
12257 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
12258
12259         * ThemeWin32Classic.cs: initial listbox drawing code
12260         * DrawMode.cs: new enumerator
12261         * ListControl.cs: stubbed class
12262         * ListBox.cs: initial implementation
12263         * Theme.cs: new methods definitions
12264         * SelectionMode.cs: new enumerator
12265
12266 2004-11-17  Peter Bartok  <pbartok@novell.com>
12267
12268         * XplatUIWin32.cs: Added double-click events to the class style
12269         * Control.cs (WndProc):
12270           - Added handling of click-count to MouseDown/ MouseUp events.
12271           - Added handling of middle and right mouse buttons
12272           - Removed old debug code
12273
12274 2004-11-17  Jackson Harper  <jackson@ximian.com>
12275
12276         * XplatUIX11.cs: Use the new Mono.Unix namespace.
12277
12278 2004-11-17  Ravindra <rkumar@novell.com>
12279
12280         * ListView.cs: Added event handling for MouseMove/Up/Down.
12281         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
12282         * ThemeWin32Classic.cs: We need to clear the graphics context and
12283         draw column header in a proper state.
12284
12285
12286 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
12287
12288         *  Menu.cs: fixes signature
12289
12290 2004-11-16  Peter Bartok  <pbartok@novell.com>
12291
12292         * XplatUIX11.cs (GetMessage): Implemented generation of
12293           double click mouse messages
12294
12295 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
12296
12297         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
12298         not by menu
12299
12300 2004-11-11  Peter Bartok  <pbartok@novell.com>
12301
12302         * HandleData.cs: Added Visible property
12303         * XplatUIX11.cs (IsVisible): Now uses Visible property from
12304           HandleData
12305         * XplatUIX11.cs: Removed old debug leftovers
12306         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
12307         * Control.cs (WndProc): Removed old debug leftovers,
12308           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
12309           needed WM_SIZE handling
12310
12311 2004-11-11  Jackson Harper  <jackson@ximian.com>
12312
12313         * OwnerDrawPropertyBag.cs:
12314         * TreeViewImageIndexConverter.cs: Initial implementation
12315
12316 2004-11-10  Jackson Harper  <jackson@ximian.com>
12317
12318         * ThemeWin32Classic.cs:
12319         * TabControl.cs: instead of moving tabs by the slider pos just
12320         start drawing at the tab that is offset by the slider. This way
12321         scrolling always moves by exactly one tab.
12322
12323 2004-11-10  Jackson Harper  <jackson@ximian.com>
12324
12325         * TabControl.cs: You can only scroll left when the slider has
12326         already ben moved right.
12327         
12328 2004-11-10  Jackson Harper  <jackson@ximian.com>
12329
12330         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
12331         the clip area.
12332         
12333 2004-11-10  Jackson Harper  <jackson@ximian.com>
12334
12335         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
12336         clip area.
12337         
12338 2004-11-09  Jackson Harper  <jackson@ximian.com>
12339
12340         * TabControl.cs (CalcXPos): New helper method so we can determine
12341         the proper place to start drawing vertical tabs.
12342         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
12343         
12344 2004-11-09  Jackson Harper  <jackson@ximian.com>
12345
12346         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
12347         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
12348         and Bottom, left and right are illegal values for this and
12349         multiline is enabled when the alignment is set to left or right.
12350         (DrawTab): Each alignment block should draw the text itself now
12351         because Left requires special love. Also add rendering for Left
12352         aligned tabs.
12353         
12354 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
12355
12356         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
12357         does not destroy the windows, removes debugging messages
12358
12359 2004-11-09  jba  <jba-mono@optusnet.com.au>
12360
12361         * ThemeWin32Classic.cs
12362         (DrawButtonBase): Fix verticle text rect clipping in windows
12363         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
12364         rendering and incorrect text rect clipping
12365         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
12366         rendering and incorrect text rect clipping
12367         
12368 2004-11-08  Jackson Harper  <jackson@ximian.com>
12369
12370         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
12371         bottom when they are bottom aligned so the bottoms of the tabs get
12372         displayed.
12373         * TabControl.cs (DropRow): Move rows up instead of down when the
12374         tab control is bottom aligned.
12375
12376 2004-11-08 13:59  pbartok
12377
12378         * XplatUIX11.cs:
12379           - Added handling for various window styles
12380           - Added handling for popup windows
12381           - Added SetTopmost handling
12382
12383 2004-11-08 13:55  pbartok
12384
12385         * XplatUIWin32.cs:
12386           - Added argument to SetTopmost method
12387           - Fixed broken ClientToScreen function
12388
12389 2004-11-08 13:53  pbartok
12390
12391         * XplatUIStructs.cs:
12392           - Added missing WS_EX styles
12393
12394 2004-11-08 13:53  pbartok
12395
12396         * XplatUI.cs, XplatUIDriver.cs:
12397           - Added argument to SetTopmost
12398
12399 2004-11-08 13:52  pbartok
12400
12401         * X11Structs.cs:
12402           - Added XSetWindowAttributes structure
12403           - Improved XWindowAttributes structure
12404           - Added SetWindowValuemask enum
12405           - Added window creation arguments enum
12406           - Added gravity enum
12407           - Added Motif hints structure
12408           - Added various Motif flags and enums
12409           - Added PropertyMode enum for property functions
12410
12411 2004-11-08 13:50  pbartok
12412
12413         * Form.cs:
12414           - Fixed arguments for updated SetTopmost method
12415
12416 2004-11-08 13:49  pbartok
12417
12418         * ToolTip.cs:
12419           - Fixed arguments for updated SetTopmost function
12420           - Fixed usage of PointToClient
12421
12422 2004-11-08 13:44  pbartok
12423
12424         * MenuAPI.cs:
12425           - Added Clipping of children and siblings
12426
12427 2004-11-08 13:41  pbartok
12428
12429         * MainMenu.cs:
12430           - Removed SetMenuBarWindow call. We do this in Form.cs
12431
12432 2004-11-08 13:40  jackson
12433
12434         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
12435           scrolling jimmi in the correct location with bottom aligned tabs
12436
12437 2004-11-08 13:36  pbartok
12438
12439         * ContainerControl.cs:
12440           - Implemented BindingContext
12441           - Implemented ParentForm
12442
12443 2004-11-08 12:46  jackson
12444
12445         * TabControl.cs: Put bottom rendered tabs in the right location
12446
12447 2004-11-08 07:15  jordi
12448
12449         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
12450           removes dead code
12451
12452 2004-11-05 17:30  jackson
12453
12454         * TabControl.cs: When selected tabs are expanded make sure they
12455           don't go beyond the edges of the tab control
12456
12457 2004-11-05 14:57  jackson
12458
12459         * TabControl.cs: Reset show_slider so if the control is resized to
12460           a size where it is no longer needed it's not displayed anymore
12461
12462 2004-11-05 13:16  jackson
12463
12464         * TabControl.cs: Make tab pages non visible when added to the
12465           control
12466
12467 2004-11-05 12:42  jackson
12468
12469         * TabControl.cs: Implement SizeMode.FillToRight
12470
12471 2004-11-05 12:16  jackson
12472
12473         * Control.cs: Do not call CreateHandle if the handle is already
12474           created
12475
12476 2004-11-05 11:46  jackson
12477
12478         * TabControl.cs: Remove superflous call to CalcTabRows
12479
12480 2004-11-05 09:07  jackson
12481
12482         * XplatUIX11.cs: Update for Mono.Posix changes
12483
12484 2004-11-05 07:00  ravindra
12485
12486         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
12487           scrolling.
12488
12489 2004-11-04 22:47  jba
12490
12491         * ThemeWin32Classic.cs:
12492           - Fix Button rendering for FlatStyle = Flat or Popup
12493           - Fix RadioButton and CheckBox rendering when Appearance = Button
12494             (normal and flatstyle).
12495           - Correct outer rectangle color when drawing focus rectangle
12496           - Adjust button bounds to be 1 px smaller when focused
12497           - Make button not draw sunken 3d border when pushed (windows compat)
12498           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
12499           - Offset the text in RadioButton and Checkbox when being rendered as
12500           a button.
12501           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
12502           radiobuttons
12503           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
12504           - Fixed disabled text rendering for normally rendered radiobuttons
12505
12506 2004-11-04 10:26  jackson
12507
12508         * TabControl.cs: Recalculate tab rows when resizing
12509
12510 2004-11-04 07:47  jordi
12511
12512         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
12513           collection completion, drawing issues, missing features
12514
12515 2004-11-04 05:03  ravindra
12516
12517         * ScrollBar.cs:
12518                 - We need to recalculate the Thumb area when
12519                 LargeChange/maximum/minimum values are changed.
12520           - We set the 'pos' in UpdatePos() method to minimum, if it's less
12521                 than minimum. This is required to handle the case if large_change is
12522                 more than max, and use LargeChange property instead of large_change
12523                 variable.
12524           - We return max+1 when large_change is more than max, like MS does.
12525
12526 2004-11-04 04:29  ravindra
12527
12528         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
12529                 - Changed default value signatures (prefixed all with ListView).
12530                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
12531                 ListView.
12532           - Fixed calculations for ListViewItem and implemented Clone()
12533           method.
12534
12535 2004-11-04 04:26  ravindra
12536
12537         * Theme.cs, ThemeWin32Classic.cs:
12538                 - Changed default ListView values signatures (prefixed all with
12539                 ListView).
12540           - Fixed default size values for VScrollBar and HScrollBar.
12541                 - Fixed DrawListViewItem method.
12542
12543 2004-11-04 04:05  ravindra
12544
12545         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
12546
12547 2004-11-04 04:04  ravindra
12548
12549         * ImageList.cs: Implemented the missing overload for Draw method.
12550
12551 2004-11-03 19:29  jackson
12552
12553         * TabControl.cs: Handle dropping rows on selection properly
12554
12555 2004-11-03 11:59  jackson
12556
12557         * TabControl.cs: remove debug code
12558
12559 2004-11-03 11:52  jackson
12560
12561         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
12562           the scrolly widgerywoo
12563
12564 2004-11-02 13:52  jackson
12565
12566         * TabControl.cs: Resize the tab pages and tabs when the tab control
12567           is resized
12568
12569 2004-11-02 13:40  jackson
12570
12571         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
12572           selected tab to the bottom
12573
12574 2004-11-02 13:39  jackson
12575
12576         * TabPage.cs: Store the tab pages row
12577
12578 2004-11-02 12:33  jordi
12579
12580         * MenuItem.cs: fixes handle creation
12581
12582 2004-11-02 11:42  jackson
12583
12584         * TabControl.cs: signature fix
12585
12586 2004-11-02 08:56  jackson
12587
12588         * TabControl.cs: Calculate whether the tab is on an edge properly.
12589           Remove top secret debugging code
12590
12591 2004-11-01 19:57  jackson
12592
12593         * TabControl.cs: Add click handling, and proper sizing
12594
12595 2004-11-01 19:47  jackson
12596
12597         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
12598           tab controls
12599
12600 2004-11-01 19:39  jackson
12601
12602         * TabPage.cs: add internal property to store the bounds of a tab
12603           page
12604
12605 2004-10-30 04:23  ravindra
12606
12607         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
12608           values.
12609
12610 2004-10-30 04:21  ravindra
12611
12612         * ListView.cs, ListViewItem.cs: Added support for scrolling and
12613           fixed calculations.
12614
12615 2004-10-30 03:06  pbartok
12616
12617         * XplatUIX11.cs:
12618           - Removed extension of DllImported libs
12619
12620 2004-10-29 09:55  jordi
12621
12622         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
12623           navigation, itemcollection completion, menu fixes
12624
12625 2004-10-27 22:58  pbartok
12626
12627         * XplatUIX11.cs:
12628           - Now throws a nice error message when no X display could be opened
12629
12630 2004-10-26 13:51  jordi
12631
12632         * ListView.cs: removes warning
12633
12634 2004-10-26 03:55  ravindra
12635
12636         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
12637           ThemeWin32Classic.cs: Some formatting for my last checkins.
12638
12639 2004-10-26 03:36  ravindra
12640
12641         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
12642           control and default values.
12643
12644 2004-10-26 03:35  ravindra
12645
12646         * Theme.cs: Added some default values for ListView control.
12647
12648 2004-10-26 03:33  ravindra
12649
12650         * ToolBar.cs: ToolBar should use the user specified button size, if
12651           there is any. Added a size_specified flag for the same.
12652
12653 2004-10-26 03:33  ravindra
12654
12655         * ColumnHeader.cs: Added some internal members and calculations for
12656           ColumnHeader.
12657
12658 2004-10-26 03:32  ravindra
12659
12660         * ListViewItem.cs: Calculations for ListViewItem.
12661
12662 2004-10-26 03:31  ravindra
12663
12664         * ListView.cs: Added some internal members and calculations for
12665           ListView.
12666
12667 2004-10-22 13:31  jordi
12668
12669         * MenuAPI.cs: speedup menus drawing
12670
12671 2004-10-22 13:16  jackson
12672
12673         * XplatUIX11.cs: Make sure to update exposed regions when adding an
12674           expose event
12675
12676 2004-10-22 11:49  jackson
12677
12678         * Control.cs: oops
12679
12680 2004-10-22 11:41  jackson
12681
12682         * Control.cs: Check to see if the window should have its background
12683           repainted by X when drawing.
12684
12685 2004-10-22 11:31  jackson
12686
12687         * XplatUIX11.cs: When invalidating areas only use XClearArea if
12688           clear is true, this way we do not get flicker from X repainting the
12689           background
12690
12691 2004-10-22 11:28  jackson
12692
12693         * XEventQueue.cs: Queue properly
12694
12695 2004-10-21 09:38  jackson
12696
12697         * XEventQueue.cs: Fix access modifier
12698
12699 2004-10-21 09:36  jackson
12700
12701         * XEventQueue.cs: Don't loose messages
12702
12703 2004-10-21 09:22  jackson
12704
12705         * XEventQueue.cs: Don't loose messages
12706
12707 2004-10-20 04:15  jordi
12708
12709         * BootMode.cs: enum need it by SystemInfo
12710
12711 2004-10-19 21:58  pbartok
12712
12713         * XplatUIWin32.cs:
12714           - Small sanity check
12715
12716 2004-10-19 21:56  pbartok
12717
12718         * Form.cs:
12719           - Added private FormParentWindow class which acts as the container
12720             for our form and as the non-client area where menus are drawn
12721           - Added/Moved required tie-ins to Jordi's menus
12722           - Fixed/Implemented the FormStartPosition functionality
12723
12724 2004-10-19 21:52  pbartok
12725
12726         * Control.cs:
12727           - Removed unneeded locals
12728           - Added code to all size and location properties to understand and
12729             deal with the parent container of Form
12730
12731 2004-10-19 21:33  pbartok
12732
12733         * Application.cs:
12734           - Fixed to deal with new Form subclasses for menus
12735
12736 2004-10-19 17:48  jackson
12737
12738         * XEventQueue.cs: commit correct version of file
12739
12740 2004-10-19 16:50  jackson
12741
12742         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
12743
12744 2004-10-19 16:15  jordi
12745
12746         * MenuAPI.cs: MenuBarCalcSize returns the height
12747
12748 2004-10-19 08:31  pbartok
12749
12750         * Control.cs:
12751           - Added missing call to PreProcessMessage before calling OnXXXKey
12752           methods
12753
12754 2004-10-19 00:04  ravindra
12755
12756         * ToolTip.cs: Fixed constructor.
12757
12758 2004-10-18 09:31  jordi
12759
12760         * MenuAPI.cs: menuitems in menubars do not have shortcuts
12761
12762 2004-10-18 09:26  jordi
12763
12764         * MenuItem.cs: fixes MenuItem class signature
12765
12766 2004-10-18 08:56  jordi
12767
12768         * MenuAPI.cs: prevents windows from showing in the taskbar
12769
12770 2004-10-18 00:28  ravindra
12771
12772         * ToolTip.cs: Suppressed a warning message.
12773
12774 2004-10-18 00:27  ravindra
12775
12776         * Control.cs: Default value of visible property must be true.
12777
12778 2004-10-17 23:19  pbartok
12779
12780         * ToolTip.cs:
12781           - Complete implementation
12782
12783 2004-10-17 23:19  pbartok
12784
12785         * XplatUIX11.cs:
12786           - Added EnableWindow method
12787           - Added SetModal stub
12788           - Added generation of WM_ACTIVATE message (still needs testing)
12789           - Added SetTopMost stub
12790           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
12791
12792 2004-10-17 23:17  pbartok
12793
12794         * XplatUIWin32.cs:
12795           - Removed VirtualKeys to XplatUIStructs
12796           - Implemented SetTopMost method
12797           - Implemented EnableWindow method
12798           - Bugfix in ScreenToClient()
12799           - Bugfixes in ClientToScreen()
12800
12801 2004-10-17 22:51  pbartok
12802
12803         * XplatUIStructs.cs:
12804           - Added WS_EX styles to WindowStyles enumeration
12805
12806 2004-10-17 22:50  pbartok
12807
12808         * XplatUI.cs, XplatUIDriver.cs:
12809           - Added method for enabling/disabling windows
12810           - Added method for setting window modality
12811           - Added method for setting topmost window
12812
12813 2004-10-17 22:49  pbartok
12814
12815         * ThemeWin32Classic.cs:
12816           - Added ToolTip drawing code
12817
12818 2004-10-17 22:49  pbartok
12819
12820         * Theme.cs:
12821           - Added ToolTip abstracts
12822
12823 2004-10-17 22:47  pbartok
12824
12825         * Form.cs:
12826           - Fixed Form.ControlCollection to handle owner relations
12827           - Added Owner/OwnedForms handling
12828           - Implemented Z-Ordering for owned forms
12829           - Removed unneeded private overload of ShowDialog
12830           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
12831             so I hope)
12832           - Fixed Close(), had wrong default
12833           - Added firing of OnLoad event
12834           - Added some commented out debug code for Ownership handling
12835
12836 2004-10-17 22:16  pbartok
12837
12838         * Control.cs:
12839           - Fixed/implemented flat list of controls
12840
12841 2004-10-17 22:14  pbartok
12842
12843         * Application.cs:
12844           - Added code to simulate modal dialogs on Win32
12845
12846 2004-10-17 16:11  jordi
12847
12848         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
12849           mouse event
12850
12851 2004-10-17 13:39  jordi
12852
12853         * MenuAPI.cs: menu drawing fixes
12854
12855 2004-10-15 09:10  ravindra
12856
12857         * StructFormat.cs: General Enum.
12858
12859 2004-10-15 09:09  ravindra
12860
12861         * SizeGripStyle.cs: Enum for Form.
12862
12863 2004-10-15 09:08  ravindra
12864
12865         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
12866           in Theme for ListView.
12867
12868 2004-10-15 09:06  ravindra
12869
12870         * ColumnHeader.cs: Flushing some formatting changes.
12871
12872 2004-10-15 09:05  ravindra
12873
12874         * ListViewItem.cs: Implemented GetBounds method and fixed coding
12875           style.
12876
12877 2004-10-15 09:03  ravindra
12878
12879         * ListView.cs: Implemented Paint method and fixed coding style.
12880
12881 2004-10-15 07:34  jordi
12882
12883         * MenuAPI.cs: fix for X11
12884
12885 2004-10-15 07:32  ravindra
12886
12887         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
12888                 - Renamed Paint() method to Draw() for clarity. Also, moved
12889                 DrawImage() to OnPaint().
12890
12891 2004-10-15 07:25  ravindra
12892
12893         * CheckBox.cs, RadioButton.cs:
12894                 - Removed Redraw (), we get it from ButtonBase.
12895                 - Implemented Paint (), to do class specific painting.
12896
12897 2004-10-15 07:16  ravindra
12898
12899         * ButtonBase.cs:
12900                 - Redraw () is not virtual now.
12901                 - Added an internal virtual method Paint (), so that
12902                 derived classes can do their painting on their own.
12903                 - Modified OnPaint () to call Paint ().
12904
12905 2004-10-15 06:43  jordi
12906
12907         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
12908           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
12909
12910 2004-10-15 00:30  ravindra
12911
12912         * MessageBox.cs:
12913                 - MessageBox on windows does not have min/max buttons.
12914                 This change in CreateParams fixes this on Windows. We
12915                 still need to implement this windowstyle behavior in
12916                 our X11 driver.
12917
12918 2004-10-14 05:14  ravindra
12919
12920         * ToolBar.cs:
12921                 - Changed Redraw () to do a Refresh () always.
12922                 - Fixed the MouseMove event handling when mouse is pressed,
12923                 ie drag event handling.
12924                 - Replaced the usage of ToolBarButton.Pressed property to
12925                 ToolBarButton.pressed internal variable.
12926
12927 2004-10-14 05:10  ravindra
12928
12929         * ToolBarButton.cs:
12930                 - Added an internal member 'inside' to handle mouse move
12931                 with mouse pressed ie mouse drag event.
12932                 - Changed 'Pressed' property to return true only when
12933                 'inside' and 'pressed' are both true.
12934                 - Some coding style love.
12935
12936 2004-10-14 00:17  ravindra
12937
12938         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
12939           public method.
12940
12941 2004-10-14 00:15  ravindra
12942
12943         * ButtonBase.cs: Redraw () related improvements.
12944
12945 2004-10-14 00:14  ravindra
12946
12947         * MessageBox.cs: Moved InitFormSize () out of Paint method and
12948           removed unnecessary calls to Button.Show () method.
12949
12950 2004-10-13 17:50  pbartok
12951
12952         * XplatUIX11.cs:
12953           - Formatting fix
12954           - Removed destroying of window until we solve the problem of X
12955             destroying the window before us on shutdown
12956
12957 2004-10-13 16:32  pbartok
12958
12959         * ButtonBase.cs:
12960           - Now Redraws on MouseUp for FlatStyle Flat and Popup
12961
12962 2004-10-13 14:18  pbartok
12963
12964         * XplatUIX11.cs:
12965           - Added code to destroy the X window
12966
12967 2004-10-13 14:18  pbartok
12968
12969         * XplatUIWin32.cs:
12970           - Added code to destroy a window
12971
12972 2004-10-13 14:12  pbartok
12973
12974         * ButtonBase.cs:
12975           - Added the Redraw on Resize that got dropped in the last rev
12976
12977 2004-10-13 09:06  pbartok
12978
12979         * ThemeWin32Classic.cs:
12980           - Path from John BouAntoun:
12981             * Fix check rendering (centre correctly for normal style, offset
12982               correctly for FlatStyle).
12983             * Fix border color usage (use backcolor) for FlatStyle.Popup
12984             * Use checkbox.Capture instead of checkbox.is_pressed when
12985               rendering flatstyle states.
12986
12987 2004-10-12 21:48  pbartok
12988
12989         * ThemeWin32Classic.cs:
12990           - Removed all occurences of SystemColors and replaced them with the
12991             matching theme color
12992
12993 2004-10-12 21:41  pbartok
12994
12995         * ThemeWin32Classic.cs:
12996           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
12997             him using the function for flatstyle drawing
12998           - Changed functions to use the new version of CPDrawBorder3D
12999
13000 2004-10-12 21:15  pbartok
13001
13002         * ControlPaint.cs:
13003           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
13004             match MS documentation. They need to return defined colors if the
13005             passed color matches the configured control color. Thanks to John
13006             BouAntoun for pointing this out.
13007
13008 2004-10-12 20:57  pbartok
13009
13010         * Control.cs:
13011           - Fix from John BouAntoun: Raise ForeColorChanged event when text
13012             color is changed
13013
13014 2004-10-12 20:46  pbartok
13015
13016         * CheckBox.cs:
13017           - Fix from John BouAntoun: Now properly sets the Appearance property
13018
13019 2004-10-12 20:45  pbartok
13020
13021         * ThemeWin32Classic.cs:
13022           - Fixes from John BouAntoun: now handles forecolors and backcolors
13023             for flatstyle rendered controls much better; It also fixes normal
13024             checkbox rendering when pushed or disabled.
13025
13026 2004-10-08 02:50  jordi
13027
13028         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
13029           work
13030
13031 2004-10-07 08:56  jordi
13032
13033         * ThemeWin32Classic.cs: Removes deletion of cached brushes
13034
13035 2004-10-06 03:59  jordi
13036
13037         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
13038           XplatUIWin32.cs: removes warnings from compilation
13039
13040 2004-10-05 12:23  jackson
13041
13042         * RadioButton.cs: Fix ctor
13043
13044 2004-10-05 11:10  pbartok
13045
13046         * MessageBox.cs:
13047           - Partial implementation by Benjamin Dasnois
13048
13049 2004-10-05 10:15  jackson
13050
13051         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
13052           by John BouAntoun
13053
13054 2004-10-05 03:07  ravindra
13055
13056         * ToolBar.cs:
13057                 - Removed a private method, Draw ().
13058                 - Fixed the ButtonDropDown event handling.
13059                 - Fixed MouseMove event handling.
13060
13061 2004-10-05 03:04  ravindra
13062
13063         * ThemeWin32Classic.cs:
13064                 - Added DrawListView method and ListViewDefaultSize property.
13065                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
13066                 - Changed DOS style CRLF to Unix format (dos2unix).
13067
13068 2004-10-05 03:03  ravindra
13069
13070         * Theme.cs:
13071                 - Added DrawListView method and ListViewDefaultSize property.
13072
13073 2004-10-05 02:42  ravindra
13074
13075         * ToolBarButton.cs: Added an internal member dd_pressed to handle
13076           clicks on DropDown arrow.
13077
13078 2004-10-04 22:56  jackson
13079
13080         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
13081           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
13082           Control handle the buffers, derived classes should not have to
13083           CreateBuffers themselves.
13084
13085 2004-10-04 21:20  jackson
13086
13087         * StatusBar.cs: The control handles resizing the buffers now.
13088
13089 2004-10-04 21:18  jackson
13090
13091         * Control.cs: When resizing the buffers should be invalidated. This
13092           should be handled in Control not in derived classes.
13093
13094 2004-10-04 14:45  jackson
13095
13096         * TabPage.cs: oops
13097
13098 2004-10-04 02:14  pbartok
13099
13100         * LeftRightAlignment.cs:
13101           - Initial check-in
13102
13103 2004-10-04 01:09  jordi
13104
13105         * ThemeWin32Classic.cs: fixes right button position causing right
13106           button not showing on horizontal scrollbars
13107
13108 2004-10-02 13:12  pbartok
13109
13110         * XplatUIX11.cs:
13111           - Simplified the Invalidate method by using an X call instead of
13112             generating the expose ourselves
13113           - Added an expose when the window background is changed
13114           - Implemented ClientToScreen method
13115
13116 2004-10-02 13:08  pbartok
13117
13118         * XplatUIWin32.cs:
13119           - Added Win32EnableWindow method (test for implementing modal
13120           dialogs)
13121           - Added ClientToScreen method and imports
13122
13123 2004-10-02 13:07  pbartok
13124
13125         * XplatUI.cs, XplatUIDriver.cs:
13126           - Added ClientToScreen coordinate translation method
13127
13128 2004-10-02 13:06  pbartok
13129
13130         * KeyPressEventArgs.cs:
13131           - Fixed access level for constructor
13132
13133 2004-10-02 13:06  pbartok
13134
13135         * NativeWindow.cs:
13136           - Changed access level for the window_collection hash table
13137
13138 2004-10-02 13:05  pbartok
13139
13140         * Form.cs:
13141           - Added KeyPreview property
13142           - Added Menu property (still incomplete, pending Jordi's menu work)
13143           - Implemented ProcessCmdKey
13144           - Implemented ProcessDialogKey
13145           - Implemented ProcessKeyPreview
13146
13147 2004-10-02 13:02  pbartok
13148
13149         * Control.cs:
13150           - Added private method to get the Control object from the window
13151           handle
13152           - Implemented ContextMenu property
13153           - Implemented PointToScreen
13154           - Implemented PreProcessMessage
13155           - Implemented IsInputChar
13156           - Implemented IsInputKey
13157           - Implemented ProcessCmdKey
13158           - Completed ProcessKeyEventArgs
13159           - Fixed message loop to call the proper chain of functions on key
13160           events
13161           - Implemented ProcessDialogChar
13162           - Implemented ProcessDialogKey
13163           - Implemented ProcessKeyMessage
13164           - Implemented ProcessKeyPreview
13165           - Added RaiseDragEvent stub (MS internal method)
13166           - Added RaiseKeyEvent stub (MS internal method)
13167           - Added RaiseMouseEvent stub (MS Internal method)
13168           - Added RaisePaintEvent stub (MS Internal method)
13169           - Added ResetMouseEventArgs stub (MS Internal method)
13170           - Implemented RtlTranslateAlignment
13171           - Implemented RtlTranslateContent
13172           - Implemented RtlTranslateHorizontal
13173           - Implemented RtlTranslateLeftRight
13174           - Added generation of KeyPress event
13175
13176 2004-10-02 05:57  ravindra
13177
13178         * ListViewItem.cs: Added attributes.
13179
13180 2004-10-02 05:32  ravindra
13181
13182         * ListView.cs: Added attributes.
13183
13184 2004-10-01 11:53  jackson
13185
13186         * Form.cs: Implement the Close method so work on MessageBox can
13187           continue.
13188
13189 2004-09-30 14:06  pbartok
13190
13191         * XplatUIX11.cs:
13192           - Bug fixes
13193
13194 2004-09-30 11:34  jackson
13195
13196         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
13197
13198 2004-09-30 07:26  ravindra
13199
13200         * ListViewItemConverter.cs: Converter for ListViewItem.
13201
13202 2004-09-30 07:26  ravindra
13203
13204         * SortOrder.cs: Enum for ListView control.
13205
13206 2004-09-30 07:25  ravindra
13207
13208         * ColumnHeader.cs: Supporting class for ListView control.
13209
13210 2004-09-30 07:24  ravindra
13211
13212         * ListView.cs, ListViewItem.cs: Initial implementation.
13213
13214 2004-09-30 07:20  ravindra
13215
13216         * ItemActivation.cs: Enum for ListView Control.
13217
13218 2004-09-29 20:29  pbartok
13219
13220         * XplatUIX11.cs:
13221           - Added lookup of pixel value for background color; tries to get a
13222             color 'close' to the requested color, it avoids having to create a
13223             colormap.  Depending on the display this could mean the used color
13224             is slightly off the desired color. Might have to change it to a more
13225             resource intensive colormap approach, but it will work as a
13226           workaround to avoid red screens.
13227
13228 2004-09-29 14:27  jackson
13229
13230         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
13231
13232 2004-09-28 12:44  pbartok
13233
13234         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
13235           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
13236           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
13237           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
13238           TrackBar.cs, VScrollBar.cs:
13239           - Streamlined Theme interfaces:
13240             * Each DrawXXX method for a control now is passed the object for
13241               the control to be drawn in order to allow accessing any state the
13242               theme might require
13243
13244             * ControlPaint methods for the theme now have a CP prefix to avoid
13245               name clashes with the Draw methods for controls
13246
13247             * Every control now retrieves it's DefaultSize from the current
13248             theme
13249
13250 2004-09-28 12:17  jackson
13251
13252         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
13253           drawing
13254
13255 2004-09-24 14:57  jackson
13256
13257         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
13258           Gives us a nice little performance boost.
13259
13260 2004-09-24 12:02  jackson
13261
13262         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
13263           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
13264           Control and supporting classes. Initial checkin
13265
13266 2004-09-23 13:08  jackson
13267
13268         * Form.cs: Temp build fixage
13269
13270 2004-09-23 01:39  ravindra
13271
13272         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
13273           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
13274           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
13275           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
13276           EventHandlers needed by ListView Control.
13277
13278 2004-09-22 14:12  pbartok
13279
13280         * ScrollableControl.cs:
13281           - Implemented DockPadding property
13282           - Implemented AutoScroll property
13283           - Implemented AutoScrollMargin property
13284           - Implemented AutoScrollMinSize property
13285           - Implemented AutoScrollPosition property
13286           - Implemented DisplayRectangle property (still incomplete)
13287           - Implemented CreateParams property
13288           - Implemented HScroll property
13289           - Implemented VScroll property
13290           - Implemented OnVisibleChanged property
13291
13292 2004-09-22 14:09  pbartok
13293
13294         * Form.cs:
13295           - Added Form.ControllCollection class
13296           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
13297             RemoveOwnedForm (still incomplete, missing on-top and common
13298             minimize/maximize behaviour)
13299           - Added StartPosition property (still incomplete, does not use when
13300             creating the form)
13301           - Added ShowDialog() methods (still incomplete, missing forcing the
13302             dialog modal)
13303
13304 2004-09-22 14:05  pbartok
13305
13306         * Application.cs:
13307           - Added message loop for modal dialogs
13308
13309 2004-09-22 14:02  pbartok
13310
13311         * GroupBox.cs:
13312           - Fixed wrong types for events
13313
13314 2004-09-22 14:00  pbartok
13315
13316         * Shortcut.cs, FormWindowState.cs:
13317           - Fixed wrong values
13318
13319 2004-09-22 12:01  jackson
13320
13321         * Control.cs: Text is never null
13322
13323 2004-09-20 22:14  pbartok
13324
13325         * XplatUIWin32.cs:
13326           - Fixed accessibility level for Idle handler
13327
13328 2004-09-20 18:54  jackson
13329
13330         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13331           XplatUIX11.cs: New message loop that uses poll so we don't get a
13332           busy loop
13333
13334 2004-09-17 10:43  pbartok
13335
13336         * ScrollBar.cs:
13337           - Fixed behaviour of arrow buttons. Now properly behaves like
13338             Buttons (and like Microsoft's scrollbar arrow buttons)
13339
13340 2004-09-17 10:14  pbartok
13341
13342         * ScrollBar.cs:
13343           - Added missing release of keyboard/mouse capture
13344
13345 2004-09-17 06:18  jordi
13346
13347         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
13348           Theme.cs: Very early menu support
13349
13350 2004-09-16 17:45  pbartok
13351
13352         * XplatUIWin32.cs:
13353           - Fixed sending a window to the front
13354           - Added overload for SetWindowPos to avoid casting
13355
13356 2004-09-16 17:44  pbartok
13357
13358         * Control.cs:
13359           - Added SendToBack and BringToFront methods
13360
13361 2004-09-16 07:00  ravindra
13362
13363         * Copyright: Added Novell URL.
13364
13365 2004-09-16 07:00  ravindra
13366
13367         * ToolBar.cs: Invalidate should be done before redrawing.
13368
13369 2004-09-15 21:19  ravindra
13370
13371         * ColumnHeaderStyle.cs: Enum for ListView Control.
13372
13373 2004-09-15 21:18  ravindra
13374
13375         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
13376           ListView Control.
13377
13378 2004-09-13 18:26  jackson
13379
13380         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
13381           properly
13382
13383 2004-09-13 18:13  jackson
13384
13385         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
13386           a second thread and post messages into the main threads message
13387           queue. This makes timing much more consistent. Both win2K and XP
13388           have a minimum timer value of 15 milliseconds, so we now do this
13389           too.
13390
13391 2004-09-13 15:18  pbartok
13392
13393         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13394           XplatUIX11.cs:
13395           - Added Z-Ordering methods
13396
13397 2004-09-13 10:56  pbartok
13398
13399         * Form.cs:
13400           - Fixed #region names
13401           - Moved properties and methods into their proper #regions
13402
13403 2004-09-13 10:51  pbartok
13404
13405         * Form.cs:
13406           - Added Accept and CancelButton properties
13407           - Added ProcessDialogKey() method
13408
13409 2004-09-13 08:18  pbartok
13410
13411         * IWindowTarget.cs:
13412           - Initial check-in
13413
13414 2004-09-10 21:50  pbartok
13415
13416         * Control.cs:
13417           - Added DoDragDrop() [incomplete]
13418           - Properly implemented 'Visible' handling
13419           - Added SetVisibleCore()
13420           - Implemented FindChildAtPoint()
13421           - Implemented GetContainerControl()
13422           - Implemented Hide()
13423
13424 2004-09-10 19:28  pbartok
13425
13426         * Control.cs:
13427           - Moved methods into their appropriate #regions
13428           - Reordered methods within regions alphabetically
13429
13430 2004-09-10 18:57  pbartok
13431
13432         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13433           - Added method to retrieve text from window
13434
13435 2004-09-10 18:56  pbartok
13436
13437         * Control.cs:
13438           - Moved some internal functions into the internal region
13439           - Implemented FontHeight
13440           - Implemented RenderRightToLeft
13441           - Implemented ResizeRedraw
13442           - Implemented ShowFocusCues
13443           - Implemented ShowKeyboardCues
13444           - Implemented FromChildHandle
13445           - Implemented FromHandle
13446           - Implemented IsMnemonic
13447           - Implemented ReflectMessage
13448           - All public and protected Static Methods are now complete
13449
13450 2004-09-10 16:54  pbartok
13451
13452         * Control.cs:
13453           - Implemented remaining missing public instance properties
13454           - Alphabetized some out of order properties
13455
13456 2004-09-10 05:51  ravindra
13457
13458         * PictureBox.cs: Added a check for null image.
13459
13460 2004-09-10 00:59  jordi
13461
13462         * GroupBox.cs: remove cvs tag
13463
13464 2004-09-09 05:25  ravindra
13465
13466         * ToolBar.cs: Make redraw accessible from ToolBarButton.
13467
13468 2004-09-09 05:23  ravindra
13469
13470         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
13471           parent redraw.
13472
13473 2004-09-09 02:28  pbartok
13474
13475         * ThemeWin32Classic.cs:
13476           - Improve disabled string look
13477
13478 2004-09-09 01:15  jordi
13479
13480         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
13481           args and handler
13482
13483 2004-09-08 23:56  ravindra
13484
13485         * ItemBoundsPortion.cs: It's enum, not a class!
13486
13487 2004-09-08 23:47  ravindra
13488
13489         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
13490           Enums for Form.
13491
13492 2004-09-08 21:13  ravindra
13493
13494         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
13495           ListView control.
13496
13497 2004-09-08 21:03  ravindra
13498
13499         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
13500           avoid crash.
13501
13502 2004-09-08 21:01  ravindra
13503
13504         * ScrollableControl.cs: Removed unreachable code.
13505
13506 2004-09-08 06:45  jordi
13507
13508         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
13509
13510 2004-09-08 01:00  jackson
13511
13512         * XplatUIX11.cs: Only run the timers when updating the message
13513           queue. This effectively gives X messages a higher priority then
13514           timer messages. Timers still need love though
13515
13516 2004-09-07 14:01  jackson
13517
13518         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
13519           this for us and the handle is no longer valid.
13520
13521 2004-09-07 13:59  jackson
13522
13523         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
13524           loop that manages to not crash. TODO: Add poll and cleanup timers
13525
13526 2004-09-07 11:12  jordi
13527
13528         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
13529
13530 2004-09-07 03:40  jordi
13531
13532         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
13533           fixes, methods, multiple links
13534
13535 2004-09-06 06:55  jordi
13536
13537         * Control.cs: Caches ClientRectangle rectangle value
13538
13539 2004-09-05 02:03  jordi
13540
13541         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
13542           certain situations
13543
13544 2004-09-04 11:10  jordi
13545
13546         * Label.cs: Refresh when font changed
13547
13548 2004-09-02 16:24  pbartok
13549
13550         * Control.cs:
13551           - Added sanity check to creation of double buffer bitmap
13552
13553 2004-09-02 16:24  pbartok
13554
13555         * ButtonBase.cs:
13556           - Fixed selection of text color
13557           - Fixed handling of resize event; now properly recreates double
13558             buffering bitmap
13559           - Added missing assignment of TextAlignment
13560           - Added proper default for TextAlignment
13561
13562 2004-09-02 14:26  pbartok
13563
13564         * RadioButton.cs:
13565           - Added missing RadioButton.RadioButtonAccessibleObject class
13566
13567 2004-09-02 14:26  pbartok
13568
13569         * Control.cs:
13570           - Added missing Control.ControlAccessibleObject class
13571           - Started to implement Select()ion mechanisms, still very incomplete
13572
13573 2004-09-02 14:25  pbartok
13574
13575         * AccessibleObject.cs:
13576           - Added missing methods
13577
13578 2004-09-02 14:23  pbartok
13579
13580         * AccessibleNavigation.cs, AccessibleSelection.cs:
13581           - Initial check-in
13582
13583 2004-09-02 10:32  jordi
13584
13585         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
13586           pool for pens, brushes, and hatchbruses
13587
13588 2004-09-01 15:30  jackson
13589
13590         * StatusBar.cs: Fix typo
13591
13592 2004-09-01 14:44  pbartok
13593
13594         * RadioButton.cs:
13595           - Fixed state
13596
13597 2004-09-01 14:39  pbartok
13598
13599         * Button.cs, RadioButton.cs:
13600           - Functional initial check-in
13601
13602 2004-09-01 14:01  pbartok
13603
13604         * CheckBox.cs:
13605           - Added missing default
13606           - Added missing region mark
13607
13608 2004-09-01 09:10  jordi
13609
13610         * Label.cs: fixes method signatures, new methods, events, fixes
13611           autosize
13612
13613 2004-09-01 07:19  jordi
13614
13615         * Control.cs: Init string variables with an empty object
13616
13617 2004-09-01 04:20  jordi
13618
13619         * Control.cs: fires OnFontChanged event
13620
13621 2004-08-31 20:07  pbartok
13622
13623         * ButtonBase.cs:
13624           - Enabled display of strings
13625
13626 2004-08-31 20:05  pbartok
13627
13628         * Form.cs:
13629           - Added (partial) implementation of DialogResult; rest needs to be
13630             implemented when the modal loop code is done
13631
13632 2004-08-31 19:55  pbartok
13633
13634         * CheckBox.cs:
13635           - Fixed to match the removal of the needs_redraw concept
13636
13637 2004-08-31 19:55  pbartok
13638
13639         * ButtonBase.cs:
13640           - Removed the rather odd split between 'needs redraw' and redrawing
13641           - Now handles the events that require regeneration (ambient
13642             properties and size)
13643
13644 2004-08-31 19:41  pbartok
13645
13646         * Control.cs:
13647           - Added firing of BackColorChanged event
13648           - Added TopLevelControl property
13649           - Fixed handling of WM_ERASEBKGRND message
13650
13651 2004-08-31 12:49  pbartok
13652
13653         * ButtonBase.cs:
13654           - Removed debug
13655           - Minor fixes
13656
13657 2004-08-31 12:48  pbartok
13658
13659         * CheckBox.cs:
13660           - Finished (famous last words)
13661
13662 2004-08-31 04:35  jordi
13663
13664         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
13665           scrolling bugs, adds new methods
13666
13667 2004-08-30 14:42  pbartok
13668
13669         * CheckBox.cs:
13670           - Implemented CheckBox drawing code
13671
13672 2004-08-30 14:42  pbartok
13673
13674         * ButtonBase.cs:
13675           - Made Redraw() and CheckRedraw() virtual
13676           - Improved mouse up/down/move logic to properly track buttons
13677
13678 2004-08-30 09:44  pbartok
13679
13680         * CheckBox.cs:
13681           - Updated to fix broken build. Not complete yet.
13682
13683 2004-08-30 09:28  pbartok
13684
13685         * CheckState.cs:
13686           - Initial checkin
13687
13688 2004-08-30 09:17  pbartok
13689
13690         * Appearance.cs:
13691           - Initial check-in
13692
13693 2004-08-27 16:12  ravindra
13694
13695         * ToolBarButton.cs: Added TypeConverter attribute.
13696
13697 2004-08-27 16:07  ravindra
13698
13699         * ImageIndexConverter.cs: Implemented.
13700
13701 2004-08-27 14:17  pbartok
13702
13703         * Control.cs:
13704           - Removed unneeded stack vars
13705           - First attempt to fix sizing issues when layout is suspended
13706
13707 2004-08-25 15:35  jordi
13708
13709         * ScrollBar.cs: more fixes to scrollbar
13710
13711 2004-08-25 14:04  ravindra
13712
13713         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
13714           Added the missing divider code and grip for ToolBar Control.
13715
13716 2004-08-25 13:20  pbartok
13717
13718         * Control.cs:
13719           - Control now properly passes the ambient background color to child
13720             controls
13721
13722 2004-08-25 13:20  jordi
13723
13724         * ScrollBar.cs: small bug fix regarding bar position
13725
13726 2004-08-25 12:33  pbartok
13727
13728         * Timer.cs:
13729           - Now only calls SetTimer or KillTimer if the enabled state has
13730           changed
13731
13732 2004-08-25 12:33  pbartok
13733
13734         * XplatUIWin32.cs:
13735           - Fixed timer handling, now seems to work
13736           - Improved error message for window creation
13737
13738 2004-08-25 12:32  pbartok
13739
13740         * Control.cs:
13741           - Fixed generation of MouseUp message
13742
13743 2004-08-25 12:29  jordi
13744
13745         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
13746           and fixes for progressbar
13747
13748 2004-08-24 18:43  ravindra
13749
13750         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
13751           in ToolBar control.
13752
13753 2004-08-24 17:15  pbartok
13754
13755         * Panel.cs:
13756           - Added #region
13757           - Added missing events
13758           - Alphabetized
13759
13760 2004-08-24 17:14  pbartok
13761
13762         * StatusBar.cs, PictureBox.cs:
13763           - Now uses Control's CreateParams
13764
13765 2004-08-24 16:36  pbartok
13766
13767         * XplatUIX11.cs:
13768           - Fixed background color handling
13769           - Fixed sending of enter/leave events on a grab
13770
13771 2004-08-24 16:35  pbartok
13772
13773         * X11Structs.cs:
13774           - Refined definitions for CrossingEvent
13775
13776 2004-08-24 12:37  jordi
13777
13778         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
13779           formmating, methods signature, and adds missing events
13780
13781 2004-08-24 12:24  jordi
13782
13783         * Control.cs: fire OnEnabledChanged event
13784
13785 2004-08-24 11:17  pbartok
13786
13787         * XplatUIWin32.cs:
13788           - Implemented SetTimer() and KillTimer()
13789
13790 2004-08-24 11:16  pbartok
13791
13792         * XplatUIX11.cs:
13793           - Now uses Remove instead of Add to kill the timer
13794
13795 2004-08-24 10:16  jackson
13796
13797         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
13798           picture boxes in the theme now. Draw picture box borders and obey
13799           sizing modes
13800
13801 2004-08-24 05:49  jackson
13802
13803         * Timer.cs: Remove top secret debugging code
13804
13805 2004-08-24 05:34  jackson
13806
13807         * PictureBox.cs: Temp hack to make picture boxes draw their full
13808           image
13809
13810 2004-08-24 05:29  jackson
13811
13812         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13813           XplatUIX11.cs: Move timers to the driver level. On X they are
13814           queued by the driver and checked on idle.
13815
13816 2004-08-24 01:07  jackson
13817
13818         * XplatUIX11.cs: Use a queue for async messages instead of passing
13819           them as ClientMessages since that was totally broken. Also simply
13820           check for events and return an idle message if none are found. This
13821           gives us an idle handler, and prevents deadlocking when no messages
13822           are in the queue.
13823
13824 2004-08-23 18:19  ravindra
13825
13826         * XplatUIWin32.cs: Removed the unwanted destructor.
13827
13828 2004-08-23 17:27  pbartok
13829
13830         * ButtonBase.cs:
13831           - Finishing touches. Works now, just needs some optimizations.
13832
13833 2004-08-23 16:53  jordi
13834
13835         * ScrollBar.cs: small fix
13836
13837 2004-08-23 16:45  pbartok
13838
13839         * Application.cs:
13840           - Removed debug output
13841           - Simplifications
13842
13843 2004-08-23 16:43  jordi
13844
13845         * ScrollBar.cs: [no log message]
13846
13847 2004-08-23 16:10  pbartok
13848
13849         * Form.cs:
13850           - Fixed handling of WM_CLOSE message
13851           - Removed debug output
13852
13853 2004-08-23 16:09  pbartok
13854
13855         * Application.cs:
13856           - Added handling of Idle event
13857           - Added handling of form closing
13858           - Fixed reporting of MessageLoop property
13859           - Removed some unneeded code, should provide a bit of a speedup
13860
13861 2004-08-23 15:22  pbartok
13862
13863         * Control.cs:
13864           - Added InitLayout() method
13865           - Added code to properly perform layout when Anchor or Dock property
13866             is changed
13867           - Changed 'interpretation' of ResumeLayout. MS seems to have a
13868             LAMESPEC, tried to do it in a way that makes sense
13869
13870 2004-08-23 14:10  jordi
13871
13872         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
13873           properties and methods
13874
13875 2004-08-23 13:55  pbartok
13876
13877         * Control.cs:
13878           - Properly fixed Jordi's last fix
13879           - Now uses Cursor's Position property instead of calling XplatUI
13880           directly
13881
13882 2004-08-23 13:44  jordi
13883
13884         * PaintEventHandler.cs: Adding missing attribute
13885
13886 2004-08-23 13:39  pbartok
13887
13888         * Cursor.cs:
13889           - Implemented Position property
13890
13891 2004-08-23 13:39  pbartok
13892
13893         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13894           - Added method to move mouse cursor
13895
13896 2004-08-23 13:39  pbartok
13897
13898         * XplatUIX11.cs:
13899           - Fixed setting of background color
13900           - Added method to move mouse cursor
13901
13902 2004-08-23 13:16  jordi
13903
13904         * Control.cs: avoids null exception
13905
13906 2004-08-22 17:46  jackson
13907
13908         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
13909           PictureBox
13910
13911 2004-08-22 17:40  jackson
13912
13913         * XplatUIX11.cs: Add some missing locks
13914
13915 2004-08-22 15:10  pbartok
13916
13917         * Control.cs, Form.cs:
13918           - Removed OverlappedWindow style from Control, instead it's default
13919             now is child
13920           - Made form windows OverlappedWindow by default
13921
13922 2004-08-22 13:34  jackson
13923
13924         * ScrollBar.cs: Update the position through the Value property so
13925           the OnValueChanged event is raised.
13926
13927 2004-08-22 12:04  pbartok
13928
13929         * SWF.csproj:
13930           - Added Cursor.cs and UserControl.cs
13931
13932 2004-08-22 12:03  pbartok
13933
13934         * Cursor.cs:
13935           - Started implementation, not usable yet
13936
13937 2004-08-22 12:00  pbartok
13938
13939         * UserControl.cs:
13940           - Implemented UserControl (complete)
13941
13942 2004-08-21 19:20  ravindra
13943
13944         * ToolBar.cs: Correcting the formatting mess of VS.NET.
13945
13946 2004-08-21 18:49  ravindra
13947
13948         * ToolBar.cs: Probably this completes the missing attributes in
13949           toolbar control.
13950
13951 2004-08-21 18:03  ravindra
13952
13953         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
13954           Fixed toolbar control signatures.
13955
13956 2004-08-21 16:32  pbartok
13957
13958         * LinkLabel.cs:
13959           - Signature Fixes
13960
13961 2004-08-21 16:30  pbartok
13962
13963         * Label.cs:
13964           - Signature fixes
13965
13966 2004-08-21 16:19  pbartok
13967
13968         * Control.cs, Label.cs:
13969           - Signature fixes
13970
13971 2004-08-21 15:57  pbartok
13972
13973         * ButtonBase.cs:
13974           - Added loads of debug output for development
13975           - Fixed typo in method name
13976
13977 2004-08-21 15:52  pbartok
13978
13979         * ToolBarButtonClickEventArgs.cs:
13980           - Added missing base class
13981
13982 2004-08-21 14:53  pbartok
13983
13984         * Control.cs:
13985           - Updated to match new GrabWindow signature
13986
13987 2004-08-21 14:51  pbartok
13988
13989         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13990           - Added method to get default display size
13991
13992 2004-08-21 14:23  pbartok
13993
13994         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13995           - Added method to query current grab state
13996           - Added argument to allow confining a grab to a window
13997
13998 2004-08-21 14:22  pbartok
13999
14000         * Keys.cs:
14001           - Added [Flags] attribute so that modifiers can be used in bitwise
14002           ops
14003
14004 2004-08-21 14:21  pbartok
14005
14006         * TrackBar.cs, ScrollBar.cs:
14007           - Replaced direct XplatUI calls with their Control counterpart
14008
14009 2004-08-21 13:32  pbartok
14010
14011         * Control.cs:
14012           - Implemented Created property
14013
14014 2004-08-21 13:28  pbartok
14015
14016         * Control.cs:
14017           - Implemented ContainsFocus
14018
14019 2004-08-21 13:26  pbartok
14020
14021         * Control.cs:
14022           - Implemented CausesValidation
14023
14024 2004-08-21 13:21  pbartok
14025
14026         * Control.cs:
14027           - Implemented CanFocus
14028           - Implemented CanSelect
14029           - Implemented Capture
14030
14031 2004-08-21 12:35  pbartok
14032
14033         * XplatUIWin32.cs:
14034           - Fixed bug with Async message handling
14035           - Implemented getting the ModifierKeys
14036
14037 2004-08-21 12:32  jackson
14038
14039         * AsyncMethodResult.cs: Make sure we have the mutex before we
14040           release it. Fixes BeginInvoke on windows
14041
14042 2004-08-21 11:31  pbartok
14043
14044         * XplatUIWin32.cs, XplatUIX11.cs:
14045           - Drivers now return proper mouse state
14046
14047 2004-08-21 10:54  jackson
14048
14049         * Control.cs: Implement EndInvoke
14050
14051 2004-08-21 10:48  jackson
14052
14053         * Timer.cs: Remove unneeded finalizer
14054
14055 2004-08-20 19:52  ravindra
14056
14057         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
14058           in mouse event handling in the ToolBar control.
14059
14060 2004-08-20 19:50  ravindra
14061
14062         * ImageList.cs: Changed draw method to use the arguments passed in
14063           to draw the image.
14064
14065 2004-08-20 18:58  pbartok
14066
14067         * XplatUIStructs.cs:
14068           - Added private message for async communication
14069
14070 2004-08-20 17:38  ravindra
14071
14072         * Control.cs: Made RightToLeft property virtual and removed a
14073           Console.WriteLine.
14074
14075 2004-08-20 14:39  jordi
14076
14077         * ThemeGtk.cs: use style_attach
14078
14079 2004-08-20 14:39  pbartok
14080
14081         * XplatUIWin32.cs:
14082           - Added jackson's Async code from X11 to Win32
14083
14084 2004-08-20 14:09  pbartok
14085
14086         * SWF.csproj:
14087           - Added all new files
14088
14089 2004-08-20 14:09  pbartok
14090
14091         * Control.cs:
14092           - Added call to set window background color
14093
14094 2004-08-20 14:03  pbartok
14095
14096         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14097           - Added method for setting the window background
14098
14099 2004-08-20 14:02  pbartok
14100
14101         * XplatUIWin32.cs:
14102           - Added method for setting the background color
14103           - Added handling for erasing the window background
14104
14105 2004-08-20 13:45  jordi
14106
14107         * TrackBar.cs: fixes timer, new properties and methods
14108
14109 2004-08-20 13:34  jackson
14110
14111         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
14112           correct thread
14113
14114 2004-08-20 13:22  jackson
14115
14116         * Timer.cs: Timer Tick events are now handed through Controls Async
14117           mechanism so the callbacks are executed in the same thread as X
14118
14119 2004-08-20 13:19  jackson
14120
14121         * XplatUIDriver.cs: Expose functionality to send async messages
14122           through the driver
14123
14124 2004-08-20 13:18  jackson
14125
14126         * Control.cs: Implement Begininvoke
14127
14128 2004-08-20 13:14  jackson
14129
14130         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
14131           messages through the driver
14132
14133 2004-08-20 13:12  jackson
14134
14135         * XplatUIX11.cs: Lock before all X operations. Also added Async
14136           method functionality through XSendEvent
14137
14138 2004-08-20 13:11  jackson
14139
14140         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
14141           This will screw up on 64 bit systems)
14142
14143 2004-08-20 13:10  jackson
14144
14145         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
14146           Async messages through X/Win32
14147
14148 2004-08-19 19:39  pbartok
14149
14150         * XplatUIX11.cs:
14151           - Updated code to match new HandleData.DeviceContext type
14152
14153 2004-08-19 19:38  pbartok
14154
14155         * HandleData.cs:
14156           - Made DeviceContext a generic object to allow usage from various
14157           drivers
14158           - Added support for queueing Windows messages
14159
14160 2004-08-19 19:37  pbartok
14161
14162         * XplatUIWin32.cs:
14163           - Added generation of MouseEnter, MouseLeave and MouseHover events
14164           - Added cleanup on EndPaint
14165
14166 2004-08-19 19:17  pbartok
14167
14168         * Control.cs:
14169           - Added handling of WM_MOUSEHOVER
14170           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
14171           code
14172
14173 2004-08-19 18:55  jordi
14174
14175         * ThemeGtk.cs: fixes button order
14176
14177 2004-08-19 18:12  jordi
14178
14179         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
14180
14181 2004-08-19 17:09  pbartok
14182
14183         * Control.cs:
14184           - Added Right property
14185           - Added RightToLeft property
14186
14187 2004-08-19 16:27  jordi
14188
14189         * ThemeGtk.cs: experimental GTK theme support
14190
14191 2004-08-19 16:26  jordi
14192
14193         * ITheme.cs, Theme.cs: move themes from an interface to a class
14194
14195 2004-08-19 16:25  jordi
14196
14197         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
14198           theme enhancaments
14199
14200 2004-08-19 16:04  pbartok
14201
14202         * XplatUIX11.cs:
14203           - Added colormap basics
14204           - Added a way to re-initialize with a different display handle
14205           - Fixed setting of the window background color
14206           - Added various X11 imports related to colors and colormaps
14207
14208 2004-08-19 15:51  pbartok
14209
14210         * X11Structs.cs:
14211           - Removed packing hints (Paolo suggested this a while back)
14212           - fixed colormap type
14213           - Added default Atom types
14214           - Added Screen and color structs and enums
14215
14216 2004-08-19 15:39  pbartok
14217
14218         * ImageList.cs:
14219           - Added missing Draw() method
14220           - Added missing RecreateHandle event
14221
14222 2004-08-19 15:30  pbartok
14223
14224         * Form.cs:
14225           - Added handling of WM_CLOSE
14226
14227 2004-08-18 13:16  jordi
14228
14229         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
14230           a table
14231
14232 2004-08-18 09:56  jordi
14233
14234         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
14235
14236 2004-08-17 15:31  ravindra
14237
14238         * SWF.csproj: Updated project.
14239
14240 2004-08-17 15:25  pbartok
14241
14242         * Control.cs:
14243           - Drawing improvement; don't call UpdateBounds if we are not visible
14244             (or have been minimized)
14245
14246 2004-08-17 15:24  pbartok
14247
14248         * XplatUIWin32.cs:
14249           - Finished IsVisible
14250           - Added Win32GetWindowPlacement
14251
14252 2004-08-17 15:08  jackson
14253
14254         * Panel.cs: Initial checkin of the Panel
14255
14256 2004-08-17 14:25  pbartok
14257
14258         * Control.cs:
14259           - Fixed broken handling of default window sizes
14260
14261 2004-08-17 13:29  jackson
14262
14263         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
14264           has a large startup time.
14265
14266 2004-08-17 10:25  jackson
14267
14268         * HandleData.cs: union areas properly
14269
14270 2004-08-17 10:12  jackson
14271
14272         * HandleData.cs: union areas properly
14273
14274 2004-08-16 20:00  ravindra
14275
14276         * ToolBar.cs, ToolBarButton.cs: Added attributes.
14277
14278 2004-08-16 18:48  ravindra
14279
14280         * ToolBar.cs: Added attributes.
14281
14282 2004-08-16 17:17  ravindra
14283
14284         * SWF.csproj: Updated project.
14285
14286 2004-08-16 17:16  jackson
14287
14288         * XplatUIX11.cs: Check for more expose events before sending a
14289           WM_PAINT so they can all be grouped together. This makes dragging a
14290           window across another window redraw in a sane way.
14291
14292 2004-08-16 15:47  pbartok
14293
14294         * Control.cs:
14295           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
14296             support OnMouseEnter/Leave()
14297           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
14298             exposure handling
14299
14300 2004-08-16 15:46  pbartok
14301
14302         * XplatUIStructs.cs, XplatUIX11.cs:
14303           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
14304           OnMouseEnter/Leave()
14305
14306 2004-08-16 15:34  jackson
14307
14308         * XplatUIX11.cs: Group multiple expose events in HandleData, make
14309           sure messages get the message field set to WM_NULL if they are not
14310           handled.
14311
14312 2004-08-16 15:24  jackson
14313
14314         * HandleData.cs: HandleData is used for storing message information
14315           for window handles
14316
14317 2004-08-15 17:23  ravindra
14318
14319         * ColorDepth.cs: Added attribute.
14320
14321 2004-08-15 17:23  ravindra
14322
14323         * SWF.csproj: Updated project for ToolBar Control.
14324
14325 2004-08-15 17:20  ravindra
14326
14327         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
14328           control and also dos2unix format.
14329
14330 2004-08-15 17:13  ravindra
14331
14332         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
14333           ToolBarButtonClickEventArgs.cs,
14334           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
14335           ToolBarTextAlign.cs: First Implementation of ToolBar control.
14336
14337 2004-08-15 15:31  pbartok
14338
14339         * ButtonBase.cs:
14340           - First (mostly) working version
14341
14342 2004-08-13 16:15  pbartok
14343
14344         * Control.cs:
14345           - Fixed Anchor default
14346
14347 2004-08-13 15:43  pbartok
14348
14349         * Control.cs:
14350           - Changed GetCursorPos signature
14351
14352 2004-08-13 15:42  pbartok
14353
14354         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
14355           - Changed signature for GetCursorPos
14356
14357 2004-08-13 15:25  pbartok
14358
14359         * XplatUIX11.cs:
14360           - Cleanup
14361           - Fixed resizing/exposure handling
14362
14363 2004-08-13 15:22  jordi
14364
14365         * ThemeWin32Classic.cs: removes redundant code and fixes issues
14366           with tickposition
14367
14368 2004-08-13 14:55  jordi
14369
14370         * TrackBar.cs: change from wndproc to events
14371
14372 2004-08-13 13:00  jordi
14373
14374         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14375           XplatUIX11.cs: implements PointToClient (ScreenToClient)
14376
14377 2004-08-13 12:53  pbartok
14378
14379         * XplatUIWin32.cs:
14380           - Changed GetWindowPos to also provide client area size
14381           - Fixed broken prototypes for several win32 functions
14382
14383 2004-08-13 12:53  pbartok
14384
14385         * XplatUI.cs, XplatUIDriver.cs:
14386           - Changed GetWindowPos to also provide client area size
14387
14388 2004-08-13 12:52  pbartok
14389
14390         * XplatUIX11.cs:
14391           - Added generation of WM_POSCHANGED
14392           - Changed GetWindowPos to also provide client area size
14393
14394 2004-08-13 12:52  pbartok
14395
14396         * Control.cs:
14397           - Added Dispose() and destructor
14398           - Fixed resizing and bounds calculation
14399           - Fixed Layout
14400           - Added memory savings for invisible windows
14401
14402 2004-08-13 12:46  jordi
14403
14404         * TrackBar.cs: adds timer and grap window
14405
14406 2004-08-13 10:25  jackson
14407
14408         * Timer.cs: SWF Timer
14409
14410 2004-08-12 16:59  pbartok
14411
14412         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14413           - Implemented method to get current mouse position
14414
14415 2004-08-12 14:29  jordi
14416
14417         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
14418           enhancement, fix mouse problems, highli thumb, etc
14419
14420 2004-08-12 13:31  pbartok
14421
14422         * Control.cs:
14423           - Fixed Anchoring bugs
14424
14425 2004-08-12 13:01  jackson
14426
14427         * StatusBar.cs: Don't forget things
14428
14429 2004-08-12 12:54  jackson
14430
14431         * ThemeWin32Classic.cs: Handle owner draw status bars
14432
14433 2004-08-12 12:54  jackson
14434
14435         * StatusBar.cs: Implement missing properties, events, and methods.
14436           Handle mouse clicking
14437
14438 2004-08-12 10:19  jackson
14439
14440         * StatusBarPanelClickEventArgs.cs,
14441           StatusBarPanelClickEventHandler.cs: Classes for handling status
14442           bar panel click events
14443
14444 2004-08-12 10:10  jackson
14445
14446         * Control.cs: Add missing properties
14447
14448 2004-08-12 09:46  pbartok
14449
14450         * BindingsManagerBase.cs:
14451           - Name changed to BindingManagerBase.cs
14452
14453 2004-08-12 09:25  jordi
14454
14455         * ScrollableControl.cs: calls ctrlbase instead of exeception
14456
14457 2004-08-11 16:28  pbartok
14458
14459         * InputLanguageChangingEventArgs.cs:
14460           - Never check in before compiling. Fixes the last check-in
14461
14462 2004-08-11 16:26  pbartok
14463
14464         * InputLanguageChangingEventArgs.cs:
14465           - More signature fixes
14466
14467 2004-08-11 16:20  pbartok
14468
14469         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
14470           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
14471           ImageListStreamer.cs, InputLanguage.cs,
14472           InputLanguageChangedEventArgs.cs,
14473           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
14474           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
14475           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
14476           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14477           - Signature fixes
14478
14479 2004-08-11 16:16  pbartok
14480
14481         * Application.cs:
14482           - Fixed Signature
14483           - Added .Net 1.1 method
14484
14485 2004-08-11 15:25  pbartok
14486
14487         * SWF.csproj:
14488           - Fixed BindingManagerBase.cs filename
14489
14490 2004-08-11 15:22  pbartok
14491
14492         * BindingManagerBase.cs:
14493           - Was checked in with wrong filename
14494
14495 2004-08-11 14:50  pbartok
14496
14497         * SWF.csproj:
14498           - Updated
14499
14500 2004-08-11 13:41  jordi
14501
14502         * XplatUIWin32.cs: Fixes ClientRect
14503
14504 2004-08-11 13:19  pbartok
14505
14506         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14507           XplatUIX11.cs:
14508           - We had SetWindowPos and MoveWindow to set window positions and
14509             size, removed MoveWindow. We have GetWindowPos, so it made sense to
14510             keep SetWindowPos as matching counterpart
14511           - Added some X11 sanity checking
14512
14513 2004-08-11 12:59  pbartok
14514
14515         * Control.cs:
14516           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
14517             (It seems that SetBounds is just a front for SetBoundsCore and
14518              SetBoundsCore updates the underlying window system and
14519              UpdateBounds is responsible for updating the variables associated
14520              with the Control and sending the events)
14521           - Major cleanup of Size handling; we now have two sizes, client_size
14522             and bounds. Bounds defines the window with decorations, client_size
14523             without them.
14524
14525 2004-08-11 12:55  pbartok
14526
14527         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14528           - Added method to calculate difference between decorated window and
14529             raw client area
14530
14531 2004-08-11 12:54  pbartok
14532
14533         * Label.cs:
14534           - Forcing redraw on resize
14535
14536 2004-08-11 11:43  pbartok
14537
14538         * ImageList.cs:
14539           - Removed disposing of the actual images when the list is disposed
14540
14541 2004-08-11 09:13  pbartok
14542
14543         * Control.cs:
14544           - Now properly reparents windows
14545
14546 2004-08-11 08:37  pbartok
14547
14548         * Control.cs:
14549           - Duh!
14550
14551 2004-08-11 07:47  pbartok
14552
14553         * Control.cs:
14554           - Rewrote the collection stuff. Might not be as fast now, not
14555             keeping the number of children around and accessible directly, but
14556             it's more straightforward
14557
14558 2004-08-11 07:44  pbartok
14559
14560         * AccessibleObject.cs:
14561           - Fixed to match ControlCollection rewrite
14562
14563 2004-08-11 07:43  pbartok
14564
14565         * ImageList.cs:
14566           - Added missing creation of the collection list
14567
14568 2004-08-10 20:08  jackson
14569
14570         * StatusBar.cs: Get the paint message from WndProc
14571
14572 2004-08-10 19:31  jackson
14573
14574         * ThemeWin32Classic.cs: Create Brushes as little as possible
14575
14576 2004-08-10 19:20  jackson
14577
14578         * UICues.cs: Add Flags attribute
14579
14580 2004-08-10 19:19  jackson
14581
14582         * StatusBarPanel.cs: Signature cleanup
14583
14584 2004-08-10 19:10  jackson
14585
14586         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
14587           Initial implementation of status bar item drawing
14588
14589 2004-08-10 17:27  jordi
14590
14591         * TrackBar.cs: add missing methods, properties, and restructure to
14592           hide extra ones
14593
14594 2004-08-10 16:24  jackson
14595
14596         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
14597           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
14598           attribute
14599
14600 2004-08-10 13:21  jordi
14601
14602         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
14603           enhancements and standarize on win colors defaults
14604
14605 2004-08-10 12:52  jackson
14606
14607         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
14608           ThemeWin32Classic.cs: Implement DrawItem functionality
14609
14610 2004-08-10 12:47  jordi
14611
14612         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
14613
14614 2004-08-10 12:32  jordi
14615
14616         * Control.cs: throw ontextchange event
14617
14618 2004-08-10 11:43  pbartok
14619
14620         * Control.cs:
14621           - Added more to the still unfinished Dock/Anchor layout code
14622
14623 2004-08-10 11:39  pbartok
14624
14625         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
14626           - Added GetWindowPos method
14627
14628 2004-08-10 11:36  pbartok
14629
14630         * XplatUIWin32.cs:
14631           - Implemented several methods
14632
14633 2004-08-10 09:47  jackson
14634
14635         * TrackBar.cs: Allow control to handle buffering
14636
14637 2004-08-10 09:41  jackson
14638
14639         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
14640
14641 2004-08-10 09:24  jackson
14642
14643         * Label.cs, LinkLabel.cs: Let Control handle buffering.
14644
14645 2004-08-10 09:09  jackson
14646
14647         * StatusBar.cs: Let Control handle all the buffering.
14648
14649 2004-08-10 09:08  jackson
14650
14651         * Control.cs: Control will now handle the buffering code, so each
14652           control does not have to implement this.
14653
14654 2004-08-10 08:34  jackson
14655
14656         * XplatUIDriver.cs: Use default colors from the theme
14657
14658 2004-08-09 17:12  pbartok
14659
14660         * ImageList.cs:
14661           - Fixed several bugs Ravindra pointed out
14662
14663 2004-08-09 16:11  pbartok
14664
14665         * Control.cs:
14666           - Added incomplete dock layout code
14667           - Added support for mouse wheel
14668
14669 2004-08-09 16:09  pbartok
14670
14671         * XplatUIX11.cs:
14672           - Added handling for middle and right mousebutton
14673           - Added handling for mouse wheel
14674           - Added handling for key state and mouse state and position
14675           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
14676           messages
14677
14678 2004-08-09 15:40  jackson
14679
14680         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
14681           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
14682           checkin
14683
14684 2004-08-09 15:37  jackson
14685
14686         * StatusBar.cs: Initial implementation of StatusBar
14687
14688 2004-08-09 15:36  jackson
14689
14690         * ITheme.cs: Add support for drawing status bar and getting status
14691           bar item sizes
14692
14693 2004-08-09 15:35  pbartok
14694
14695         * MouseButtons.cs:
14696           - Fixed values
14697
14698 2004-08-09 15:34  jackson
14699
14700         * ThemeWin32Classic.cs: Add support for drawing status bar and get
14701           status bar item sizes
14702
14703 2004-08-09 15:21  jackson
14704
14705         * ThemeWin32Classic.cs: Use known colors for default control
14706           colours
14707
14708 2004-08-09 15:12  jackson
14709
14710         * ThemeWin32Classic.cs: Make the default font static, it is static
14711           in control so this doesn't change functionality and creating fonts
14712           is sloooooow.
14713
14714 2004-08-09 14:56  pbartok
14715
14716         * X11Structs.cs:
14717           - Added GrabMode enum
14718
14719 2004-08-09 14:55  pbartok
14720
14721         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14722           - Removed Run method, was only required for initial development
14723
14724 2004-08-09 14:51  pbartok
14725
14726         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
14727           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
14728           capture
14729
14730 2004-08-09 13:48  pbartok
14731
14732         * XplatUIX11.cs:
14733           - Fixed default sizing for child windows
14734
14735 2004-08-09 12:56  pbartok
14736
14737         * XplatUIX11.cs:
14738           - Added generation of WM_DESTROY message
14739           - Added handling of window manager induced shutdown
14740
14741 2004-08-09 11:31  jackson
14742
14743         * ThemeWin32Classic.cs: New names for control properties
14744
14745 2004-08-09 11:25  jackson
14746
14747         * Control.cs: Use new color names
14748
14749 2004-08-09 11:02  jackson
14750
14751         * XplatUI.cs: Get default window properties from the theme
14752
14753 2004-08-09 11:01  jackson
14754
14755         * ITheme.cs: The theme engine now controls default window
14756           properties
14757
14758 2004-08-09 11:00  jackson
14759
14760         * ThemeWin32Classic.cs: Add default window color properties
14761
14762 2004-08-09 10:17  jackson
14763
14764         * ThemeWin32Classic.cs: Use correct default back color
14765
14766 2004-08-09 10:05  jackson
14767
14768         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
14769           the theme now.
14770
14771 2004-08-09 09:56  jackson
14772
14773         * XplatUI.cs: Remove defaults, these are handled by the theme now.
14774
14775 2004-08-09 09:54  jackson
14776
14777         * Control.cs: Get default properties from the theme.
14778
14779 2004-08-09 09:53  jackson
14780
14781         * ITheme.cs: Themes now handle default control properties
14782
14783 2004-08-09 09:53  jackson
14784
14785         * ThemeWin32Classic.cs: Themes now handle default control
14786           properties so coloring will be consistent
14787
14788 2004-08-08 16:54  jordi
14789
14790         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
14791
14792 2004-08-08 15:08  jordi
14793
14794         * XplatUIX11.cs: fixes keyboard crash
14795
14796 2004-08-08 13:47  jordi
14797
14798         * Label.cs: add cvs header info
14799
14800 2004-08-08 12:09  jackson
14801
14802         * ThemeWin32Classic.cs: Add pen_buttonface
14803
14804 2004-08-08 11:52  jordi
14805
14806         * Label.cs, LinkLabel.cs: [no log message]
14807
14808 2004-08-08 11:34  jordi
14809
14810         * ThemeWin32Classic.cs: Use Windows Standard Colours
14811
14812 2004-08-07 17:32  jordi
14813
14814         * TrackBar.cs: throw exceptions of invalid enums values
14815
14816 2004-08-07 17:31  jordi
14817
14818         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
14819           draw method name
14820
14821 2004-08-07 16:56  jackson
14822
14823         * HorizontalAlignment.cs: Initial checkin
14824
14825 2004-08-07 13:16  jordi
14826
14827         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
14828           methods
14829
14830 2004-08-07 13:05  jordi
14831
14832         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
14833           GetSysColor defines
14834
14835 2004-08-06 18:01  pbartok
14836
14837         * ThemeWin32Classic.cs:
14838           - Fixed some rounding issues with float/int
14839
14840 2004-08-06 18:00  jackson
14841
14842         * DockStyle.cs, AnchorStyles.cs:
14843
14844                   Add flags and serializable attributes.
14845
14846 2004-08-06 17:46  pbartok
14847
14848         * XplatUIX11.cs:
14849           - Implemented GetParent
14850
14851 2004-08-06 17:18  pbartok
14852
14853         * TrackBar.cs:
14854           - Fixed some rounding issues with float/int
14855
14856 2004-08-06 17:17  pbartok
14857
14858         * X11Structs.cs, XplatUIX11.cs:
14859           - Fixed Refresh and Invalidate
14860
14861 2004-08-06 15:30  pbartok
14862
14863         * Control.cs, X11Structs.cs, XplatUIX11.cs:
14864           - Fixed recursive loop when resizing
14865           - Improved/fixed redrawing on expose messages
14866
14867 2004-08-06 09:53  jordi
14868
14869         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
14870           keyboard navigation
14871
14872 2004-08-06 08:02  pbartok
14873
14874         * X11Structs.cs, XplatUIX11.cs:
14875           - Fixed reparenting
14876           - Fixed window border creation
14877
14878 2004-08-05 15:38  pbartok
14879
14880         * XplatUIX11.cs:
14881           - Attempted fix for reparenting problems
14882
14883 2004-08-04 15:14  pbartok
14884
14885         * Control.cs:
14886           - Fixed Invalidation bug (calculated wrong client area)
14887           - Added ClientSize setter
14888
14889 2004-08-04 15:13  pbartok
14890
14891         * Form.cs:
14892           - Added AutoScale properties
14893
14894 2004-08-04 15:13  pbartok
14895
14896         * SWF.csproj:
14897           - Added latest files
14898
14899 2004-08-04 14:11  pbartok
14900
14901         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
14902           XplatUIX11.cs:
14903           - Added Invalidate handling
14904
14905 2004-08-03 17:09  jordi
14906
14907         * XplatUIDriver.cs: fixes spelling mistake
14908
14909 2004-07-27 09:53  jordi
14910
14911         * TrackBar.cs: fixes trackbar events, def classname, methods
14912           signature
14913
14914 2004-07-27 09:29  jordi
14915
14916         * ScrollBar.cs: fixes scrollbar events
14917
14918 2004-07-27 04:38  jordi
14919
14920         * Control.cs: changes to be able to run winforms samples
14921
14922 2004-07-26 11:42  jordi
14923
14924         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
14925           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
14926
14927 2004-07-26 05:41  jordi
14928
14929         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
14930           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
14931           implementation
14932
14933 2004-07-22 09:22  jordi
14934
14935         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
14936           check link overlapping, implement events, and fixes
14937
14938 2004-07-21 10:28  jordi
14939
14940         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
14941
14942 2004-07-21 10:19  jordi
14943
14944         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
14945           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
14946           LinkLabelLinkClickedEventArgs.cs,
14947           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
14948           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
14949           implementation
14950
14951 2004-07-19 13:09  jordi
14952
14953         * Control.cs, Label.cs: label control re-written: added missing
14954           functionlity, events, and properties
14955
14956 2004-07-19 10:49  jordi
14957
14958         * Control.cs: fixes SetBounds logic
14959
14960 2004-07-19 01:29  jordi
14961
14962         * Control.cs: Call RefreshWindow only if the window has created
14963
14964 2004-07-15 14:05  pbartok
14965
14966         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
14967           - Implemented ImageList and ImageList.ImageCollection classes
14968           - Added ColorDepth enumeration
14969           - Updated SWF VS.Net project
14970
14971 2004-07-15 11:06  jordi
14972
14973         * XplatUIStructs.cs: added MsgButons enum
14974
14975 2004-07-15 11:03  jordi
14976
14977         * Control.cs: added basic mouse handeling events
14978
14979 2004-07-15 03:38  jordi
14980
14981         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
14982           Vertical TrackBar control implementation
14983
14984 2004-07-13 09:33  jordi
14985
14986         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
14987
14988 2004-07-13 09:31  jordi
14989
14990         * Control.cs, Form.cs: commit: new properties and fixes form size
14991           problems
14992
14993 2004-07-09 14:13  miguel
14994
14995         * ProgressBar.cs: Spelling
14996
14997 2004-07-09 11:25  pbartok
14998
14999         * ProgressBar.cs:
15000           - Removed usage of Rectangle for drawing. Miguel pointed out it's
15001           faster
15002
15003 2004-07-09 11:17  miguel
15004
15005         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
15006
15007                 * ProgressBar.cs: Fixed spelling for `block'
15008
15009                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
15010                 style guidelines.
15011
15012                 Avoid using the += on rect.X, that exposed a bug in the compiler.
15013
15014 2004-07-08 23:21  pbartok
15015
15016         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
15017           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
15018           BaseCollection.cs, Binding.cs, BindingContext.cs,
15019           BindingMemberInfo.cs, BindingsCollection.cs,
15020           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
15021           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
15022           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
15023           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
15024           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
15025           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
15026           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
15027           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
15028           FrameStyle.cs, GiveFeedbackEventArgs.cs,
15029           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
15030           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
15031           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
15032           InputLanguageChangedEventArgs.cs,
15033           InputLanguageChangedEventHandler.cs,
15034           InputLanguageChangingEventArgs.cs,
15035           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
15036           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
15037           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
15038           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
15039           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
15040           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
15041           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
15042           QueryAccessibilityHelpEventArgs.cs,
15043           QueryAccessibilityHelpEventHandler.cs,
15044           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
15045           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
15046           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
15047           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
15048           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
15049           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
15050           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
15051           XplatUIX11.cs, lang.cs:
15052           - Initial check-in
15053