d2c4b7ea1ae835b22a72a908df80d111eadd860d
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * MessageBox.cs: if the height of the text is larger than the icon_size,
4         use that. Fixes bug #78575.
5
6 2006-06-05  Jackson Harper  <jackson@ximian.com>
7
8         * TreeView.cs: Fix line drawing when scrolling.  To do this each
9         node is basically responsible for drawing its entire horizontal
10         area.  When drawing a node it draws its parent node lines if
11         needed.
12         - Adjust the clip area to the viewport rectangle
13
14 2006-06-03  John Luke  <john.luke@gmail.com> 
15
16         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
17         so the colors work without dev packages
18         
19 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
20
21         * Control.cs 
22           - Select: Implemented to just use activate. Seems to match MS 
23             behaviour closest. Documented to only do actual control walking 
24             based on it's parameters if in a container control so I moved 
25             the code there.
26           - Removed selection check logic from our internal Select() method
27         * ContainerControl.cs:
28           - Select: Moved selection logic from Control here, since MS documents
29             that containers obey the bool arguments. No longer calling base
30
31 2006-06-02  Jackson Harper  <jackson@ximian.com>
32
33         * TreeView.cs: If the selected node isn't changed when we get
34         focus update the previously selected node so that we see the
35         selection box.
36
37 2006-06-02  Mike Kestner  <mkestner@novell.com>
38
39         * ComboBox.cs: restructure grab and general mouse event handling.
40         Make the composite control raise mouse events like it was a single
41         control for leaves/enters/motion/up/down events.  fix dropdown list
42         coordinate mangling and refactor it into the scrollbar subclass to
43         reduce code duplication.  Fixes #78282 #78361 and #78457.
44
45 2006-06-02  Mike Kestner  <mkestner@novell.com>
46
47         * ScrollBar.cs: remove Capture setting/clearing, as it happens
48         automatically in the Control.WndProc.
49
50 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
51
52         * FileDialog.cs: fix crash when running SharpChess, which sets the
53         FilterIndex to 2 with only one Filter.
54
55 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
56
57         * ToolBar.cs: add SizeSpecified property.
58         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
59         try to figure out our real size, otherwise fallback to what the
60         container says.
61
62 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
63
64         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
65         * Control.cs (WndProc): MS always calls the DefWndProc to pass
66           up the event
67
68 2006-06-01  Mike Kestner  <mkestner@novell.com>
69
70         * ListView.cs: revamp the focus management in ListView.  It still
71         causes churn of LostFocus/GotFocus emissions on clicks, but it's
72         better than not handling focus at all.  Will revisit when pdb feels
73         the general focus handling is solid.  Fixes #78526.
74
75 2006-06-01  Jackson Harper  <jackson@ximian.com>
76
77         * TreeView.cs: Set the default border style in the constructor.
78         - Move painting to use OnPaintInternal instead of capturing
79         WM_PAINT, this is the correct way of doing things
80         - UpdateBelow shouldn't invalidate the scrollbar area
81         - Cap the top on update below in case the node was above the top
82         of the viewport rectangle.
83         - ExpandBelow and Collapse below need to obey Begin/End Update.
84         * TreeNode.cs: Make is_expanded internal so the treenode
85         collection can change it without firing the whole event chain.
86         * TreeNodeCollection.cs: When clearing all the child nodes make
87         sure to recalc the visible order.
88         - Improve algo for remove the top node
89
90 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
91
92         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
93           SendMessage directly calling window procedures, which in turn might
94           call SetFocus()
95
96 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
97
98         * Control.cs: Don't handle WM_SETFOCUS if the same window already
99           has focus (works around X11 sending a FocusIn after our SetFocus)
100         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
101
102 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
103
104         * Mime.cs: Fix for the NET_2_0 build.
105           NameValueCollection needs StringComparer now.
106
107 2006-05-31  Chris Toshok  <toshok@ximian.com>
108
109         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
110         return (via an out parameter) the starting X of the column.
111         (UpdateVisibleColumn): track change to FromPixelToColumn.
112         (HitTest): add a ColumnResize case here.
113         (DrawResizeLine): new function, probably poorly named.
114
115         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
116         only need to keep one reference.
117         (set_ListManager): same.
118         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
119         Also, add support for HitTestType.ColumnResize.
120         (OnMouseMove): add column resize behavior here, and change the
121         cursor to the correct one as we move around the datagrid.
122         (OnMouseUp): terminate the column resize if we're resizing.
123         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
124         for the current cell.
125         (ConnectListManagerEvents): use cached_currencymgr.
126         (DisconnectListManagerEvents): fill this in, using
127         cached_currencymgr.
128         (SetCurrentCell): remove cached_currencymgr_events handling.
129         (SetDataMember): only call DisconnectListManagerEvents if
130         cached_currencymgr is != null.
131         (SetDataSource): same.
132         (OnListManagerCurrentChanged): cached_currencymgr_events ->
133         cached_currencymgr.
134
135 2006-05-31  Jackson Harper  <jackson@ximian.com>
136
137         * BindingManagerBase.cs: Remove somedebug code that creeped into
138         SVN.
139         * TreeNode.cs: We get the indent level dynamically right now, so
140         don't track it as a member.
141         * TreeNodeCollection.cs: Make sure all nodes added to the list
142         have parents, treeviews/topnodes setup properly.
143         - Don't attempt to track indent level.
144
145 2006-05-30  Jackson Harper  <jackson@ximian.com>
146
147         * BindingContext.cs: Create the currency manager tables here.
148         This allows us to more easily create null tables (when bad data
149         members are used), and more easily create related currency
150         managers.
151         * CurrencyManager.cs: All the table creation stuff is done by the
152         binding context now.
153         - Current should throw an exception if listposition is -1.
154         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
155         been bound yet.
156
157 2006-05-30  Mike Kestner  <mkestner@novell.com>
158
159         * ListView.cs: allow reexpansion of zero-width column headers.
160         Fixes #78528.
161
162 2006-05-28  Chris Toshok  <toshok@ximian.com>
163
164         * CurrencyManager.cs (get_Current): after the late binding
165         listposition = -1 fix, we need to guard against it here and return
166         null, otherwise we raise an exception (which is swallowed
167         elsewhere, and breaks datagrid databinding.)
168
169 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
170
171         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
172           than WM_SYSKEY, don't throw if get something unexpected (#78507)
173
174 2006-05-26  Jackson Harper  <jackson@ximian.com>
175
176         * ControlPaint.cs:
177         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
178         values, it's faster and it's all we care about (we don't care if
179         the names aren't equal).
180         * KeyboardLayouts.cs: Eliminate some dead code.
181         - Lazy init things
182         * X11Keyboard.cs: Lazy init keyboard detection.
183         - Cleanup access modifiers a little.
184
185 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
186
187         * XplatUIX11.cs: Once again, attempting to get layout just right.
188
189 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
190
191         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
192           the sizes of each link section, that will result in sizes that
193           match DrawString's layout (Fixes #78391)
194
195 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
196
197         * FileDialog.cs: If AddExtension property is true autocomplete the
198           extensions in SaveFileDialog correctly. Fixes bug #78453.
199           Set MyNetwork and MyComputer to "C:\" for windows. This should
200           fix part 8 of bug #78446 for now.
201
202 2006-05-26  Chris Toshok  <toshok@ximian.com>
203
204         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
205         invalidate the current row header if we need to, but presumably
206         we'll invalidate the row corrsponding to the bounds or
207         editingControl.
208         (GridHScrolled): switch back to this method, as it's part of the
209         public api.  *sigh*.
210         (GridVScrolled): same.
211         (OnMouseWheel): hack up something that more or less works.  Call
212         GridHScrolled/GridVScrolled directly, instead of duplicating much
213         of their code here.
214         (EnsureCellVisibility): reinstate a bunch of this code, since we
215         can't just set the scrollbar Value and expect to do all the work
216         in the ValueChanged handler.  Also, Call Update() after scrolling
217         in one direction so the other XplatX11.ScrollWindow call has the
218         proper stuff in the proper places.
219         (EditCell): set is_editing to true before calling .Edit.
220
221         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
222         don't bother comparing first.
223         (OnKeyPress): call grid.ColumnStartedEditing before calling
224         base.OnKeyPress.  this will set is_changing and invalidate the row
225         header if necessary.
226         (ProcessKeyMessage): for WM_CHAR messages, call
227         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
228         and WM_KEYDOWN.
229         
230         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
231         it's done in the DataGrid.
232         (NextState): call grid.ColumnStartedEditing, which takes care of
233         invalidating the row header (and setting is_changing).
234
235         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
236         here.  it's done in the DataGrid.
237
238 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
239
240         * Control.cs: allow changing the cursor when the mouse position is
241         out of bounds but Capture is set.
242         * LinkLabel.cs: handle the case when the mouse button is pressed on the
243         linklabel but released somewhere else.
244
245 2006-05-25  Jackson Harper  <jackson@ximian.com>
246
247         * TreeView.cs: When we get focus if there is no selected node make
248         it the top node
249         - Remove some uneeded setup code from Draw.
250         * TreeNodeCollection.cs: If the tree doesn't have a top node when
251         a new node is inserted make the new node the top.
252         * XplatUIX11.cs:
253         * Timer.cs: Use Utc time so that no local time zone stuff needs to
254         be used (should be faster).
255         
256 2006-05-25  Chris Toshok  <toshok@ximian.com>
257
258         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
259         problem with the last commit.
260
261 2006-05-25  Chris Toshok  <toshok@ximian.com>
262
263         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
264         need the invalidate call here, while scrolling right-to-left via
265         the left arrow key (i.e. moving the editing cell while scrolling).
266
267         * DataGrid.cs (.ctor): remove the initialization of
268         ctrl_pressed/shift_pressed.  We no longer track them using key
269         up/down handlers, but by using Control.ModifierKeys.  Also, switch
270         to using ValueChanged handlers on the scrollbars instead of
271         Scrolled event handlers.  This simplifies a bunch of the scrolling
272         code.
273         (GridHValueChanged): rename from GridHScrolled, and change it to
274         work with the new event args.
275         (GridVValueChanged): same.
276         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
277         (OnMouseWheel): actually scroll the datagrid.  Don't change the
278         selected cell.
279         (ProcessGridKey): correct all the keyboard navigation stuff I
280         could find.  Ctrl up/down/left/right/home/end work now.
281         (EnsureCellVisibility): correct method name spelling.  Also,
282         simplify this a touch by not explicitly calling the
283         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
284         scrollbar value.
285         (OnKeyUpDG): no need for this method now.
286         
287 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
288
289         * LinkLabel.cs: display the OverrideCursor when hovering the label.
290         Fixes bug #78392.
291
292 2006-05-25  Chris Toshok  <toshok@ximian.com>
293
294         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
295         r61019.
296
297 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
298
299         * Application.cs: Moved setting of is_modal and closing to before
300           we create the control, to allow the event handlers called as a
301           result of creation affect closing. Also removed Gonzalo's previous
302           change to setting DialogResult, the behaviour has been moved to 
303           Form.ShowDialog()
304         * Form.cs: 
305           - ShowDialog(): Removed explicit creation of the form, let RunLoop
306             handle it instead
307           - ShowDialog(): If no dialog result is set, we need to return Cancel
308           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
309             the close is cancelled
310
311 2006-05-25  Jackson Harper  <jackson@ximian.com>
312
313         * StatusBar.cs: We only need to update the sizes of the other
314         panels when we have auto size contents.  Also we are only updating
315         the contents of the panel, not the borders, so compensate for the
316         border width (TODO: get this width from the theme somehow).
317         * TreeView.cs: Scrollable is true by default
318         - Use invalidate instead of refresh where needed
319         - Factor the scrollable value into scrollbar updating
320         - Update the scrollbars if the Scrollable property is altered
321         - Update the selected node if its ImageIndex is changed
322         - Handle null nodes in UpdateNode (mainly so we don't have to
323         check if selected is null when updating it
324         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
325         are factored into the visible count
326         - Use VisibleCount for clarity in the code
327         - When the font is changed we need to recurse through all the
328         nodes and invalidate their sizes
329         
330 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
331
332         * Application.cs: set the DialogResult to fixed when the main form is
333         hidden or destroyed while being modal.
334
335 2006-05-25  Miguel de Icaza  <miguel@novell.com>
336
337         * Theme.cs: Use Tangoified messagebox icons. 
338
339         (GetSizedResourceImage): Also cope with width = 0 and do not
340         trigger a warning in that case (0 means "give me your icon from
341         the resouce, no special size needed).
342
343 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
344
345         * Application.cs: Leave runloop if the the main modal form is 
346           hidden (fixes #78484)
347
348 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
349
350         * BindingContext.cs : reject null datasource in Contains() and
351           Item[].
352         * CurrencyManager.cs : check data_member validity when data_source
353           is dataset. When it is late binding, the initial position is -1.
354
355 2006-05-24  Jackson Harper  <jackson@ximian.com>
356
357         * TreeNodeCollection.cs: Dont't recalculate the visible order on
358         inserted nodes that aren't visible.  This changes the
359         max_visible_order which confuses scrollbar settings.
360         - Use the enumerator to get the prev node instead of duplicating
361         code.
362         * TreeView.cs: Use new method for setting scrollbar values
363         - Don't set the bounds every time the scrollbar is updated
364         - When updating below the root node use an invalidate instead of a
365         refresh to prevent the child controls (scrollbars) from being
366         refreshed. (UpdateBelow still needs to be reworked anyways).
367         - Reenable SetBottom now that visible orders are set correctly,
368         added some debug code incase we ever get bad values there again.
369         - Set the scrollbar max to 2 less then the max value, this
370         compensates for the max value being one above the node count, and
371         for scrollbars adding one extra "notch".
372         - When drawing image nodes if there is an imagelist we draw the
373         first image in the list if the supplied image index is out of the
374         image list's bounds.
375         
376 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
377
378         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
379           we receive a size change from the WM (Fixes #78503)
380
381 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
382
383         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
384           rectangle (Fixes #78501)
385
386 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
387
388         * ButtonBase.cs: 
389           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
390             as a bitfield.
391           - Fixed MouseMove to no longer switch pressed state unless the left
392             mouse button is pressed. Atsushi provided the original patch (#78485)
393           
394 2006-05-24  Jackson Harper  <jackson@ximian.com>
395
396         * ScrollBar.cs: New internal methods that allow us to change a
397         couple values on the scrollbar (the most common case is maximum
398         and large change) without getting multiple invalidates.
399
400 2006-05-24  Chris Toshok  <toshok@ximian.com>
401
402         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
403         (Edit): save off the original state in oldState, and set
404         grid.is_editing to true.
405         (OnKeyDown): abort editing if escape is pressed.  also, call
406         NextState if space is pressed.
407         (OnMouseDown): call NextState.
408         (NextState): factor out shared code from OnKeyDown and OnMouseDown
409         here.  Also, only invalidate the row header once (on the initial
410         is_changing switch) to save on redraws.
411
412 2006-05-24  Chris Toshok  <toshok@ximian.com>
413
414         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
415         if the value in the cell is different than it was before.  This
416         keeps us from triggering a layout when we move around a datarid
417         with a highlighted cell.
418         (Edit): suspend layout when creating/positining the text box, and
419         resume passing false so we don't ever actually re-layout.
420         (ReleaseHostedControl): same.
421         (EnsureTextBox): reformat slightly, and set WordWrap to false.
422
423         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
424         control-key sequences should go to the datagrid - remove that
425         lock.  Also, modify the conditions under which we move between
426         cells when moving the cursor within a cell, and remove the "this"
427         and "base" from field accesses.  We weren't even consistent, given
428         they all were in the base class.
429
430 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
431
432         * Binding.cs : (.ctor)
433           An obvious NRE fix for BindingTest.CtorNullTest().
434
435 2006-05-23  Chris Toshok  <toshok@ximian.com>
436
437         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
438         them between lines.  This fixes some quirks editing cells in the
439         datagrid.
440
441 2006-05-23  Jackson Harper  <jackson@ximian.com>
442
443         * TreeView.cs: Use begin/end update when doing expand/collapse all
444         so that we don't get flicker on the scrollbar.
445
446 2006-05-23  Jackson Harper  <jackson@ximian.com>
447
448         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
449         treenode calculations to be independant of the painting code. To
450         do this nodes track a visible order which is calculated by the
451         treeview.
452         - Call new methods for expanding/collapsing nodes.  These methods
453         use scrollwindow so we don't have to update everything below the
454         node.
455         * TreeView.cs: Refactored drawing and scrolling code.  We don't
456         need to update nodes when drawing anymore or calculate scrollbar
457         stuff.
458         - Added new methods for expanding/collapsing nodes. These methods
459         use ScrollWindow so as to not have to redraw all the nodes below.
460         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
461         we add/remove nodes or sort.
462         - Handle removing the selected and the top node properly.
463
464 2006-05-23  Chris Toshok  <toshok@ximian.com>
465
466         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
467         maybe this should actually happen in the datagrid code?
468         (EndEdit): no need to invalidate anything, given that
469         ReleaseHostedControl causes the datagrid to relayout, which
470         invalidates everything anyway.
471
472         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
473         in SetCurrentCell).
474         (set_SelectionBackColor): call InvalidateSelection instead of
475         Refresh.
476         (set_SelectionForeColor): same.
477         (BeginEdit): Flesh this out a bit.
478         (CancelEditing): only do any of this if we're editing/adding.
479         (EndEdit): same.
480         (OnMouseDown): there's no need to cancel editing here, it's done
481         in SetCurrentCell.
482         (SetCurrentCell): only invalidate the current row header if it's a
483         different row than the new one.
484         (ShiftSelection): fix this to work like MS does.
485         (ResetSelection): factor out the invalidation of selected_rows to
486         InvalidateSelection.
487         (SetDataSource): cancel any editing that's going on.
488
489         * DataGridColumnStyle.cs
490         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
491         call the non-interface version.
492
493         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
494         header rectangle with the clip rectangle so we don't redraw the
495         entire header for just a small area.  Gets rid of the last flicker
496         when horizontally scrolling.
497         (DataGridPaintRow): same.
498
499 2006-05-23  Mike Kestner  <mkestner@novell.com>
500
501         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
502         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
503         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
504         Critical bug report.
505
506 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
507
508         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
509           and this fixes #78493
510
511 2006-05-23  Miguel de Icaza  <miguel@novell.com>
512
513         * Theme.cs (GetSizedResourceImage): Scale images if the proper
514         size is not found.  
515         
516         * FileDialog.cs: Do not change the background for the side bar as
517         it wont work nicely with the theme, and also reduces the artifacts
518         in rendering the icons (which I want to fix too).
519
520         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
521         resources, not resgen resources. 
522
523         (PlatformDefaultHandler): Pull images using the new API.
524
525 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
526
527         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
528           a reference to the hwnd and will not remove it unless there are
529           no pending exposures (fixes #78341)
530         * XplatUI.cs: Improved debug
531
532 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
533
534         * MenuAPI.cs : don't handle OnClick event when it was not the left
535           button. Fixed bug #78487.
536
537 2006-05-23  Mike Kestner  <mkestner@novell.com>
538
539         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
540         prefer submenus to the top menu for item lookup, to avoid popping down
541         top-row items.
542
543 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
544
545         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
546           Graphics.FillRectangle as the visual results are really bad (even
547           on win). We now draw perfect arrows (and perfect shadows when the
548           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
549           Pen.DashPattern to draw the dots of each line.
550
551 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
552
553         * FileDialog.cs: Update the filename combobox when navigating through
554           the ListView with the cursor keys. Fixes part 7 of bug #78446.
555
556 2006-05-22  Mike Kestner  <mkestner@novell.com>
557
558         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
559         Fixes #78463.
560
561 2006-05-22  Mike Kestner  <mkestner@novell.com>
562
563         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
564         requests. Fix a misspelled parameter and a copy paste exception error
565         in Select.
566
567 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
568
569         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
570           to get the same width/height (5/13) on X11 as the default font has on
571           win32. This means that our DefaultFont emSize is smaller than the 
572           the MS SWF equivalent (even thought the width/height stays the same)
573
574 2006-05-20  Jackson Harper  <jackson@ximian.com>
575
576         * MdiClient.cs:
577         * MdiWindowManager.cs:
578         * InternalWindowManager.cs: Make sure to use the border width from
579         the theme.
580
581 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
582
583         * PrintDialog.cs: Implements printer details
584
585 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
586
587         * FileDialog.cs: Added focus handling for PopupButtonPanel.
588           Fixes part 1 and 2 of bug #78446
589
590 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
591
592         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
593           instead of sticking to the first ever calculated value
594
595 2006-05-19  Mike Kestner  <mkestner@novell.com>
596
597         * ComboBox.cs: fix mouse motion selection to use MousePosition and
598         PointToClient, since Capture is set. Fixes #78344.
599
600 2006-05-19  Mike Kestner  <mkestner@novell.com>
601
602         * ListView.cs: match MS behavior in Details view where items are not
603         drawn if Columns.Count == 0. 
604         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
605         Use a separate pen to draw the check, since changing the width affects
606         the box as well.  Fixes #78454.
607
608 2006-05-18  Miguel de Icaza  <miguel@novell.com>
609
610         * ListView.cs: ArgumentOutOfRangeException, single versions of the
611         exception should throw the name of the invalid argument.
612
613         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
614         there are no files listed. 
615
616 2006-05-18  Jackson Harper  <jackson@ximian.com>
617
618         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
619         up.
620
621 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
622
623         * Control.cs: Brought back our old UpdateZOrder method as a private
624           function and switched our calls from UpdateZOrder to the new one.
625           This fixes the Paint.Net canvas disappearing bug.
626
627 2006-05-18  Jackson Harper  <jackson@ximian.com>
628
629         * Theme.cs:
630         * ThemeWin32Classic.cs:
631         * InternalWindowManager.cs: Move the drawing into the theme,
632         expose everything the theme should need from the window manager.
633
634 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
635
636         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
637           from the call to NativeWindow to avoid walking up the parent chain
638           further than needed (speeds up setting cursors and avoids setting
639           the wrong cursor if a parent has another cursor defined)
640         * Cursor.cs: When loading an icon as cursor, MS uses the center of
641           the icon as hotspot, not what's contained as hotspot in the icon
642           file. This fixes the perceived drawing offset seen with Paint.Net
643         
644 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
645
646         * XplatUIX11.cs: 
647           - Store the calculated rectangle in Hwnd object and use it when 
648             setting the client size
649           - Force Toolwindows to always be type Dock, to ensure they're on top
650
651 2006-05-18  Mike Kestner  <mkestner@novell.com>
652
653         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
654         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
655         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
656         Substantial refactoring to remove confusing nested classes. Coding
657         standard and Get+Set->property refactorings.  Shift to index based
658         highlighting in ComboListBox instead of constantly using IndexOf and
659         Items[]. Add invalidations on resize for DropDownList to fix ugliness
660         in FileDialog growth.  Draw borders manually since Simple mode needs
661         to look like two independent controls.  Make listbox border
662         conditional to DropDownStyle.  Improved OwnerDraw support.
663
664 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
665
666         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
667         Don't set the disposed graphics to null, so we can throw the "right"
668         exception if the graphics is reused later (added a flag to avoid 
669         double disposing). Some behaviours are different under 2.0 and are
670         filled under bug #78448.
671
672 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
673
674         * Control.cs: When double-buffering is enabled, we need to reset
675           our graphics context between paint calls. Otherwise, any 
676           transformations and other alterations on the context will 
677           become cumulative (#77734)
678
679 2006-05-18  Mike Kestner  <mkestner@novell.com>
680
681         * ListView.cs: do focused item selection like MS on clicks. 
682         Rework focus handling for ItemControl so LostFocus invalidates as
683         well.
684         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
685         the ListView ItemControl has focus.
686
687 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
688
689         * XplatUIX11.cs: If client_window ends up being width or height zero
690           due to border settings, move it off window inside whole_window (#78433)
691
692 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
693
694         * Mime.cs: Shrink the mime file cache correctly.
695
696 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
697
698         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
699
700 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
701
702         * XplatUIX11.cs (AddExpose): More sanity checks
703
704 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
705
706         * XplatUIX11.cs:
707           - AddExpose: Don't add expose ranges outside the size of our
708             window
709           - Cast opacity values to Int32 to avoid crashes with certain
710             values
711           - Added disabled code paths that protect against illegal cross-
712             thread painting (Developers.exe)
713
714 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
715
716         * ProgressBar.cs: Invalidate the control when it's resized
717           since block size is based on control size. (#78388)
718
719 2006-05-16  Miguel de Icaza  <miguel@novell.com>
720
721         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
722         of setting the incoming argument to the "reset" value, we set the
723         this.datamember to string.empty (before we were invalidating the
724         incoming data).   
725
726         Fixes 78420
727
728 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
729
730         * Form.cs: Only apply transparency settings after the form
731           is created. (Fixes #77800)
732
733 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
734
735         * ApplicationContext.cs: Grab the HandleDestroyed event so
736           we know when to fire OnMainFormClosed 
737
738 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
739
740         * Application.cs: Introduced sub-class to allow tracking of
741           threads and centralized triggering of the event mess for
742           ThreadExit, AppExit, etc..  (#76156)
743
744 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
745
746         * MimeIcon.cs:
747           - Do not return a null icon index value for a mime subclass.
748             Instead try the main mime type class too.
749           - Seems that some newer distributions don't have a link to some
750             gnome default icons anymore. So check the default gnome dir too.
751           
752
753 2006-05-16  Jackson Harper  <jackson@ximian.com>
754
755         * MdiClient.cs: Don't paint the parent background image if we have
756         our own background image.
757
758 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
759
760         * Control.cs:
761           - PerformLayout: Do not shrink space filled by DockStyle.Fill
762             controls, all filled controls are supposed to overlap (#78080)
763           - UpdateZOrder is supposed to update the control's z-order in the
764             parent's z-order chain. Fixed to behave like that
765           - BringToFront: Removed obsolete code
766           - SendToBack: Simplyfied
767           - SetChildIndex: Trigger layout calculations when Z-order changes
768             since layout is done by z-order
769
770 2006-05-16  Chris Toshok  <toshok@ximian.com>
771
772         [ fixes bug #78410 ]
773         * DataGrid.cs (set_AlternatingBackColor): use
774         grid_drawing.InvalidateCells instead of Refresh().
775         (set_BackColor): call grid_drawing.InvalidateCells.
776         (set_BackgroundColor): use Invalidate instead of Refresh.
777
778         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
779         invalidate the cell area.
780
781 2006-05-15  Chris Toshok  <toshok@ximian.com>
782
783         [ fixes bug #78011 ]
784         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
785         on to DataGridPaintRow.
786         (DataGridPaintRow): take a clip argument, and only draw the cells
787         which intersect it.  same with the not_usedarea.
788
789         * Theme.cs (DataGridPaintRow) add @clip parameter.
790
791         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
792         XplatUI.ScrollWindow.
793         (ScrollToRow): same.
794
795         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
796         with last column which was causing a gray swath to appear with the
797         XplatUI.ScrollWindow code.
798
799 2006-05-15  Chris Toshok  <toshok@ximian.com>
800
801         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
802         use XplatUI.ScrollWindow.
803         (VerticalScrollEvent): use XplatUI.ScrollWindow.
804
805 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
806
807         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
808
809 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
810
811         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
812           file since there are no equivalent X11 cursors
813
814 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
815
816         * MonthCalendar.cs : DateTimePicker should reflect selected date
817           on mouse*up*, not mouse*down*. Fixed originally reported part of
818           bug #76474.
819
820 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
821
822         * TabControl.cs : When argument index is equal or more than tab
823           count, just ignore. Fixed bug #78395.
824
825 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
826
827         * Control.cs: Dispose all child controls when control is diposed (#78394)
828
829 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
830
831         * ColorDialog.cs: Finally it is possible to select the color with
832           the text boxes
833
834 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
835
836         * PrintDialog.cs: Fix typo
837
838 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
839
840         * PrintDialog.cs: PrintDialog is not resizable
841         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
842           color. Made some ToolBar drawing methods protected virtual.
843
844 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
845
846         * PrintDialog.cs: Implementation of the PrintDialog
847
848 2006-05-12  Chris Toshok  <toshok@ximian.com>
849
850         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
851         thumb, instead use MoveThumb.  This has the side effect of making
852         most of the other thumb moving machinery use MoveThumb as well.
853         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
854         need to actually invalidate the rectangle where the new thumb will
855         go.
856         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
857         We force an Update() after, so it's not as fast as it could be,
858         but at least there's zero flicker and no droppings.
859         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
860         (UpdateThumbPos): add another argument (dirty), which says whether
861         or not to calculate/add dirty regions which we later invalidate.
862         For cases where we know we're going to use MoveThumb, we pass
863         false for this.  Otherwise, pass true.
864
865 2006-05-12  Jackson Harper  <jackson@ximian.com>
866
867         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
868         the status bar.
869         
870 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
871
872         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
873           and GetClipRegion methods and UserClipWontExposeParent property.
874         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
875           overriding UserClipWontExposeParent property, setting to false, since
876           Win32 handles the required expose messages to draw our clipped parent
877           areas internally
878         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
879           PaintEventStart to set the user clip region if set.
880         * Control.cs: 
881           - Now internally tracking the Region for the control since we need to
882             store it if the handle is not yet created and only set it when it
883             becomes created. Before setting the region forced handle creation
884           - Added code to draw the parents underneath a user-clipped region
885         * Hwnd.cs: Added UserClip property
886
887 2006-05-12  Chris Toshok  <toshok@ximian.com>
888
889         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
890         (set_Maximum): same.
891         (set_Minimum): same.
892         (set_SmallChange): same.
893         (OnMouseUpSB): remove the call to refresh when releasing the
894         thumb.  We shouldn't need it.
895         
896 2006-05-12  Miguel de Icaza  <miguel@novell.com>
897
898         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
899         AutoSize set to None, we do not need to relayout everything, we
900         just need to invalidate the current region.
901
902         (Draw): Do not draw the entire ClientArea, just redraw the
903         clip area being passed.
904
905         * MdiClient.cs: Make MdiClient constructor with the Form argument
906         internal. 
907
908 2006-05-12  Jackson Harper  <jackson@ximian.com>
909
910         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
911         parents background image,  but strangely not their own.
912         - (DrawStatusBarPanel): Take into account horizontal alignment
913         when drawing the strings and icons.
914
915 2006-05-12  Mike Kestner  <mkestner@novell.com>
916
917         * ListBox.cs: avoid invalidations for focus when the collection is
918         empty. 
919
920 2006-05-12  Chris Toshok  <toshok@ximian.com>
921
922         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
923         invalidate the entire thumb area.  Call InvalidateDirty which
924         limits the redraw to the thumb itself and surrounding pixels.
925
926         * XplatUIX11.cs (ScrollWindow): optimize copying.
927         
928 2006-05-12  Chris Toshok  <toshok@ximian.com>
929
930         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
931         Figure out the positioning/layout in a single pass instead of
932         multiple recursive invocations.  Speeds up the initial display of
933         the data grid.  Also, make many things private that were
934         originally public but unused outside this class.
935
936 2006-05-11  Jackson Harper  <jackson@ximian.com>
937
938         * MdiClient.cs: Improved layout code.
939
940 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
941
942         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
943           not SelectedObject.
944
945 2006-05-11  Chris Toshok  <toshok@ximian.com>
946
947         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
948         union of that will always be {0,0,width,height}.
949
950 2006-05-11  Jackson Harper  <jackson@ximian.com>
951
952         * Form.cs: Match MS's DefaultSize for forms (they must have
953         changed the size in sp2).
954
955 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
956
957         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
958
959 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
960
961         * TextControl.cs : Fixed bug #78109. This incorrect position
962           comparison caused crash on automatic line split.
963         * TextBoxBase.cs : reduce duplicate code.
964
965 2006-05-10  Jackson Harper  <jackson@ximian.com>
966
967         * MdiClient.cs: Active form is only sent to the back when using
968         the Next form functionality, when a form is clicked the current
969         active shouldn't be sent to the back.
970         - Layout the mdi windows when the container is first made visible.
971         * Form.cs: Give the MdiClient a ref to the containing form when we
972         create it.
973         
974 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
975
976         * LinkLabel.cs : link_font could be uninitialized, so populate one
977           before actual use. Fixed bug #78340.
978
979 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
980
981         * XplatUIX11.cs : clipboard format native value is IntPtr.
982           Fixed bug #78283.
983
984 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
985
986         * Control.cs: 
987           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
988             which is passed up the parent chain by DefWndProc
989           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
990             to DefWndProc (#77956)
991         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
992
993 2006-05-10  Jackson Harper  <jackson@ximian.com>
994
995         * MdiClient.cs: We need to remove the controls from the mdi
996         collection, when we close the window.
997         * MdiWindowManager.cs: Special handling of closing mdi windows.
998         * InternalWindowManager.cs: Make the close method virtual so the
999         mdi window manager can handle it specially.
1000
1001 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
1002
1003         * DataGrid.cs:
1004           - Recalculate grid when the data source has changed
1005           - Matches styles provided by user from all data sources types
1006         * DataGridTableStyle.cs: For columns that provided by the user set the
1007         with the preferred value is there was unassigned.
1008         * CurrencyManager.cs: throw OnItemChanged event
1009
1010 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
1011
1012         * PictureBox.cs: Don't animate until handle is created. Start animation
1013           when handle is created.
1014
1015 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1016
1017         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
1018           current codebase.
1019         * XEventQueue.cs: We don't need to provide the extra info
1020
1021 2006-05-10  Jackson Harper  <jackson@ximian.com>
1022
1023         * MdiClient.cs: If the mdi clients parent form has a background
1024         image set, we draw that background image for the mdi area's
1025         background.
1026
1027 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
1028
1029         * TextBoxBase.cs: Set IBeam cursor (#78347)
1030
1031 2006-05-10  Mike Kestner  <mkestner@novell.com>
1032
1033         * ToolBar.cs: fix some text padding issues with ButtonSize
1034         calculation. Update the default size to match MS documentation.
1035         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
1036         button size. Fixes #78296.
1037
1038 2006-05-10  Mike Kestner  <mkestner@novell.com>
1039
1040         * ListBox.cs: use is_visible for scrollbar positioning in case the
1041         control isn't on screen yet.  Fix off by one with Right vs Width
1042         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
1043         
1044 2006-05-10  Jackson Harper  <jackson@ximian.com>
1045
1046         * X11Dnd.cs: Drop to a control with another control on top of it.
1047         * ToolBar.cs: Work on a copy of the buttons list, so that it can
1048         be modified in click handlers. TODO: Look for similar problems in
1049         other controls.
1050
1051 2006-05-09  Jackson Harper  <jackson@ximian.com>
1052
1053         * Form.cs: Window managers need the old window state when setting
1054         window state now.
1055         * InternalWindowManager.cs: Allow the base mdi window manager to
1056         handle more of the MDI only stuff (like maximize buttons).
1057         * MdiWindowManager.cs: Fix some snafus in changing the window
1058         state.  Add all the menu functionality, for both popup and
1059         maximized menus.
1060         * MdiClient.cs: When a new form is selected the currently
1061         activated form is sent to the back, this matches MS.
1062         - Implement a new method to activate the next mdi child window.
1063
1064 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
1065
1066         * Control.cs: 
1067           - Added new InternalCapture method to allow controls to prevent
1068             the capture behaviour on the click handlers
1069           - Switched to use InternalCapture
1070         * ComboBox.cs:
1071           - Using InternalCapture to prevent mouse captures from being released
1072             on mouse button release (Fixes #78100)
1073         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
1074           returns Form borders if a caption is present. (Fixes #78310)
1075
1076 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
1077
1078         * TreeNode.cs: Changed serialization .ctor to not require every field
1079           to be present. (#78265)
1080         * OwnerDrawPropertyBag.cs: Added serialization .ctor
1081
1082 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
1083
1084         * MimeIcon.cs: for is faster than foreach for strings.
1085
1086 2006-05-05  Mike Kestner  <mkestner@novell.com>
1087
1088         * CheckedListBox.cs: update check handling code to not use selected.
1089         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
1090         behavior for visual feedback, motion response, shift/ctrl handling,
1091         and properly deal with all 4 selection modes. Updates to bounds
1092         handling logic.  Add scroll wheel support. [Fixes #77842]
1093
1094 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1095
1096         * ListView.cs:
1097           - Moved adding of Implicit controls into .ctor. That way, subsequent
1098             creation of the controls will not cause them to think they are 
1099             toplevel windows (fixes #78200 header problem)
1100           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
1101           - Switched visibility setting of header control to use internal field
1102             to avoid triggering handle creation
1103           - Now checking if handle is created before causing a refresh when items
1104             are added (This makes us now match handle creation time with MS)
1105         * Splitter.cs: Removed loading of private splitter cursor, switched to
1106           Cursors version now that that is loading the right ones
1107         * Cursors.cs: Load proper splitter cursors from resources
1108         * Cursor.cs: Added second method of loading resource cursors for the 
1109           VS.Net users amongst us
1110
1111 2006-05-05  Mike Kestner  <mkestner@novell.com>
1112
1113         * ListView.cs: give header_control a minimum size based on the
1114         ListView size.
1115
1116 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1117
1118         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
1119           window seems to do that with metacity, so set that type. (#78120)
1120
1121 2006-05-05  Mike Kestner  <mkestner@novell.com>
1122
1123         * ListViewItem.cs: fix Details mode checkbox layout bug.
1124         * ThemeWin32Classic.cs: draw a ListView column header for unused space
1125         at the end of the header, if it exists. [Fixes for #78200]
1126
1127 2006-05-04  Jackson Harper  <jackson@ximian.com>
1128
1129         * MdiClient.cs: Add a helper property to get the container form.
1130         * MdiWindowManager.cs: We have to make sure to use the menu origin
1131         when drawing the icons and buttons, this fixes maximized window
1132         icons/buttons on win32.
1133         * InternalWindowManager.cs: Reset the restore captions when a
1134         window goes from Maximized to Minimized and vice versa. Move the
1135         DrawMaximizedButtons into the MdiWindowManager source, tool
1136         windows can't be maximized. NOTE: This could use a little
1137         refactoring if time ever permits.
1138         
1139 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1140
1141         * TextBox.cs: Add MWFCategoryAttributes
1142         * TextBoxBase.cs: Add MWFCategoryAttributes
1143         * Form.cs: Add MWFCategoryAttributes
1144
1145 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1146
1147         * Control.cs: Add MWFCategoryAttributes
1148         * ScrollableControl.cs: Add MWFCategoryAttributes
1149
1150 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
1151
1152         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
1153           Divider is true. Fix a little glitch in PropertyToolBar
1154           drawing code
1155
1156 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
1157
1158         * Control.cs:
1159           - Dispose: Call base.Dispose, this causes the disposed event
1160             to be fired (and probably other, more important stuff)
1161           - SetVisibleCore: Set is_visible to true after creating the
1162             window so that the window still gets created invisible (if
1163             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
1164             to generate a WM_ACTIVE message
1165         * Form.cs: Call Dispose when we want to destroy the window, instead of
1166           just destroying the handle (Dispose will do that for us)
1167         * XplatUIX11.cs:
1168           - RootWindow also needs a queue, so we can properly process the
1169             property change events from RootWindow (like Activate)
1170           - Generatic synthetic WM_ACTIVE message when the active window is
1171             being destroyed
1172
1173 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1174
1175         * LinkLabel.cs: Trigger a recalc of our label dimensions when
1176           bounds are changed
1177
1178 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1179
1180         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1181           for determining width and height (image might not be assigned if
1182           we're drawing an imagelist)
1183
1184 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1185
1186         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1187         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1188           height from system
1189         * Theme.cs: No longer returns hardcoded menu height, instead calls
1190           new driver method
1191         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1192           on MS (# 78257)
1193
1194 2006-05-01  Mike Kestner  <mkestner@novell.com>
1195
1196         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1197
1198 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1199
1200         * TextBoxBase.cs: Removed Fixme
1201         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
1202
1203 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1204
1205         * XplatUIX11.cs:
1206           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
1207             the rectangle relative to the parent, considering borders. We
1208             don't really want that.
1209           - ScrollWindow: Fixed warning to be more understandable
1210         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
1211           scrollbars and scroll only the visible area
1212         * RichTextBox.cs: Removed debug output
1213
1214 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1215
1216         * NumericUpDown.cs (Text): Just use base
1217         * UpDownBase.cs: Ensure txtView is created before using it
1218
1219 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1220
1221         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
1222           casting to IntPtr to avoid 64bit overflow errors
1223
1224 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1225
1226         * Control.cs:
1227           - AllowDrop: Don't force handle creation.
1228           - CreateHandle: Added call to tell driver if we're allowed to drop
1229
1230 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1231
1232         * FileDialog.cs: Remember the last directory not only for the
1233           current instance but also for new FileDialog instances.
1234
1235 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1236         
1237         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
1238           broke sending async messages
1239
1240 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1241
1242         * XplatUIX11.cs:
1243           - ScrollWindow: Fixed method. We finally generate expose events again
1244             for scrolled areas. This was causing 'garbage' when scrolling
1245             textbox and other controls that used ScrollWindow
1246           - Switched from using the regular queue for paint events to the MS 
1247             model of 'generating' paint events when the queue is empty.
1248             We use the new XQueueEvent.Paint subclass to store which windows
1249             need painting.
1250           - AddExpose now takes the x/y/width/height of the exposed area
1251             and inserts the window into the paint queue if not already there
1252           - InvalidateWholeWindow: Switched to use new AddExpose method
1253           - UpdateMessageQueue: Added which queue to monitor for paint events
1254           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
1255             the unlikely case nothing above handles it. We reset the expose
1256             pending states to get them off the queue.
1257           - GetMessage: Now pulls a paint event if no other events are in the
1258             queue
1259           - Invalidate: Switched to new AddExpose method
1260           - PeekMessage: Updated to understand pending paint events
1261           - UpdateWindow: Fixed logic bug. We were only updating if the window
1262             didn't need updating. Also switched to sending WM_PAINT directly,
1263             like MS does.
1264         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
1265           and random access Remove(). The random access is needed to handle
1266           UpdateWindow() where a WM_PAINT is sent directly without accessing
1267           the queue.
1268         * ScrollBar.cs: Added Update() calls to cause immediate updates to
1269           allow for better feedback when scrolling. Scrollbars are small and
1270           the immediate update should make it 'feel' more responsive without
1271           slowing things down. ScrollBar still needs it's invaliate logic
1272           updated to not always invalidate the whole bar on certain changes.
1273
1274 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1275
1276         * Control.cs:
1277         (BackColor): if the control does not support a transparent background,
1278         return the default backcolor when the parent backcolor is transparent.
1279
1280 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
1281
1282         * Application.cs: Updated to new StartLoop/GetMessage API
1283         * RichTextBox.cs: Provide some output on RTF parsing errors
1284         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
1285           new queue_id argument to GetMessage and PeekMessage to allow faster
1286           handling of per-thread queues in drivers.
1287         * Hwnd.cs: Added Queue tracking and property
1288         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1289         * XEventQueue.cs: Added thread trackingA
1290         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1291         * XplatUIX11.cs:
1292           - Implemented new per-thread queue
1293           - GetMessage: Fixed return/break behaviour on several cases. We were
1294             returning stale messages in some cases, instead of just processing
1295             the next message
1296
1297 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1298
1299         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1300
1301 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1302
1303         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1304           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1305
1306 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1307
1308         * PropertyGridView.cs: Fix drop down width.
1309
1310 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1311
1312         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1313           a mess in DrawToolBar, so I removed one of them.
1314
1315 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1316
1317         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1318           needed (clip). Otherwise we get artifacts.
1319
1320 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1321
1322         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1323           dimension is fixed
1324         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1325           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1326         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1327           if it matches the scale base font (avoids unneeded scaling)
1328
1329 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1330
1331         * X11DesktopColors.cs: One gtk_init_check should be enough
1332
1333 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1334
1335         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1336           match MS behaviour
1337
1338 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1339
1340         * TextBoxBase.cs: 
1341           - Generate OnTextChanged for Backspace even if we're only deleting
1342             the current selection
1343           - When setting the Text property, only select all text if the
1344             control does not have focus when it is being set. Otherwise
1345             just place the cursor at the beginning of the control
1346
1347 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1348
1349         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1350           Added a little helper to draw PropertyGrid ToolBar with a different
1351           border and a different BackColor.
1352         * PropertyGrid.cs: Some background parts didn't get painted with the
1353           correct background color. Added a class that helps us to draw the
1354           correct border for PropertyGridView and a class that helps us to
1355           draw ToolBars with a different backcolor
1356         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1357
1358 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1359
1360         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1361         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1362
1363 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1364
1365         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1366           into the palette entries. Also, since we're working on a copy
1367           we needed to copy the palette back onto the bitmap.
1368         * Cursor.cs: Same fix as XplatUIWin32.cs.
1369
1370 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1371
1372         * ImageListStreamer.cs: Need to read the var (or we're off)
1373
1374 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1375
1376         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1377           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1378           TextBoxBase.cs: Unused var fixes
1379         * AxHost.cs: Small 2.0 fix
1380         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1381           as it seems that is what at least Metacity expects. This will make
1382           icons show up on 64bit platforms. We still have some 64bit size
1383           issues, though, since the startup app window size still won't match.
1384
1385 2006-04-25  Mike Kestner  <mkestner@novell.com>
1386
1387         * *.cs: cleanup newly reported exception var unused warnings.
1388
1389 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1390
1391         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1392           ms
1393
1394 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1395
1396         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1397           image. The image position is always the same, no matter if the
1398           button is pressed or not.
1399
1400 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1401
1402         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1403           selection and set the correct filename for SaveFileDialog.
1404           Patch by Emery Conrad.
1405
1406 2006-04-24  Mike Kestner  <mkestner@novell.com>
1407
1408         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1409         check for item.X outside the ClientRect instead of item.Y. Fixes
1410         #78151.
1411
1412 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1413
1414         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1415         trust that value blindly and do some sanity check. Fixes bug #77814.
1416
1417 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1418
1419         * ImageListStreamer.cs: save the mask as a 1bpp image.
1420
1421 2006-04-21  Mike Kestner  <mkestner@novell.com>
1422
1423         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1424         pass Checked and Indeterminate to the Theme Engine. Improve
1425         encapsulation with ListBox.
1426         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1427         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1428         nested types.  Move all CheckState functionality to CheckedListBox.
1429         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
1430         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
1431         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1432         single base list. Fix scrollbar sizing and placement to mirror MS.
1433         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1434         used.
1435         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1436         for CheckedListBox by using new DrawItemState info.  Center the
1437         checkboxes on the items. Use new StringFormat property.
1438
1439 2006-04-18  Jackson Harper  <jackson@ximian.com>
1440
1441         * Form.cs: MdiChildren don't do default locations the same way as
1442         regular forms.  This prevents a crash when trying to position the
1443         mdi windows.
1444
1445 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
1446
1447         * PropertyGridTextBox.cs: Formatting, copyright
1448         * PropertiesTab.cs: Formatting
1449         * PropertyGrid.cs: Formatting
1450         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
1451           click toggling of values
1452           
1453 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
1454
1455         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1456         * Control.cs (.ctor): verify_thread_handle is static, don't reset
1457           every time a control is created
1458         * Application.cs: Removed obsolete EnableRTLMirroring method
1459
1460 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
1461
1462         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1463         SelectedIndex to -1. Fixes bug #78121.
1464
1465 2006-04-17  Jackson Harper  <jackson@ximian.com>
1466
1467         * Binding.cs: Handle null values for Current and BindingContext.
1468         This occurs when binding is a little delayed.
1469         * CurrencyManager.cs: return null for Current when there are no
1470         items in the list.
1471         - Hookup to the listchanged event on the DataView and update
1472         bindings when the list is changed.  This fixes late binding of
1473         controls.
1474
1475 2006-04-17  Jackson Harper  <jackson@ximian.com>
1476
1477         * X11Dnd.cs:
1478         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1479         Ringenbach.
1480
1481 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
1482
1483         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1484           place
1485         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1486           with the correct ButtonState
1487
1488 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
1489
1490         * XplatUIX11.cs: Improved distinguishing between window types to
1491           tell the WM a type closer to what the app wants (Fixes #78107)
1492
1493 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1494
1495         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1496           GrabHandle
1497
1498 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1499
1500         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1501           drawing code to reflect the size grip changes
1502
1503 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1504
1505         * ImageListStreamer.cs: fix handling of the mask that follows the main
1506         bitmap when deserializing and serialize it properly. The generated mask
1507         should better be a 1bpp image, but I'll do that later.
1508
1509 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1510
1511         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1512           path doesn't fit into some of our Current.Places
1513
1514 2006-04-13  Jackson Harper  <jackson@ximian.com>
1515
1516         * ComboBox.cs: Use borders instead of drawing our own decorations,
1517         try to obey correct rules for heights.
1518         * Theme.cs:
1519         * ThemeNice.cs:
1520         * ThemeClearLooks.cs:
1521         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1522         this is now handled by borders.
1523         - Remove unused DrawListBoxDecorationSize method.
1524         
1525 2006-04-13  Mike Kestner  <mkestner@novell.com>
1526
1527         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1528         reported by Alex.
1529
1530 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1531
1532         * ThemeWin32Classic.cs: 
1533           - Fixed CPDrawStringDisabled
1534           - Corrected drawing of disabled menu items
1535           - Fixed drawing of disabled radio buttons (bug #78095)
1536           - Draw check in a disabled CheckBox with color ControlDark 
1537
1538 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1539
1540         * Form.cs: Use the provided width when calculating the menu size;
1541           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1542           and ClientSize.Width won't be updated yet
1543         * Application.cs: Use Visible instead of Show() to make form visible,
1544           this way we create the handle later and menusize is considered
1545
1546 2006-04-12  Mike Kestner  <mkestner@novell.com>
1547
1548         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1549         reporting.
1550
1551 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1552
1553         * TextBox.cs: Implemented context menu
1554
1555 2006-04-12  Mike Kestner  <mkestner@novell.com>
1556
1557         * ListView.cs: implement box selection. fixes #77838.
1558         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1559
1560 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1561
1562         * XplatUIX11.cs: Added setting of window type when transient window
1563           is created (metacity would move it otherwise)
1564         * X11Structs.cs: Added WINDOW_TYPE atoms
1565         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1566           background (the control is Opaque but still wants transparent
1567           backgrounds)
1568
1569 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1570
1571         * Control.cs: Added OnPaintBackgroundInternal to allow controls
1572           that set Opaque but don't mean it (like all ButtonBase-derived
1573           controls) to still draw their background
1574         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1575           the background
1576
1577 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1578
1579         * Control.cs (PaintControlBackground): Set the graphics object
1580           on our PaintEvent to null to prevent it from being disposed
1581           when the PaintEvent gets disposed
1582
1583 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
1584
1585         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1586         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1587
1588 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1589
1590         * Control.cs: 
1591           - Added transparency check to BackColor property. Transparent
1592             backgrounds are only allowed if the control styles permit it
1593           - Added recursive painting of parent control background and
1594             foreground if a control with a transparent backcolor is drawn
1595             (Thanks to Tim Ringenback for providing his 'hack' as a base
1596              for this patch) Fixes #77985 and #78026.
1597           - Added Opaque style check before calling OnPaintBackground, no
1598             need to draw the background if the control is opaque
1599           - Removed ControlAccessibleObject owner variable (inherited from
1600             base, no need to define again)
1601           - Added some documentation links explaining the drawing events
1602             and styles
1603
1604 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1605
1606         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1607           that the affected control is the located at the left border of our
1608           parent (Fixes #77936)
1609
1610 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1611
1612         * TextBoxBase.cs: When rendering disabled or readonly controls,
1613           draw the background with 'Control' instead of 'Window' color as
1614           long as the user hasn't specifically set a color
1615
1616 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1617
1618         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1619           since that won't be updated if the user types text (only if it's
1620           programatically set)
1621
1622 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1623
1624         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1625           layout changes do to app-triggered resizes will have the proper
1626           display rectangle for layout
1627
1628 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1629
1630         * ThemeWin32Classic.cs:
1631           - Make use of the SystemBrushes and SystemPens wherever possible
1632           - Corrected some highlight colors
1633           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1634             drawing
1635         * Theme.cs: Added Empty field to CPColor struct
1636
1637 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1638
1639         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1640           is displayed when calculating the display rectangle. Thanks to Mike
1641           for teaching me the err of my ways.
1642
1643 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1644
1645         * ScrollableControl.cs:
1646           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1647             (instead of 0,0) and we now return the real width/height instead of
1648             just the clientrectangle, adjusted for padding. The rectangle is
1649             now cached and created by the new CalculateDisplayRectangle method.
1650           - Created new CalculateDisplayRectange method, which basically does
1651             what get_DisplayRectangle() did originally, but now using the 
1652             right edge instead of DisplayRectangle to determine the size of
1653             our scrollbars
1654           - get_Canvas(): Fixed it to properly calculate canvas for 
1655             right/bottom controls which seem to be placed to the right/bottom
1656             of any controls that have a fixed location
1657           - Removed TODO that's taken care of
1658           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1659             and SetDisplayRectLocation according to new MSDN2 docs
1660           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1661             event when that is called, this is added for compatibility
1662           - ScrollControlIntoView(): Implemented.
1663           - Switched scrollbars to be implicit, they shouldn't be selectable
1664         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1665           call it when the active control is set/changed
1666         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1667         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1668           implicit_control variable (used for native Win32 message generation)
1669         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1670           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1671         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1672         * XplatUIStructs.cs: Added ScrollBarCommands enum
1673
1674 2006-04-10  Jackson Harper  <jackson@ximian.com>
1675
1676         * ButtonBase.cs:
1677         * CheckedListBox.cs:
1678         * ComboBox.cs:
1679         * DataGrid.cs:
1680         * DataGridView.cs:
1681         * Form.cs:
1682         * GroupBox.cs:
1683         * ListBox.cs:
1684         * PrintPreviewControl.cs:
1685         * ProgressBar.cs:
1686         * PropertyGrid.cs:
1687         * Splitter.cs:
1688         * StatusBar.cs:
1689         * TrackBar.cs:
1690         * UpDownBase.cs: Fixup base event overrides.
1691         
1692 2006-04-06  Mike Kestner  <mkestner@novell.com>
1693
1694         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1695         all user-initiated value changes to min <= value <= max-thumbsz+1.
1696         (set_Value): check for vert/horiz when calculating new thumb position.
1697         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1698         like MS does.
1699         (OnMouseMoveSB): refactor the thumb dragging code and refine
1700         invalidation logic to reduce flicker.
1701         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1702         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1703         (UpdateThumbPosition): small code readability cleanup
1704
1705 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1706
1707         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1708           different
1709
1710 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1711
1712         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1713
1714 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1715
1716         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1717         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1718           This dramatically reduces the number of Pen.Dispose calls. 
1719           Where possible call ResPool methods only once instead of calling it
1720           over and over again (for example for the same color).
1721
1722 2006-04-06  Mike Kestner  <mkestner@novell.com>
1723
1724         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1725         Also remove an unused private field on the collection. Fixes #77972.
1726
1727 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1728
1729         * ThemeNice.cs: Added ToolBar drawing code
1730
1731 2006-04-06  Mike Kestner  <mkestner@novell.com>
1732
1733         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1734         I'm assuming that means we need to look up the toplevel for the
1735         provided control. Fixes the crash trace in #77911 but exposes another
1736         crash in some strange reflection usage in NDocGui.
1737
1738 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1739
1740         * ThemeNice.cs: Gave it a little silver touch and added Images
1741           method
1742         * FontDialog.cs: FontDialog is not resizable
1743         * FileDialg.cs: Added SizeGripStyle.Show
1744
1745 2006-04-05  Jackson Harper  <jackson@ximian.com>
1746
1747         * KeyboardLayouts.cs: Remove warning.
1748
1749 2006-04-05  Jackson Harper  <jackson@ximian.com>
1750
1751         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1752         all of our controls instead of Paint +=.
1753         * ListBox.cs:
1754         * ListView.cs:
1755         * MenuAPI.cs:
1756         * MessageBox.cs:
1757         * NotifyIcon.cs:
1758         * ProgressBar.cs:
1759         * ScrollBar.cs:
1760         * Splitter.cs:
1761         * StatusBar.cs:
1762         * TabControl.cs:
1763         * TextBoxBase.cs:
1764         * ToolBar.cs:
1765         * TrackBar.cs:
1766         * UpDownBase.cs:
1767         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1768         use OnPaintInternal. Remove Width/Height and Visible checks in
1769         paint handler, this is done at a higher level now.
1770         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1771         * PaintEventArgs.cs: Add a handled flag so controls that don't
1772         want anymore painting after OnPaintInternal can make sure OnPaint
1773         isn't called.
1774
1775 2006-04-05  Mike Kestner  <mkestner@novell.com>
1776
1777         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1778         state of the form, so that we don't process events when Modal dialogs
1779         are up. Fixes #77922.
1780
1781 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1782
1783         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1784           checking is done.
1785
1786 2006-04-05  Mike Kestner  <mkestner@novell.com>
1787
1788         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1789
1790 2006-04-05  Mike Kestner  <mkestner@novell.com>
1791
1792         * ListView.cs (HeaderMouseMove): null guarding for the over column
1793         when setting up the drag_to_index.  Fixes #78015.
1794
1795 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1796
1797         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1798           in the taskbar. Transient windows seem to accomplish that.
1799
1800 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1801
1802         * Form.cs:
1803           - Re-enabled CreateParams.X/Y code for FormStartPosition
1804           - Added code for manual placement when creating the Control
1805           - Incomplete patch to treat MDI forms differently when
1806             setting the ClientSizeCore. (Still need to figure out handling
1807             x/y coords there)
1808         * XplatUIX11.cs:
1809           - When we're explicitly setting the X/Y position of a non-Child
1810             window, let the WM know. Metacity really wants this.
1811
1812 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1813
1814         * ThemeNice.cs: Added CPDrawButton
1815
1816 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1817
1818         * ThemeNice.cs: Changed the color for focused buttons and activated
1819           the arrows for small scroll buttons.
1820
1821 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1822
1823         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1824           anymore. Changed some method modifiers to protected (virtual)
1825         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1826           changes
1827         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1828           Updated drawing of menus, buttons and progressbars; added
1829           CPDrawBorder3D 
1830
1831 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1832
1833         * ImageListStreamer.cs: implemented serialization/deserialization
1834         of the images.
1835
1836 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1837
1838         * ThemeWin32Classic.cs:
1839           - Removed all the DrawFrameControl stuff; CPDrawButton,
1840             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1841             inside the methods
1842           - Updated and corrected the drawing code of CPDrawButton,
1843             CPDrawCheckBox and CPDrawRadioButton to better match ms
1844           - Updated theme checkbox and radiobutton code to use the CP*
1845             methods
1846
1847 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1848
1849         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1850           bug is fixed
1851
1852 2006-03-31  Jackson Harper  <jackson@ximian.com>
1853
1854         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1855         sometimes.
1856         * UpDownBase.cs: Don't CreateGraphics manually, use a
1857         Refresh. Ideally we would invalidate the correct areas here.
1858
1859 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1860
1861         * XplatUIX11.cs: 
1862           - We now track the mapping state of windows. If a window (or 
1863             one of it's parents) is not mapped we no longer permit
1864             WM_PAINT messages to be generated since we'd otherwise get 
1865             lots of BadMatch X errors. Jackson did all the work figuring
1866             out the problem.
1867           - Destroying the caret if the window it's contained in is 
1868             destroyed. Can't use regular DestroyCaret method since it
1869             might fall into a drawing function (trying to remove the
1870             caret) and with that generate new BadMatch errors. Again,
1871             Jackson tracked this down.
1872           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1873             make sure we send the messages to all windows. (The old code
1874             would send the WM_DESTROY to the window, and then all child
1875             windows would be 'gone' because the WM_DESTROY handle lookup
1876             would no longer find the destroyed window)
1877         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1878         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1879
1880 2006-03-31  Jackson Harper  <jackson@ximian.com>
1881
1882         * ScrollableControl.cs: Dont recalc if we are not visible.
1883
1884 2006-03-31  Mike Kestner  <mkestner@novell.com>
1885
1886         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1887         the visibility branch.
1888
1889 2006-03-31  Jackson Harper  <jackson@ximian.com>
1890
1891         * ScrollBar.cs: Cap values when incrementing/decrementing.
1892
1893 2006-03-31  Mike Kestner  <mkestner@novell.com>
1894
1895         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1896         * ToolTip.cs: guard against timer expirations with no active control.
1897         Not sure why it happened.
1898
1899 2006-03-31  Mike Kestner  <mkestner@novell.com>
1900
1901         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1902         text.
1903         * ToolTip.cs: Position the tooltip based on where the cursor is at
1904         popup time, not at MouseEnter time.  Add a Down state so that we don't
1905         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1906         positioning offset. Lookup DisplaySize at positioning time, since it
1907         can theoretically change during invocation.
1908         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1909         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1910
1911 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1912
1913         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1914           Fixes behaviour when the Text property of the box is String.Empty
1915
1916 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1917
1918         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1919           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1920           a window)
1921
1922 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1923
1924         * FileDialog.cs: Visual enhancement for the popup buttons in 
1925           PopupButtonPanel
1926
1927 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1928
1929         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1930           code
1931
1932 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1933
1934         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1935           highlighted menu items to match ms
1936
1937 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1938
1939         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1940
1941 2006-03-30  Mike Kestner  <mkestner@novell.com>
1942
1943         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1944         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1945         go active to account for HotLight to Selected transition.
1946         * MenuItem.cs: add internal Selected prop. Fill out the Status
1947         property by calculating it from item info. Add HotLight,
1948         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1949
1950 2006-03-30  Mike Kestner  <mkestner@novell.com>
1951
1952         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1953
1954 2006-03-29  Jackson Harper  <jackson@ximian.com>
1955
1956         * Form.cs: Implement TODO.
1957
1958 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1959
1960         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1961           missing proper dialog setup in the constructor
1962
1963 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1964
1965         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1966         * Control.cs:
1967           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1968           - Fixed ResetBindings and removed TODO
1969           - Added check for cross-thread calls to get_Handle()
1970           - Added Marshaller attribute for set_Font to satisfy class status
1971         * FontDialog.cs: Removed TODOs that seemed implemented
1972         * UpDownBase.cs: Removed unneeded TODO and Fixme
1973         * MessageBox.cs: Implemented support for Default button and removed TODO
1974         * FileDialog.cs: Removed obsolete TODO
1975         * DomainUpDown.cs: Removed obsolete TODO
1976         * ButtonBase.cs: Removed obsolete TODO
1977         * XplatUIWin32.cs: Removed obsolete TODO
1978         * Form.cs:
1979           - Removed obsolete TODO
1980           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1981             internal status updates
1982           - Making sure the active control is selected when the control is created
1983         * CurrencyManager.cs: Removed obsolete TODO
1984
1985 2006-03-29  Mike Kestner  <mkestner@novell.com>
1986
1987         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1988         of PrintPreviewDialog and RichTextBox.
1989
1990 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1991
1992         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1993           DarkDark, Light and LightLight colors for a specific color
1994         * ThemeWin32Classic.cs:
1995           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1996             Appearance = Button 
1997           - Make use of the new ResPool helper CPColor
1998           - Draw ProgressBar and StatusBar with correct 3D borders
1999
2000 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
2001
2002         * ColorDialog.cs: Return selected color. Fixes bug #77940.
2003
2004 2006-03-28  Mike Kestner  <mkestner@novell.com>
2005
2006         * ListView.cs: fix Icon layout to plan for scrollbar widths when
2007         calculating col/row counts.
2008
2009 2006-03-28  Mike Kestner  <mkestner@novell.com>
2010
2011         * ColumnHeader.cs:
2012         * ListView.cs:
2013         * ListViewItem.cs:
2014         * Menu.cs: 
2015         switch to explicit interface method implementation for some methods
2016         corcompare identifies as inconsistent with MS.
2017
2018 2006-03-28  Mike Kestner  <mkestner@novell.com>
2019
2020         * MainMenu.cs: 
2021         * Menu.cs:
2022         add a few missing methods from the class status output.
2023
2024 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
2025
2026         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
2027           correct.
2028
2029 2006-03-28  Mike Kestner  <mkestner@novell.com>
2030
2031         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
2032
2033 2006-03-27  Mike Kestner  <mkestner@novell.com>
2034
2035         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
2036         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2037
2038 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
2039
2040         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2041
2042 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2043
2044         * ThemeWin32Classic.cs:
2045           - GroupBox: Inserted a little gap between the text and the lines
2046             on the right side
2047           - Made the code in CPDrawBorder3D more readable
2048           - Corrected the drawing location of the up and down arrows in 
2049             CPDrawScrollButton
2050
2051 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2052
2053         * ControlPaint.cs: Corrected line widths in DrawBorder for
2054           ButtonBorderStyle Inset and Outset
2055
2056 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2057
2058         * ThemeWin32Classic.cs:
2059           - Rewrote the totally broken CPDrawBorder3D method. That was
2060             one of the main problems for the terrific ThemeWin32Classic
2061             look
2062           - Updated and corrected Button drawing
2063           - Correct the dimensions of the SizeGrip to match ms ones
2064           - Removed a small drawing glitch in DrawComboBoxEditDecorations
2065         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
2066           Border3DStyle.Sunken to match ms.
2067
2068 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2069
2070         * ThemeWin32Classic.cs: First small part of the "de-uglify
2071           ThemeWin32Classic" effort, SizeGrip
2072
2073 2006-03-24  Jackson Harper  <jackson@ximian.com>
2074
2075         * XplatUIX11.cs: Give a max idle time of one second, this matches
2076         MS and forces an Idle event every second when there are no other
2077         events in the queue.
2078
2079 2006-03-24  Mike Kestner  <mkestner@novell.com>
2080
2081         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
2082         * ListView.Item.cs: fix layout issues with null image lists and images
2083         smaller than checkbox size.
2084         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
2085         mode like MS does.  It's weird, but consistent.  ;-)
2086         Fixes #77890.
2087
2088 2006-03-24  Mike Kestner  <mkestner@novell.com>
2089
2090         * ListView.cs: Scroll wheel support for the item control.  Fixes
2091         #77839.
2092
2093 2006-03-23  Jackson Harper  <jackson@ximian.com>
2094
2095         * ScrollableControl.cs: Special case negative sized areas, not
2096         zero.
2097         * MonthCalendar.cs: Save the rect of the clicked date so we can
2098         use it for invalidation.
2099         - Try to cut down on the number of invalidates
2100         - Invalidate the rect the mouse is over and was over when moving
2101         the mouse, so we get the focus box following the cursor.
2102
2103 2006-03-23  Mike Kestner  <mkestner@novell.com>
2104
2105         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
2106         focus rectangle drawing. Fixes #77835.
2107
2108 2006-03-23  Mike Kestner  <mkestner@novell.com>
2109
2110         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
2111         the if and else if and reverting back to the original == check on the
2112         None conditional.
2113
2114 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2115
2116         * FontDialog.cs: Update the example panel if the selected index of
2117           the fontListBox changes.
2118
2119 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2120
2121         * FileDialog.cs: Make FileDialog remember which directory it was in
2122           last in the same execution.
2123
2124 2006-03-22  Mike Kestner  <mkestner@novell.com>
2125
2126         * FileDialog.cs: make the DropDownMenu on the toolbar display
2127         RadioChecks since they are mutually exclusive and that's what MS does.
2128
2129 2006-03-22  Mike Kestner  <mkestner@novell.com>
2130
2131         * Theme.cs: add Color param to CPDrawMenuGlyph.
2132         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
2133         checks and radio marks and arrows are visible on highlighted items.
2134         * ControlPaint.cs: update to use new Theme signature.
2135
2136 2006-03-22  Mike Kestner  <mkestner@novell.com>
2137
2138         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
2139         is active. Fixes #77870.
2140
2141 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2142
2143         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
2144           to be focused/selected after startup
2145
2146 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2147
2148         * ColorDialog.cs: 
2149           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
2150             CustomColors and ShowHelp properties
2151           - Some internal rewrites to get better results when using the
2152             ColorMatrix
2153
2154 2006-03-22  Mike Kestner  <mkestner@novell.com>
2155
2156         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
2157         HoverSelection.  Fixes #77836.
2158
2159 2006-03-22  Mike Kestner  <mkestner@novell.com>
2160
2161         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
2162         ToggleButtons.  (De)Sensitize the Back button around a stack count of
2163         1, not 0.  Update ButtonSize based on a pixel count of the win32
2164         control.  Adjust the toolbar size/location for new button size.
2165
2166 2006-03-22  Jackson Harper  <jackson@ximian.com>
2167
2168         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
2169         true.
2170         * ScrollBar.cs: When doing increments and decrements we need to
2171         set the Value property so that ValueChanged gets raised. A
2172         possible optimization here would be to make an internal SetValue
2173         that doesn't invalidate immediately.
2174         * ToolTip.cs: Tooltips get added to their container (when
2175         supplied) so they get disposed when the container is disposed.
2176         - Don't create tooltips for String.Empty. This prevents all these
2177         little 2-3 pixel windows from showing up when running nunit-gui
2178         and driving me mad.
2179         * Form.cs: Don't set topmost when setting the owner if the handles
2180         haven't been created yet.  The topmost set will happen when the
2181         handles are created.
2182
2183 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2184
2185         * XplatUIX11.cs:
2186           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2187           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2188             visible (to allow them to recalculate their sizes)
2189
2190 2006-03-21  Mike Kestner  <mkestner@novell.com>
2191
2192         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2193         methods. Removed a ton of redundant code.  Still not really happy with
2194         the border rendering, but I think that's mainly because of the
2195         ControlDarkDark being black instead of a dark grey. Depending on how 
2196         close we want to be, we might want to revisit those color choices.
2197         Among the new features added during the refactor were DropDownArrow
2198         pressed rendering, Disabled image rendering.  Proper flat appearance
2199         boundary rendering.  Removed the Divider and Wrapping dividers since I
2200         can't figure out any combination of themes and conditions to make the
2201         MS control draw a horizontal line on a toolbar despite what the
2202         Divider property docs indicate.
2203         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
2204         conditions and incorrect layout.  Updated to coding standard.
2205         * ToolBarButton.cs: refactored layout and positioning code from
2206         ToolBar to here.  Invalidate wherever possible instead of forcing
2207         redraws of the whole toolbar. 
2208         (Known remaining issues: explicit ButtonSize smaller than provided
2209         images.)
2210
2211 2006-03-21  Mike Kestner  <mkestner@novell.com>
2212
2213         * ContextMenu.cs (Show): use the position parameter instead of just
2214         showing at the MousePosition.
2215
2216 2006-03-21  Jackson Harper  <jackson@ximian.com>
2217
2218         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
2219         control handle this.
2220         * TreeNodeCollection.cs: If we are clearing the root node we need
2221         to reset top_node so calcs can still happen.
2222         * ThemeWin32Classic.cs: This is a Flags so we need to check
2223         properly.
2224         
2225 2006-03-21  Jackson Harper  <jackson@ximian.com>
2226
2227         * DataGrid.cs: Create columns when the binding context has been
2228         changed.
2229         * X11Structs.cs: Keysyms are uints.
2230         - Add size to fix build.
2231
2232 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
2233
2234         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2235           XplatUIOSX.cs: 
2236           - Added ResetMouseHover method to allow controls to retrigger
2237             hovering if they need it more than once
2238           - Implemented MouseHoverTime and MouseHoverSize properties
2239         * Timer.cs: Start() must reset the interval
2240         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
2241           properties
2242
2243 2006-03-21  Jackson Harper  <jackson@ximian.com>
2244
2245         * X11Keyboard.cs: improved layout detection. Move the nonchar
2246         tables into this file.
2247         * KeyboardLayouts.cs: Move the tables into resource files.
2248
2249 2006-03-21  Mike Kestner  <mkestner@novell.com>
2250
2251         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2252
2253 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
2254
2255         * Mime.cs: Various speed optimizations. Looking up mime types
2256           is now 2 times faster than before
2257
2258 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
2259
2260         * CreateParams.cs: Added internal menu field
2261         * Control.cs: 
2262           - Switched call order for UpdateBounds; now we always call
2263             the one that also takes ClientSize, and we're calculating the 
2264             client size via driver method in the others. The previous
2265             method of tracking client size by difference wasn't working
2266             for forms where even the starting client size wouldn't match
2267             the overall form size (due to borders) (Part of fix for #77729)
2268           - CreateParams(): Do not use parent.Handle unless the handle is
2269             already created. Causes havoc with Nexxia and throws off our
2270             creation of controls
2271         * XplatUIX11.cs:
2272           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
2273           - Switched handling of ConfigureNotify over to new PerformNCCalc 
2274             method (consolidates code)
2275           - Changed RequestNCRecalc to use new PerformNCCalc method
2276           - Added calls to RequestNCRecalc when menus and borders are changed
2277             to allow app to set NC size. (Part of fix for #77729) This matches
2278             when MS send a WM_NCRECALC on Win32 windows.
2279           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
2280             (Part of fix for #77729). This matches what MS does, they also
2281             send that message when the form is made visible.
2282           - XException.GetMessage: Improved usability of X errors by including
2283             a translation of the window into Hwnd and Control class
2284           - Improved debug info for window creation, reparenting and destruction
2285           - Created helper method WindowIsMapped() [Currently not used]
2286         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2287         * Form.cs:
2288           - CreateParams: Now setting our menu on the new internal menu field
2289           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2290             avoid calculating the same property twice
2291         * Hwnd.cs:
2292           - Improved usability of ToString() for debugging purposes
2293           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2294             determine the height of the menu, instead of just the font. This
2295             required to also create a graphics context and to keep a bmp 
2296             around (for performance reasons)
2297
2298 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2299
2300         * MenuAPI.cs: Added OnMouseUp method
2301         * Form.cs:
2302           - Now remembering the requested client size, avoids size errors
2303           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2304             instead of base if the menu is active. This is required due to
2305             control now capturing and releasing on down/up and it would
2306             prematurely release our menu capture
2307
2308 2006-03-17  Jackson Harper  <jackson@ximian.com>
2309
2310         * KeyboardLayouts.cs: Add the czech layouts.
2311
2312 2006-03-16  Jackson Harper  <jackson@ximian.com>
2313
2314         * Control.cs: Use the viewport space when sizing not the controls
2315         client size, so things like ScrollableControl that effect the
2316         viewport size (when scrollbars are added) are computed correctly.
2317         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2318         of ManagerEntrys.
2319         - Handle creating BindingManagers for null data sources.
2320         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2321         source, otherwise when rows are added they are added to the 'fake'
2322         datasource and we will crash when trying to set the position in
2323         those rows.
2324         - Use Implicit scrollbars on the datagrid so they arent
2325         selectable.
2326         
2327 2006-03-16  Jackson Harper  <jackson@ximian.com>
2328
2329         * Binding.cs:
2330         * InternalWindowManager.cs:
2331         * MdiWindowManager.cs:
2332         * X11Keyboard.cs: I really want Mike to love me again (fix
2333         compiler warnings).
2334
2335 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2336
2337         * DataGrid.cs:
2338           - OnMouseDown: Switch to editing mode when clicking on the cell
2339                          even if we're clicking on the cell that's currently 
2340                          selected
2341           - ProcessGridKey: Left/Right now wrap like MS.Net does
2342           - ProcessGridKey: Tab now knows to add a new row when tab is
2343                             pressed in the cell of the last column of the 
2344                             last row
2345           - ProcessGridKey: Enter now adds another row  if pressed in the last
2346                             row and selectes the new row, same column cell
2347           - ProcessGridKey: Home/End navigate columns, not rows, like 
2348                             originally implemented
2349           - Broke ProcessKeyPreview code out into an extra Internal method
2350             so it can be called from the edit code
2351         * DataGridTextBox.cs (ProcessKeyMessage):
2352           - Switched to accept Tab keypresses
2353           - Added F2 handling to allow jumping to the end of the edited cell
2354           - Added logic to allow moving caret left/right inside edited cell
2355             and making the edited cell jump when the caret hits cell borders
2356           - Tab and Enter are now passed to the datagrid after being handled
2357         * TextBoxBase.cs:
2358           - Removed capture code now that Control handles it
2359           - set_SelectionStart now ensures caret is visible
2360
2361 2006-03-16  Jackson Harper  <jackson@ximian.com>
2362
2363         * TrackBar.cs: Debackwards the increment/decrement for handling
2364         mouse clicks on the bar with vertical trackbars.
2365         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2366         bottom to match MS.
2367
2368 2006-03-16  Mike Kestner  <mkestner@novell.com>
2369
2370         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2371         consistent with the MS control. Fix a bug in
2372         SelectedListViewItemCollection.Clear that was pissing me off for the
2373         better part of a day because the collection was being altered
2374         underneath us as we walked the list.
2375
2376 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2377
2378         * Control.cs: Not sure how we could miss this so long, but it seems
2379           that MS.Net has Capture set all the way from before calling 
2380           OnMouseDown through sending the mouse events until after
2381           OnMouseUp. This will fix DataGrid's selection being set to end
2382           at the location of the MouseUp.
2383
2384 2006-03-15  Jackson Harper  <jackson@ximian.com>
2385
2386         * BindingContext.cs: Check the binding after its added so that it
2387           can initialize the binding managers and hookup to events.
2388         * Binding.cs: Data members seem to sometimes include rows/cols in
2389           the format Row.Column we now take this into account.
2390           - Hookup to the position changed event so we can update the
2391           control when the position has changed in the data set.
2392         * CurrencyManager.cs: Take into account the row/col naming
2393           convention when creating dataset tables.
2394         * BindingContext.cs: Using a newer better way of storing
2395           datasource/datamember pairs.  Hopefully this better matches MS for
2396           looking up binding managers.
2397
2398
2399 2006-03-15  Jackson Harper  <jackson@ximian.com>
2400
2401         * BindingContext.cs: The currency manager needs the data member
2402         name, if the member is a data set we use the name to find the
2403         correct table.
2404         * CurrencyManager.cs: When creating the list prefer an IList over
2405         an IListSource.
2406         - Attempt to create a DataTable from a DataSet (TODO: might need
2407         some better error checking here, although MS doesn't seem to have much)
2408         - If we have a DataTable create a view and use it as our list.
2409
2410 2006-03-15  Mike Kestner  <mkestner@novell.com>
2411
2412         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2413         keyboard navigation. Support Up/Down/Left/Right selection correctly
2414         for all 4 View modes.
2415         * ListViewItem.cs: add internal row/col fields for icon layouts.
2416
2417 2006-03-15  Jackson Harper  <jackson@ximian.com>
2418
2419         * TabControl.cs: Redraw the tabs when we resize so their newly
2420         calculated sizes are drawn on screen.
2421         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2422         composite characters.
2423         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2424         - filter events so that composite characters can be created
2425         patches by peter
2426         * X11Structs.cs: Add XIMProperties enum.
2427
2428 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2429
2430         * Control.cs (BringToFront, SendToBack): Don't use window or handle
2431           unless it's created
2432
2433 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2434
2435         * Control.cs (PerformLayout): We don't need to consider visiblity
2436           for anchoring, only for docking. This fixes 'whacky' alignment
2437           in listbox and other controls that use implicit scrollbars after
2438           the previous PerformLayout patch
2439         * ListBox.cs: Switched to use implicit scrollbars
2440           
2441 2006-03-14  Mike Kestner  <mkestner@novell.com>
2442
2443         * ToolBar.cs: 
2444         * VScrollBar.cs:
2445         - chain up the "new event" overrides to base and use
2446         OnEvent to raise them.  Part of fix for bug #76509.
2447
2448 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
2449
2450         * FileDialog.cs: Do not select an item in the parent directory
2451           on backspace
2452
2453 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2454
2455         * Control.cs (PerformLayout): It would seem that we considered
2456           invisible windows for our layout. Not quite the right thing
2457           to do. Now we don't any longer, thereby fixing bug #76889.
2458
2459 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2460
2461         * Control.cs (CanFocus): I goofed. A control can have focus 
2462           even though it's not selectable. Made it match MS docs.
2463
2464 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2465
2466         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2467           center by default (fixes #76895)
2468         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
2469           all uses of Border3DSides.All with the explicit ORd together
2470           Left|Right|Top|Bottom because I assume that nobody was aware 
2471           that All also implies a center fill. Most places I checked had
2472           a fill right above.
2473         * ProgressBarStyle.cs: Added
2474
2475 2006-03-13  Mike Kestner  <mkestner@novell.com>
2476
2477         * ListView.cs: fix breakage in drag shadow header positioning 
2478         from Peter's csc compilation fix.
2479
2480 2006-03-13  Mike Kestner  <mkestner@novell.com>
2481
2482         * ListView.cs: fix NRE produced by backspacing twice in a focused
2483         FileDialog.
2484
2485 2006-03-13  Mike Kestner  <mkestner@novell.com>
2486
2487         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2488
2489 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2490
2491         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2492           be changed
2493         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2494           the allowed size before making programmatic size changes
2495
2496 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
2497
2498         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
2499           set, metacity is broken and will still use the emty sizes in 
2500           the struct. (Fix for #77089)
2501
2502 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2503
2504         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2505           WindowExStyles and marked both enums as Flags
2506         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2507           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2508           to match WindowStyles split
2509         * XplatUIX11.cs:
2510           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2511           - Updated to match WindowStyles split
2512         * XplatUIWin32.cs:
2513           - Fixed FosterParent creation, was using ExStyle on the Style field
2514             (This should help with Popup focus issues)
2515           - Updated to match WindowStyles split
2516
2517 2006-03-13  Jackson Harper  <jackson@ximian.com>
2518
2519         * MdiWindowManager.cs: Use the system menu height. Fixes some
2520         strange sizing issues.
2521
2522 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2523
2524         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2525         * TextBoxBase.cs:
2526           - Scroll to caret after inserting text (#77672)
2527           - Make scroll range one pixel higher, fixes off-by-one error (and
2528             makes underlines visible on the last line)
2529
2530 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2531
2532         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2533           the keyboard state from being stuck with keys in 'pressed' state when
2534           focus is switched away via keyboard
2535         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2536           reset the keyboard if no X11 KeyUp events are expected to come
2537         * X11Structs.cs: Switched type of Visible to bool to match driver
2538
2539 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2540
2541         * TextControl.cs:
2542           - Switched caret to be just 1 pixel wide, matches MS and looks less
2543             clunky
2544           - Moved caret display 1 pixel down from the top of the control
2545             to improve view
2546           - InsertCharAtCharet: Update the selection start if moving the caret
2547             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2548           - No longer always creating the caret when the caret methods are
2549             called. Only the actual ShowCaret/HideCaret will do that now
2550           - Only setting caret visible if the owner control has focus
2551           - UpdateView: Added invalidation-shortcut logic for center and right 
2552             aligned text. Previously we'd update all according to the left
2553             logic which caused drawing errors. Also fixed height of invalidated
2554             areas, now properly invalidating the whole area (was off-by-one)
2555           - owner_HandleCreated: Always generate the document when the
2556             handle is created; this ensures that 
2557         * TextBoxBase.cs:
2558           - Fixed situation where caret would disappear under the right
2559             window border, also improved scrolling behaviour on left-
2560             aligned textboxes
2561           - Fixed right-aligned textboxes to have a border to the
2562             right instead of the caret being under the right border
2563         * XplatUIX11.cs:
2564           - Switched from 'nested' to simple visible/not visible tracking 
2565             for caret (part of fix for #77671)
2566           - No longer passing through translated FocusIn/FocusOut messages
2567             since we were notifying too often and the wrong windows. Instead
2568             we just notify our focussed window of receiving or loosing focus
2569         * XplatUIWin32.cs: Switched from 'nested' show/hide 
2570           counting for caret to simple visible yes/no behaviour (part of 
2571           fix for #77671)
2572
2573 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2574
2575         * Mime.cs: Remove debug code...
2576
2577 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2578
2579         * MimeGenerated.cs: Removed
2580         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2581           and subclasses) from /usr/(local/)share/mime and
2582           $HOME/.local/share/mime.
2583
2584 2006-03-10  Jackson Harper  <jackson@ximian.com>
2585
2586         * MdiWindowManager.cs: Recalc the NC area when a window is
2587         maximized/restored so that the menu area is drawn on forms that
2588         don't have a menu.
2589
2590 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2591
2592         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2593           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2594           us to force a WM_NCCALCRESIZE message being sent. This is needed
2595           for MDI maximizing.
2596
2597 2006-03-10  Jackson Harper  <jackson@ximian.com>
2598
2599         * Form.cs: We need to use the ActiveMenu when calculating menu
2600         height.
2601         - Fix nullref when the window manager hasn't been created yet.
2602         * Control.cs: Fix nullref when we try to bring a control to the
2603         front that has no parent.
2604         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2605         height.
2606         - Add a dummy item to the maximized menu so it always has the
2607         correct height. Otherwise when there are no menus we don't get our
2608         icon and buttons.
2609         
2610
2611 2006-03-10  Jackson Harper  <jackson@ximian.com>
2612
2613         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2614         stuff.
2615         * Form.cs: Make the window_state internal so the window managers
2616         can track it.
2617         - When an MDI child is maximized let its window manager create the
2618         main menu (so it can add its icon).
2619         - Notify the window managers of state changes
2620         - Let the window manager paint its buttons and handle button
2621         clicks on the menu when it is maximized.
2622         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2623         window manager, since tool windows don't use it, only mdi windows.
2624         - Tell the main form that we don't want it to handle NCPAINT
2625         itself to avoid extra painting.
2626         - Handle clicks on a maximized windows menu.
2627         - Handle window state changes
2628         - Handle minimize/maximize clicks correctly by setting the window state.
2629         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2630         when clicking on the forms icon).
2631         - New method to create a forms maximized menu. This is its normal
2632         menu + an icon.
2633         - Handle window state changes.
2634         - Handle sizing of maximized windows.  Maximized windows are just
2635         drawn bigger then the parent visible area. All controls are still
2636         there, they are just outside the visible area (this matches windows).
2637         * MdiClient.cs: No scrollbars when a child window is maximized.
2638         - Let the children windows figure out how big they should be when
2639         sizing maximized windows.
2640         - Implement a version of ArrangeIconicWindows somewhat similar to
2641         Windows version.  There are some little differences, but I don't
2642         think any app will rely on the layout of minimized mdi windows.
2643
2644 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2645
2646         * Padding.cs: Several fixes to allow compiling with csc 2.0
2647
2648 2006-03-09  Jackson Harper  <jackson@ximian.com>
2649
2650         * Menu.cs:
2651         * MenuItem.cs: Cheap hack so we can add items to the list without
2652         the events being raised.  This allows adding mdi items during
2653         drawing. TODO: Should probably find a better time to add the items.
2654
2655 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2656
2657         * ThemeWin32Classic.cs:
2658           - CheckBox_DrawText: Added logic to not wrap if not enough space
2659             is available (Fix for bug #77727)
2660           - RadioButton_DrawText: Added logic not to wrap if not enough
2661             space is available (Fix for bug #77727). Also removed some
2662             duplicate code, DrawString always drawing the regular text
2663             before hitting the if statement.
2664
2665 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2666
2667         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2668
2669 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2670
2671         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2672         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2673           methods. Moved the new 2.0 properties into alphabetical order with
2674           other properties and added MonoTODO tags
2675
2676 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2677
2678         * AutoScaleMode.cs: Added. Fix build.
2679
2680 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2681
2682         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2683           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2684           and was requiring premature handle creation for calls from above
2685         * Form.cs, Control.cs: Removed handle arguments from calls to
2686           CalculateClientRect()
2687
2688 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2689
2690         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2691           drag_column.column_rect is MarshalByRef and can't be used that way
2692
2693 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2694
2695         * AxHost.cs: Added deserialization constructor for 
2696           AxHost+State (fixes 77743)
2697
2698 2006-03-09  Mike Kestner  <mkestner@novell.com>
2699
2700         * ListView.cs: 
2701         - Added column drag reordering for details view.
2702         - fixed behavior when mouse is dragged off column and
2703         AllowColumnReorder is false.
2704         * ColumnHeader.cs: clone the format too in Clone.
2705         * Theme.cs: add DrawListViewHeaderDragDetails method.
2706         * ThemeWin32Classic.cs:
2707         - impl new method for drawing drag column shadows and targets.
2708         - support column offset for details mode in DrawListViewItem.
2709
2710 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2711
2712         * TextControl.cs: Reset the char_count when the document is cleared
2713           (Fixes bug reported on mono-winforms mailing list)
2714
2715 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2716
2717         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2718           of calling base we simply process the key ourselves, since both
2719           DefWindowProc and the handled method would set m.Result. 
2720           (Fixes #77732)
2721
2722 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2723
2724         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2725           method also moves the window; instead implemented a copy of
2726           Control.ScaleCore (Part of fix for #77456)
2727         * TextBoxBase.cs: 
2728           - Created new CreateGraphicsInternal method to allow providing
2729             a graphics context when no handle is created without triggering
2730             handle creation. (Part of fix for #77456)
2731           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2732         * TextControl.cs: 
2733           - Switched Constructor to require TextBoxBase instead of Control (to
2734             allow uncast access to CreateGraphicsInternal)
2735           - Safeguarded use of owner.Handle property. No longer accessing it
2736             unless the handle is already created.
2737           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2738           - Now triggering a recalc when owning control becomes visible
2739         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2740           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2741           premature handle creation (Part of fix for #77456)
2742         * Control.cs:
2743           - We now only destroy our double-buffering buffers when the
2744             control is resized or disposed, but not when visibility
2745             changes. (The code even re-created them twice every time)
2746           - Now requiring a redraw of the buffer on visibility changes
2747             (fixes bug 77654 part 2)
2748           - Not passing OnParentVisibleChanged up unless the control
2749             is visible
2750           - CanFocus: Fixed to match MS documentation
2751           - Focus: Fixed to return actual focus state and to check if
2752             setting focus is legal before setting it
2753
2754 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2755
2756         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2757           when to draw focus rectangle by looking at parent focus and
2758           selected state instead. This fixes TabPages on Linux sometimes
2759           having none or multiple focus rectangles.
2760         * XplatUIX11.cs (SetFocus): 
2761           - Don't set the focus if the same window already has focus
2762           - Use SendMessage instead of PostMessage (like it's Win32
2763             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2764             to match MS behaviour
2765         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2766           are not selectable.
2767
2768 2006-03-07  Jackson Harper  <jackson@ximian.com>
2769
2770         * PictureBox.cs: Revert line I accidently committed last week.
2771
2772 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2773
2774         * Control.cs: 
2775           - Added new IsRecreating and ParentIsRecreating properties to
2776             allow testing if RecreateHandle has been called on ourselves
2777             or one of our parents
2778           - WndProc(WM_DESTROY): If our control handle is being recreated
2779             we immediately need to create the handle when receiving the
2780             destroy, that way our child windows find a valid parent handle
2781             when they themselves are being recreated upon WM_DESTROY receipt
2782             (fix for bug #77654 part 1)
2783         * XplatUIX11.cs:
2784           - DestroyWindow: WM_DESTROY must be sent to our own window before
2785             notifying any child windows. MS documents that child windows
2786             are still valid when WM_DESTROY is received. (Control now relies on
2787             this behaviour)
2788           - Added some fine-grain debug options
2789
2790 2006-03-06  Jackson Harper  <jackson@ximian.com>
2791
2792         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2793         box and base calculations off this.
2794         * MdiChildContext.cs:
2795         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2796         anymore.
2797         
2798 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2799
2800         * Splitter.cs: In situations where the affected control is added
2801           to the parent's control list after the splitter, we would not
2802           populate affected. Now we try populating it on mousedown, if
2803           it's not already set, and force it to be re-set whenever our
2804           parent changes.
2805
2806 2006-03-03  Matt Hargett  <matt@use.net>
2807
2808         * Control.cs: implement Control.Padding
2809         * Padding.cs: -Padding.All returns -1 when constructing with the
2810         implicit default ctor
2811         -Padding.ToString() matches MS.NET
2812         * ContainerControl.cs: implement
2813         ContainerControl.AutoScaleDimensions
2814         * ListControl.cs: implement ListControl.FormattingEnabled
2815         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2816         * ButtonBase.cs:
2817         * TabPage.cs: Implement UseVisualStyleBackColor.
2818         * PictureBox.cs: Implement PictureBox.InitialImage.
2819
2820 2006-03-03  Mike Kestner  <mkestner@novell.com>
2821
2822         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2823         event declarations to proxy to base event.
2824         * ListViewItem.cs: update to use ItemControl.
2825         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2826         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2827         column header label rendering for 0 width columns.
2828
2829 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2830
2831         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2832           that causes the control to be created. Fixes #77476.
2833
2834 2006-03-02  Jackson Harper  <jackson@ximian.com>
2835
2836         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2837         expose_pending.
2838
2839 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2840
2841         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2842           passed in for the EventArgs (fixes #77690)
2843
2844 2006-03-01  Jackson Harper  <jackson@ximian.com>
2845
2846         * ScrollBar.cs: Refresh afterbeing resized.
2847
2848 2006-02-28  Mike Kestner  <mkestner@novell.com>
2849
2850         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2851         Clean up a tracker compile warning.
2852         * MenuItem.cs: add internal PerformPopup method.
2853         [Fixes #77457]
2854
2855 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2856
2857         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2858           implicit expose) when the text is set to null
2859
2860 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2861
2862         * RichTextBox.cs (FlushText): When newline is true, we always
2863           need to split the line, even if no text is on it and we may
2864           never eat newlines. (Fixes #77669)
2865
2866 2006-02-28  Mike Kestner  <mkestner@novell.com>
2867
2868         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2869         and set Selected instead.
2870         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2871         collections.
2872
2873 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2874
2875         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2876
2877 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2878
2879         * FontDialog.cs:
2880           - Got rid of the panel. All controls are now directly added to
2881             the dialog form
2882           - It is now possible to set a font with the Font property
2883           - MinSize and MaxSize property do now what they should
2884           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2885           - Searching and selecting a font with the font textbox works now,
2886             the same applies to the style and size textbox
2887           - Draw the correct 3D border in the example panel
2888           - Fixed a little mem leak (unused fonts didn't get disposed)
2889           - Many other internal updates/rewrites...
2890           - Fix typo
2891
2892 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2893
2894         * TextControl.cs: 
2895           - InsertRTFFromStream: Added 'number of characters inserted' argument
2896           - set_SelectedRTF: Now using the number of characters to calculate
2897             the new location for the selection and cursor (x/y cannot be used
2898             due to potentially already wrapped text)
2899
2900 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2901
2902         * TextControl.cs: Added property and implemented means to allow 
2903           disabling recalculation of a document (can be used to speed up
2904           multiple inserts and is needed to make RTF inserts predictable, see
2905           bug #77659)
2906         * RichTextBox.cs: Using the new NoRecalc property of Document to
2907           keep x/y insert locations predictable. Also makes it faster inserting
2908           large chunks of RTF
2909
2910 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2911
2912         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2913           it's easier for a child control to handle the other messages without
2914           having to duplicate the special functionality
2915         * TextBoxBase.cs
2916           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2917             code to handle processing the key ourselves, in order to get 
2918             access to the result of KeyEventArgs.Handled. We now only call 
2919             ProcessKey if they key hasn't been handled already. Fixes #77526.
2920           - set_Text: If null or empty string is given, just clear the 
2921             document. Fixes part of #77526
2922
2923 2006-02-27  Jackson Harper  <jackson@ximian.com>
2924
2925         * SizeGrip.cs: Paint the background color before painting the grip
2926         so things look right.
2927         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2928
2929 2006-02-27  Mike Kestner  <mkestner@novell.com>
2930
2931         * ListView.cs:
2932           - Restructure layout and invalidation model to remove a ton of
2933           flicker from the control and speed up performance in general.
2934           - Add manual column resize, flickers like crazy, but I already have
2935           some ideas on how I'll fix that. (#76822)
2936           - Merge the three Icon-based views into a single layout method.
2937           - Move item selection interaction logic from the item since 
2938           interaction with the collections is more appropriate to the view.
2939           - Deselection on non-item clicks.
2940         * ListViewItem.cs:
2941           - Encapsulate most of the layout. Add some internal props to trigger
2942           layout.  Move to a model where Items invalidate themselves instead
2943           of just invalidating the whole control every time something changes.
2944           - Invalidate on Text/Caption changes.
2945           - switch to an offset based layout model to avoid having to absolute
2946           position every element on item moves.
2947           - correct checkbox layout to conform to MS layout.
2948         * ThemeWin32Classic.cs:
2949           - refactor some column header drawing code.
2950           - fix string justification for column headers (#76821)
2951           - make SmallIcon labels top justified for compat with MS impl.
2952         * ThemeClearlooks.cs:
2953           - adjust to new ListViewItem internal checkbox bounds api.
2954
2955 2006-02-27  Jackson Harper  <jackson@ximian.com>
2956
2957         * Control.cs:  Change where implicit controls fall in the zorder.
2958         They are now on top of all children.
2959         - Synced AddImplicit code with Add
2960         - Removed unused enumerator.
2961         * SizeGrip.cs: Remove the TODO as its been TODONE.
2962
2963 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2964
2965         * TextControl.cs(Insert): Combine the last lines unless the insertion
2966           string ends with \n\n, otherwise we leave one line too many (Fixes
2967           something I noticed with the testapp for #77526; the bug itself was
2968           already fixed in the previous checkin)
2969
2970 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2971
2972         * RichTextBox.cs:
2973           - SelectionColor and SelectionFont methods no longer set absolute
2974             styles. Instead, the keep font or color respectively (This 
2975             resolves a long-standing FIXME in the code)
2976           - When flushing RTF text, the insert code now considers text trailing
2977             behind the insertion point (Fixes the bug where when replacing
2978             the selected text via SelectedRTF the remainder of the line behind 
2979             the selection would stay on the first insertion line)
2980         * TextBoxBase.cs:
2981           - AppendText now updates the selection points after inserting text
2982           - AppendText now ensures that the last tag (sometimes 0-length) of
2983             the document is used for the style information (Fixes part of 
2984             bug #77220)
2985         * TextControl.cs:
2986           - Created new FontDefiniton class to allow describing partial style
2987             changes
2988           - StreamLine() now takes a lines argument, to allow it to decide
2989             whether an encountered zero-length tag is the last in the document
2990             (which must be kept to not loose the font/color contained in it,
2991             for later appends)
2992           - Created Combine() and Split() methods for Marker structs, to 
2993             support marker updates due to reformatted documents (soft line
2994             wraps)
2995           - Implemented Document.CaretTag setter
2996           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2997             of the last line (Not the cause, but also exposed by bug #77220)
2998           - Added LineTag argument to InsertString method, to allow callers
2999             to force a certain tag to be used (required to force use of the
3000             trailing zero-length tag of a document)
3001           - Now updating markers in Combine(), to avoid stale tag markers
3002           - Added some method descriptions to aid maintenance
3003           - Implemented new FormatText concept, allowing additive/subtractive
3004             formatting by only specifying the components that are to be 
3005             changed. This was needed for resolving the RTB.SelectedColor/
3006             RTB.SelectedFont fixmes
3007           - Added Break() support method to allow breaking up linetags (used
3008             for partial formatting)
3009           - Added GenerateTextFormat() method. It is used for partial 
3010             formatting and allows to generate a full font/color from given
3011             attributes and an existing tag.
3012
3013 2006-02-26  Jackson Harper  <jackson@ximian.com>
3014
3015         * XplatUIX11.cs:  Use the correct caption height.
3016         - Translate hittest coordinates to screen coords to match MS.
3017         * XplatUIWin32.cs: When we create MDI windows we need to reset
3018         some of the style flags, so we get a nice blank window, and can
3019         draw all the decorations ourselves.
3020         - Set a clipping rectangle on the non client paint event, the
3021         window manager drawing code needs one.
3022         * Form.cs: The window manager needs to know when the window state
3023         has been updated.
3024         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
3025         don't need to factor in border and title sizes in these
3026         methods. TODO: Remove the args and fix the call points.
3027         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
3028         properly.
3029         - Let the driver set the cursors.
3030         - Improve active window handling
3031         - Correct sizes for title bars and buttons.
3032         - Match MS drawing better
3033         * MdiWindowManager.cs: We don't need to handle border style
3034         updates specially anymore.
3035         - Check for scrollbars when windows are done moving
3036         - Handle Active properly.
3037         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
3038         correctly. I am spewing the exception though, so we don't hide the
3039         bugs.
3040         
3041 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
3042
3043         * DataGridViewRowPostPaintEventArgs.cs,
3044           DataGridViewCellPaintingEventArgs.cs,
3045           DataGridViewRowCollection.cs,
3046           DataGridViewRowPrePaintEventArgs.cs,
3047           DataGridViewCell.cs: Clear a few warnings and implement a few
3048           exceptions that should be thrown.
3049
3050 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3051
3052         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
3053           'inheriting' our parent's (non-default) cursor. (Part of
3054            the fix for #77479)
3055
3056 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
3057
3058         * XplatUIX11.cs: Fixed cast to make csc happy
3059
3060 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3061
3062         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
3063           it's for the client area (part of fix for #77479 and needed
3064           for MDI window cursor handling)
3065         * XplatUIX11.cs
3066           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
3067             the appropriate default cursors and also passing the message
3068             up the parent chain 
3069           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
3070             for non-client areas
3071
3072 2006-02-15  Jackson Harper  <jackson@ximian.com>
3073
3074         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
3075         is a real MDI window
3076
3077 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
3078
3079         * X11DesktopColors.cs: Instead of checking the desktop session
3080           string for "KDE" check if it starts with "KDE"
3081
3082 2006-02-10  Jackson Harper  <jackson@ximian.com>
3083
3084         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
3085         systems).
3086
3087 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3088
3089         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
3090           errors
3091         * ColorDialog.cs:
3092           - Got rid of the panel. All controls are now directly added to
3093             the dialog form
3094           - Changed to mono coding style
3095
3096 2006-02-10  Jackson Harper  <jackson@ximian.com>
3097
3098         * InternalWindowManager.cs: We don't need the set visibility to
3099         false hack anymore now that peter has written beautiful shutdown
3100         code.
3101
3102 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
3103
3104         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
3105           where already explicitly destroyed
3106
3107 2006-02-10  Jackson Harper  <jackson@ximian.com>
3108
3109         * MdiClient.cs: Handle the case where windows are too high or to
3110         the left and we need scrollbars.
3111
3112 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3113
3114         * MimeIcon.cs: Added some icons
3115         * FileDialog.cs:
3116           - Fixed bug #77477
3117           - Got rid of the panel. All controls are now directly added to
3118             the dialog form
3119           - Changed to mono coding style
3120           - On Linux "My Computer" and "My Network" will now show some
3121             more usefull information. A new class, MasterMount, gathers
3122             this information from /proc/mount. Updated MWFFileView to make
3123             use of this information
3124           - Fixed a bug that caused FileDialog to crash when
3125             ".recently_used" file had a zero size
3126           - FilterIndex does now what it should
3127           - Some Refactoring
3128         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
3129             FileDialog changes
3130
3131 2006-02-09  Jackson Harper  <jackson@ximian.com>
3132
3133         * ComboBox.cs: Don't touch if null.
3134
3135 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
3136
3137         * Cursor.cs: 64bit safeness fix
3138         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
3139
3140 2006-02-09  Jackson Harper  <jackson@ximian.com>
3141
3142         * Form.cs: If a form is made into an MDI form update the styles so
3143         all the props can get set correctly.
3144         - Kill the mdi_container when we dont need it anymore.
3145         * InternalWindowManager.cs: Add missing NOT
3146
3147 2006-02-08  Jackson Harper  <jackson@ximian.com>
3148
3149         * InternalWindowManager.cs: Respek clipping when drawing MDi
3150         decorations.
3151
3152 2006-02-08  Jackson Harper  <jackson@ximian.com>
3153
3154         * Hwnd.cs: Add bits to track non client expose events.
3155         * XplatUIX11.cs: Track non client expose events on the hwnd. This
3156         gives us a proper invalid rect and will allow for some nice
3157         optimizations with NC client drawing
3158         - MDI windows are children windows, so move their style handling
3159         into the child window block.
3160         * InternalWindowManager.cs: Remove a state reset that was
3161         getting invoked at the wrong time. Fixes managed windows getting
3162         into a 'stuck' captured state.
3163
3164 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3165
3166         * TextControl.cs (Document.ctor): Now initializing 
3167           selection_anchor. Fixes #77493
3168
3169 2006-02-07  Jackson Harper  <jackson@ximian.com>
3170
3171         * TrackBar.cs: The increment/decrements were backwards.
3172
3173 2006-02-07  Mike Kestner  <mkestner@novell.com>
3174
3175         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
3176         to the instance itself.
3177
3178 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3179
3180         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3181           on ulongs and pointers, the size differs between 32bit and 64bit
3182           systems. 
3183
3184 2006-02-07  Mike Kestner  <mkestner@novell.com>
3185
3186         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3187         for 64 bit platforms to work around a metacity bug. 
3188
3189 2006-02-07  Jackson Harper  <jackson@ximian.com>
3190
3191         * TrackBar.cs: Process the input keys we need, and hookup to
3192         KeyDown instead of using WndProc, so we get key messages.
3193
3194 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3195
3196         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3197           machine we're on. 
3198         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3199           we need to translate the XdndVersion atoms array before sending it
3200
3201 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
3202
3203         * XplatUIX11.cs: 
3204           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
3205             number of bits for the property, not the number of bytes. The
3206             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
3207             but would not crash since it specified 8 bits instead of 4 bits)
3208           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
3209             defined as XID -> long in the C headers)
3210           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
3211             references since those are now IntPtr to begin with
3212           - Switched all Atom.XXX 'int' casts to IntPtr casts
3213           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
3214           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
3215           - Added XChangeActivePointerGrab DllImport (for X11DnD)
3216         * X11Structs.cs:
3217           - Changed 'int' type for Atoms in XEvent structures to IntPtr
3218           - Changed atom in HoverStruct to be IntPtr
3219         * X11DnD.cs:
3220           - Removed local DllImports, switched code to use those from XplatUIX11
3221           - Removed/fixed casts related to the switch of Atom to be a IntPtr
3222
3223 2006-02-06  Mike Kestner  <mkestner@novell.com>
3224
3225         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
3226         method signatures in the import region.  There may still be some
3227         lingering struct marshaling issues, as I didn't drill down into those.
3228         Yet.
3229
3230 2006-02-06  Jackson Harper  <jackson@ximian.com>
3231
3232         * ComboBox.cs: Dont manually set the top_item, this is computed
3233         when the scrollbar position is set.
3234
3235 2006-02-06  Mike Kestner  <mkestner@novell.com>
3236
3237         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
3238         startup crashes on amd64.  There's other fixes needed.  All pinvoke
3239         usage of Atom needs to be mapped to IntPtr for example.  And there are
3240         likely other int/long issues to be addressed.
3241
3242 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
3243
3244         * FileDialog.cs: One more...
3245
3246 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3247
3248         * FileDialog.cs: Next try
3249
3250 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3251
3252         * FileDialog.cs: First part of fix for #77464
3253
3254 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3255
3256         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
3257           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
3258           AcceptButton border drawing.
3259
3260 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
3261
3262         * Form.cs: Moved positioning of form after auto scaling is applied,
3263           otherwise it would possibly use wrong form size.
3264
3265 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
3266
3267         * Control.cs (RecreateHandle): No need to re-create any child
3268           controls, the child windows will get destroyed automatically by
3269           the windowing system or driver, and re-created when the handle
3270           is being accessed the first time. Fixes #77456
3271         * Form.cs: No longer setting the form to closing if the handle is 
3272           being recreated. This seems like the right thing to do, don't
3273           have a bug or testcase for this, though.
3274
3275 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3276
3277         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
3278           controls to avoid unwanted side effects
3279
3280 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
3281
3282         * Control.cs: 
3283           - ScaleCore needs to scale the bounds, not the ClientSize of the 
3284             control. Fixes #77416.
3285           - DefaultSize is 0,0 for control
3286         * TextBoxBase.cs: 
3287           - DefaultSize is 100, 20
3288           - SetBoundsCore: Now enforcing the height, no matter if the provided
3289             height is more or less than the preferred one, as long as AutoSize
3290             is on
3291         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3292
3293 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3294
3295         * Control.cs:
3296           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3297             call unless both performLayout is true *and* we have a pending
3298             layout change
3299           - ResumeLayout: MS does not completely nest Suspend and Resume,
3300             they bottom out at 0, fixed our code to match that.
3301           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3302             SetBoundsCore, we were updating even when we shouldn't. This fixes
3303             swf-anchors mis-anchoring when resizing the app fast and lots.
3304           - UpdateDistances: Now only setting the left and top distance if 
3305             we have a parent and are not suspended, this is based on
3306             a suggestion by Don Edvaldson in bug #77355.
3307           - OnVisibleChanged: Fixed logic when to create the control. We may
3308             not create the control if we have no parent or if it's not visible;
3309             switched to using Visible property instead of is_visible field 
3310             since the property also considers parent states. This fixes a bug
3311             when starting Paint.Net
3312
3313 2006-02-02  Jackson Harper  <jackson@ximian.com>
3314
3315         * Form.cs: If the forms handle hasn't been created yet don't call
3316         into xplatui to make it top most, just set the topmost flag on the
3317         form in CreateParams
3318         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3319
3320 2006-02-01  Jackson Harper  <jackson@ximian.com>
3321
3322         * ScrollableControl.cs: Refactored the Recalculate method a
3323         little, this wasn't handling all the variants of bottom and right
3324         bars needed to be added and added/removed based on their
3325         counterparts being added/removed (which changes the drawable
3326         size). Also we special case client widths and heights of 0 and
3327         don't add the scrollbar for those.
3328
3329 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3330
3331         * XplatUIX11.cs: 
3332           - Added method to get AbsoluteGeometry(); currently unused, but might
3333             be used in the future, if we try again to figure out toplevel
3334             coordinates with some more crappy window managers
3335           - Added FrameExtents() method to retrieve the WM set decoration size
3336           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3337             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3338         * Hwnd.cs: 
3339           - Added whacky_wm tracking var for metacity
3340           - Added logic to have default menu height if the actual menu height
3341             has not yet been calculated (part of fix for #77426)
3342         * Form.cs: Keep track whether client size has been set and re-set 
3343           it if a menu is added/removed afterwards (Fixes #77426)
3344
3345 2006-01-31  Jackson Harper  <jackson@ximian.com>
3346
3347         * Control.cs: When a new Site is set on the component attempt to
3348         pull the AmbientProperties from it.
3349
3350 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3351
3352         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3353           in the background of the owning form. Fixes #77332
3354
3355 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3356
3357         * MimeIcon.cs: Fix for #77409
3358
3359 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3360
3361         * XplatUIX11GTK.cs: Initial import
3362
3363 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3364
3365         * FixedSizeTextBox: fixes class signature
3366
3367 2006-01-30  Jackson Harper  <jackson@ximian.com>
3368
3369         * FixedSizeTextBox.cs: New internal class that represents a
3370         textBox that will not be scaled.
3371         * TreeView.cs:
3372         * ComboBox.cs:
3373         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3374         standard TextBox.
3375                 
3376 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3377
3378         * XplatUIX11.cs: Retrieve default screen number instead of
3379           assuming 0. Attempted fix for #77318
3380
3381 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3382
3383         * XplatUIWin32.cs: 
3384           - GetWindowPos: When a window is parented by FosterParent, use 
3385             the desktop instead of FosterParent as the base to get coordinates
3386           - CreateWindow: Don't make FosterParent the parent window for Popups
3387             if we don't want a taskbar entry, Popups automatically don't get one
3388         * Hwnd.cs: Need to call remove to actually remove the key from the
3389           hash table
3390
3391 2006-01-30  Mike Kestner  <mkestner@novell.com>
3392
3393         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3394
3395 2006-01-30  Jackson Harper  <jackson@ximian.com>
3396
3397         * TreeView.cs:
3398         * TreeNode.cs: Raise events no matter how the treenode is
3399         checked. Patch by Don Edvalson.
3400
3401 2006-01-30  Jackson Harper  <jackson@ximian.com>
3402
3403         * TreeNode.cs: Signature fix.
3404
3405 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3406
3407         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3408
3409 2006-01-20  Mike Kestner  <mkestner@novell.com>
3410
3411         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3412         event forwarding when menus are active.
3413         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3414         Most of the patch is pdb's with a little rework.
3415
3416 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3417
3418         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3419           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3420           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3421         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3422         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3423           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3424           the PaintWindowDecorations method
3425         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3426         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3427         * MenuAPI.cs: Made tracker window invisible
3428         * XplatUIWin32.cs:
3429           - Removed GetMenuDC and ReleaseMenuDC methods
3430           - Implemented the client=false path for PaintEventStart and
3431             PaintEventEnd
3432
3433 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3434
3435         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3436         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3437           styles
3438         * Form.cs: 
3439           - MaximizeBox, MinimizeBox: Recreate the handle when setting
3440             the style
3441           - CreateParams: Reworked the styles to match MS look'n'feel,
3442             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3443             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3444
3445 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3446
3447         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
3448           window is not mapped, since otherwise every form that's being 
3449           created is considered minimized, which is wrong.
3450         * Form.cs: Catching the exception and returning our internal value
3451           instead
3452
3453 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3454
3455         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3456           SetWindowMinMax() to have means to tell the driver about the minimum,
3457           maximum and maximized state window sizes. (Part of the fix for #76485)
3458         * Form.cs:
3459           - Implemented tracking of minimum and maximum window size, now calling
3460             new SetWindowMinMax() driver method to tell the driver (Part of the
3461             fix for #76485)
3462           - Finished handling of WM_GETMINMAXINFO method, now setting all values
3463             (Completes fix for #76485)
3464           - Calling new SetWindowMinMax driver method when the handle for a 
3465             form is created, to make sure the driver knows about it even if
3466             the values have been set before the window was created
3467           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3468             to avoid messing up our anchoring calculations (partial fix
3469             for #77355)
3470         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3471         * XplatUIX11.cs:
3472           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3473           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
3474             (and presumably other freedesktop.org compliant WMs). Left the
3475             assumption unmapped=minimized, needed for SetVisible to work.
3476           - Now setting the window state when creating windows
3477           - Fixed SetVisible to consider/set the window state when mapping
3478             a Form. We cannot set the state before it's mapped, and we cannot
3479             use Form.WindowState once it's mapped (since it would ask the
3480             driver and get 'normal'. Therefore, we grab the state before
3481             mapping, map, and then set state.
3482           - Implmemented SetWindowMinMax method; Metacity does not seem to
3483             honor the ZoomHints, though.
3484         * XplatUIWin32.cs:
3485           - Removed MINMAXINFO (moved to XplatUIStructs)
3486           - Added SetWindowMinMax stub (on Win32 the only way to set that
3487             information is in response to the WM_GETMINMAXINFO message, which
3488             is handled in Form.cs)
3489           - Added logic to SetVisible to set the proper window state when a 
3490             form is made visible (fixes #75720)
3491
3492 2006-01-26  Jackson Harper  <jackson@ximian.com>
3493
3494         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3495         same way we handle them with Invoke.
3496
3497 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
3498
3499         * Form.cs:
3500           - Added tracking of window state so CreateParams can return
3501             the appropriate style
3502           - Moved setting of WS_CAPTION style in CreateParams to allow
3503             styles without caption
3504         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3505           control if the TextBox property is accessed. Fixes #77345
3506         * Control.cs:
3507           - get_Created: now uses is_disposed and is_created to determine
3508             return value (suggested by Jackson)
3509           - CreateHandle: No longer exits if the handle is being recreated
3510           - RecreateHandle: If the handle is not yet created call the 
3511             appropriate method to create either control or handle. If the
3512             control is already created CreateHandle will simply exit instead
3513             of just creating the handle
3514         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3515           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3516           is called.
3517         * XplatUIX11.cs: 
3518           - When DestroyWindow is called, instead of waiting for the 
3519             DestroyNotification from X11, we directly post it to the WndProc
3520             and immediately dispose the hwnd object.
3521             Same applies to DestroyChildWindows, and this obsoletes the
3522             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3523             child windows before our own, to avoid X11 errors.
3524           - Removed the direct sending of WM_PAINT on UpdateWindow
3525         * XplatUIWin32.cs:
3526           - Reworked DoEvents and GetMessage to allow access to internal queue
3527             even when trying non-blocking access to the queue.  Fixes #77335. 
3528             Based on a patch suggestion by Don Edvalson. The new private
3529             GetMessage can now also be used as a backend for a PeekMessage
3530             frontend version.
3531         * XplatUI.cs: Improved debug output for CreateWindow
3532
3533 2006-01-25  Jackson Harper  <jackson@ximian.com>
3534
3535         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3536
3537 2006-01-24  Jackson Harper  <jackson@ximian.com>
3538
3539         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3540         when we have a MaxDropItems lower then the selected index.
3541
3542 2006-01-24  Jackson Harper  <jackson@ximian.com>
3543
3544         * Control.cs: Don't allow selection of non visible controls, allow
3545         selection of controls without parents.
3546
3547 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3548
3549         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3550         * DataGridDrawingLogic.cs: Add editing row only when is necessary
3551
3552 2006-01-23  Jackson Harper  <jackson@ximian.com>
3553
3554         * UpDownBase.cs: Make the textbox handle all the selection and
3555         tabbing. This fixes tabing to updown controls.
3556
3557 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3558
3559         * TextBoxBase.cs: fixes exception thown the object was null
3560
3561 2006-01-23  Jackson Harper  <jackson@ximian.com>
3562
3563         * ButtonBase.cs: Just use the base CreateParams. They set
3564         visibility and enabled correctly.
3565         * ComboBox.cs:
3566         * TrackBar.cs:
3567         * MonthCalendar.cs: Lets let the base set as much of the
3568         createparams as possible so we don't have duplicate code all over
3569         the place.
3570
3571 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
3572
3573         * ThemeGtk.cs: Added TrackBar and some experimental code to
3574           get double buffering back
3575
3576 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3577
3578         * DataGrid.cs: Allows row number set internally higher than the last
3579         when creating a new row. Restores the editing functionality.
3580
3581 2006-01-20  Mike Kestner  <mkestner@novell.com>
3582
3583         * MimeIcon.cs: delay Image creation until the icons are accessed
3584         instead of creating 190 scaled images on GnomeHandler startup.
3585
3586 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
3587
3588         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3589           first call base before processing the event. Fixes #77279
3590
3591 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
3592
3593         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3594           that the stride for the GDI bitmap would match the stride of
3595           a DIB or a Cursor.
3596
3597 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
3598
3599         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3600
3601 2006-01-19  Jackson Harper  <jackson@ximian.com>
3602
3603         * ComboBox.cs: Hookup the text controls keydown event so we get
3604         those when the text control has the focus.
3605
3606 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3607
3608         * Label.cs: Now using the base events instead of defining new ones;
3609           this allows us to just call the base properties without having to
3610           duplicate all base property logic 
3611
3612 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3613
3614         * Label.cs: A label by default is not a tabstop (Fixes one of our
3615           failing nunit tests)
3616
3617 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3618
3619         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3620         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3621
3622 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3623
3624         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3625           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3626           This fixes #77218
3627         * XplatUIWin32.cs: 
3628           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3629             constructor creates images that can't be saved. Part of the fix
3630             for #76103
3631           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3632           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3633             bug fix for handling window state in forms properly)
3634
3635 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3636
3637         * ThemeGtk.cs: Simplify ScrollBar drawing
3638
3639 2006-01-18  Jackson Harper  <jackson@ximian.com>
3640
3641         * Splitter.cs: Set the default dock style for the splitter control
3642         in the constructor.
3643
3644 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3645
3646         * ThemeGtk.cs: Corrected StateType and ShadowType for
3647           gtk_paint_box
3648
3649 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3650
3651         * Control.cs: Make use of Theme.DoubleBufferingSupported
3652         * ThemeGtk.cs:
3653           - Added drawing for flat style buttons
3654           - Added ScrollBar drawing
3655
3656 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3657
3658         * ThemeClearlooks.cs: Removed some unneeded code.
3659         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3660
3661 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3662
3663         * LinkLabel.cs: We need to update the hover drawing when
3664           leaving the control as well.
3665
3666 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3667
3668         * DataGrid.cs: Clicking on non empty areas in the columns
3669            area was giving an exception
3670
3671 2006-01-17  Jackson Harper  <jackson@ximian.com>
3672
3673         * ThemeWin32Classic.cs:
3674         * ListView.cs: Do not draw/clip the headers when the header style
3675         is None.
3676
3677 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3678
3679         * DataGrid.cs: Fixes 77260
3680         
3681 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3682
3683         * DataGrid.cs: Clicking on a column on a empty grid was giving
3684           an exception
3685
3686 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3687
3688         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3689           or any keypress will crash the grid.
3690
3691 2006-01-17  Mike Kestner  <mkestner@novell.com>
3692
3693         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3694         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3695         invisible/previously-visible items.
3696         [Fixes #76909]
3697
3698 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3699
3700         * ThemeClearlooks.cs:
3701         - Added CL_Draw_Button method; now other theme controls that are 
3702           not derived from button or do not have a button can draw buttons
3703           too
3704         - Updated ComboBox drawing
3705         - Beautified RadioButton drawing
3706         - Corrected drawing of bottom and left tabs
3707         - Beautified DateTimePicker and MonthCalendar
3708         - Added CPDrawButton and CPDrawRadioButton
3709
3710 2006-01-16  Jackson Harper  <jackson@ximian.com>
3711
3712         * ComboBox.cs: Set the initial value of the scrollbar to the
3713         current index. Reduce the numbers of refreshs and IndexOfs called.
3714
3715 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3716
3717         * FileDialog.cs: When the file listview is focused hitting the
3718           backspace key moves the fileview to the parent directory
3719
3720 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3721
3722         * Form.cs: 
3723           - Added RecreateHandle call when changing taskbar visibility to 
3724             trigger reparenting in Win32 driver (Fixes #75719)
3725           - If a window has minimize or maximize buttons, it cannot have
3726             a help button
3727         * XplatUIWin32.cs:
3728           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3729             the toplevel form with FosterParent (A toolwindow not on the
3730             taskbar) (Fixes #75719)
3731           - Made FosterParent a toolwindow
3732
3733 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3734
3735         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3736
3737 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3738
3739         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3740           is currently over that control, make sure that tooltip_window.Text
3741           gets updated
3742
3743 2006-01-13  Mike Kestner  <mkestner@novell.com>
3744
3745         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3746
3747 2006-01-13  Jackson Harper  <jackson@ximian.com>
3748
3749         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3750         value passed.  Also redraw the selected node when we recieve
3751         focus, so tabbing between trees works correctly.
3752
3753 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3754
3755         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3756           ~/.gconf/%gconf-tree.xml, so use
3757           .gconf/desktop/gnome/interface/%gconf.xml
3758
3759 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3760
3761         * TextControl.cs: Draw text in gray if control is disabled
3762
3763 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3764
3765         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3766           make sure it's always visible. Fixes #76680.
3767
3768 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3769
3770         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3771
3772 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3773
3774         * PageSetupDialog.cs: Added.
3775         * PrintDialog.cs: Attributes.
3776         * PrintPreviewControl.cs: Updates.
3777         * PrintPreviewDialog.cs: Updates.
3778         
3779 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3780
3781         * Control.cs: Undid my selection check fix, since it's not needed
3782         * TextBoxBase.cs:
3783           - Now considering the presence of hscroll/vscroll when sizing
3784             vscroll/hscroll respectively. Fixed bug #77077
3785           - Added Left/Up/Down/Right to IsInputKey list to prevent
3786             ContainerControl from stealing them. This fixes what I broke
3787             with my last checkin.
3788
3789 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3790
3791         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3792           I finally understand how the property can be set without a setter :-)
3793
3794 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3795
3796         * Application.cs:
3797           - Switched RunLoop to use static Message.Create to create a 
3798             Message object
3799           - Added PreProcessMessage call in runloop for keyboard events; this
3800             is part of the fix for #77219, I overlooked this originally in the
3801             MSDN doc for PreProcessMessage
3802         * Control.cs:
3803           - Removed call to PreProcessMessage from handling of keyboard 
3804             messages; it's supposed to be done in the message pump
3805           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3806             per MSDN documentation.
3807           - IsInputChar: All chars are input chars by default; removed the 
3808             parent calling chain, MS does not document that
3809           - PreProcessMessage: If IsInputChar is true, we want to return false
3810             to allow dispatching of the message
3811           - When selecting the next control, now also check that we're not
3812             selecting ourselves again and therefore return a false positive.
3813         * TextBoxBase.cs:
3814           - Tried to match return values for IsInputKey and ProcessDialogKey
3815             to what MS returns; moved processing of our special keys outside
3816             ProcessDialogKey since MS does not seem to return true on those.
3817           - Moved code that previously was in ProcessDialogKey into new private
3818             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3819           - Reworked handling of WM_CHAR to not have to duplicate code from
3820             Control.cs anymore, instead we simply call down to base.
3821            
3822 2006-01-12  Jackson Harper  <jackson@ximian.com>
3823
3824         * ComboBox.cs: We always need to refresh the text area when
3825         EndUpdate is called. Fixes the combobox in the file dialog.
3826         * Control.cs: Don't create the creator_thread until the controls
3827         handle is created.  Also in InvokeRequired we check if the
3828         creator_thread is null. This gives the effect of InvokeRequired
3829         returning true if the controls handle is not created yet, and
3830         matches MS.
3831
3832 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3833
3834         * XplatUI.cs:
3835           - Added StartLoop() driver method. This is used to allow drivers to
3836             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3837             loop for a particular thread
3838           - Added EndLoop() driver method. This is called once the message
3839             pump for the thread is shut down
3840           - Added SupportsTransparency method to allow the driver to indicate
3841             opacity support for windows
3842         * Form.cs:
3843           - Removed TODO attribute, completed AllowTransparency property
3844           - Added documented logic to Opacity
3845         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3846           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3847           versions of CompatibleTextRendering
3848         * X11Structs.cs: Added opacity atom to our atom enumeration
3849         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3850           of a form might be set before it's reparented by the WM, and we need
3851           the opacity value without calling up to Form)
3852         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3853           SupportsTransparency() driver methods
3854         * Application.cs: Now calling StartLoop and EndLoop driver methods
3855         * XplatUIX11.cs:
3856           - Added opacity atom registration
3857           - Added StartLoop()/EndLoop() methods. They're empty right now but
3858             will need to get implemented when we switch to a per-thread queue
3859           - Implemented SupportsTransparency() method
3860           - Implemented SetWindowTransparency() method
3861           - Added support for setting the opacity value when a window is
3862             reparented (since the opacity needs to be set on the WM frame)
3863         * XplatUIOSX.cs, XplatUIWin32.cs:
3864           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3865
3866 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3867
3868         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3869
3870 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3871
3872         * FileDialog.cs: Added ToolTip for MWFFileView
3873         * MimeIcon.cs: Rewrote GnomeHandler.
3874           - Get currently used gnome icon theme from
3875             ($HOME)/.gconf/%gconf-tree.xml
3876           - Make use of inherited icon themes
3877           - Support SVG icon themes like Tango via librsvg
3878
3879 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3880
3881         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3882         builds. 
3883         
3884         * Application.cs: Move the use_compatible_text_rendering outside
3885         the NET_2_0 define.  If we ever need to use the
3886         use_compatible_text_rendering on the individual controls they will
3887         access the variable from the common shared code paths.
3888
3889 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3890
3891         * XplatUI.cs:
3892           - Added more granular debug options
3893           - Added method to print both window text and id
3894           - Switched debug output to use new Window() debug method
3895           - Added IsEnabled() driver method
3896           - Added EnableWindow() driver method
3897         * Form.cs:
3898           - Removed end_modal; no longer needed, new loop handles termination
3899             via 'closing' variable
3900           - If form is modal, setting DialogResult will now initiate loop
3901             termination via 'closing' variable
3902           - Added support for is_enabled/WS_DISABLED to CreateParams
3903           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3904             does all the work
3905           - Removed code that's now in RunLoop from ShowDialog()
3906           - Added various documented sanity checks to ShowDialog()
3907           - Added handling of WM_DESTROY message; we set 'closing' on getting
3908             the message to indicate the message pump to terminate
3909           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3910             send by the Application.ExitThread method. (We send the message
3911             to destroy the window after all other events have been
3912             processed through the queue, instead of destroying the handle 
3913             directly)
3914           - Moved code from Close() method to WM_CLOSE handler; added logic
3915             to only send close-related events if the form is not displayed
3916             modal
3917         * Splitter.cs (..ctor): Fixed typo in resource name
3918         * Control.cs:
3919           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3920             brush now
3921           - set_Cursor: Now only setting calling into XplatUI if the handle for
3922             the control is already created; this avoids implict handle creation
3923             or crashes if it's not created
3924           - set_Enabled: Now setting the enabled state via the new driver method
3925             instead of just tracking it
3926           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3927           - CreateControl: Reordered event firing and method calls to more
3928             closely fire events in the order MS does. Now setting the
3929             enabled state in the driver when creating the control.
3930           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3931             match MS order
3932         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3933           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3934         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3935         * Hwnd.cs:
3936           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3937           - Added EnabledHwnd property to easily allow a driver to find the
3938             handle of the first enabled window in the parent chain (this is
3939             used by drivers to pass up input events of disabled windows)
3940         * XplatUIDriver.cs: Added IsEnabled() method
3941         * Application.cs:
3942           - Removed crude and obsolete exiting tracking variable
3943           - Removed internal ModalRun(); replaced by RunLoop()
3944           - Implemented private CloseForms() method to allow closing all 
3945             windows owned by a particular (or all) threads
3946           - Exit() now properly closes all windows without forcing the message
3947             pump to quit
3948           - Removed obsolete InternalExit() method
3949           - Changed Run() methods to use new RunLoop() message pump
3950           - Implemented new RunLoop() method for both modal and non-modal forms
3951         * CommonDialog.cs:
3952           - get_CreateParams: Added setting of WS_DISABLED
3953           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3954             invoked via Form.ShowDialog()
3955         * NativeWindow.cs: We don't remove the window from the collection when
3956           the handle is destroyed; there might still be messages for it in the
3957           queue (mainly the resulting WM_DESTROY); instead it will be removed
3958           when Control calls InvalidateHandle in the WM_DESTROY handler
3959         * XplatUIX11.cs:
3960           - CreateWindow: Added logic to handle the WS_DISABLED window style
3961           - EnableWindow: Implemented based on Hwnd.Enabled
3962           - GetMessage: Reset PostQuitState so the method can be called again
3963           - Implemented support for disabled windows (passing messages to the
3964             first enabled parent) in handling all input messages
3965           - Added optimizations for handling Expose events
3966           - Implemeted new driver method IsEnabled()
3967           - Now always resetting paint pending tracking vars when we start paint
3968           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3969         * XplatUIOSX.cs: Added IsEnabled method stub
3970         * XplatUIWin32.cs: Implemented new IsEnabled() method
3971
3972 2006-01-11  Jackson Harper  <jackson@ximian.com>
3973
3974         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3975         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3976         variables a little.
3977         * ColorDialog.cs: Clear out the old form before adding the new
3978         panel.  
3979
3980 2006-01-11  Jackson Harper  <jackson@ximian.com>
3981
3982         * X11Dnd.cs: Make sure to add all the text formats when adding
3983         strings to the data object.
3984         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3985         do some redrawing too.  Also change the UpdateNode to an
3986         UpdateBelow so the newly added node gets painted.
3987         
3988 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3989
3990         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3991         LinkLabel.cs, PropertyGrid.cs: Implement the
3992         UseCompatibleTextRendering property for 2.x
3993
3994         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3995
3996 2006-01-11  Jackson Harper  <jackson@ximian.com>
3997
3998         * TreeView.cs: Use the property for setting the selected node so
3999         the correct events get raised.
4000         * TreeNode.cs: Update the tree when the fore/back colours of a
4001         node are set.
4002
4003 2006-01-10  Jackson Harper  <jackson@ximian.com>
4004
4005         * TreeView.cs: Allow setting SelectedNode to null.
4006
4007 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4008
4009         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
4010
4011 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4012
4013         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
4014
4015 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4016
4017         * PrintDialog.cs: Added attributes and set default property values.
4018
4019 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4020
4021         * PrintControllerWithStatusDialog.cs: 
4022         Added PrintControllerWithStatusDialog.
4023
4024 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4025
4026         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
4027         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
4028
4029 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
4030
4031         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
4032
4033 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
4034
4035         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
4036         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
4037
4038 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4039
4040         * MimeIcon.cs: Added internal class SVGUtil.
4041
4042 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4043
4044         * FileDialog.cs: Don't crash if there are two files with the
4045           same name but different locations.
4046
4047 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
4048
4049         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
4050         dates across multiple month grids. Used to not highlight entire 
4051         month, but does now.
4052         
4053 2006-01-06  Jackson Harper  <jackson@ximian.com>
4054
4055         * MonthCalendar.cs: Removed DoEvents call to prevent a running
4056         message loop. Change timer intervals to numbers that seem more
4057         natural.
4058
4059 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
4060
4061         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
4062           object for location info since screen object is now implemented.
4063
4064 2006-01-05  Jackson Harper  <jackson@ximian.com>
4065
4066         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
4067         * AsyncMethodResult.cs: We no longer use a WeakReference for the
4068         AsyncMethodResult, this is because we ALWAYS want the
4069         ManualResetEvent to get set.
4070         * Control.cs: When disposing use an async invoke to call shutdown
4071         code, so that thigns don't block on the finalizer thread.  Also
4072         check if we even have a message loop before trying to send
4073         messages, if we don't then don't bother sending messages.
4074         - No more weak references for async methods
4075         * XplatUIDriver.cs: No more weak references for async methods.
4076
4077 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4078
4079         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
4080           returns two FontFamily with the same name
4081
4082 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4083
4084         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
4085           drawing disabled text. Instead using the ColorGrayText color
4086
4087 2006-01-04  Jackson Harper  <jackson@ximian.com>
4088
4089         * TreeNode.cs: redraw the node when its image index is changed.
4090
4091 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4092
4093         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
4094           time I checked there are no others like it.
4095
4096 2006-01-04  Jackson Harper  <jackson@ximian.com>
4097
4098         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
4099         this gives the behavoir I was looking for.
4100         * Control.cs: Special case Invoking EventHandlers, this matches MS
4101         and fixes part of bug #76326.
4102
4103 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4104
4105         * ThemeClearlooks.cs, FileDialog.cs:
4106           - Reflect the latest Theme class changes
4107           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
4108             with DateTime
4109             
4110 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4111
4112         * Theme.cs: Cache UI resource images and resize them if needed
4113
4114 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4115
4116         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
4117           is called. This fixes the crash in Nexxia when setting the font
4118           attributes in the chat. [However, RTF needs a look-over to make sure
4119           that all SelectionXXX methods handle the special case that selection
4120           is empty and therefore the change must be applied to all text starting
4121           at the cursor/selection start]
4122
4123 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
4124
4125         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4126           XplatUIOSX.cs: Added SendMessage and PostMessage methods
4127         * X11Keyboard.cs: Switched to new way of calling PostMessage
4128
4129 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4130
4131         * Theme.cs: Added theme interface for images to allow the theme to
4132           control what images are used for things like FileDialog, MessageBox
4133           icons, etc.
4134         * MessageBox.cs: Now uses the new Theme icon/image interfaces
4135
4136 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
4137
4138         * FileDialog.cs:
4139           - Removed some dead code
4140           - Opening a recently used file does work now
4141           - Small UI enhancements
4142           - Refactoring
4143
4144 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4145
4146         * FileDialog.cs: Forgot too add __MonoCS__
4147
4148 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4149
4150         * FileDialog.cs: We are able to read recently used files now let's
4151           go on and write them.
4152
4153 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
4154
4155         * FileDialog.cs: Breathe some life into "last open"/"recently used"
4156           button
4157         * MimeIcon.cs: Do a check for the top level media type also
4158
4159 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4160
4161         * ThemeClearlooks.cs:
4162           - Added CPDrawStringDisabled
4163           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
4164             some chars if the text doesn't fit into text_rect
4165           - DrawListViewItem: If View = View.LargeIcon center the image;
4166             rewrote the drawing of ListViewItem.Text if View = 
4167             View.LargeIcon
4168
4169 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4170
4171         * MimeIcon.cs: Use default KDE icon theme if there is no
4172           "48x48" directory for the current icon theme, fixes #77114
4173         * Mime.cs: Disable not working and actually not used code. 
4174         * ThemeWin32Classic.cs:
4175           - Replace "new SolidBrush" in GetControlBackBrush and
4176             GetControlForeBrush with ResPool.GetSolidBrush
4177           - Changed DrawListViewItem from private to protected virtual
4178         * FileDialog.cs:
4179           - Added form.MaximizeBox = true
4180           - Don't throw an exception if there is a broken symbolic link
4181
4182 2005-12-23  Jackson Harper  <jackson@ximian.com>
4183
4184         * TabControl.cs: Give the panels focus, keyboard navigation is
4185         fixed so this works correctly now.
4186         - We need these key events also.
4187         * ToolBar.cs: Remove some of the poor mans double buffering.
4188         
4189 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4190
4191         * ComboBox.cs: The internal TextBox now returns the focus.
4192
4193 2005-12-23  Jackson Harper  <jackson@ximian.com>
4194
4195         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4196
4197 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4198
4199         * Control.cs: Removed debug code
4200         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
4201           implicit children
4202
4203 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
4204
4205         * Control.cs: When creating the control, update the Z-order after
4206           all it's children are created, too. (Fixes nexxia not showing
4207           picturebox bug)
4208
4209 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4210
4211         * Control.cs: Do not update the anchoring distances if layout is
4212           suspended, instead do it once layout is resumed
4213
4214 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
4215
4216         * Control.cs: 
4217           - After many hours of debugging, for both Jackson and
4218             myself, it turns out that it helps to set the parent of a control
4219             if you want to actually see it onscreen. In the spirit of that
4220             discovery, we're now setting the parent of the control and
4221             it's children when the control's handle is created. This fix
4222             will make Lutz Roeder's Reflector run happily. 
4223           - now just creating the handle instead of the whole control when
4224             getting a graphics context for the control.
4225
4226 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4227
4228         * ScrollableControl.cs: When calculating the canvas, don't consider
4229           the scrollbar widths. Instead, predict if horizontal scrollbar
4230           will affect canvas when deciding on vertical display and vice versa.
4231
4232 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4233
4234         * RichTextBox.cs: Set default RTF font for documents that don't
4235           have a font table (Fixes #77076)
4236
4237 2005-12-22  Jackson Harper  <jackson@ximian.com>
4238
4239         * TextBoxBase.cs: It's difficult to do, but you can have an empty
4240         clipboard. This prevents a NullRef in that case.
4241         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
4242         clipboard. PRIMARY is for the currently selected text only. (We
4243         should implement PRIMARY at some point.
4244
4245 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4246
4247         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
4248           a Unicode function with a structure that was defined in Ansi way.
4249           This fixes #76942.
4250
4251 2005-12-21  Jackson Harper  <jackson@ximian.com>
4252
4253         * StatusBar.cs: Statusbar handles its fore/back colours on it's
4254         on. Because thats how it rolls. (and this avoids it using ambient
4255         colours).
4256         * ThemeWin32Classic.cs: Use the proper back color for filling.
4257         * Menu.cs: Use the system menu bar color for drawing menu
4258         bars. Using the window back color will bring ambient colours into
4259         the picture.
4260
4261 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
4262
4263         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
4264           Bitmaps were created and not disposed.
4265
4266 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4267
4268         * Control.cs (CreateControl): Don't do anything if the control is
4269           already created, otherwise we'd fire the OnCreated event more than
4270           once
4271
4272 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4273
4274         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
4275           will always match. Instead return -1. Fixes #76464.
4276
4277 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4278
4279         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
4280           neither the beginning nor the end of the line (Fixes bug #76479)
4281
4282 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4283
4284         * Control.cs:
4285           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4286             where handle is invalid
4287           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4288             instead of slower linear search
4289         * NativeWindow.cs: Don't remove the window from the hashtable until
4290           after the driver has destroyed it (since the driver might use
4291           Control.FromHandle to lookup the control object
4292         * Hwnd.cs: Added DestroyPending property to track if a window is 
4293           already destroyed as far as the driver is concerned and only hasn't
4294           yet notified the control
4295         * XplatUIX11.cs:
4296           - Activate(): Check if the window is still valid before using the 
4297             handle
4298           - Implemented DestroyChildWindow() method to mark child windows as
4299             destroyed when a window is destroyed. This prevents situations 
4300             where we might call an X method based on queued events for a
4301             window that already has been destroyed but we haven't yet pulled
4302             the destroy method from the queue.
4303           - Added a call to the new DestroyChildWindow() method to the drivers
4304             DestroyWindow code. Also now marking the destroyed window itself
4305             as pending
4306
4307 2005-12-20  Jackson Harper  <jackson@ximian.com>
4308
4309         * StatusBar.cs:
4310         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4311         anymore. Just do them when needed, also track the rects of panels
4312         so that we can optimize refreshing more in the future.
4313
4314 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4315
4316         * ColorDialog.cs: Fixed focus drawing in small color controls
4317
4318 2005-12-19  Jackson Harper  <jackson@ximian.com>
4319
4320         * InternalWindowManager.cs:
4321         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4322         moving windows works properly.
4323
4324 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4325
4326         * Control.cs: 
4327           - Removed call to InitLayout() from SetBoundsCore(); doc says
4328             it's only called when a control is added to a container
4329           - Split InitLayout logic, moved to separate UpdateDistances() method
4330             since we need to perform those calculations more often than just
4331             when adding the control to a container. (Needed to fix #77022)
4332           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4333           - Reduced the OnBindingContextChanged events count, don't send them
4334             unless the control is created, we still aren't totally matching
4335             MS, but I can't quite figure out some of their rules
4336
4337 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4338
4339         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4340           stripes
4341
4342 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4343
4344         * ThemeClearlooks.cs:
4345           - Updated ProgressBar drawing
4346           - Corrected drawing of ScrollBars and scroll buttons
4347           - Some temporary fixes for minor pixel artefacts
4348
4349 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4350
4351         * Control.cs:
4352           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4353             cause events to be sent in the same order as MS does.
4354           - Added ChangeParent() method to trigger various OnXXXChanged events
4355             that need to be fired when a parent changes (This is a reworking
4356             of the patch from r54254, with the X11 errors fixed)
4357           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4358             since on MS we get OnLayoutChanged events when calling Clear()
4359           - Changed Enabled property to consider parent state as well, if a
4360             parent is not enabled, the control will not be either
4361           - Changed Parent property to simply call Controls.Add() since that
4362             now does all the work required, this way we avoid code duplication
4363           - Threw in a few OnBindingsContextChanged calls to try and match
4364             when MS sends them. We seem to send a few too many, though.
4365           - Added call to CreateControl when adding the control to a parent.
4366             We were never calling CreateControl. Still needs some work, in
4367             some places we treat HandleCreated and ControlCreated as equal, 
4368             which is wrong
4369           - Removed obsolete commented out code from UpdateZOrder()
4370
4371 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4372
4373         * ThemeClearlooks.cs: Updated TrackBar drawing.
4374
4375 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4376
4377         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4378
4379 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4380
4381         * FileDialog.cs: Add the Help button and the open readonly
4382           checkbox only if needed
4383
4384 2005-12-16  Jackson Harper  <jackson@ximian.com>
4385
4386         * Control.cs: Make sure we have an active menu before trying to
4387         process commands on it. Prevents menu-less forms from crashing
4388         when Alt is pressed.
4389         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4390         Dieter Bremes.
4391         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4392         2.0 build.
4393
4394 2005-12-16  Jackson Harper  <jackson@ximian.com>
4395
4396         * InternalWindowManager.cs: Don't translate tool windows screen
4397         coordinates. This fixes windows 'bouncing' around when being moved.
4398
4399 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4400
4401         * TextBoxBase.cs:
4402           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4403             not quite MS compatible, MS uses that number only for single line
4404             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4405             the limit at 2GB)
4406           - Now enforcing the MaxLength limit when entering characters
4407           - Added argument to internal Paste() method to track if it's called
4408             from programatically or via keyboard, since keyboard driven pastes
4409             need to enforce max-length
4410           - Added logic to Paste to only paste as many chars as MaxLength 
4411             allows
4412         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4413         * TextControl.cs:
4414           - Added Length property to return number of characters in document
4415           - Added private CharCount property which only tracks actual chars
4416             in the document (no linefeeds) and fires event when CharCount
4417             changes
4418           - Added tracking of character count to all methods that alter it
4419           - Added LengthChanged event to allow applications to subscribe
4420             to any changes to the document
4421
4422 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4423
4424         * TextBox.cs: 
4425           - Removed local password_char field (moved to TextBoxBase)
4426           - Now setting the document's password var when password is
4427             set
4428         * TextBoxBase.cs:
4429           - Added password_char field (needed here so MultiLine can
4430             access it)
4431           - Added logic to MultiLine property setter to set the document's
4432             variable when password display is allowed
4433           - Removed debug code and made some debug code conditional
4434         * TextControl.cs:
4435           - Added RecalculatePasswordLine() method to handle special password
4436             char only lines
4437           - Added PasswordChar property, also added related tracking vars
4438           - Draw() method now uses local text var for grabbing text to draw,
4439             this var is set to line.text unless we're doing password display,
4440             then it is set to the pre-generated all-password-chars line
4441           - Added calling RecalculatePasswordLine() method for password lines
4442
4443 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4444
4445         * Hwnd.cs: 
4446           - Added Reparented property to allow tracking of Window Manager
4447             reparenting actions (which affect X/Y calculations of toplevel 
4448             windows)
4449           - Made ToString() print window handles in hex
4450         * XplatUIX11.cs:
4451           - AddConfigureNotify(): Now uses reparented state off Hwnd to
4452             determine if X/Y needs offsetting
4453           - AddConfigureNotify(): Fixed offset calculations
4454           - Now adds ReparentNotify messages into the queue
4455           - Now processes ReparentNotify messages and causes a 
4456             WM_WINDOWPOSCHANGED message to be sent upstream if a window
4457             is reparented (as most likely it's X/Y coordinates are changed
4458             due to that)
4459
4460 2005-12-14  Jackson Harper  <jackson@ximian.com>
4461
4462         * XplatUIX11.cs: Tool windows still need to respek focus.
4463
4464 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4465
4466         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4467           have a working release
4468
4469 2005-12-13  Jackson Harper  <jackson@ximian.com>
4470
4471         * Form.cs: Update styles after setting the border style regardless
4472         of whether or not the window is using a window manager.
4473
4474 2005-12-13  Jackson Harper  <jackson@ximian.com>
4475
4476         * Form.cs: We now hook into an internal window manager instead of just an
4477         MDI subsystem, this is so we can have properly behaving tool windows.
4478         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4479         * InternalWindowManager.cs: New internal class that acts as a
4480         window manager for tool windows and as a base for mdi windows.
4481         * MdiWindowManager.cs: New class that acts as a window manager for
4482         mdi windows.
4483
4484 2005-12-12  Jackson Harper  <jackson@ximian.com>
4485
4486         * Control.cs: Updates so we match behavoir for for implicit
4487         controls. Fixes explosions in MDI.
4488
4489 2005-12-12  Jackson Harper  <jackson@ximian.com>
4490
4491         * Control.cs: Implement Invalidate (Region).
4492
4493 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
4494
4495         * Control.cs: 
4496           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
4497             the same events as MS does. MS fires events for each property 
4498             except, for unknown reasons, Cursor, when the control is reparented. 
4499             I can't seem to totally match add/remove since MS also fires some 
4500             VisibleChanged events, which makes no sense. Consolidated the
4501             parenting code into a separate method so it can be called from
4502             both Add and Remove. set_Parent no longer needs any special logic
4503             as it calls the parent's add method which implicitly fires
4504             all events
4505           - Removed some obsolete code and debug output
4506           - Enabled state is inherited from parents, if this is enabled
4507
4508 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4509
4510         * Form.cs: Removed commented out code
4511
4512 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4513
4514         * Control.cs:
4515           - Added internal version of Invoke, with additional argument 
4516             indicating if we're calling it from a Dispose() handler. That
4517             way we can avoid BeginInvoke throwing an exception if we're
4518             calling for an already destroyed window.
4519           - Added a dispose argument to BeginInvokeInternal, and made the
4520             check if a valid window handle chain exists conditional on
4521             it not being a dispose call
4522           - Removed code in DestroyHandle to destroy our children. Since we
4523             now handle the WM_DESTROY message we will catch all our children
4524             being destroyed.
4525           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4526         * Form.cs:
4527           - Added a field to track the application context of the form.
4528           - No need to set closing variable as response to WM_CLOSE, instead
4529             we destroy the window. We also call PostQuitMessage if the form
4530             has an application context (which makes it the main app form,
4531             which, when closed terminates the app)
4532         * XplatUI.cs:
4533           - Dropped Exit() method, it's naming was confusing
4534           - Added PostQuitMessage() which causes GetMessage to return false
4535             once the message queue is empty
4536         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4537           PostQuitMessage()
4538         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4539           no longer a valid XplatUI method, but left it in since it's used
4540           internally. Added empty PostQuitMessage() method.
4541         * MenuAPI.cs: Replaced call to Exit() with call to
4542           PostQuitMessage, even though this is probably no longer needed.
4543         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4544         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4545         * Application.cs:
4546           - Replaced call to XplatUI.Exit() with PostQuitMessage()
4547           - Removed old debug code that would call XplatUI for exception
4548             display, enabled standard exception handling (Still not enabled
4549             though, until NativeWindow's ExternalExceptionHandler define
4550             is removed
4551         * NativeWindow.cs:
4552           - Added internal method to allow control to update NativeWindow
4553             after a window has been destroyed
4554           - Added handling of already destroyed windows when calling i
4555             DestroyWindow
4556           - Added removal of handle from list on ReleaseHandle
4557         * XplatUIX11.cs:
4558           - Dropped GetMessageResult var and related code
4559           - Added PostQuitState to field to track if PostQuitMessage has been
4560             called
4561           - Dropped Exit() method
4562           - Added PostQuitMessage() method
4563           - GetMessage now will return false if PostQuitState is set and no
4564             more messages are in the queue.
4565           - Expose handler will no longer generate WM_PAINT messages if we are
4566             in PostQuitState since it's very likely any windows have already
4567             been destroyed, and since Hwnd won't get updated until we have
4568             processed the DestroyNotify we'd be causing X errors.
4569         
4570 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4571
4572         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4573           Thanks to Mike for pointing out the err of my ways.
4574
4575 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4576
4577         * Control.cs(PreProcessMessage): Moved menu handling back, but
4578           after all other key handling, to match MS (who handles Menu in
4579           DefWndProc)
4580         * Menu.cs (WndProc): Removed my brainfart
4581
4582 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4583
4584         * Control.cs(PreProcessMessage): Removed special menu handling 
4585         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4586
4587 2005-12-07  Mike Kestner  <mkestner@novell.com>
4588
4589         * Control.cs : special case SYSKEYUP so that we can adjust keynav
4590         state according in tracker.
4591         * Menu.cs : promote tracker field to base class and provide a tracker
4592         lookup capability.  Add/Remove shortcuts dynamically if the top menu
4593         has a tracker. Unparent items that are removed from the collection.
4594         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4595         * Theme*.cs: add always_show_hotkeys field to support configurability
4596         of mnemonic display.  win32 doesn't show mnemonics until Alt is
4597         pressed.
4598
4599 2005-12-07  Jackson Harper  <jackson@ximian.com>
4600
4601         * MdiChildContext.cs: Use Control.ResetCursor.
4602         * Control.cs: ResetCursor needs to set the property so that the
4603         correct XplatUI call gets made.
4604
4605 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4606
4607         * Control.cs: More fixes to make our key events match MS. We
4608           were not setting the modifier state on KeyData, and we were
4609           not generating any events when Alt was pressed with a key
4610           since handling of WM_SYSxxx was missing for the OnKey methods.
4611
4612 2005-12-07  Jackson Harper  <jackson@ximian.com>
4613
4614         * MdiChildContext.cs: reenable the sizing code.
4615         - When the mouse leaves a window reset its cursor.
4616
4617 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4618
4619         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4620
4621 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4622
4623         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4624           widths of Fixed3D borders
4625
4626 2005-12-07  Jackson Harper  <jackson@ximian.com>
4627
4628         * MdiClient.cs: Fix warnings. Earn Mike's love.
4629
4630 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4631
4632         * ThemeClearlooks.cs:
4633           - Adjusted mouse over button color
4634           - Added first parts of CheckBox drawing
4635           - Added correct color for selected text background
4636           - Fixed ComboBox drawing
4637           - Added CPDrawBorder3D and CPDrawBorder
4638
4639 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4640
4641         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4642
4643 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4644
4645         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4646           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4647           alert users via sound. We could add an enum arg with different
4648           types of alerts in the future
4649
4650 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4651
4652         * Control.cs: Fix behaviour problems pointed out by Mike
4653
4654 2005-12-05  Mike Kestner  <mkestner@novell.com>
4655
4656         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4657         prop setters.  Calls parent.Refresh for now, but could be maybe be
4658         optimized with an internal method on StatusBar at some point.
4659         [Fixes #76513]
4660
4661 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4662
4663         * RichTextBox.cs: Implemented get_SelectionColor
4664
4665 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4666
4667         * ThemeClearlooks.cs:
4668           - Removed dead code
4669           - Draw black button border only if button is Form.AcceptButton
4670           - Draw correct button color for pressed RadioButton if the mouse 
4671             has entered the button
4672           - Updated ProgressBar drawing!
4673           - Updated CPDrawSizeGrip drawing
4674           - Updated StatusBarPanel drawing
4675
4676 2005-12-05  Mike Kestner  <mkestner@novell.com>
4677
4678         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4679         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4680
4681 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4682
4683         * ThemeClearlooks.cs: Initial check-in, activate with
4684           export MONO_THEME=clearlooks
4685         * ThemeEngine.cs: Added ThemeClearlooks
4686
4687 2005-12-03  Mike Kestner  <mkestner@novell.com>
4688
4689         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4690         [Fixes #76897]
4691
4692 2005-12-02  Jackson Harper  <jackson@ximian.com>
4693
4694         * Form.cs: If the child form has no menu the default main menu is
4695         used as the active menu.
4696
4697 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4698
4699         * ListBox.cs: Check if any items exist before trying to resolve 
4700           coordinates into items
4701
4702 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4703
4704         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4705           as the second color for the background hatch
4706
4707 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4708
4709         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4710         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4711           sure that what we pass to FormatText is always 1-based. Fixes #76885
4712
4713 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4714
4715         * NumericUpDown.cs (EndInit): When we are done initializing,
4716         reflect any updates on the UI.
4717
4718 2005-12-02  Jackson Harper  <jackson@ximian.com>
4719
4720         * ImplicitHScrollBar.cs:
4721         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4722         their container controls.
4723         * TreeView.cs: Use the new implicit scrollbars.
4724
4725 2005-12-02  Jackson Harper  <jackson@ximian.com>
4726
4727         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4728         can play with it.
4729         * TreeNodeCollection.cs: If we remove the topnode we need to
4730         update topnode to the next node in line.
4731         - When clearing nodes go through the same process as removing
4732         them, so they get depareneted and checked if they are top node.
4733
4734 2005-12-01  Jackson Harper  <jackson@ximian.com>
4735
4736         * TreeView.cs: When imagelists are used the image area is
4737         selectable as well as the text.
4738         - If there are no selected nodes select the first one.
4739         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4740         so don't do it more then we need to.
4741
4742 2005-12-01  Jackson Harper  <jackson@ximian.com>
4743
4744         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4745         that arrows can be scaled.
4746
4747 2005-12-01  Jackson Harper  <jackson@ximian.com>
4748
4749         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4750         fail. Patch by Dieter Bremes
4751
4752 2005-11-30  Jackson Harper  <jackson@ximian.com>
4753
4754         * Form.cs: Property is 2.0 only
4755         * PrintDialog.cs: Signature fix.
4756
4757 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4758
4759         * TextControl.cs: 
4760           - No longer artificially moves text 2 pixels down (now that we have
4761             borders this is no longer needed)
4762           - Added calcs for left, hanging and right indent
4763
4764 2005-11-23  Mike Kestner  <mkestner@novell.com>
4765
4766         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4767
4768 2005-11-30  Jackson Harper  <jackson@ximian.com>
4769
4770         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4771         get cloned as part of CloneMenu ().
4772         * Menu.cs: Make sure the parent of the items get set correctly
4773         when they are added.  And the owners are notified of the changes.
4774         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4775         we can change the menu being displayed/handled by the form without
4776         changing the menu assosciated with the form.
4777         - Don't let Mdi children draw/handle menus.
4778         
4779 2005-11-30  Jackson Harper  <jackson@ximian.com>
4780
4781         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4782         a MenuChanged event. Just to make the API a little more
4783         consistent.
4784         * MainMenu.cs:
4785         * MenuItem.cs: Use the new OnMenuChanged
4786         * MdiChildContext.cs: Handle menu merging.
4787         * Form.cs: Implement MergedMenu.
4788         
4789 2005-11-30  Jackson Harper  <jackson@ximian.com>
4790
4791         * Menu.cs: We were misusing Add. Add goes behind the specified
4792         index according to the docs, and does not replace the specified
4793         index. So I added an Insert method.
4794
4795 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4796
4797         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4798           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4799           is for Jackson
4800         * RichTextBox.cs: Added calls to base for DnD events
4801
4802 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4803
4804         * TextControl.cs:
4805           - Fixed drag-selection related crash; style fixes
4806           - Implemented undo class
4807             o Implemented method to capture document state for specified
4808               range in document tree
4809             o Implemented method to restore captured document state
4810             o Implemented cursor tracking
4811             o Implemented basic undo stack
4812           - Added undo cursor tracking to methods altering cursor location
4813           - Added undo tracking to selection deletion (still missing
4814             other text-altering hookups)
4815         * RichTextBox.cs:
4816           - Added SelectionLength property
4817           - Implemented CanPaste()
4818           - Implemented Paste()
4819           - Added missing protected methods
4820           - Fixed RTF->Document conversion; now uses font index 0 and color 
4821             index 0 as the default font for the parsed text
4822           - Fixed RTF<->Document font size translation
4823           - Fixed RTF generation, now properly handles cross-tag boundaries
4824             for single line selection
4825           - No longer always appends blank line to generated RTF
4826           - Removed TODOs
4827           - Added missing attributes
4828           - Hooked up undo-related methods
4829         * TextBoxBase.cs:
4830           - Implemented Copy()
4831           - Implemented Paste()
4832           - Implemented Cut()
4833           - Fixed caret mis-behaviour on backspace across line-boundaries
4834
4835 2005-11-29  Jackson Harper  <jackson@ximian.com>
4836
4837         * MdiClient.cs: Add a method for activating mdi children. Very
4838         basic right now. I imagine someday it might need more girth.
4839         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4840         children windows names are added to the menu item.
4841         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4842         mdilist. This happens regardless of whether or not there are any
4843         mdi windows to see in the list, and according to my tests happens
4844         before the items are even added. Also happens if there isn't even
4845         an mdi client to get windows from.
4846
4847 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4848
4849         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4850         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4851
4852 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4853
4854         * DataGridTableStyle.cs:
4855           - Create always the styles for the missing columns even if they are
4856             provided by the user (not default table style)
4857         * DataGrid.cs:
4858           - Fixes bug 76770
4859           - Fixes SetDataBinding (always re-attach source)
4860           - Fixes SetNewDataSource (only clear styles if they are not for 
4861             this source)
4862          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4863             and remove properly
4864
4865 2005-11-29  Jackson Harper  <jackson@ximian.com>
4866
4867         * FileDialog.cs: Implement missing bits, remove some dead
4868         code.
4869         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4870         creation of the panel so that the options set on the dialog are
4871         seen when the panel is created.
4872         * TreeView.cs: raise a click when items are clicked.
4873         
4874 2005-11-29  Jackson Harper  <jackson@ximian.com>
4875
4876         * MdiClient.cs: Pass some signature methods through to base.
4877
4878 2005-11-28  Jackson Harper  <jackson@ximian.com>
4879
4880         * ListView.cs: Raise the click event when items are clicked.
4881
4882 2005-11-28  Jackson Harper  <jackson@ximian.com>
4883
4884         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4885         a nullref.
4886
4887 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4888
4889         * ThemeNice.cs: - Removed 1 pixel bitmaps
4890           - Use SmoothingMode.AntiAlias where it makes sense
4891             (ScrollButton arrow for example)
4892           - Enhanced Button focus drawing
4893           - Fixed ComboBox drawing (no artefacts anymore, focus
4894             rectangle is back again, reduced size of ComboButton, etc.)
4895           - Fixed RadioButton focus drawing for Appearence.Button
4896           - Slight ScrollButton redesign
4897           - Some LinearGradientBrush size fixes
4898           - GroupBoxes have now rounded edges
4899           - Fixed StatusBar drawing
4900
4901 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4902
4903         * ThemeNice.cs: - Remove dead code
4904           - use correct background colors for menus, etc.
4905           - Fake pixel drawing with 1 pixel bitmaps
4906
4907 2005-11-24  Jackson Harper  <jackson@ximian.com>
4908
4909         * MdiClient.cs: Size the scrollbars when resizing the window.
4910         - Resize the maximized windows when the client is resized
4911         * Form.cs: Make the child context available
4912         
4913 2005-11-23  Jackson Harper  <jackson@ximian.com>
4914
4915         * MdiChildContext.cs: Don't size windows if they are maximized.
4916
4917 2005-11-23  Mike Kestner  <mkestner@novell.com>
4918
4919         * ContextMenu.cs: use MenuTracker.
4920         * Control.cs: remove menu handle usage.
4921         * Form.cs: remove menu handle usage.
4922         * Hwnd.cs: remove menu handle usage.
4923         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4924         motion and clicks to the new Tracker handlers.
4925         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4926         and handle usage.
4927         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4928         Killed the MENU and MENUITEM data types and associated collections
4929         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4930         MenuTracker class that exposes the leftovers from the old MenuAPI
4931         static methods. Restructured Capture handling so that only one grab is
4932         done for the entire menu hierarchy instead of handing off grabs to
4933         submenus. Tracker now has an invisible control to Capture when active.
4934         * MenuItem.cs: add sizing accessors, kill Create
4935         and handle usage.
4936         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4937         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4938         MENU(ITEM). remove menu handle usage, use Menu directly.
4939         * XplatUIDriver.cs: remove menu handle usage.
4940         * XplatUIOSX.cs: remove menu handle usage.
4941         * XplatUIWin32.cs: remove menu handle usage.
4942         * XplatUIX11.cs: remove menu handle usage.
4943
4944 2005-11-22  Jackson Harper  <jackson@ximian.com>
4945
4946         * Hwnd.cs: Don't compute the menu size for
4947         DefaultClientRectangle.
4948         - Reenable menu sizes being computed for GetClienRectangle.
4949         * Form.cs: Remove comment of trechery
4950         
4951 2005-11-22  Jackson Harper  <jackson@ximian.com>
4952
4953         * Hwnd.cs: The adjustments for the menu bar are made when it is
4954         attached to the form.
4955
4956 2005-11-19  Jackson Harper  <jackson@ximian.com>
4957
4958         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4959         (just like on windows).
4960
4961 2005-11-19  Jackson Harper  <jackson@ximian.com>
4962
4963         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4964         use real buttons anymore because they are in non client area. The
4965         one TODO here is that I need to somehow invalidate a section of
4966         the non client area.
4967
4968 2005-11-18  Jackson Harper  <jackson@ximian.com>
4969
4970         * Control.cs: Put the enum check back in now that MDI doesnt have
4971         to use this to set border styles.
4972         * Form.cs: Only set mdi child windows borders if the handle has
4973         been created.
4974         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4975         this directly on to the driver.
4976         - Get the move start position before adjusting for the titlebar
4977         height, this fixes the windows "skipping" when they are first
4978         moved.
4979
4980 2005-11-18  Jackson Harper  <jackson@ximian.com>
4981
4982         * XplatUIX11.cs: Just compute the mdi borders separately as they
4983         don't totally match up with normal form borders.
4984
4985 2005-11-18  Jackson Harper  <jackson@ximian.com>
4986
4987         * Control.cs: Set WS_ styles for borders, so that the driver does
4988         not have to retrieve the control instance to figure out what kind
4989         of borders it should have.
4990         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4991         driver can know its an mdi child easily.
4992         * XplatUIX11.cs: Get the border styles and whether the window is
4993         MDI from the Styles and ExStyles params instead of having to get a
4994         control. This prevents a chicken and egg problem.       
4995
4996 2005-11-18  Jackson Harper  <jackson@ximian.com>
4997
4998         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4999
5000 2005-11-18  Jackson Harper  <jackson@ximian.com>
5001
5002         * MdiClient.cs: Calculate when to add and remove scrollbars
5003         correctly.
5004         * MdiChildContext.cs: Adjust the y position to take the titlebar
5005         into account.
5006         - No height for FormBorderStyle.None
5007
5008 2005-11-18  Jackson Harper  <jackson@ximian.com>
5009
5010         * Control.cs: Allow non enum values to be used for
5011         InternalBorderStyle.  MDI does this to set a special border style.
5012         - New utility methods for converting points to/from client coords
5013         - Add the newly created control to the Controls collection before
5014         updating its style. This way UpdateStyle can walk the control
5015         heirarchy to find the control if needed.
5016         so I don't need to create a new Point object all the time.
5017         * Form.cs: Let MDI windows handle their border styles.
5018         - Set styles on MDI windows so the correct title style is derived.
5019         * MdiChildContext.cs: Move all the painting and window handling
5020         into the non client area.
5021         - Use correct sizing and put correct buttons on frames based on
5022         the FormBorderStyle.
5023         - Notify the mdi client about scrolling
5024         - Need to handle the buttons ourselves now, because they are all
5025         in non client areas and we can't add controls there.
5026         * MdiClient.cs: Halfway to scrolling, this implementation is
5027         somewhat broken though, we need to check to make sure other
5028         windows aren't causing scrolling before removing the bars. Also
5029         the bars need to be drawn on top, maybe I can switch implicit
5030         controls to be on top.
5031         * Hwnd.cs: caption_height and tool_caption_height are now
5032         properties of an hwnd, this way they can be set by the driver
5033         based on the type of window they are.  In X11 the window manager
5034         handles the decorations so caption_height is zero unless its an
5035         MDI window.
5036         - Add 3 pixel borders for MDI windows (0xFFFF).
5037         - Get rid of some code duplication, have DefaultClientRectanle
5038         just call GetClientRectangle.
5039         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
5040         Hwnd now.
5041         - Set border styles differently for mdi windows.
5042         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
5043         Hwnd now.
5044         
5045 2005-11-15  Mike Kestner  <mkestner@novell.com>
5046
5047         * Menu.cs: when adding an item to the collection, if item is already 
5048         parented, remove it from the parent.
5049
5050 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
5051
5052         * X11DesktopColors.cs: Added KDE support
5053
5054 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
5055
5056         * XplatUIWin32.cs: 
5057           - Clipboard methods now can translate Rtf format
5058           - No longer removes clipboard contents whenever a new format is added
5059             to allow placing multiple formats on the clipboard
5060         * Clipboard.cs: Clipboard now supports getting a IDataObject and
5061           will place all formats contained in it onto the clipboard. Also
5062           now cleans the clipboard before placing a new object onto it
5063         * RichTextBox.cs:
5064           - Implemented set_Rtf
5065           - Implemented set_SelectedRtf
5066           - Created InsertRTFFromStream() method to allow single code base
5067             for all properties and methods that insert RTF into document
5068           - Removed debug output
5069         * TextControl.cs:
5070           - Fixed Delete(int) to fix up line numbers
5071           - Fixed ReplaceSelection to combine start and end line
5072           - Fixed serious DeleteChars bug that would leave the document tree
5073             broken
5074           - Improved DumpTree with several logic checks to detect broken
5075             document trees
5076           - Removed debug lines
5077           - Fixed Caret.WordForward/WordBack moving code, now always also 
5078             updates caret.tag (fixes crash when word-selecting across tag
5079             boundaries via keyboard)
5080           - Added Insert() method for inserting multiline text into documents
5081           - Fixed DeleteChars() calculation errors that would cause a broken
5082             tag chain with multiple tag lines
5083           - DeleteChars() no longer crashes on multi-tag lines if not all tags
5084           - Split() no longer moves caret if split is at caret location
5085           - ReplaceSelection() now updates the cursor and re-displays it
5086           - ReplaceSelection() now uses new Insert() method to avoid code
5087             duplication
5088           - FormatText() can now handle formatting partial lines
5089         * TextBoxBase.cs:
5090           - Append now uses new TextControl.Insert() method (this avoids 
5091             duplicate code)
5092           - Implemented Ctrl-X (Cut) (
5093           - Implemented Ctrl-C (Copy)
5094           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
5095             regeneration when pasting text; roundtripping Copy&Paste within
5096             edit control still fails due to some calculation bugs in GenerateRTF)
5097           - The Delete key will now remove the current selection if it is visible
5098         * TextBox.cs: Removed debug lines
5099         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
5100           driver to be initialized and can't therefore be done via a static ctor)
5101
5102 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
5103
5104         * TextControl.cs: Added backend code for finding char arrays and strings
5105         * TextBoxBase.cs:
5106           - Added mouse wheel scroll support
5107           - Added support for VScroll and HScroll events
5108         * RichTextBox.cs:
5109           - Implemented all seven Find() variants
5110           - Implemented GetCharFromPosition()
5111           - Implemented GetCharIndexFromPosition()
5112           - Implemented GetLineFromIndex()
5113           - Implemented GetPositionFromCharIndex();
5114           - Implemented SaveFile for PlainText and UnicodeText
5115           - Fixed set_Font, now setting a new font applies that font to
5116             the whole document
5117           - Implemented generic Document to RTF converter
5118           - Implemented SaveFile for RichText format (still missing unicode
5119             conversion for non-ansi chars)
5120           - Implemented get_Rtf
5121           - Implemented get_SelectedRtf
5122
5123 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
5124
5125         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
5126           to allow any captures to be released before triggering OnClick. This
5127           way a click handler may capture the mouse without interference.
5128         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
5129           This way we send them even though X may not allow a grab (if the window
5130           isn't visible, for example)
5131
5132 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
5133
5134         * DataGridViewRowEventArgs.cs: DataGridView implementation
5135         * DataGridViewElement.cs: DataGridView implementation
5136         * DataGridViewComboBoxCell.cs: DataGridView implementation
5137         * DataGridViewDataErrorContexts.cs: DataGridView implementation
5138         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
5139         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
5140         * ImageLayout.cs: DataGridView implementation
5141         * DataGridViewComboBoxColumn.cs: DataGridView implementation
5142         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
5143         * DataGridViewSelectionMode.cs: DataGridView implementation
5144         * IDataGridViewEditingControl.cs: DataGridView implementation
5145         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
5146         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
5147         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
5148         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
5149         * DataGridViewColumnSortMode.cs: DataGridView implementation
5150         * DataGridView.cs: DataGridView implementation
5151         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
5152         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
5153         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
5154         * Padding.cs: DataGridView implementation
5155         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
5156         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
5157         * DataGridViewRowEventHandler.cs: DataGridView implementation
5158         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
5159         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
5160         * DataGridViewButtonCell.cs: DataGridView implementation
5161         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
5162         * DataGridViewEditMode.cs: DataGridView implementation
5163         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
5164         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
5165         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
5166         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
5167         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
5168         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
5169         * DataGridViewCellEventHandler.cs: DataGridView implementation
5170         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
5171         * DataGridViewCellStyleConverter.cs: DataGridView implementation
5172         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
5173         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
5174         * DataGridViewColumnEventArgs.cs: DataGridView implementation
5175         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
5176         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5177         * QuestionEventArgs.cs: DataGridView implementation
5178         * IDataGridViewEditingCell.cs: DataGridView implementation
5179         * DataGridViewTriState.cs: DataGridView implementation
5180         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5181         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5182         * DataGridViewColumnCollection.cs: DataGridView implementation
5183         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5184         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5185         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5186         * DataGridViewColumn.cs: DataGridView implementation
5187         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5188         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5189         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5190         * DataGridViewRow.cs: DataGridView implementation
5191         * DataGridViewImageCellLayout.cs: DataGridView implementation
5192         * DataGridViewImageCell.cs: DataGridView implementation
5193         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5194         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5195         * DataGridViewHeaderCell.cs: DataGridView implementation
5196         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5197         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5198         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5199         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5200         * QuestionEventHandler.cs: DataGridView implementation
5201         * DataGridViewCellStyleScopes.cs: DataGridView implementation
5202         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
5203         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
5204         * DataGridViewCell.cs: DataGridView implementation
5205         * DataGridViewCellEventArgs.cs: DataGridView implementation
5206         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
5207         * DataGridViewCellStyle.cs: DataGridView implementation
5208         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
5209         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
5210         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
5211         * TextFormatFlags.cs: DataGridView implementation
5212         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
5213         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
5214         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
5215         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
5216         * DataGridViewButtonColumn.cs: DataGridView implementation
5217         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
5218         * HandledMouseEventArgs.cs: DataGridView implementation
5219         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
5220         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
5221         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
5222         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
5223         * DataGridViewRowCollection.cs: DataGridView implementation
5224         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
5225         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
5226         * DataGridViewHitTestType.cs: DataGridView implementation
5227         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
5228         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
5229         * DataGridViewColumnEventHandler.cs: DataGridView implementation
5230         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
5231         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
5232         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
5233         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
5234         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
5235         * DataGridViewContentAlignment.cs: DataGridView implementation
5236         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
5237         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
5238         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
5239         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
5240         * DataGridViewPaintParts.cs: DataGridView implementation
5241         * DataGridViewCellCollection.cs: DataGridView implementation
5242         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
5243         * DataGridViewImageColumn.cs: DataGridView implementation
5244         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
5245         * DataGridViewElementStates.cs: DataGridView implementation
5246         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
5247         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
5248         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
5249         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
5250         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
5251         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
5252         * DataGridViewRowHeaderCell.cs: DataGridView implementation
5253         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
5254         * DataGridViewTextBoxCell.cs: DataGridView implementation
5255         * DataGridViewBand.cs: DataGridView implementation
5256         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
5257         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
5258         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
5259         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
5260         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
5261         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
5262         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
5263         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
5264         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
5265         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
5266         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
5267
5268 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
5269
5270         * ThemeWin32Classic.cs: 
5271           - Draw the outside focus rectangle around buttons
5272           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
5273             doesn't use end caps for every dash of a line anymore. This
5274             workaround ignores the forecolor.
5275
5276 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
5277
5278         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
5279           endian safe.
5280
5281 2005-11-07  Jackson Harper  <jackson@ximian.com>
5282
5283         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
5284
5285 2005-11-07  Jackson Harper  <jackson@ximian.com>
5286
5287         * ScrollableControl.cs: Calculate the maximum and change vars
5288         (more) correctly so that scrollbars appear as a sensible size.
5289
5290 2005-11-04  Jackson Harper  <jackson@ximian.com>
5291
5292         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5293         collection.
5294         * TreeView.cs: When the tree is sorted null out the top_node so
5295         that it is recalculated.
5296         - Use dotted lines instead of dashed lines to match MS better.
5297
5298 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5299
5300         * ListView.cs: 
5301           - Implements key search for items. Useful when browsing files with FileDialog
5302           - When changing view mode or when clear the items reset scrollbar positions
5303
5304 2005-11-04  Jackson Harper  <jackson@ximian.com>
5305
5306         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5307         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5308         as to what the method may do as there is no real way of creating a
5309         derived CurrencyManager and calling the method. 
5310
5311 2005-11-03  Jackson Harper  <jackson@ximian.com>
5312
5313         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5314         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5315         method which seems to just be used internally to refresh the tabs.
5316
5317 2005-11-03  Jackson Harper  <jackson@ximian.com>
5318
5319         * TabControl.cs: Implement the remove method. Fix some broken
5320         comments.
5321
5322 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5323
5324         * DateTimePicker.cs:
5325           - Added missing DateTimePickerAccessibleObject class
5326           - Added missing events
5327           - Added OnFontChanged method
5328         * Form.cs: Added missing attributes
5329         * TreeView.cs: Added missing attributes
5330
5331 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5332
5333         * GridItemCollection.cs: Fix signatures
5334
5335 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5336
5337         * XplatUI.cs: Updated build rev/date
5338         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5339           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5340         * Application.cs: Trigger context-specific ExitThread events
5341
5342 2005-11-03  Jackson Harper  <jackson@ximian.com>
5343
5344         * Menu.cs:
5345         * MainMenu.cs:
5346         * GridTableStylesCollection.cs:
5347         * Timer.cs:
5348         * TabPage.cs:
5349         * HelpProvider.cs:
5350         * StatusBar.cs:
5351         * MonthCalendar.cs: Signature fixes
5352
5353 2005-11-03  Jackson Harper  <jackson@ximian.com>
5354
5355         * TreeNodeCollection.cs: Remove should not be virtual.
5356         * TreeView.cs: Implement the last of the missing methods.
5357
5358 2005-11-03  Jackson Harper  <jackson@ximian.com>
5359
5360         * TreeNodeConverter.cs: Implement to get off my class-status back.
5361
5362 2005-11-03  Jackson Harper  <jackson@ximian.com>
5363
5364         * TreeView.cs: Hookup the bits for drag and drop.
5365         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5366         that nodes can be moved from tree to tree easily this just causes
5367         all sorts of problems.
5368         * TreeNodeCollection: Don't need to give treenodes an index and
5369         treeview anymore when they are added, these are computed on the
5370         fly. Also make sure to remove a node before its added.
5371
5372 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5373
5374         * TextControl.cs:
5375           - Added CaretSelection enum
5376           - Added comparison methods to Marker struct, makes selection code
5377             more readable
5378           - Added SelectionStart and SelectionEnd as 'moveable' location for
5379             the CaretDirection enum and handler
5380           - Added selection_prev variable to track optimized invalidation for
5381             word and line selection
5382           - Added SelectionVisible property (returns true if there is a valid 
5383             selection)
5384           - Switched CaretHasFocus to only display the caret if there is no
5385             visible selection
5386           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5387             using the direct character index; should be much faster
5388           - Added various conditional debug statements
5389           - Fixed invalidation calculation for selection ranges
5390           - Added ExpandSelection() method to support word and line selection
5391           - Switched SetSelectionToCaret to use new Marker compare overloads
5392           - Added central IsWordSeparator() method to determine word 
5393             separators/whitespace and FindWordSeparator() to streamline common
5394             usage of IsWordSeparator()
5395         * TextBoxBase.cs:
5396           - Removed unneeded grabbed variable, it was just mirroring
5397             Control.Capture
5398           - No longer firing OnTextChanged event when Text setter is called,
5399             since the base will fire the event for us
5400           - Added handling of Ctrl-Up/Down selection
5401           - Added handling of Shift-Cursorkey selection
5402           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5403             words
5404           - Added handling of Shift and Ctrl-Shift-Home/End selection
5405           - Removed some debug output
5406           - Added handling for single/double/tripple-click to place caret/
5407             select word/select line respectively (Fixes bug #76031)
5408           - Added support for drag expansion of word/line selection
5409         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5410           current selection
5411
5412 2005-11-02  Jackson Harper  <jackson@ximian.com>
5413
5414         * X11Dnd.cs: If the drag is going to and from a MWF window just
5415         copy the data instead of sending it out through the X Selection
5416         mechanism.
5417
5418 2005-11-02  Jackson Harper  <jackson@ximian.com>
5419
5420         * X11Dnd.cs:
5421         * XplatUIX11.cs: When in a drag we don't want motion notify
5422         messages to get passed on to the other controls. This prevents
5423         mouse move messages from showing up in the drag source.
5424
5425 2005-11-02  Jackson Harper  <jackson@ximian.com>
5426
5427         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5428         the correct button is release to end a drag.
5429         * XplatUIX11.cs: Make the button state internal so the drag system
5430         can access it.  Dragging needs to know about all button releases,
5431         not just left button.
5432
5433 2005-11-02  Miguel de Icaza  <miguel@novell.com>
5434
5435         * Form.cs (Icon): If the icon is null, reset the icon to the
5436         default value. 
5437
5438         * Cursor.cs: When writing the AND-mask bitmap do not include the
5439         number of colors, but hardcode those to two (black and white),
5440         fixes the loading of color cursors (Paint Dot Net).
5441
5442         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5443         turn off autoscaling.
5444
5445         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5446
5447 2005-11-02  Jackson Harper  <jackson@ximian.com>
5448
5449         * X11Dnd.cs: Make sure to send a status message if the pointer
5450         enters a control that can not accept a drop, otherwise the cursor
5451         isn't updated correctly. Also tried to compress the lines of code
5452         a bit.
5453
5454 2005-11-02  Jackson Harper  <jackson@ximian.com>
5455
5456         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5457         set actions correctly.  This isn't perfect as XDND and win32 have
5458         some differences on how you allow actions. I'll clear this up by
5459         adding a path for drag from MWF to MWF windows.
5460         * XplatUIX11.cs: Hook into the dnd system.
5461
5462 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
5463
5464         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5465         previously shown but they are no longer need it. Very obvious when 
5466         browsing files with FileDialog.
5467
5468 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
5469
5470         * Control.cs: We always need to call OnPaintBackground. We pretty much
5471           ignore AllPaintingInWmPaint and always do the painting there, whether 
5472           it's set or not, since we always ignore the WM_ERASEBKGND message 
5473           (which we don't generate on X11). This fixes #76616.
5474         * Panel.cs: Removed unneeded background painting. This happens properly
5475           in Control.cs already
5476
5477 2005-10-31  Mike Kestner  <mkestner@novell.com>
5478
5479         * Menu.cs: Add items to collection before setting their index.
5480         * MenuItem.cs : add range checking with ArgumentException like MS.
5481         [Fixes #76510]
5482
5483 2005-10-31  Jackson Harper  <jackson@ximian.com>
5484
5485         * ListBox.cs: Invalidate if the area is visible at all not just
5486         contained in the visible rect. Fixes unselection of semi visible
5487         items.
5488
5489 2005-10-31  Jackson Harper  <jackson@ximian.com>
5490
5491         * Control.cs: Consistently name the dnd methods. Make them
5492         internal so we can override them to match some MS behavoir
5493         internally.
5494         * Win32DnD.cs: Use the new consistent names.
5495
5496 2005-10-31  Jackson Harper  <jackson@ximian.com>
5497
5498         * TreeView.cs: Don't draw the selected node when we lose focus.
5499
5500 2005-10-31  Jackson Harper  <jackson@ximian.com>
5501
5502         * X11Dnd.cs: We still need to reset the state even though a full
5503         reset isn't being done, otherwise status's still get sent all over
5504         the place.
5505
5506 2005-10-31  Jackson Harper  <jackson@ximian.com>
5507
5508         * Control.cs: Make the dnd_aware flag internal so the dnd
5509         subsystem can check it. Catch exceptions thrown in dnd handlers to
5510         match MS behavoir.
5511         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5512         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5513         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5514         flags to reduce the number of dnd enters/status's sent.
5515
5516 2005-10-31  Jackson Harper  <jackson@ximian.com>
5517
5518         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5519
5520 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5521
5522         * PictureBox.cs: Fixes 76512
5523
5524 2005-10-28  Jackson Harper  <jackson@ximian.com>
5525
5526         * X11Dnd.cs: Early implementation to support winforms being a drag
5527         source for data on X11. Also restructured the converters so they
5528         can go both ways now.
5529         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5530         
5531 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5532
5533         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5534           clipboard requests
5535
5536 2005-10-27  Jackson Harper  <jackson@ximian.com>
5537
5538         * TreeNode.cs: Implement serialization so my DnD examples will work.
5539
5540 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
5541
5542         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5543           TreeView.cs: Don't dispose objects that are not owned.
5544           
5545 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
5546
5547         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5548           should retrieve the current cursor and report that, but XplatUI
5549           doesn't (yet) have an interface for that (and I'm not sure I even
5550           can, on X11)
5551         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5552           until any message loop processing is done (and the WM_SETCURSOR
5553           replaces the cursor to the proper one)
5554         * XplatUIX11.cs: 
5555           - Fixed override behaviour, we can't set the cursor globally on X11, 
5556             just for our windows.
5557           - Invalidating the System.Drawing X11 display handle when we are
5558             shutting down
5559         * Control.cs: Fix to make csc happy
5560
5561 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
5562
5563         * TextBoxBase.cs: 
5564           - get_Text: Add last line (without trailing newline) to returned
5565             value (Fixes 76212)
5566           - get_TextLength: Count last line in returned length
5567           - ToString: Call Text property instead of duplicating code
5568
5569 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
5570
5571         * ImageList.cs: Dispose ImageAttributes objects.
5572
5573 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5574
5575         * ImageList.cs: Use attribute constructors with less arguments where
5576           possible.
5577
5578 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5579
5580         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5581           Use typeof instead of strings when assembly is referenced. Added
5582           some more comments.
5583
5584 2005-10-21  Jackson Harper  <jackson@ximian.com>
5585
5586         * ListView.cs: Raise a double click event. Also tried to somewhat
5587         fix when the selectedindexchanged event is raised. Its still
5588         broken though.
5589
5590 2005-10-21  Jackson Harper  <jackson@ximian.com>
5591
5592         * TreeView.cs: New method to invalidate the plus minus area of a
5593         node without invalidating the whole node (maybe this can be used
5594         in some more places).
5595         * TreeNodeCollection.cs: When adding to an empty node we need to
5596         invalidate its plus minus area so the little block shows up.
5597         
5598 2005-10-21  Jackson Harper  <jackson@ximian.com>
5599
5600         * TreeView.cs: Make sure that when we invalidate a node the bounds
5601         are big enough to cover the selected box and the focus
5602         rectangle. Use a different colour for the lines connecting nodes
5603         so they show up with all themes.
5604
5605 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5606
5607         * NativeWindow.cs: Don't call anything that could call into the driver,
5608           we might be on a different thread.
5609
5610 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
5611
5612         * Control.cs(Dispose): Since Dispose might run on a different thread,
5613           make sure that we call methods that could call into the driver via
5614           invoke, to avoid thread issues
5615
5616 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5617
5618         * XplatUI.cs: Removed finalizer
5619         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5620           not allowing to be called on the finalizer thread.
5621
5622 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5623
5624         * ImageList.cs:
5625           - Reverted r51889 and r51891.
5626           - Added ImageListItem class that stores unmodified image items and image
5627             properties required to create list images until handle is created.
5628           - Added AddItem and moved image creation logic to AddItemInternal.
5629           - Added CreateHandle method that creates images based on unmodified items.
5630           - Added DestroyHandle that changes state to store unmodified items.
5631           - Add and AddStrip methods no more create handle.
5632           - ReduceColorDepth has no return value.
5633           - Dispose destroys handle.
5634           - Modified other methods to reflect the above changes.
5635           - Implemented key support.
5636           - Added profile 2.0 members and attributes.
5637           - Added private Reset and ShouldSerialize methods that provide the same
5638             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5639             them as they are private.
5640           - Added some more comments about implementation details.
5641
5642 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5643
5644         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5645
5646 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5647
5648         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5649
5650 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5651
5652         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5653         * DataGridColumnStyle.cs: Remove debug message
5654
5655 2005-10-20  Jackson Harper  <jackson@ximian.com>
5656
5657         * TreeView.cs: We can always get input keys regardless of whether
5658         or not editing is enabled. They are used for navigation.
5659
5660 2005-10-20  Jackson Harper  <jackson@ximian.com>
5661
5662         * TreeNode.cs: Use the viewport rect for determining if a node
5663         needs to be moved for visibility. Don't use Begin/End edit. This
5664         calls a full refresh when its done.
5665         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5666         rect property internal so the treenodes can see it. When clicking
5667         on a node we need to ensure that its visible because it might just
5668         be partly visible when clicked.
5669
5670 2005-10-20  Jackson Harper  <jackson@ximian.com>
5671
5672         * TreeNodeCollection.cs: Remove debug code.
5673
5674 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5675
5676         * Datagrid.cs: Implements column sorting in Datagrid
5677         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5678
5679 2005-10-20  Jackson Harper  <jackson@ximian.com>
5680
5681         * TreeNodeCollection.cs: Remove items properly. Update the correct
5682         area after removing them.
5683
5684 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5685
5686         * Datagrid.cs: Should not call base.OnPaintBackground
5687
5688 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5689
5690         * XplatUIX11.cs (GetMessage):
5691           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5692             window instead of client window
5693           - Now properly calculates NC_xBUTTONUP message coordinates
5694           - ScreenToMenu now properly calculates it's coordinates of whole 
5695             window, since menus are in the whole window, not in the client
5696             window
5697           - Added WholeToScreen coordinate translation method
5698
5699 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5700
5701         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5702           want to return a message, loop back to the beginning of the function
5703           and grab the next real message to process instead.
5704
5705 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5706
5707         * Splitter.cs: Properly set limits if no filler control is used
5708
5709 2005-10-19  Jackson Harper  <jackson@ximian.com>
5710
5711         * ColorDialog.cs: Don't show the help button if it is not enabled
5712         instead of disabling it (this is what MS does). Don't create the
5713         panel until the dialog is run, otherwise the vars (such as
5714         ShowHelp) are not set yet.
5715
5716 2005-10-19  Jackson Harper  <jackson@ximian.com>
5717
5718         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5719         are reduced when adding nodes.
5720         * TreeNode.cs:
5721         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5722         tree.
5723         
5724 2005-10-19  Jackson Harper  <jackson@ximian.com>
5725
5726         * FolderBrowserDialog.cs: End editing our treeview so the window
5727         actually gets refreshed.
5728
5729 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5730
5731         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5732           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5733           inside of WM_PAINT
5734
5735 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5736
5737         * MenuAPI.cs: Returns after Hidding window
5738         * XplatUIX11.cs: Added TODO found while debugging menu issues
5739
5740 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5741
5742         * XplatUIX11.cs: Do not re-map the whole window when it's size
5743           becomes non-zero unless it's supposed to be actually visible
5744
5745 2005-10-18  Jackson Harper  <jackson@ximian.com>
5746
5747         * TreeView.cs: We don't need to keep a count anymore.
5748         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5749         use the Grow method.
5750
5751 2005-10-18  Jackson Harper  <jackson@ximian.com>
5752
5753         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5754         implement it manually here.
5755
5756 2005-10-18  Jackson Harper  <jackson@ximian.com>
5757
5758         * ImageList.cs: Dont kill the list when the colour depth is
5759         changed, just change the colour depth of all the images.
5760         - Same goes for setting the image size. Just resize them all
5761         instead of killing the list softly.
5762
5763 2005-10-18  Jackson Harper  <jackson@ximian.com>
5764
5765         * Control.cs: Don't invalidate empty rectangles.
5766
5767 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5768
5769         * ListViewItem.cs:
5770           - Adds checked item to the Checked/Item lists (where empty before)
5771           - Do not add items to the Selected lists if they are already present
5772         * ListView.cs:
5773           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5774           - When deleting items make sure that we delete them for the Selected
5775           and Checked list also.
5776
5777 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5778
5779         * Label.cs: Dispose objects no longer used
5780         * ThemeWin32Classic.cs: Dispose objects no longer used
5781
5782 2005-10-18  Jackson Harper  <jackson@ximian.com>
5783
5784         * TabControl.cs: Don't refresh the whole control when the tabs are
5785         scrolled, we just need to refresh the tab area.
5786
5787 2005-10-17  Jackson Harper  <jackson@ximian.com>
5788
5789         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5790         after handle when we need it.
5791
5792 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5793
5794         * Control.cs: When the parent size changes, recalculate anchor 
5795           positions. Partial fix for #76462
5796
5797 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5798
5799         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5800           drawn. Fixes #76462
5801
5802 2005-10-17  Jackson Harper  <jackson@ximian.com>
5803
5804         * MonthCalendar.cs: Don't create the numeric up down until our
5805         handle is created. Otherwise our handle is created in the
5806         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5807         yet.
5808
5809 2005-10-17  Jackson Harper  <jackson@ximian.com>
5810
5811         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5812         correctly.
5813
5814 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5815         * TreeNode.cs : small logical fix (was using local var instead of field)
5816         
5817 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5818
5819         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5820
5821 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5822
5823         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5824
5825 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5826
5827         * Control.cs: 
5828           - Re-implemented anchoring code. My first version was really broken.
5829             This fixes bug #76033. Unlike the previous implementation we will
5830             no longer have round errors since all numbers are calculated from
5831             scratch every time. Removed various anchor-related obsolete vars.
5832           - InitLayout no longer causes layout event firing and layout to be 
5833             performed
5834
5835 2005-10-16  Jackson Harper  <jackson@ximian.com>
5836
5837         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5838         which was broken).
5839
5840 2005-10-16  Jackson Harper  <jackson@ximian.com>
5841
5842         * TabControl.cs: Remove debug code.
5843
5844 2005-10-16  Jackson Harper  <jackson@ximian.com>
5845
5846         * XEventQueue.cs: Increase the default queue size (very simple
5847         apps needed to grow the queue).
5848         * Hwnd.cs: No finalizer so we don't need to suppress
5849         finalization. Compute the invalid area manually so a new rectangle
5850         does not newto be created.
5851         * ScrollableControl.cs: Don't set any params (otherwise visibility
5852         isn't set correctly).
5853         * MdiChildContext.cs: New constructor takes the mdi parent so it
5854         doesn't have to be computed and avoids a crash on windows. Draw
5855         the window icon properly, and allow the text to be seen.
5856         * Form.cs: Use new MdiChildContext constructor. Make sure the
5857         child context isn't null in wndproc.
5858         * TabControl.cs: Don't set focus, this is muddling keyboard
5859         behavoir. Expand the tab rows when a window size increase will
5860         allow extra tabs to be seen. Don't allow tabs smaller than the
5861         width of a window to be scrolled out of view.
5862         * TreeNode.cs:
5863         * TreeView.cs: Use measure string to calculate a nodes width, the
5864         width is cached and only updated when the text or the font is
5865         changed. Don't check for expand/collapse clicks on the first level
5866         nodes if root lines are disabled.
5867         
5868 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5869
5870         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5871
5872 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5873
5874         * DataGridBoolColumn.cs: fixes warning
5875
5876 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5877
5878         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5879         to match more to match more precisely the MS Net behavior
5880
5881 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5882
5883         * Hwnd.cs: Added field to track if window is mapped
5884         * XplatUIX11.cs: 
5885           - Unmap windows if they become 0-size, re-map when 
5886             they are >0 again; fixes #76035
5887           - Re-set our error handler after initializing X11Desktop
5888             to override any error handlers Gtk or whatever was called
5889             may have set.
5890
5891 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5892
5893         * CheckedListBox.cs: Removed unused vars
5894         * ListView.cs: Fixed signatures
5895         * RichTextBox.cs: Removed unused vars
5896         * TextBoxBase.cs: Removed unused vars
5897         * XplatUIWin32.cs: Removed unused vars
5898         * XplatUIX11.cs: Removed unused vars
5899         * XplatUI.cs: Updated version and date to latest published
5900
5901 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5902
5903         * Cursor.cs: Added private .ctor to work around a bug in
5904           resourceset (Thanks to Geoff Norton for the help on this)
5905         * SplitterEventArgs.cs: Made fields accessible so we don't
5906           waste boatloads of objects and can reuse the same one
5907           in Splitter
5908         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5909           any captions and borders when generating screen coordinates
5910         * Splitter.cs: Reimplemented control, now fully complete, uses
5911           rubberband drawing, supports and obeys all properties, has
5912           proper cursors
5913
5914 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5915
5916         * Form.cs (Form): Setup default values for autoscale and
5917         autoscale_base_size;  Make these instance variables, not static
5918         variables. 
5919
5920         (OnLoad): on the first load, adjust the size of the form.
5921
5922 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5923
5924         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5925           width argument to DrawReversibleRectangle()
5926         * XplatUIWin32.cs, XplatUIX11.cs: 
5927           - Implemented width for DrawReversibleRectangle()
5928           - Added logic to DrawReversibleRectangle that recognizes a zero
5929             width or height and only draws a line in that situation
5930         
5931 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5932
5933         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5934         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5935         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5936           method (it uses our FosterParent window to get a graphics context)
5937
5938 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5939
5940         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5941           and SetWindowBackground methods
5942         * Control.cs:
5943           - Setting proper ControlStyles
5944           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5945             EraseWindowBackground, instead we draw the window background
5946             ourselves in PaintControlBackground. This behaviour is
5947             required to match MS, where, when OnPaintBackground is not
5948             called, the background is not drawn.
5949           - Removed unneeded Refresh() in set_Text
5950         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5951         * XplatUIX11.cs:
5952           - Created DeriveStyles method to translate from CreateParams to
5953             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5954             matches FormBorderStyle enum values)
5955           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5956             style calculations into single DeriveStyles method
5957           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5958             from redrawing the whole window on any resize or expose.
5959           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5960             all styles were applied to our whole/client window appropriately
5961           - Removed EraseWindowBackground() and SetWindowBackground() methods
5962           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5963             no longer clear/redraw the background through X
5964           - Removed handling of erase_pending bit, we have no use for it (or
5965             so it seems)
5966         * XplatUIOSX.cs:
5967           - Removed generation and handling of WM_ERASEBKGND message
5968           - Removed EraseWindowBackground() and SetWindowBackground() methods
5969           - Removed handling of hwnd.ErasePending flag
5970         * XplatUIWin32.cs:
5971           - Removed EraseWindowBackground() and SetWindowBackground() methods
5972           - We no longer call EraseWindowBackground on PaintEventStart, we 
5973             ignore the fErase flag, erasing is handled in Control in the
5974             background handler
5975         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5976           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5977           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5978           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5979           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5980           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5981           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5982
5983 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5984
5985         * PropertyGrids.cs: Get sub properties
5986         * PropertyGridView.cs: Fix drawing code
5987
5988 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5989
5990         * ListBox.cs: Fixes 76383
5991
5992 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5993
5994         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5995         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5996         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5997
5998
5999 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6000
6001         * ComboBox.cs: Fixes border drawing
6002
6003 2005-10-10  Miguel de Icaza  <miguel@novell.com>
6004
6005         * MimeIcon.cs: Ignore errors if the file can not be read.
6006
6007 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
6008
6009         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
6010          - Fixed border calculations
6011          - Fixed horizontal scrolling in single column listboxes
6012          - Fixed drawing issues
6013
6014 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
6015
6016         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
6017           FormBorderStyle enum
6018         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
6019           code to determine FormBorderStyles from CreateParams
6020         * Form.cs:
6021           - Fixed bug where we'd set the wrong window styles if we were
6022             not creating an MDI window
6023           - Added call to XplatUI.SetBorderStyle when form borders are set
6024         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
6025         * Hwnd.cs:
6026           - Removed obsolete edge style
6027           - Switched from BorderStyle to FormBorderStyle
6028         
6029 2005-10-10  Jackson Harper  <jackson@ximian.com>
6030
6031         * Form.cs: Use the property to get the window handle instead of
6032         accessing it directly. Prevents a null reference exception.
6033
6034 2005-10-10  Jackson Harper  <jackson@ximian.com>
6035
6036         * TreeView.cs: Don't adjust the rect given to DrawString now that
6037         our libgdiplus draws correctly.
6038
6039 2005-10-08  Jackson Harper  <jackson@ximian.com>
6040
6041         * TreeView.cs: Don't try to find the clicked on node if there are
6042         no nodes in the tree.
6043
6044 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6045
6046         * RichTextBox.cs:
6047
6048           restore
6049
6050 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6051
6052         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
6053           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
6054           ErrorProvider.cs:
6055           Use ResPool for brushes and dispose System.Drawing objects that
6056           are not used anymore.
6057
6058 2005-10-07  Jackson Harper  <jackson@ximian.com>
6059
6060         * MdiChildContext.cs: Use the new borders instead of drawing them
6061         ourselves.
6062
6063 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6064
6065         * Calling UpdateBounds after changing the window's BorderStyle 
6066         since the style can change the ClientSize
6067
6068 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6069
6070         * Control.cs: Made PaintControlBackground virtual
6071         * Panel.cs: Overriding PaintControlBackground instead of using paint
6072           event; paint event method was interfering with 'real' users of the
6073           event.
6074
6075 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6076
6077         * ThemeWin32Classic.cs: remove border drawing since it is handled
6078         by the base control class now and was causing double border drawing.
6079
6080 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6081
6082         * Panel.cs: Redraw our background on paint. Not a pretty solution,
6083           but it does seem to match MS behaviour. This fixes bug #75324
6084
6085 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6086
6087         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
6088           somewhat hackish looking
6089
6090 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6091
6092         * TextBoxBase.cs:
6093           - We now accept Enter even if AcceptEnter is false, if the containing
6094             form does not have an AcceptButton configured (fixes bug #76355)
6095           - Calculations are now fixed to no longer use Width/Height, but
6096             ClientSize.Width/Height, since we now support borders (this was
6097             a result of fixing borders and therefore bug #76166)
6098           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
6099             true (fixes bug #76354)
6100         
6101 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6102
6103         * Control.cs: 
6104           - Defaulting BorderStyle and setting it in XplatUI when our window 
6105             is created
6106           - Added enum check to InternalBorderStyle setter
6107         * XplatUIX11.cs: 
6108           - Added drawing of window borders
6109           - Now properly calculates WM decorations offset for toplevel 
6110             windows (fixes bug #74763)
6111         * XplatUIWin32.cs: 
6112           - Implemented BorderStyles for windows (we're letting win32 draw 
6113             the border for us)
6114           - Fixed the signature for SetWindowLong
6115         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
6116           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
6117           setting borders
6118         * UpDownBase.cs: Remove drawing of borders, this is handled by
6119           the driver, outside the client area
6120         * ListView.cs: Removed bogus border calculations. The control should
6121           be oblivious to borders, since those are not part of the client
6122           area. 
6123         * X11DesktopColors.cs: Commented out (currently) unneeded variables
6124         * ThemeWin32Classic.cs: Removed border calculations from ListView 
6125           drawing code
6126
6127 2005-10-06  Jackson Harper  <jackson@ximian.com>
6128
6129         * MdiChildContext.cs: Clear out the old virtual position remove
6130         all the unneeded calls to CreateGraphics.
6131
6132 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6133
6134         * TextControl.cs: Use proper color for highlighted text; fixes #76350
6135
6136 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6137
6138         * Form.cs: 
6139           - Added loading and setting of our new default icon
6140           - Only set icon if window is already created
6141
6142 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6143
6144         * Label.cs:
6145           - Do not explicitly set the foreground and background colors, to
6146             allow inheriting from parents (fixes #76302)
6147           - Use Control's InternalBorderStyle property to deal with borders
6148
6149 2005-10-06  Jackson Harper  <jackson@ximian.com>
6150
6151         * MdiChildContext.cs: Use the new xplatui function to draw a
6152         reversible rect.
6153
6154 2005-10-06  Jackson Harper  <jackson@ximian.com>
6155
6156         * Form.cs: Add the parent before creating the child context cause
6157         we need the parent when setting up the child.
6158
6159 2005-10-06  Jackson Harper  <jackson@ximian.com>
6160
6161         * FolderBrowserDialog.cs: redo the tree population code so a
6162         second thread isn't used. Should be a lot faster and more stable
6163         now.
6164
6165 2005-10-05  Jackson Harper  <jackson@ximian.com>
6166
6167         * TreeView.cs: There are no expand/collapse boxes if the node has
6168         no children.
6169
6170 2005-10-05  Jackson Harper  <jackson@ximian.com>
6171
6172         * X11DesktopColors.cs: Get menu colours for the gtk theme.
6173
6174 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
6175
6176         * FileDialog.cs: Fix InitialDirectory
6177
6178 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6179
6180         * ComboBox.cs:
6181                 - Fixes changing between styles
6182                 - Fixes simple mode
6183                 - Fixes last item crashing when navigating with keyboard
6184
6185 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6186
6187         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6188
6189 2005-10-05  Jackson Harper  <jackson@ximian.com>
6190
6191         * TreeView.cs: If updating the root node do a full refresh.
6192         * TreeNode.cs: The root node should be expanded by default. Also
6193         added a utility prop to tell if we are the root node.
6194         * TreeNodeCollection.cs: Only refresh if the node we are being
6195         added to is expanded. Also added a comment on a potential
6196         optimization.
6197         
6198 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6199
6200         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
6201           in dispose method. Fixes #76330
6202
6203 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
6204
6205         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
6206
6207                 - Implements vertical and horizontal scrolling using XplatUI
6208                 - Fixes keyboard navagation
6209                 - Fixes EnsureVisible
6210                 - Drawing fixes
6211                 - Handles and draws focus properly
6212
6213
6214 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
6215
6216         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
6217           Create handle. NET_2_0: Destroy handle when value is null.
6218
6219 2005-10-03  Jackson Harper  <jackson@ximian.com>
6220
6221         * ScrollBar.cs: My last scrollbar patch was broken. This is a
6222         revert and a new patch to prevent the thumb from refreshing so
6223         much.
6224
6225 2005-10-02  Jackson Harper  <jackson@ximian.com>
6226
6227         * ScrollBar.cs: Don't update position if it hasn't actually
6228         changed. This occurs when you hold down the increment/decrement
6229         buttons and the thumb gets to the max/min.
6230
6231 2005-10-01  Jackson Harper  <jackson@ximian.com>
6232
6233         * Form.cs:
6234         * MdiChildContext.cs:
6235         * MdiClient.cs: Implement ActiveMdiChild in Form.
6236
6237 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
6238
6239         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
6240
6241 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
6242
6243         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
6244           be found
6245
6246 2005-09-30  Jackson Harper  <jackson@ximian.com>
6247
6248         * ListBox.cs: Don't do a full refresh unless some data has
6249         actually changed.
6250
6251 2005-09-30  Jackson Harper  <jackson@ximian.com>
6252
6253         * TreeView.cs: Make sure that the checkboxes size is factored in
6254         even when not visible.
6255
6256 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6257
6258         * FileDialog.cs: Fix Jordi's build break
6259
6260 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6261
6262         * FileDialog.cs: 
6263                 - Use standard the Windows colours for the combobox as espected
6264                 - Dispose objects that use resouces when no longer need them
6265
6266 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6267
6268         * X11DesktopColors.cs: Initial incomplete implementation
6269         * XplatUIX11.cs: Added call to initialize X11DesktopColors
6270
6271 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
6272
6273         * Theme.cs: 
6274           - Switched Theme color names to match the names defined in 
6275             System.Drawing.KnownColors. Life's hard enough, no need to make 
6276             it harder.
6277           - Added setters to all theme color properties so themes can set
6278             their color schemes. The setters also propagate the color changes
6279             to System.Drawing.KnownColors via reflection
6280         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
6281           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
6282           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
6283           use the new, more logical theme color names
6284         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6285           post-NT colors
6286         * ThemeWin32Classic.cs:
6287           - Removed code to set the old classic Windows colors. Instead it
6288             now relies on the colors returned by System.Drawing.KnownColors
6289             which will be either modern static colors (Unix) or colors
6290             read from the user's configuration (Win32)
6291           - Updated to use the new, more logical theme color names
6292           - Switched DataGrid drawing code to use only Theme colors instead of
6293             a mix of System.Drawing.KnownColors and Theme colors
6294           - DrawFrameControl(): Removed code that fills the button area, the
6295             fill would overwrite any previous fill done by a control. This
6296             fixes bug #75338 
6297           - Added DrawReversibleRectangle() stub
6298         * ScrollableControl.cs: Set visible state to false when scrollbars
6299           are removed (pdn fix)
6300         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6301           DrawReversibleRectangle() method to allow drawing primitive 
6302           'rubber bands'
6303         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6304
6305 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6306
6307         * ImageList.cs: Add(Icon): Create handle.
6308
6309 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6310
6311         * ListView.cs:
6312         * ThemeWin32Classic.cs:
6313                 - Fixes detail mode
6314                 - Sets clippings
6315                 - Issues with drawing
6316
6317 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6318
6319         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6320           source has to be the ImageList.
6321
6322 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6323
6324         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6325
6326 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6327
6328         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6329
6330 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6331
6332         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6333
6334 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6335         * GridItem.cs: Fixed TODOs
6336         * GridItemCollection.cs: Added ICollection interface
6337
6338 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6339
6340         * ImageList.cs: Resize icons when needed.
6341
6342 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6343
6344         * ListViewItem.cs
6345                 - Fixes GetBounds and returns on screen rects
6346         * ListView.cs:
6347                 - Fixes vertical and horzintal scrolling of items
6348         * ThemeWin32Classic.cs:
6349                 - Fixes drawing
6350                 
6351 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6352
6353         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6354
6355 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6356
6357         * ImageList.cs: Added comments about handle creation. Moved Handle,
6358           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6359           Handle is created in Add methods.
6360
6361 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6362          
6363         * DataGridDrawingLogic.cs: 
6364                 - Takes rows into account on Colum calculations
6365                 - Returns the column when clickig
6366         * DataGrid.cs:
6367                 - Fixes default HitTestInfo values
6368                 - Fixes HitTestInfo.ToString
6369                 - Fixes ResetBackColor          
6370         
6371 2005-09-28  Jackson Harper  <jackson@ximian.com>
6372
6373         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6374         sizing or cursor changes). Also added some temp code to draw the
6375         titlebars text (Makes dev a little easier).
6376
6377 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6378
6379         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6380
6381 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6382          
6383         * ListBox.cs: Fixes bug 76253
6384
6385 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6386
6387         * ImageList.cs: Added comments about the current implementation. Added
6388           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6389           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6390           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6391           with Bitmap.LockBits for better performance. Revised the whole file to
6392           match MS.NET behaviour and provide better performance. Non-public
6393           interface members are calling public members even when they throw
6394           NotSupportedException for better maintainability. Moved ColorDepth,
6395           ImageSize, ImageStream and TransparentColor implementations to
6396           ImageCollection for better performance as these properties are not used
6397           by ImageList.
6398         * ImageListStreamer.cs: Added a new internal constructor that takes an
6399           ImageList.ImageCollection and serializes Images based on
6400           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6401           match ImageList property name.
6402
6403 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6404
6405         * ListBox.cs: Fixes IndexFromPoint for last item
6406
6407 2005-09-27  Jackson Harper  <jackson@ximian.com>
6408
6409         * Form.cs: Set the position of new mdi children correctly.
6410
6411 2005-09-27  Jackson Harper  <jackson@ximian.com>
6412
6413         * MdiClient.cs: New mdi children need to be added to the back of
6414         the controls collection so the zorder is set correctly. Also add a
6415         count of all the child windows that have been created.
6416
6417 2005-09-27  Jackson Harper  <jackson@ximian.com>
6418
6419         * Form.cs (CreateParams): Setup MDI forms correctly.
6420
6421 2005-09-27  Jackson Harper  <jackson@ximian.com>
6422
6423         * MdiChildContext.cs:
6424         * MonthCalendar.cs:
6425         * UpDownBase.cs:
6426         * ListBox.cs:
6427         * ListView.cs:
6428         * TextBoxBase.cs:
6429         * TreeView.cs:
6430         * ScrollableControl.cs:
6431         * ComboBox.cs: Add implicit controls using the new implict control
6432         functionality in ControlCollection. Also try to block multiple
6433         control add in a suspend/resume layout to save some cycles.
6434         
6435 2005-09-27  Jackson Harper  <jackson@ximian.com>
6436
6437         * Control.cs: Add functionality to the controls collection to add
6438         'implicit controls' these are controls that are created by the
6439         containing control but should not be exposed to the user. Such as
6440         scrollbars in the treeview.
6441         * Form.cs: The list var of the ControlsCollection is no longer
6442         available because of the potential of implicit controls getting
6443         ignored by someone accessing the list directly.
6444
6445 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
6446
6447         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6448           loose it's parent. (Fixed bug introduced in r49103 when we added
6449           setting the child parent to null on Remove)
6450
6451 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
6452
6453         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6454         * Splitter.cs: Added missing attributes for BorderStyle property.
6455         * TextBoxBase.cs: Marked Calculate* methods internal.
6456         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6457         MS.NET.
6458
6459 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
6460          
6461         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6462
6463 2005-09-25  Jackson Harper  <jackson@ximian.com>
6464
6465         * TreeView.cs: Update the node bounds correctly regardless of
6466         whether the node is visible.
6467
6468 2005-09-25  Jackson Harper  <jackson@ximian.com>
6469
6470         * ImageList.cs: Don't dispose the image after it is added to the
6471         image list. Only reformat images that need to be resized.
6472
6473 2005-09-25  Jackson Harper  <jackson@ximian.com>
6474
6475         * ImageList.cs: Don't set the format when changing the image.
6476
6477 2005-09-25  Jackson Harper  <jackson@ximian.com>
6478
6479         * TreeView.cs: We can't just assume the node has a font. Use the
6480         treeviews font if no node font is available.
6481
6482 2005-09-25  Jackson Harper  <jackson@ximian.com>
6483
6484         * TreeView.cs: Allow the scrollbars to be reset with negative
6485         values.
6486         - Don't add scrollbars to negative sized windows.
6487
6488 2005-09-23  Jackson Harper  <jackson@ximian.com>
6489
6490         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6491         old Mono.Posix. Also remove some stray code that shouldn't have
6492         been committed.
6493
6494 2005-09-23  Jackson Harper  <jackson@ximian.com>
6495
6496         * TreeView.cs: Attempt at proper sizing of the horizontal
6497         scrollbar. Also don't resize the scrollbars unless they are
6498         visible.
6499
6500 2005-09-23  Jackson Harper  <jackson@ximian.com>
6501
6502         * TreeView.cs: We don't need to expand the invalid area when the
6503         selection changes, as this is all drawn in the node's bounding
6504         box. The area needs to be expanded (previous typo was contracting
6505         it) when the focus rect moves.
6506
6507 2005-09-23  Jackson Harper  <jackson@ximian.com>
6508
6509         * TreeView.cs: Display the selection box under the correct
6510         circumstances. We were rendering white text with no selection box
6511         before.
6512
6513 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6514
6515         * TextControl.cs(Split): Now updates selection start/end if it points 
6516           into a line that's being split. Fixes a FIXME and bug #75258
6517
6518 2005-09-23  Jackson Harper  <jackson@ximian.com>
6519
6520         * Binding.cs:
6521         * ListControl.cs: Don't use the path when retrieving binding
6522         managers from the binding context. My bat sense tells me that the
6523         path is only used on insertion.
6524
6525 2005-09-22  Jackson Harper  <jackson@ximian.com>
6526
6527         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6528
6529 2005-09-22  Jackson Harper  <jackson@ximian.com>
6530
6531         * Splitter.cs: There are special cursors used for splitting.
6532         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6533
6534 2005-09-22  Jackson Harper  <jackson@ximian.com>
6535
6536         * Splitter.cs: Change the cursor appropriately when the splitter
6537         is moused over, so the user actually knows there is a splitter
6538         there.
6539
6540 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6541
6542        * Label.cs : Fix ToString method to give same output as MS.NET
6543
6544 2005-09-22  Jackson Harper  <jackson@ximian.com>
6545
6546         * TreeView.cs: Create the scrollbars when the handle is created
6547         and add them right away, just make them invisble. Also account for
6548         the window being shrunk vertically to the point that the vert
6549         scrollbar needs to be added.
6550         - Remove some 0.5 adjustments to get around anti aliasing issues.
6551         
6552 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
6553          
6554         * MainMenu.cs: Fixes default value
6555         * MenuItem.cs: Fixes default value
6556
6557 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
6558
6559         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6560
6561 2005-09-21  Jackson Harper  <jackson@ximian.com>
6562
6563         * Control.cs: Don't try to set the border style on the window if
6564         it hasn't been created. When the window is created the border
6565         style will be used.
6566
6567 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6568
6569         * Control.cs (Update): Don't call XplatUI if we don't have a
6570           window handle yet
6571
6572 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6573
6574         * ContainerControl.cs: Instead of throwing an exception, print
6575           a one-time warning about Validate not being implemented
6576         * XplatUIWin32.cs: Removed debug output
6577
6578 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6579
6580         * Control.cs: Only set XplatUI background if we expect the windowing
6581           system to handle the background. This stops controls that draw their
6582           own background from flickering
6583
6584         * XplatUIX11.cs: Support custom visuals and colormaps for window 
6585           creation. This allows, amongst other things, using MWF X11 windows 
6586           with OpenGL.
6587
6588 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6589
6590         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6591           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6592           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6593           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6594           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6595           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6596           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6597           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6598           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6599           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6600           GridColumnStylesCollection.cs, 
6601           IDataGridColumnStyleEditingNotificationService.cs,
6602           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6603           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6604           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
6605           TreeNodeCollection.cs, AmbientProperties.cs, 
6606           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6607           DataObject.cs, ErrorProvider.cs, Splitter.cs,
6608           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6609           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6610           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6611           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6612           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6613           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6614           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6615           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6616           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6617           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6618           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6619           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6620           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6621           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6622           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6623           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6624           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6625           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6626           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6627           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6628           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6629           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6630           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6631           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6632           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6633           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6634           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6635           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6636           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6637           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6638           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6639           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6640           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6641           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6642           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6643
6644 2005-09-21  Jackson Harper  <jackson@ximian.com>
6645
6646         * TreeNode.cs: Call Before/After Expand not Collapse when
6647         expanding.
6648
6649 2005-09-20  Jackson Harper  <jackson@ximian.com>
6650         
6651         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6652
6653 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6654          
6655         * ListViewItem.cs:
6656                 - Fixes bug 76120
6657                 - Fixes proper storing of subitems
6658                 - Fixes not updated items
6659
6660 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6661
6662         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6663           things if our window handle isn't created yet. Also disabled 
6664           debug for TextBoxBase
6665
6666 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6667
6668         * MenuAPI.cs: Remove filtering of events to allow menu usage
6669
6670 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6671
6672         * Cursor.cs: Allow null to be passed to Cursor.Current.
6673
6674 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6675
6676         * ThemeWin32Classic.cs:
6677           - Change some private methods/fields to protected virtual so that 
6678             they can be accessed and overriden in derived classes
6679           - First refactoring of some methods. Derived themes now don't 
6680             need to duplicate the complete code from ThemeWin32Classic
6681         * ThemeNice.cs:
6682           - Added nice StatusBar
6683           - Derive from ThemeWin32Classic and not Theme
6684           - Removed duplicate ThemeWin32Classic code
6685
6686 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6687
6688         * Control.cs (ControlCollection.Add): If the value null is passed
6689         the control is ignored. 
6690
6691         Optimize this loop.
6692
6693 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6694
6695         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6696           PostQuitMessage state.
6697         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6698
6699 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6700
6701         * Application.cs: Our constructor will never get called, move 
6702           initialization to fields; fixes bug #75933
6703
6704 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6705
6706         * FileDialog.cs :
6707                 - Allow files to be selected properly using file name
6708                 combo box.
6709                 - Add ability to change diretory (absolute / relative)
6710                 using file name combo box.
6711
6712 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6713          
6714         * ListBox.cs: 
6715                 - Fixes Multicolumn listboxes item wrong calculations
6716                 - Allows to click when only one item is in the listbox
6717                 - Fixes crash when no items using keyboard navigation
6718
6719 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6720
6721         * ComboBox.cs: Reverted almost everything from the latest patch which
6722           broke ComboBox
6723
6724 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6725         
6726         * ToolTip.cs:
6727                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6728         * ComboBox.cs:
6729                 - When DropDownStyle is Simple, it does not show scrollbar 
6730                 to the last item of the list.
6731                 - When DropDownStyle is Simple, it crashed when the list was 
6732                 scrolled down with the down cursor key.
6733                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6734                 selected item was not shown.
6735                 - The position of the selected item was not preserved when 
6736                 the next dropdown happened.
6737         * ThemeWin32Classic.cs:
6738                 - Items were wrapped at the right end.
6739         * CheckedListBox.cs:
6740                 - Fixed Add method
6741         * ListBox.cs:
6742                 - Items should be fully shown.
6743                 - When resizing and vertical scrollbar disappeared, the item 
6744                 of index 0 should be on the top of the list.
6745                 - GetItemRectangle should consider the size of ver. scrollbar
6746         * StatusBar.cs:
6747                 - SizingGrip area should not be allocated when it is not 
6748                 displayed.
6749                 - Now it reflects MinWidth of the containing panel and 
6750                 fixed a crash that happens when its width becomes so small.
6751
6752 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6753
6754         * CheckedListBox.cs: Fixes bug 76028
6755         * ListBox.cs: Fixes bug 76028
6756
6757 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6758
6759         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6760         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6761
6762 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6763
6764         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6765
6766 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6767
6768         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6769
6770 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6771
6772         * IRootGridEntry.cs: Added
6773         * PropertyGridCommands.cs: Added
6774         * PropertiesTab.cs: Added missing methods and property
6775         * PropertyGridView.cs: Made class internal
6776         * PropertyGridTextBox.cs: Made class internal
6777
6778 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6779
6780         * MimeIcon.cs: Try to check some other environment variables
6781           if "DESKTOP_SESSION" returns "default"
6782
6783 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6784
6785         * ThemeNice.cs: Corrected background colors (e.g. menus)
6786         * ColorDialog.cs: Use correct background colors for controls
6787
6788 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6789
6790         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6791
6792 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6793
6794         * RichTextBox.cs: Added initial implementation
6795         * lang.cs: Removed. Was accidentally checked in long time ago
6796         * TODO: Removed. Contents were obsolete
6797
6798 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6799                                                                                 
6800         * PropertiesTab.cs : Added
6801
6802 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6803                                                                                 
6804         * PropertyGrid.cs : Update
6805         * PropertyGridView.cs : Update
6806         * System.Windows.Forms.resx : Added images and strings
6807
6808 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6809
6810         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6811  
6812 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6813
6814         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6815           a busy loop right after the Ungrab the X11 display is otherwise 
6816           blocked
6817
6818 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6819
6820         * ThemeWin32Classic.cs: Optimise the use of clipping
6821
6822 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6823
6824         * DataGrid.cs: fixes recursion bug
6825
6826 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6827
6828         * ThemeNice.cs: 
6829           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6830           - Cleanup
6831
6832 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6833
6834         * ThemeNice.cs: Draw nice ProgressBars
6835
6836 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6837
6838         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6839
6840         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6841         bug finder.
6842
6843 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6844
6845         * ThemeNice.cs:
6846           - Added nicer menu drawing
6847           - Updated DrawTab
6848           - some refactoring
6849
6850 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6851
6852         * CreateParams.cs (ToString): Made output match MS
6853         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6854             handle is already created (to avoid forcing window creation)
6855         * XplatUIX11.cs: Set window text to caption after creating window,
6856           in case Text was set before window was created
6857         * Form.cs: Use this.Text instead of a static string as caption
6858
6859 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6860
6861         * NotifyIcon.cs: Don't set the window to visible; this screws
6862           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6863           OnPaint without a bitmap)
6864         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6865           happen very often anyway; we could add the check to the WM_PAINT 
6866           event generation code
6867
6868 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6869
6870         * NotifyIcon.cs: Fill the icon area with a background color, to 
6871           avoid 'residue' when transparent icons are drawn
6872         * XplatUIX11.cs:
6873           - Handle whole_window == client_window when destroying windows
6874           - SystrayAdd(): Set client_window to whole_window value to
6875             get mouse and other events passed to NotifyIcon
6876
6877 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6878
6879         * Form.cs: Set proper default for Opacity property
6880         * NotifyIcon.cs:
6881           - ShowSystray(): Don't bother creating telling the OS
6882             about the systray item if no icon is provided
6883           - Now handles WM_NCPAINT message to deal with whole/client window
6884             split
6885           - Create window as visible to not get caught by Expose optimization
6886         * Hwnd.cs: Removed debug message
6887         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6888           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6889             PaintEventStart/End to use new client argument
6890         * TextBoxBase.cs:
6891           - Commented out debug messages
6892           - Switched PaintEventStart/End to use new client argument
6893         * XplatUI.cs: Added client window bool to PaintEventStart()/
6894           PaintEventEnd() calls, to support drawing in non-client areas
6895         * XplatUIDriver.cs: 
6896           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6897             calls, to support drawing in non-client areas
6898           - Added conditional compile to allow using MWF BeginInvoke 
6899             on MS runtime
6900         * XplatUIX11.cs:
6901           - Added some conditional debug output
6902           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6903             whole/client window split
6904           - Implemented handling of client argument to PaintEventStart()/End()
6905         * Control.cs:
6906           - Throw exception if BeginInvoke() is called and the window handle
6907             or one of the window's parent handles is not created
6908           - Added conditional compile to allow using MWF BeginInvoke on
6909             MS runtime
6910           - get_Parent(): Only sets parent if handle is created. This avoids
6911             forcing window handle creation when parent is set.
6912           - Now fires Layout and Parent changed events in proper order
6913           - Switched to use Handle instead of window.Handle for Z-Order setting,
6914             the get_Parent() patch above causes us to possibly get null for 'window'
6915           - Implemented handling of client argument to PaintEventStart()/End()
6916           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6917             default handling)
6918           - Now sends a Refresh() to all child windows when Refresh() is called
6919
6920 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6921
6922         * Form.cs: Added (non-functional) Opacity property
6923         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6924
6925 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6926         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6927           use export MONO_THEME=nice to activate it.
6928           Currently supported controls:
6929           - Button
6930           - ComboBox
6931           - ScrollBar
6932           - TabControl (TabAlignment.Top only, other will follow)
6933         * ThemeEngine.cs: Add theme nice
6934         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6935           if enabled
6936
6937 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6938
6939         * Splitter.cs: Resize docked control and its neighbor.
6940
6941 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6942         -- Making Windows with Menus layout correctly --
6943         * Form.cs : The first leg of the fix
6944                 Menu setter - adjust Client Size as needed to make space for the menu
6945                 SetClientSizeCore - doesn't call base version to be able to pass the 
6946                         menu handle to XplatUI.CalculateWindowRect
6947         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6948         * XplatUIX11.cs: The critical second leg of the fix
6949                 GetWindowPos needs to use a recalculated client_rect
6950                 so that resizing the window doesn't break layout of child controls. 
6951                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6952                 Lots of \t\n killed
6953
6954 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6955
6956         * Label.cs: Now properly recalculates width and height on Font and Text
6957           changes if AutoSize is set
6958
6959 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6960         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6961
6962 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6963
6964         * ImageList.cs: Makes ToString method compatible with MS
6965
6966 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6967
6968         * MenuAPI.cs: fixes bug 75716
6969
6970 2005-08-11 Umadevi S <sumadevi@novell.com>
6971         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6972
6973 2005-08-11 Umadevi S <sumadevi@novell.com>
6974         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6975
6976 2005-08-10  Umadevi S <sumadevi@novell.com>
6977         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6978
6979 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6980
6981         * Menu.cs: fixes bug 75700
6982         * MenuAPI.cs: fixes navigation issues
6983
6984 2005-08-09  Umadevi S <sumadevi@novell.com>
6985         * CheckedListBox.cs - simple fix for GetItemChecked.
6986
6987 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6988
6989         * ComboBox.cs: Serveral fixes
6990         * ListBox.cs: Serveral fixes
6991
6992 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6993
6994         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6995         * ListBox.cs: Fixes FindString methods
6996
6997 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6998
6999         * DataGrid.cs: fixes bugs exposed by new tests
7000
7001 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
7002
7003         * Mime.cs: Compile Mono assembly references only if compiling
7004           with Mono (Allows to build with VS.Net again)
7005
7006 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
7007
7008         * Control.cs (PaintControlBackground): Draw background image
7009         corrrectly.
7010         (CheckForIllegalCrossThreadCalls): Stubbed.
7011         
7012         * Form.cs (OnCreateControl): Center when should be centered.
7013         
7014         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
7015
7016 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
7017
7018         * Binding.cs: Binding to properties should be case unsensitive
7019
7020 2005-07-18 vlindos@nucleusys.com
7021
7022         * DataGrid.cs: fixes setmember order
7023
7024 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
7025
7026         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
7027         * FileDialog.cs: FileDialog is now resizable and uses the new
7028           MimeIconEngine
7029
7030 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
7031
7032         * DataGridTextBoxColumn.cs: default value
7033         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
7034         * GridTableStylesCollection.cs: fixes checking MappingName
7035         * DataGridDrawingLogic.cs: fixes drawing logic issues
7036         * DataSourceHelper.cs: rewritten to make compatible with more data sources
7037         * DataGrid.cs: fixes    
7038
7039 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
7040
7041         * MimeGenerated.cs: Use case sensitive comparer for
7042           NameValueCollections
7043
7044 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
7045
7046         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
7047         * ThemeWin32Classic.cs: bug fixes, code refactoring
7048         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
7049         * DataGrid.cs: bug fixes, code refactoring
7050         * DataGridTextBox.cs: bug fixes, code refactoring
7051         * DataGridColumnStyle.cs:  bug fixes, code refactoring
7052         * Theme.cs:  bug fixes, code refactoring
7053
7054 2005-07-01  Peter Bartok  <pbartok@novell.com> 
7055
7056         * TextControl.cs: Quick fix for the reported crash on ColorDialog
7057           and other text box usage
7058
7059 2005-07-01  Jackson Harper  <jackson@ximian.com>
7060
7061         * TabControl.cs: Make sure the bottom of the tab covers the pages
7062         border.
7063
7064 2005-06-30  Peter Bartok  <pbartok@novell.com> 
7065
7066         * Form.cs (ShowDialog): Assign owner of the dialog
7067         * TextBoxBase.cs: Always refresh caret size when deleting, caret
7068           might have been moved to a tag with different height
7069
7070 2005-06-30  Jackson Harper  <jackson@ximian.com>
7071
7072         * Form.cs: Don't create an infinite loop when setting focus
7073         * MenuItem.cs: Don't dirty the parents if we don't have any
7074
7075 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
7076
7077         * LibSupport.cs: Rename
7078
7079 2005-06-29  Peter Bartok  <pbartok@novell.com>
7080
7081         * TextBoxBase.cs: Re-align caret after deleting a character
7082         * TextControl.cs:
7083           - DeleteChars(): Ensure that tag covers the provided position
7084           - StreamLine(): Drop reference for dropped tag
7085
7086 2005-06-29  Peter Bartok  <pbartok@novell.com> 
7087
7088         * TextControl.cs: 
7089           - Selections now work properly, anchoring at the initial location
7090             and properly extending in either direction (SetSelectionToCaret(),
7091             SetSelectionStart() and SetSelectionEnd())
7092           - No longer redraws the whole control on selection change, now
7093             calculates delta between previous and new selection and only
7094             invalidates/redraws that area
7095           - Fixed FindPos() math off-by-one errors
7096           - Changed DeleteChars() to verify the provided tag covers the
7097             provided position, selections may have a tag that doesn't cover
7098             the position if the selection is at a tag border
7099           - Fixed off-by-one errors in DeleteChars()
7100           - Added missing streamlining check in DeleteChars() to remove
7101             zero-length tags
7102           - Implemented Invalidate() method, now properly calculates exposures
7103             between two given lines/positions
7104           - Implemented SetSelection()
7105           - Obsoleted and removed FixupSelection()
7106           - Improved RecalculateDocument() logic, removing code duplication
7107
7108 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7109
7110         * LibSupport.cs: changes to match different input/output arguments.
7111
7112 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7113
7114         * LibSupport.cs: added libsupport.so init routine.
7115
7116 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
7117         
7118         * ControlBindingsCollection.cs
7119                 - Throws an exception on null datasource when adding
7120                 - Checks for duplicated bindings when adding
7121
7122 2005-06-28  Jackson Harper  <jackson@ximian.com>
7123
7124         * TreeView.cs (OnKeyDown): Support left and right properly
7125         (navigates as well as expanding and collapsing.
7126         - Add support for Multiply, this expands all the selected nodes
7127         children.
7128         - Fix some tabbing.
7129
7130 2005-06-28  Jackson Harper  <jackson@ximian.com>
7131
7132         * TreeView.cs: Implement keyboard navigation, currently supports,
7133         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
7134         support for toggling checkboxes with the space bar.
7135
7136 2005-06-28  Jackson Harper  <jackson@ximian.com>
7137
7138         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
7139         tree.
7140
7141 2005-06-28  Jackson Harper  <jackson@ximian.com>
7142
7143         * TreeView.cs: Add missing event.
7144
7145 2005-06-27  Peter Bartok  <pbartok@novell.com> 
7146
7147         * TextControl.cs:
7148           - Made line ending size configurable (now allows for counting 
7149             lineendings as \n or \r\n)
7150           - Added margin to viewport to keep caret visible on right side
7151           - Fixed translation routines for line/pos to documentpos to consider
7152             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
7153           - Fixed some line-endings to be unix style
7154           - Fixed Document.FormatText to perform it's calculations 1-based
7155           - Added descriptions for a few methods that might otherwise get 
7156             used wrong
7157           - Added NOTE section with some basic conventions to remember at 
7158             the top of the file
7159           - Major fixup for RichTextBox selection drawing:
7160             * Fixed crashes when multiple tags on a single line were selected
7161             * fixed selection box drawing not overlaying text
7162             * fixed bogus offset calculation for tags not starting at index 1
7163             * Switched behaviour from using multiple Substrings of a 
7164               StringBuilder.ToString() to using multiple 
7165               StringBuilder.ToString(start, length) statements, hoping this is
7166               faster (kept original version commented out in the code, in case
7167               original version was faster)
7168         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
7169           alignment != Left
7170         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
7171           call it as well
7172
7173 2005-06-27  Jackson Harper  <jackson@ximian.com>
7174
7175         * TabControl.cs: Move to the left and right with the arrow
7176         keys. These keys don't cycle beyond first and last like
7177         tab. Refresh all the tabs when scrolling them to the left or
7178         right.
7179
7180 2005-06-27  Jackson Harper  <jackson@ximian.com>
7181
7182         * TabControl.cs:
7183           - ToString: Added method
7184           - CreateParams: Remove TODO and comment
7185           - OnKeyDown: Cycle through bounds properly.
7186           - SelectedIndex: Scroll to the right or left if we need to
7187           display the newly selected tab.
7188
7189 2005-06-23  Jackson Harper  <jackson@ximian.com>
7190
7191         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7192         set.
7193
7194 2005-06-23  Jackson Harper  <jackson@ximian.com>
7195
7196         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7197         CTRL-SHIFT-TAB, and HOME, END are there any others?
7198
7199 2005-06-23  Jackson Harper  <jackson@ximian.com>
7200
7201         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
7202
7203 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7204         
7205         * DataGridTextBoxColumn.cs: fixes and enhancements
7206         * ThemeWin32Classic.cs: fixes and enhancements
7207         * DataGridBoolColumn.cs:  fixes and enhancements
7208         * DataGridDrawingLogic.cs:  fixes and enhancements
7209         * CurrencyManager.cs: fixes and enhancements
7210         * DataGrid.cs: fixes and enhancements
7211         * DataGridColumnStyle.cs:  fixes and enhancements
7212
7213 2005-06-22  Jackson Harper  <jackson@ximian.com>
7214
7215         * TabControl.cs: Add some missing methods that just call into the
7216         base. Make the TabPageCollection's IList interface behave in the
7217         same manner as the MS implementation.
7218
7219 2005-06-22  Peter Bartok  <pbartok@novell.com> 
7220
7221         * TextControl.cs: Added sanity check
7222         * TextBoxBase.cs: 
7223           - Fixed wrapping behaviour, don't set wrap on single line controls
7224             (this fixes the breakage of colordialog introduced in an earlier
7225              checkin)
7226           - Added rudimentary support for autoscrolling right-aligned controls
7227             (still needs fixing, also, center alignment scroll is missing)
7228
7229 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7230         
7231         * ScrollBar.cs: Fixes thumbpos on Maximum values
7232
7233 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
7234         
7235         * PropertyGridView.cs: Pass context information to UITypeEditors 
7236
7237 2005-06-21  Peter Bartok  <pbartok@novell.com> 
7238
7239         * TextBoxBase.cs:
7240           - Now calling PositionCaret with absolute space coordinates
7241           - Enabled vertical scrolling
7242           - Better tracking of scrollbar changes, tied into WidthChange
7243             event
7244           - Improved cursor tracking
7245           - Removed debug output
7246         * TextControl.cs:
7247           - PositionCaret coordinates are now works in absolute space, not 
7248             the canvas
7249           - Improved tracking of document size
7250           - Added events for width and height changes
7251
7252 2005-06-21  Peter Bartok  <pbartok@novell.com>
7253
7254         * Form.cs: Set focus to active control when form is activated
7255         * TextControl.cs: 
7256           - Added word-wrap functionality to RecalculateLine() 
7257           - Added some short function descriptions for VS.Net to aid in
7258             writing dependent controls
7259           - Added Caret property, returning the current coords of the caret
7260           - Added ViewPortWidth and ViewPortHeight properties
7261           - Added Wrap property
7262           - Added CaretMoved event
7263           - Removed some old debug code
7264           - Split() can now create soft splits
7265           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
7266           - Added method to format existing text
7267           - Fixed size/alignment calculations to use viewport
7268           - RecalculateDocument now can handle changing line-numbers while
7269             calculating lines
7270
7271         * TextBox.cs:
7272           - Added some wrap logic, we don't wrap if alignment is not left
7273           - Added casts for scrollbar var, base class switched types to
7274             also support RichTextBoxA
7275           - Implemented handling of scrollbar visibility flags
7276
7277         * TextBoxBase.cs:
7278           - Switched scrollbars type to RichTextBoxScrollBars to support
7279             RichTextBox
7280           - Added tracking of canvas width/height
7281           - Switched scrollbars to be not selectable (to keep focus on text)
7282           - Added central CalculateDocument() method to handle all redraw
7283             requirements
7284           - Added ReadOnly support
7285           - Added WordWrap support
7286           - Fixed handling of Enter key (we now treat it as a DialogKey)
7287           - Fixed caret positioning when h or v scroll is not zero
7288           - Fixed placing/generation of vertical scrollbar
7289           - Added CalculateScrollBars() method to allow updating scrollbar
7290             limits and visibility
7291           - Fixed handling of horizontal scroll
7292           - Added handling of vertical scroll
7293           - Implemented auto-'jump' when caret moves to close to a left or
7294             right border and there is text to be scrolled into view (currently
7295             there's the potential for a stack overflow, until a bug in
7296             scrollbar is fixed)
7297
7298 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7299         
7300         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7301
7302 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7303
7304         * Mime.cs:
7305         - added inodes.
7306         - return application/x-zerosize for files with size zero
7307           (if no extension pattern matches).
7308         - check matches collection for strings too.
7309         - return only the first mime type if the name value
7310           collection has more than one mime type.
7311
7312 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7313         
7314         * PropertyGrid.cs: Cleaned up some TODOs
7315         * PropertyGridView.cs: Added support for UITypeEditors
7316
7317 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7318         
7319         * DataGrid.cs: clears cached value
7320
7321 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7322
7323         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7324         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7325         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7326         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7327         
7328 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7329
7330         * ThemeWin32Classic.cs: fixes colour
7331
7332 2005-06-15  Peter Bartok  <pbartok@novell.com>
7333
7334         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7335         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7336         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7337         * Control.cs: Added some MWFCategory and MWFDescription attributes
7338         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7339
7340 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7341
7342         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7343         usage
7344
7345 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7346
7347         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7348         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7349         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7350         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7351         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7352         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7353
7354 2005-06-13  Jackson Harper  <jackson@ximian.com>
7355
7356         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7357         isn't printed when the user enables dropping. (X11 does accept
7358         drops).
7359         
7360 2005-06-13  Jackson Harper  <jackson@ximian.com>
7361
7362         * TreeView.cs: Remove some TODOS.
7363
7364 2005-06-13  Jackson Harper  <jackson@ximian.com>
7365
7366         * Form.cs: Hook into the mdi framework.
7367         * MdiClient.cs: Use the base control collections add method so
7368         parents get setup correctly. Set the default back colour and dock
7369         style.
7370         * MdiChildContext.cs: New class, this bad actor handles an
7371         instance of an MDI window. Right now there is only basic
7372         support. You can drag, close, and resize windows. Minimize and
7373         Maximize are partially implemented.
7374
7375 2005-06-13  Jackson Harper  <jackson@ximian.com>
7376
7377         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7378         freaky when both vals are negative. NOTE: There are probably other
7379         places in XplatUIX11 that this needs to be done.
7380
7381 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7382
7383         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7384         * DataGridColumnStyle.cs: fixes signature
7385
7386 2005-06-12  Jackson Harper  <jackson@ximian.com>
7387
7388         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7389         windows.
7390
7391 2005-06-11  Jackson Harper  <jackson@ximian.com>
7392
7393         * StatusBarPanel.cs: Signature cleanups. Implement
7394         BeginInit/EndInit.
7395
7396 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7397
7398         * DataGridTextBoxColumn.cs: Honors aligment
7399         * GridColumnStylesCollection.cs: Contains is case unsensitive
7400         * GridTableStylesCollection.cs: several fixes
7401         * DataGridTableStyle.cs: default column creation
7402         * DataGridDrawingLogic.cs: fixes
7403         * CurrencyManager.cs: ListName property
7404         * DataGrid.cs: multiple styles support
7405         * DataGridColumnStyle.cs: fixes
7406         
7407
7408 2005-06-10  Peter Bartok  <pbartok@novell.com>
7409
7410         * Control.cs(Select): Moved SetFocus call to avoid potential
7411           loops if controls change the active control when getting focus
7412         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7413           the up/down buttons
7414
7415 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7416
7417         * ImageListConverter.cs: Implemented
7418
7419 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7420
7421         * MonthCalendar.cs: Wired in NumericUpDown control for year
7422
7423 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7424
7425         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7426           DoubleClick events, since they are not meant to be fired.
7427
7428 2005-06-09  Peter Bartok  <pbartok@novell.com>
7429
7430         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7431           Jonathan's standalone controls into MWF, implemented missing
7432           events, attributes and methods; added xxxAccessible classes
7433         * AccessibleObject.cs: Made fields internal so other classes
7434           can change them if needed
7435
7436 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
7437
7438         * UpDownBase.cs: Complete implementation
7439         * NumericUpDown.cs: Complete implementation
7440         * DomainUpDown.cs: Complete implementation
7441
7442 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
7443
7444         * DataGridTextBoxColumn.cs: drawing fixes
7445         * DataGridCell.cs: fixes ToString method to match MSNet
7446         * DataGridTableStyle.cs: fixes
7447         * DataGridBoolColumn.cs: fixes, drawing
7448         * DataGridDrawingLogic.cs: fixes, new methods
7449         * DataGridTextBox.cs: Keyboard and fixes
7450         * DataGrid.cs:
7451                 - Keyboard navigation
7452                 - Scrolling fixes
7453                 - Row selection (single, multiple, deletion, etc)
7454                 - Lots of fixes
7455         
7456 2005-06-07  Jackson Harper  <jackson@ximian.com>
7457
7458         * ThemeWin32Classic.cs: Clear the background area when drawing
7459         buttons.
7460
7461 2005-06-06  Peter Bartok  <pbartok@novell.com>
7462
7463         * ImageListStreamer.cs: Fixed signature for GetData
7464         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7465         * ComboBox.cs:
7466           - Added missing ChildAccessibleObject class
7467           - Added missing OnXXXFocus overrides, switched to using those
7468             instead of the event handler
7469         * Control.cs:
7470           - Added Parent property for ControlAccessibleObject
7471           - Fixed signatures
7472           - Fixed attributes
7473           - Added ResetBindings()
7474         * ListBindingConverter.cs: Implemented some methods
7475         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7476         * ImageList.cs: Implemented basic handle scheme, removed TODOs
7477         * ContainerControl.cs: Fixed signature, now subscribing to the
7478           ControlRemoved event instead of overriding the handler, LAMESPEC
7479         * CurrencyManager.cs: Added missing attribute
7480         * MonthCalendar.cs: Added missing properties
7481
7482 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7483
7484         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7485         
7486 2005-06-06  Gaurav Vaish and Ankit Jain
7487
7488         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7489         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7490         
7491 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7492
7493         * Control.cs: fixes CreateParams Width / Height.
7494
7495 2005-06-05  Peter Bartok  <pbartok@novell.com>
7496
7497         * Win32DnD.cs: Removed compilation warnings
7498
7499 2005-06-05  Peter Bartok  <pbartok@novell.com>
7500
7501         * Control.cs (CreateParams): Since we don't know if one of the
7502           properties we use is overridden, lets make sure if we fail accessing
7503           we continue with a backup plan
7504
7505 2005-06-05  Peter Bartok  <pbartok@novell.com>
7506
7507         * Win32DnD.cs:
7508           - Removed debug output
7509           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7510             struct
7511           - Plugged resource leak
7512         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7513           MS size
7514
7515 2005-06-05  Peter Bartok  <pbartok@novell.com>
7516
7517         * XplatUIWin32.cs: Removed DnD code
7518         * Win32DnD.cs: Implemented drop source and drop target functionality
7519
7520 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7521
7522         * UpDownBase.cs: remove duplicate addition of event, enable some code
7523         that was commented out.
7524         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7525         Validate input when a key is pressed. It works fine now for every
7526         combination of Hexadecimal. Only missing some drawing love when sharing
7527         space with other controls.
7528
7529 2005-06-04  Peter Bartok  <pbartok@novell.com>
7530
7531         * Control.cs:
7532           - We need to pass a window for DragDrop, so enable callback events
7533           - Added DnD callback events when being a DragSource
7534         * XplatUI.cs (StartDrag): Added window handle argument
7535         * XplatUIDriver.cs (StartDrag): Added window handle argument
7536         * QueryContinueDragEventArgs: Made fields internally accessible so
7537           drivers can set them
7538         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7539           can set them
7540
7541 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
7542
7543         * DataGridTextBoxColumn.cs: column text editing
7544         * DataGridTableStyle.cs: Respect columns styles created by the user
7545         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7546         * DataGridBoolColumn.cs: bool column editing
7547         * DataGrid.cs: fixes to scrolling, properties, etc
7548         * DataGridTextBox.cs: handle keyboard
7549         * DataGridColumnStyle.cs: fixes
7550
7551 2005-06-02  Jackson Harper  <jackson@ximian.com>
7552
7553         * ImageListStreamer.cs: Somewhat broken implementation of
7554         GetObjectData. The RLE needs some work to match MS properly.
7555
7556 2005-06-02  Jackson Harper  <jackson@ximian.com>
7557
7558         * X11Dnd.cs: Attempting to keep at least one file in MWF
7559         monostyled.
7560
7561 2005-06-02  Peter Bartok  <pbartok@novell.com>
7562
7563         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7564           that way
7565
7566 2005-06-02  Peter Bartok  <pbartok@novell.com>
7567
7568         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7569         * XplatUI.cs: Added DoDragDrop() method
7570         * XplatUIDriver.cs: Added DoDragDrop() method
7571
7572 2005-06-02  Jackson Harper  <jackson@ximian.com>
7573
7574         * Splitter.cs: Implement BorderStyle.
7575
7576 2005-06-02  Jackson Harper  <jackson@ximian.com>
7577
7578         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7579         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7580         X11 using XDND.
7581
7582 2005-06-02  Peter Bartok  <pbartok@novell.com>
7583
7584         * DataObject.cs:
7585           - Added Data setter
7586           - Fixed broken insertion code for SetData, now also
7587             overwrites any existing entry of the same format name
7588         * Hwnd.cs: Added list of pointers that automatically gets
7589           freed when the window is disposed
7590         * XplatUI.cs: Call driver initialization method when loading
7591           a driver
7592         * Control.cs:
7593           - OnDragLeave takes EventArgs, not DragEventArgs
7594           - Added setting of WS_EX_ACCEPTFILES style when dropping is
7595             supported
7596           - Forces style update when drop state changes
7597         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7598           not perfect since we cannot (yet) call the IDataObject.GetData()
7599           method, we keep getting 0x80004005 error, dunno why)
7600
7601 2005-06-02  Peter Bartok  <pbartok@novell.com>
7602
7603         * DragEventArgs.cs: Make fields internal so we can cache the
7604           object and re-set the fields from XplatUI
7605
7606 2005-06-02  Jackson Harper  <jackson@ximian.com>
7607
7608         * Control.cs: Add some internal methods so the DnD subsystem can
7609         raise DnD events. Also call into the driver when AllowDrop is set.
7610         * XplatUI.cs:
7611         * XplatUIDriver.cs: New method for setting whether or not a window
7612         is allowed to accept drag and drop messages.
7613                 
7614 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7615         
7616         * ScrollBar.cs: Make sure that values sent in Scroll events
7617         are always between Maximum and Minimum.
7618
7619 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7620
7621         * Menu.cs: Call MenuChanged when menuitem visibility has been
7622         changed.
7623         * MenuItem.cs: Rebuild menu when item is (not) visible.
7624         * MainMenu.cs: MainMenu has special MenuChanged.
7625         * Theme.cs: Caption and FrameBorderSize are not fixed.
7626         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7627         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7628         * XplatUIX11.cs,
7629         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7630         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7631
7632 2005-05-30  Jackson Harper  <jackson@ximian.com>
7633
7634         * DataFormat.cs: We can't statically initialize this stuff because
7635         it calls into the xplatui and could create a loop. So we lazy init
7636         it.
7637
7638 2005-05-28  Jackson Harper  <jackson@ximian.com>
7639
7640         * Control.cs: Proper implementation of Product(Name/Version).
7641
7642 2005-05-27  Jackson Harper  <jackson@ximian.com>
7643
7644         * DataObject.cs: Dont crash if no data is found.
7645
7646 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7647         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7648                 as per status page, guessing it should be set to true
7649
7650 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7651
7652         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7653         * DataGridTableStyle.cs: set proper formatting text, def header text
7654         * ThemeWin32Classic.cs: new themable paramaters
7655         * DataGridBoolColumn.cs: paint check box, get data, fixes
7656         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7657         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7658         * DataGridColumnStyle.cs: fixes
7659         * Theme.cs: new themable paramaters
7660                 
7661 2005-05-26  Peter Bartok  <pbartok@novell.com>
7662
7663         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7664
7665 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7666         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7667
7668 2005-05-24  Peter Bartok  <pbartok@novell.com>
7669
7670         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7671           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7672           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7673           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7674           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7675           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7676           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7677           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7678           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7679           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7680           missing attributes, etc
7681         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7682
7683 2005-05-24  Peter Bartok  <pbartok@novell.com>
7684
7685         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7686           when user tries to get help
7687         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7688           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7689           to suppress warnings
7690         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7691           avoid unreachable code warning
7692
7693 2005-05-20  Peter Bartok  <pbartok@novell.com>
7694
7695         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7696
7697 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7698
7699         * DataGridTextBoxColumn.cs: Basic painting methods
7700         * DataGridTableStyle.cs: Set table style in the column
7701         * ThemeWin32Classic.cs: Use Theme for colors
7702         * DataGridDrawingLogic.cs: Implement more drawing
7703         * DataGrid.cs: drawing, theming, enhacements, fixes
7704         * DataGridColumnStyle.cs: fixes, drawing
7705         * Theme.cs: theming for Datagrid
7706
7707 2005-05-20  Peter Bartok  <pbartok@novell.com>
7708
7709         * Cursor.cs: Implemented GetObjectData() method
7710
7711 2005-05-20  Peter Bartok  <pbartok@novell.com>
7712
7713         * Cursors.cs: Added setting of cursor name
7714         * Cursor.cs:
7715           - Implemented constructors
7716           - Implemented Draw and DrawStretched
7717           - Implemented Current property
7718           - Implemented == and != operators
7719           - Implemented Dispose()
7720           - Implemented ToString
7721           - Added missing attributes
7722         * XplatUIX11.cs:
7723           - Added missing reset for OverrideCursor when DoEvents is called
7724           - Fixed creation of cursor, logic was wrong
7725         * XplatUIWin32.cs:
7726           - Added missing reset for OverrideCursor when DoEvents is called
7727           - Fixed creation of cursor, bit arrays were swapped
7728         * Clipboard.cs: Removed obsolete MonoTODO attribute
7729
7730 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7731
7732         * ComboBox.cs: fixes OnSelectedItemChanged
7733         * ControlBindingsCollection.cs: fixes item range check
7734
7735 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7736
7737         * UpDownBase.cs:
7738                 - Calc preferred height properly
7739                 - Implement missing properties
7740                 
7741         * NumericUpDown.cs: Implement missing events
7742
7743 2005-05-19  Jackson Harper  <jackson@ximian.com>
7744
7745         * TabControl.cs: New method that resizes the tab pages before
7746         redrawing them. This as needed as the control is double buffered
7747         and sizing will not be recalculated unless ResizeTabPages is
7748         called.
7749         * TabPage.cs: Set base.Text instead of Text in the constructor so
7750         that UpdateOwner does not get called. Use the new Redraw method of
7751         TabControl instead of Refresh so the sizing is recalculated.
7752         * ThemeWin32Classic.cs: Draw the text for button tabs.
7753
7754 2005-05-19  Jackson Harper  <jackson@ximian.com>
7755
7756         * Control.cs: Paint control background images. Fix typo where
7757         PaintControlBackground was not getting called correctly.
7758
7759 2005-05-19  Peter Bartok  <pbartok@novell.com>
7760
7761         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7762           I can investigate, apparently I broke FileDialog
7763
7764 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7765
7766         * AxHost.cs: Some simple properties.
7767         * Control.cs: window must be accessible after ctor.
7768         * Form.cs: Added TransparencyKey property.
7769         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7770         * XplatUIWin32.cs: SetBorderStyle implemented.
7771
7772 2005-05-18  Peter Bartok  <pbartok@novell.com>
7773
7774         * DataObject.cs: Entries are not global but particular to the
7775           DataObject, now it behaves that way
7776         * XplatUIWin32.cs: Implemented Clipboard methods
7777         * Clipboard.cs: Implemented
7778         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7779         * XplatUIOSX.cs: Updated to final clipboard prototypes
7780         * XplatUIX11.cs: Implemented Clipboard methods
7781         * XplatUIDriver.cs: Updated to final clipboard prototypes
7782         * XplatUIStructs.cs:
7783           - Added BITMAPINFOHEADER struct
7784           - Added ClipboardFormats enum
7785         * X11Structs.cs:
7786           - Added ClipboardStruct
7787           - Added Atom enum items for clipboard types
7788           - Fixed atom types for Selection event structures
7789         * DataFormats.cs:
7790           - Added internal properties and methods for drivers to enumerate
7791             all known formats
7792           - Switched initialization method to allow drivers to assign their
7793             own IDs even for the MS predefined clipboard IDs
7794         * XplatUI.cs: Updated to final clipboard interface
7795
7796 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7797         * PropertyGridView.cs: Fixed compiler warnings.
7798
7799 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7800         * PropertyGrid.cs: Added some event calls
7801         * PropertyGridView.cs: Change drawing code to use double buffering
7802         * PropertyGridTextBox.cs: Changed Text property name
7803         * GridItem.cs: Added Bounds property.
7804         * GridEntry.cs: Added Bounds property.
7805
7806 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7807
7808         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7809         since GetType() may not return the correct type if the object is
7810         a remoting proxy.
7811
7812 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7813
7814         * TreeNodeCollection.cs: fixes get/set item ranges
7815         
7816 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7817
7818         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7819                 
7820 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7821
7822         * ComboBox.cs: Fix item range comparation
7823         * ListView.cs: Fix item range comparation
7824
7825 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7826
7827         * FontDialog.cs:
7828           - Clear example panel when OnPaint is called
7829           - Better solution for displaying the example panel text
7830           - Select default indexes in the ListBoxes
7831
7832 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7833
7834         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7835
7836 2005-05-11  Peter Bartok  <pbartok@novell.com>
7837
7838         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7839         * SelectionRangeConverter.cs: Implemented
7840         * PropertyGrid.cs: Fixed attribute value
7841         * Control.cs:
7842           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7843           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7844         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7845           that's common to all drivers. First methods to go there are
7846           Sebastien Pouliot's CAS Stack Propagation helper methods
7847         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7848           Sebastien Pouliot for CAS Stack Propagation
7849
7850 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7851
7852         * OSXStructs.cs:
7853           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7854
7855 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7856
7857         * DataGridTextBoxColumn.cs: fixed some members
7858         * GridColumnStylesCollection.cs: indexed column is case insensitive
7859         * DataGridTableStyle.cs: fixes
7860         * ThemeWin32Classic.cs: add new theme parameter
7861         * Theme.cs: add new theme parameter
7862         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7863         * DataGrid.cs: fixes, new internal properties, etc.
7864         * DataGridColumnStyle.cs: allows to set grid value
7865         *
7866
7867 2005-05-10  Peter Bartok  <pbartok@novell.com>
7868
7869         * AccessibleObject.cs:
7870           - Removed MonoTODO attribute on help, method is correct
7871           - Fixed Bounds property
7872         * AxHost.cs: Moved MonoTODO
7873         * ButtonBase.cs: Now setting AccessibleObject properties
7874         * RadioButton.cs: Setting proper AccessibleObject role
7875         * CheckBox.cs: Setting proper AccessibleObject role
7876         * ControlBindingsCollection.cs: Added properties, methods and attributes
7877         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7878           userdefined DataFormats.Format items as well
7879         * ListControl.cs: Removed data_member from the public eye
7880         * OpenFileDialog.cs:
7881           - Made class sealed
7882           - Added missing attributes
7883         * SaveFileDialog.cs: Added missing attributes
7884         * ImageListStreamer.cs: Fixed code that caused warnings
7885         * LinkLabel.cs: Removed unreachable code
7886         * TreeView.cs: Fixed code that caused warnings
7887         * PropertyGridView.cs: Fixed code that caused warnings
7888         * GridColumnStylesCollection.cs: Added missing attributes
7889         * GridTableStylesCollection: Added missing attribute
7890         * PropertyManager: Added .ctor
7891         * SecurityIDType: Added
7892         * DataObject.cs: Implemented class
7893         * LinkArea.cs: Added missing attribute
7894
7895 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7896
7897         * RadioButton.cs: call base method to allow to fire OnClick event
7898         * UpDownBase.cs: OnMouseUp call base method
7899         * CheckedListBox.cs: call base method before returning
7900         * TrackBar.cs: call base method before returning
7901         
7902
7903 2005-05-10  Peter Bartok  <pbartok@novell.com>
7904
7905         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7906           for messages
7907
7908 2005-05-10  Peter Bartok  <pbartok@novell.com>
7909
7910         * DataFormats.cs: Implemented
7911         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7912           XplatUIX11.cs: Added Clipboard APIs
7913         * XplatUIWin32.cs: Implemented Clipboard APIs
7914         * FolderBrowserDialog.cs: Added missing event, attributes
7915
7916 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7917
7918         * CheckBox.cs: call base method to allow to fire OnClick event
7919
7920 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7921
7922         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7923
7924 2005-05-06  Peter Bartok  <pbartok@novell.com>
7925
7926         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7927         * Screen.cs: Implemented
7928         * HelpNavigator.cs: Added
7929         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7930           property
7931         * HelpProvider.cs: Implemented all we can do until we have a CHM
7932           help library (which means that "What's This" does work now)
7933
7934 2005-05-06  Jackson Harper  <jackson@ximian.com>
7935
7936         * XplatUIX11.cs: Fix waking up the main loop.
7937                 
7938 2005-05-05  Peter Bartok  <pbartok@novell.com>
7939
7940         * XplatUI.cs: Updated revision
7941         * Form.cs: Removed enless loop
7942         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7943         * Label.cs (OnPaint): Added call to base.OnPaint()
7944         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7945         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7946         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7947         * AxHost.cs: Added
7948         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7949         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7950           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7951           reuse of ToolTipWindow by other controls
7952         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7953         * XplatUIX11.cs: Now clipping drawing area (experimental)
7954         * PictureBox.cs: Moved base.OnPaint() call to end of method
7955         * Theme.cs: Fixed ToolTip abstracts to match new format
7956         * ErrorProvider.cs: Implemented
7957
7958 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7959
7960         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7961         * LinkLabel.cs:
7962                 - Adds cursors
7963                 - Handles focus
7964                 - Implements LinkBehavior
7965                 - Fixes many issues
7966
7967 2005-05-03  Jackson Harper  <jackson@ximian.com>
7968
7969         * ListView.cs: Calculate the scrollbar positioning on resize and
7970         paint, so they get put in the correct place.
7971
7972 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7973
7974         * ColorDialogs.cs: The small color panels are now handled by
7975           SmallColorControl. This fixes drawing of the focus rectangle
7976           and adds a 3D border.
7977
7978 2005-05-03  Peter Bartok  <pbartok@novell.com>
7979
7980         * Control.cs: Modified version of Jonathan Chamber's fix for
7981           double-buffering
7982
7983 2005-05-03  Jackson Harper  <jackson@ximian.com>
7984
7985         * ListView.cs: Remove redraw variable. Control now handles whether
7986         or not a redraw needs to be done, and will only raise the paint
7987         event if redrawing is needed.
7988
7989 2005-05-03  Jackson Harper  <jackson@ximian.com>
7990
7991         * Splitter.cs: No decorations for the splitter form. Cache the
7992         hatch brush.
7993
7994 2005-05-03  Jackson Harper  <jackson@ximian.com>
7995
7996         * TreeView.cs: Use dashed lines to connect nodes. Use the
7997         ControlPaint method for drawing the focus rect instead of doing
7998         that in treeview.
7999
8000 2005-05-02  Peter Bartok  <pbartok@novell.com>
8001
8002         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
8003
8004 2005-04-29  Jackson Harper  <jackson@ximian.com>
8005
8006         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
8007         entire image buffer. Just clear the clipping rectangle.
8008
8009 2005-04-29  Jackson Harper  <jackson@ximian.com>
8010
8011         * ThemeWin32Classic.cs: Don't draw list view items that are
8012         outside the clipping rectangle.
8013
8014 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
8015
8016         * ListBox.cs: added horizontal item scroll
8017
8018 2005-04-29  Jackson Harper  <jackson@ximian.com>
8019
8020         * ThemeWin32Classic.cs: Remove some old debug code that was
8021         causing flicker with the new double buffering code.
8022
8023 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
8024
8025         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
8026         behave like combobox and comboboxlist (still not sure if this is
8027         correct though).
8028
8029 2005-04-28  Jackson Harper  <jackson@ximian.com>
8030
8031         * ThemeWin32Classic.cs: Don't fill the middle of progress
8032         bars. This fills areas outside of the clip bounds that don't need
8033         to be filled.
8034
8035 2005-04-28  Jackson Harper  <jackson@ximian.com>
8036
8037         * Control.cs: Don't expose functionality to touch the image buffers.
8038         * ProgressBar.cs:
8039         * ListView.cs: We do not need to (and no longer can) manipulate
8040         the image buffers directly. All of this is handled by Control.
8041
8042 2005-04-28  Peter Bartok  <pbartok@novell.com>
8043
8044         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8045           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
8046           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
8047
8048 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8049
8050         * Combobox:
8051                 - Adjust control's height for non-simple comboboxes (bug fix)
8052                 - Remove dead code
8053         * MenuAPI.cs: remove unused var
8054         * ScrollBar.cs: remove unsed var
8055                  
8056         * ListBox.cs: unselect items when clearing
8057
8058 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8059
8060         * ListControl.cs: honors OnPositionChanged and default Selected Item
8061         * ListBox.cs: unselect items when clearing
8062
8063 2005-04-27  Jackson Harper  <jackson@ximian.com>
8064
8065         * X11Keyboard.cs: Initialize a default keyboard and give a warning
8066         if a "correct" keyboard is not found. This will make us not crash,
8067         but might give some users bad keyboard layouts...seems to be the
8068         same thing rewind does.
8069
8070 2005-04-27  Jackson Harper  <jackson@ximian.com>
8071
8072         * BindingManagerBase.cs: Attach the current/position changed
8073         handlers to their respective events.
8074
8075 2005-04-27  Jackson Harper  <jackson@ximian.com>
8076
8077         * Control.cs: Make sure that the first WM_PAINT does a full draw,
8078         not just a blit.
8079         * ThemeWin32Classic.cs: Don't fill the background for picture
8080         boxes. This could overright user drawing.
8081         * ComboBox.cs: Just fill the clipping rect not the entire client
8082         rect when drawing the background. This prevents pieces of the
8083         image buffer from getting overwritten and is theoretically faster.
8084
8085 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
8086
8087         * ComboBox.cs: Databinding support fixes, fire missing events
8088         * ListControl.cs: implement missing methods and properties, fixes
8089         * ThemeWin32Classic.cs: Databiding support on Drawing
8090         * CheckedListBox.cs: Databinding support fixes, fire missing events
8091         * ListBox.cs: Databinding support fixes, fire missing events
8092         
8093 2005-04-25  Peter Bartok  <pbartok@novell.com>
8094
8095         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
8096
8097 2005-04-25  Jackson Harper  <jackson@ximian.com>
8098
8099         * TreeView.cs: Use the horizontal scrollbars height not width when
8100         determining how much of the client area is available.
8101
8102 2005-04-25  Jackson Harper  <jackson@ximian.com>
8103
8104         * Control.cs: Double buffering is handled differently now. As per
8105         the spec, the extra buffer is created in the WM_PAINT message and
8106         passed down to the control's drawing code.
8107         * GroupBox.cs:
8108         * Label.cs:
8109         * CheckBox.cs:
8110         * ProgressBar.cs:
8111         * RadioButton.cs:
8112         * ColorDialog.cs:
8113         * ComboBox.cs:
8114         * PropertyGridView.cs:
8115         * UpDownBase.cs:
8116         * MessageBox.cs:
8117         * MenuAPI.cs:
8118         * ListView.cs:
8119         * ButtonBase.cs:
8120         * SizeGrip.cs:
8121         * ScrollBar.cs:
8122         * ListBox.cs:
8123         * TrackBar.cs:
8124         * ToolBar.cs:
8125         * PictureBox.cs:
8126         * DateTimePicker.cs:
8127         * StatusBar.cs:
8128         * TreeView.cs: Update to new double buffering system.
8129         * MonthCalendar.cs: Uncomment block, as Capture is now
8130         working. Update to new double buffering
8131         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
8132         * PaintEventArgs.cs: New internal method allows us to set the
8133         graphics object. This is used for double buffering.
8134         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
8135         rectangle. The internal paint_area var has been removed from
8136         StatusBar. The clipping rect should be used instead.
8137         * Theme.cs: Give the PictureBox drawing method a clipping rect.
8138         * TabPage.cs: The RefreshTabs method was removed, so just call the
8139         tab controls Refresh method now.
8140         * TabControl.cs: Update to new double buffering. Make sure the
8141         handle is created before sizing the tab pages, otherwise we will
8142         get stuck in a loop.
8143
8144 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
8145
8146         * LinkLabel.cs: Fix typo, bug #74719; patch
8147           from Borja Sanchez Zamorano
8148
8149 2005-04-22  Jackson Harper  <jackson@ximian.com>
8150
8151         * TreeNode.cs: Implement Handle stuff.
8152         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
8153
8154 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
8155
8156         * DataGridTextBoxColumn.cs: call base constructors, fixes
8157         * GridColumnStylesCollection.cs: missing events, methods, and functionality
8158         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
8159         * DataGridTableStyle.cs: implements create default column styles
8160         * DataGridBoolColumn.cs: which types can handle
8161         * DataGrid.cs: missing methods, fixes, new functionality
8162         * DataGridColumnStyle.cs: fixes
8163
8164 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
8165         * FolderBrowserDialog.cs:
8166         - Use a thread to fill the TreeView
8167         - Adjusted some sizes
8168
8169 2005-04-19  Peter Bartok  <pbartok@novell.com>
8170
8171         * LinkLabel.cs: (Re-)create the pieces when setting the Text
8172           property. Fixes #74360.
8173
8174 2005-04-19  Jackson Harper  <jackson@ximian.com>
8175
8176         * XEventQueue.cs: Lock when getting the lockqueue size.
8177         * PictureBox.cs: Call base OnPaint
8178         
8179 2005-04-19  Peter Bartok  <pbartok@novell.com>
8180
8181         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8182           messages were no longer being processed (this broke BeginInvoke)
8183
8184           
8185 2005-04-18  Jackson Harper  <jackson@ximian.com>
8186
8187         * TreeView.cs: buglet that caused node images to get drawn
8188         regardless of whether or not they were in the clipping rectangle.
8189
8190 2005-04-18  Jackson Harper  <jackson@ximian.com>
8191
8192         * CurrencyManager.cs: There are four rules for GetItemProperties:
8193         - If the type is an array use the element type of the array
8194         - If the type is a typed list, use the type
8195         - If the list contains an Item property that is not an object, use
8196         that property
8197         - use the first element of the list if there are any elements in
8198         the list.
8199         
8200 2005-04-17  Jackson Harper  <jackson@ximian.oom>
8201
8202         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
8203         click. This handles offsets for scrolling properly and reduces
8204         memory. Also fixed GetNode to not offset now that TopNode works
8205         properly.
8206         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
8207         
8208 2005-04-17  Jackson Harper  <jackson@ximian.com>
8209
8210         * CursorConverter.cs: Initial implementation.
8211
8212 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8213
8214         * ListControl.cs: work towards complex data binding support on ListControl
8215         * CurrencyManager.cs: work towards complex data binding support on ListControl
8216         * ListBox.cs: work towards complex data binding support on ListControl
8217
8218
8219 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8220
8221         * GridTableStylesCollection.cs: fixes name and constructor
8222         * DataGridTableStyle.cs: fixes
8223         * DataGridBoolColumn.cs: fixes names and constructors
8224         * DataGrid.cs: define methods and properties. Some init implementations
8225         * DataGridCell.cs: define methods and properties. Some init implementations
8226         * GridTablesFactory.cs: Define methods and properties
8227
8228 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
8229
8230         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
8231         graphics port changes.  We still want the coordinates in global screen
8232         coordinates.
8233
8234 2005-04-14  Jackson Harper  <jackson@ximian.com>
8235
8236         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
8237         check plus minus or checkbox clicks unless those features are enabled.
8238
8239 2005-04-14  Jackson Harper  <jackson@ximian.com>
8240
8241         * TreeView.cs: Add methods for setting the top and bottom visible
8242         nodes. TreeNode::EnsureVisible uses these methods.
8243         * TreeNode.cs: Implement EnsureVisible
8244
8245 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
8246
8247         * Form.cs: Pospone menu assignation if the window has not been created yet
8248         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
8249         size and position
8250
8251 2005-04-12  Jackson Harper  <jackson@ximian.com>
8252
8253         * TreeView.cs: Set the TopNode properly when scrolling
8254         occurs. This has the added benifit of reducing the amount of
8255         walking that needs to be done when drawing. Also removed an old
8256         misleading TODO.
8257         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
8258         
8259 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
8260
8261         * Timer.cs: fixes interval setting when the timer is already enabled
8262         
8263 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
8264
8265         * FolderBrowserDialog.cs: First approach
8266
8267 2005-04-09  Peter Bartok  <pbartok@novell.com>
8268
8269         * FolderBrowserDialog: Added
8270
8271 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
8272
8273         * LinkLabel.cs: move drawing code into the theme
8274         * ThemeWin32Classic.cs: drawing code and painting background bugfix
8275         * Theme.cs: define DrawLinkLabel method
8276
8277 2005-04-05  Jackson Harper  <jackson@ximian.com>
8278
8279         * BindingContext.cs: Use weak references so these bad actors don't
8280         stay alive longer then they need to.
8281
8282 2005-04-05  Jackson Harper  <jackson@ximian.com>
8283
8284         * ListControl.cs: Basic implementation of complex databinding.
8285         * ComboBox.cs:
8286         * ListBox.cs: Add calls to ListControl databinding methods.
8287
8288 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8289
8290         * FileDialog.cs:
8291           - Don't change PopupButtonState to Normal when the
8292             PopupButton gets pressed several times.
8293           - Renamed ButtonPanel to PopupButtonPanel
8294
8295 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8296
8297         * ColorDialog.cs: Use cached objects instead of creating them
8298         * LinkLabel.cs: Use cached objects instead of creating them
8299         * Splitter.cs: Use cached objects instead of creating them
8300         * FontDialog.cs: Use cached objects instead of creating them
8301         * PropertyGridView.cs: Use cached objects instead of creating them
8302         * MessageBox.cs: Use cached objects instead of creating them
8303         * FileDialog.cs: Use cached objects instead of creating them
8304         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8305         * TreeView.cs: Use cached objects instead of creating them
8306         
8307 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8308
8309         * Control.cs: use Equals to compare the font since no == op
8310         * ScrollBar.cs: use Equals to compare the font since no == op
8311
8312 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8313
8314         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8315
8316 2005-04-01  Jackson Harper  <jackson@ximian.com>
8317
8318         * Binding.cs: Implement IsBinding.
8319         * BindingManagerBase.cs:
8320         * PropertyManager.cs:
8321         * CurrencyManager.cs: Add IsSuspended property.
8322
8323 2005-04-01  Jackson Harper  <jackson@ximian.com>
8324
8325         * Binding.cs: Had some IsAssignableFrom calls backwards.
8326
8327 2005-04-01  Jackson Harper  <jackson@ximian.com>
8328
8329         * Binding.cs: Handle null data members when pulling data.
8330         * PropertyManager.cs: Handle the data member being a property that
8331         does not exist.
8332
8333 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8334
8335         * DataGridTextBoxColumn.cs: fixes signature
8336         * DataGrid.cs: calls right constructor
8337
8338 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8339
8340         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8341         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8342         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8343         * DataGridTableStyle.cs: implements DataGridTableStyle
8344         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8345         * DataGridTextBox.cs: implements DataGridTextBox
8346         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8347
8348 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8349
8350         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8351
8352 2005-03-29  Peter Bartok  <pbartok@novell.com>
8353
8354         * Application.cs:
8355           - Properly implemented CompanyName property
8356           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8357             returns a path that includes CompanyName, ProductName and
8358             Version (fixes bug #70330)
8359
8360 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8361
8362         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8363           fixes bug #72588.
8364
8365 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8366
8367         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8368         
8369           - Added ReadOnly CheckBox
8370           - Further refactoring: moved some code from Open-/SaveFileDialog
8371             to FileDialog
8372
8373 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8374
8375         * OpenFileDialog.cs: Fixed CheckFileExists
8376         * FileDialog.cs:
8377           Moved FileView and DirComboBox outside FileDialog class.
8378           They can now be used outside FileDialog
8379
8380 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8381
8382         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8383         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8384
8385 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8386
8387         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8388           - Added missing CreatePrompt property in SaveDialog
8389           - Overall SaveDialog handling should be better now
8390           - Added non standard ShowHiddenFiles property
8391           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8392           - Added InitialDirectory and RestoreDirectory support
8393
8394 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8395
8396         * FileDialog.cs: Made dirComboBox usable
8397
8398 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8399
8400         * FileDialog.cs: Added Filter support (case sensitiv)
8401
8402 2005-03-24  Jackson Harper  <jackson@ximian.com>
8403
8404         * TabControl.cs: Need a couple more pixels for the lines.
8405
8406 2005-03-23  Jackson Harper  <jackson@ximian.com>
8407
8408         * TabControl.cs: Give the tab page focus when it is selected.
8409
8410 2005-03-23  Jackson Harper  <jackson@ximian.com>
8411
8412         * TabControl.cs: Account for the drawing of tabs borders when
8413         invalidating. If the slider was clicked dont do click detection on
8414         the tabs.
8415
8416 2005-03-23  Jackson Harper  <jackson@ximian.com>
8417
8418         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8419
8420 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8421
8422         * CategoryGridEntry.cs: Added
8423         * GridItem.cs: Added helper properties
8424         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8425         * GridEntry.cs: Updated code for collection
8426         * PropertyGrid.cs: Cleaned up some formatting
8427         * PropertyGridView.cs: Added drop down functionality for enums.
8428         * GridItemCollection.cs: Added enumerator logic
8429         * PropertyGridEntry.cs: Added
8430
8431 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8432
8433         * FileDialog.cs:
8434           - Removed unnecessary commented code
8435           - Fixed handling for entering the filename manually in the combobox
8436
8437 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8438
8439         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8440
8441 2005-03-18  Peter Bartok  <pbartok@novell.com>
8442
8443         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8444           them being touching the border
8445
8446 2005-03-18  Peter Bartok  <pbartok@novell.com>
8447
8448         * TextControl.cs: Quick hack to center text better
8449
8450 2005-03-18  Peter Bartok  <pbartok@novell.com>
8451
8452         * ControlPaint.cs:
8453           - Don't throw NotImplemented exceptions, just print a notice once
8454             instead (requested by Miguel). This makes running existing SWF
8455             apps a bit easier
8456         * Control.cs:
8457           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8458           - Added context menu trigger on right click
8459         * Panel.cs: Trigger invalidate on resize
8460         * StatusBar.cs:
8461           - Removed old double-buffer drawing
8462           - Added ResizeRedraw style to force proper update of statusbar
8463         * ListView.cs:
8464           - Removed debug output
8465         * ThemeWin32Classic.cs:
8466           - Fixed drawing of status bar, now draws Text property if there
8467             are no defined panels
8468
8469 2005-03-18  Jackson Harper  <jackson@ximian.com>
8470
8471         * ImageList.cs: When the image stream is set pull all the images
8472         from it.
8473         * ImageListStreamer.cs: Implement reading image list streams.
8474
8475 2005-03-18  Peter Bartok  <pbartok@novell.com>
8476
8477         * ThemeWin32Classic.cs (DrawPictureBox):
8478           - Fixed calculations for centered drawing
8479           - Fixed drawing for normal mode, not scaling the image on normal
8480
8481 2005-03-18  Peter Bartok  <pbartok@novell.com>
8482
8483         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8484           textbox
8485         * FileDialog.cs:
8486           - Made Open/Save button the accept button for FileDialog
8487           - Tied the cancel button to the IButtonControl cancel button
8488           - Save/Open now properly builds the pathname
8489           - Now handles user-entered text
8490           - Preventing crash on right-click if no item is selected
8491           - Fixed Text property, now uses contents of textbox
8492           - Fixed SelectedText property, now just returns the text part that
8493             is selected in the text box
8494
8495 2005-03-18  Jackson Harper  <jackson@ximian.com>
8496
8497         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8498         rect, make sure to de-adjust the interior rect after drawing the
8499         tab text.
8500
8501 2005-03-18  Peter Bartok  <pbartok@novell.com>
8502
8503         * MenuAPI.cs: Remove menu *before* executing selected action to
8504           prevent the menu from 'hanging around'
8505           
8506 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8507
8508         * XplatUIOSX.cs: Implemented WorkingArea property
8509
8510 2005-03-17  Peter Bartok  <pbartok@novell.com>
8511
8512         * XplatUIX11.cs: Fixed menu coord calculations
8513         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8514           for calculating offsets
8515
8516 2005-03-17  Peter Bartok  <pbartok@novell.com>
8517
8518         * Hwnd.cs: Do not consider menu presence for default client
8519           rectangle location/size
8520         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8521           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8522           translation functions
8523         * FileDialog.cs: Fixed (what I presume is a) typo
8524
8525 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8526
8527         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8528           X access (avoids X-Async errors)
8529
8530 2005-03-16  Jackson Harper  <jackson@ximian.com>
8531
8532         * TabControl.cs: Raise the SelectedIndexChanged event.
8533
8534 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8535
8536         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8537           - Removed vertical ToolBar and replaced it with a custom panel
8538             (desktop and home button already work)
8539           - Added Help button (some controls get resized or relocated then)
8540           - Draw correct text depending on Open or Save.
8541           - Fixed some typos...
8542
8543 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
8544
8545         * ScrollBar.cs:
8546           - Only change Maximum and Minimum when need it (bug fix)
8547
8548 2005-03-15  Peter Bartok  <pbartok@novell.com>
8549
8550         * Form.cs: Use Handle for icon, to trigger creation if
8551           the window does not yet exist
8552         * Control.cs:
8553           - CanSelect: Slight performance improvement
8554           - Focus(): Preventing possible recursion
8555           - Invalidate(): Removed ControlStyle based clear flag setting
8556           - WM_PAINT: fixed logic for calling OnPaintBackground
8557           - WM_ERASEBKGND: Fixed logic, added call to new driver method
8558             EraseWindowBackground if the control doesn't paint background
8559         * XplatUIWin32.cs:
8560           - Moved EraseWindowBackground() method to internal methods
8561           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8562             is sent via SendMessage on BeginPaint call on Win32
8563         * XplatUIX11.cs:
8564           - Added EraseWindowBackground() method
8565           - No longer sends WM_ERASEBKGND on .Expose, but on call to
8566             PaintEventStart, which more closely matches Win32 behaviour
8567           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8568           - Fixed SetFocus() to properly deal with client and whole windows
8569         * Hwnd.cs: Added ErasePending property
8570         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8571         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8572
8573 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
8574
8575         * XplatUIOSX.cs:
8576           - Fix hard loop when timers exist.
8577           - Fix bugs with middle and right click for 3 button mice.
8578
8579 2005-03-11  Peter Bartok  <pbartok@novell.com>
8580
8581         * XplatUIX11.cs:
8582           - get_WorkingArea: Need to call X directly, GetWindowPos only
8583             returns cached data now
8584           - Added sanity check to GetWindowPos hwnd usage
8585
8586 2005-03-11  Jackson Harper  <jackson@ximian.com>
8587
8588         * BindingManagerBase.cs: This method isn't used anymore as
8589         PullData now updates the data in the control.
8590
8591 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
8592
8593         * Form.cs: fixes menu drawing on X11
8594         * MenuAPI.cs:  fixes menu drawing on X11
8595
8596 2005-03-11  Peter Bartok  <pbartok@novell.com>
8597
8598         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8599           from Jonathan Gilbert; should fix bug #73606
8600         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8601           in Screen coordinates. Thanks, Jordi.
8602         * Form.cs: Added missing attribute
8603
8604 2005-03-11  Peter Bartok  <pbartok@novell.com>
8605
8606         * Form.cs:
8607           - Rudimentary Mdi support
8608           - Removed outdated FormParent code
8609           - Implemented lots of missing properties and methods, still missing
8610             transparency support
8611           - Added missing attributes
8612           - Implemented support for MaximumBounds
8613           - Added firing of various events
8614         * XplatUI.cs: Added SetIcon() method
8615         * XplatUIDriver.cs: Added SetIcon() abstract
8616         * XplatUIOSX.cs: Stubbed out SetIcon() method
8617         * XplatUIX11.cs:
8618           - Implemented SetIcon() support
8619           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8620           - Switched to unix line endings
8621         * XplatUIWin32.cs:
8622           - Made POINT internal so for can access it as part of MINMAX
8623           - Implemented SetIcon() support
8624           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8625             native Mdi support again, might have to go managed)
8626         * Control.cs: Now fires the StyleChanged event
8627         * MdiClient.cs: Added; still mostly empty
8628
8629 2005-03-10  Peter Bartok  <pbartok@novell.com>
8630
8631         * SaveFileDialog.cs: Added emtpy file
8632
8633 2005-03-08  Peter Bartok  <pbartok@novell.com>
8634
8635         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8636           in turn triggers OnCreateContro) when creating a handle for the
8637           first time.
8638         * TextControl.cs: Fixed endless loop in certain cases when
8639           replacing the current selection
8640
8641 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8642
8643         * ScrollBar.cs:
8644           - Honors NewValue changes in Scroll events allowing apps to change it
8645           - Adds First and Last Scroll events
8646           - Fixes Thumb events
8647
8648 2005-03-07  Peter Bartok  <pbartok@novell.com>
8649
8650         * Hwnd.cs: Added DefaultClientRectangle property
8651         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8652           more detailed debug information
8653         * XplatUIX11.cs:
8654           - Fixed size-change feedback loop, where we would pull an old size
8655             off the queue and mistakenly change our window's size to an
8656             earlier value
8657           - Now compressing ConfigureNotify events, to reduce looping and
8658             redraw issues
8659         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8660           is called
8661
8662 2005-03-07  Jackson Harper  <jackson@ximian.com>
8663
8664         * Binding.cs: Push data pushes from data -> property. Check if the
8665         property is readonly when attempting to set it.
8666
8667 2005-03-07  Jackson Harper  <jackson@ximian.com>
8668
8669         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8670         instead of IsSubclassOf. Pulling data now sets the value on the
8671         control.
8672         * PropertyManager.cs:
8673         * CurrencyManager.cs: Just need to pull data when updating now,
8674         because PullData will set the value on the control.
8675
8676 2005-03-04  Jackson Harper  <jackson@ximian.com>
8677
8678         * Binding.cs: Implement data type parsing and converting on pulled
8679         data. TODO: Are there more ways the data can be converted?
8680
8681 2005-03-04  Jackson Harper  <jackson@ximian.com>
8682
8683         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8684         controls Validating method so we can repull the data when the
8685         control loses focus.
8686
8687 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8688
8689         * ColumnHeader.cs:
8690           - Fixes null string format
8691           
8692         * ListView.cs:
8693           - Adds enum type checks
8694           - Fixes redrawing and recalc need after changing some properties
8695           - Fixes on focus_item set after the event
8696           - Fixes adding columns after the control has been created
8697           
8698         * ThemeWin32Classic.cs:
8699           - Fixes CheckBox focus rectangle
8700           - Fixes ColumnHeader drawing
8701
8702
8703 2005-03-03  Jackson Harper  <jackson@ximian.com>
8704
8705         * Binding.cs: Bind to <Property>Changed events so we can detect
8706         when properties are changed and update the data.
8707
8708 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8709
8710         * ImageList.cs:
8711           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8712           - Fixes ImageList constructor with ImageList container
8713           - Fixes image scaling (wrong parameters at DrawImage)
8714
8715 2005-02-02  Jackson Harper  <jackson@ximian.com>
8716
8717         * Binding.cs: Make property searches case-insensitive. Eliminate
8718         some duplicated code.
8719
8720 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8721
8722         * ComboBox.cs:
8723                 - Handle focus event
8724                 - Fix scrollbar events
8725                 - Discard highlighted item if remove it
8726                 - Fixes SelectedItem with strings
8727
8728 2005-03-01  Peter Bartok  <pbartok@novell.com>
8729
8730         * Control.cs:
8731           - Fixed Visible property, now follows (once again) parent chain
8732             to return false if any control in the chain is visible=false
8733           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8734           - Fixed several places where is_visible instead of Visible was used
8735           - Implemented FIXME related to focus selection when setting focused
8736             control to be invisible
8737
8738         * XplatUIWin32.cs: Now using proper method to find out if window is
8739           visible. Thanks to Jordi for pointing it out
8740
8741 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8742
8743         * ComboBox.cs: show/hide scrollbar instead of creating it
8744
8745 2005-02-27  Jackson Harper  <jackson@ximian.com>
8746
8747         * CurrencyManager.cs: Add PositionChanged stuff.
8748
8749 2005-02-27  Peter Bartok  <pbartok@novell.com>
8750
8751         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8752         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8753         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8754         * XplatUIX11.cs:
8755           - Implemented GetMenuDC()
8756           - Implemented GetMenuOrigin()
8757           - Implemented ReleaseMenuDC()
8758           - Implemented generation of WM_NCPAINT message
8759           - Implemented generation and handling of WM_NCCALCSIZE message
8760         * Form.cs: Added debug helper message for Jordi's menu work
8761         * Hwnd.cs:
8762           - Modified ClientRect property; added setter, fixed getter to handle
8763             setting of ClientRect
8764           - Added MenuOrigin property
8765
8766 2005-02-26  Peter Bartok  <pbartok@novell.com>
8767
8768         * XplatUIX11.cs:
8769           - Destroys the caret if a window that's being destroyed contains it
8770           - Ignores expose events coming from the X11 queue for windows that
8771             already are destroyed
8772           - Now uses the proper variable for handling DestroyNotify, before we
8773             marked the wrong window as destroyed
8774           - Improved/added some debug output
8775
8776 2005-02-26  Peter Bartok  <pbartok@novell.com>
8777
8778         * X11Keyboard.cs: Fixes to work on 64bit systems
8779
8780 2005-02-26  Peter Bartok  <pbartok@novell.com>
8781
8782         * Control.cs:
8783           - Now calling OnHandleDestroyed from DestroyHandle()
8784             instead of Dispose()
8785           - Removed bogus call to controls.Remove() from DestroyHandle()
8786
8787 2005-02-26  Peter Bartok  <pbartok@novell.com>
8788
8789         * Control.cs: Properly destroy child windows when our handle is
8790           destroyed
8791
8792 2005-02-25  Peter Bartok  <pbartok@novell.com>
8793
8794         * XplatUI.cs:
8795           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8796           - Alphabetized Static Methods and Subclasses
8797
8798         * XplatUIX11.cs:
8799           - Added XException class to allow custom handling of X11 exceptions
8800           - Created custom X11 error handler, tied into XException class
8801           - Added support for MONO_XEXCEPTIONS env var to allow the user
8802             to either throw an exception on X errors or continue running
8803             after displaying the error
8804           - Added handling of DestroyNotify message
8805           - Added handler for CreateNotify message (still disabled)
8806           - Improved (tried to at least) Where method to provide file and lineno
8807         * X11Structs.cs:
8808           - Added XErrorHandler delegate
8809           - Added XRequest enumeration (to suppor translation of errors)
8810
8811 2005-02-25  Jackson Harper  <jackson@ximian.com>
8812
8813         * PropertyManager.cs: Implement editing features
8814         * CurrencyManager.cs:
8815         * Binding.cs: First attempt at UpdateIsBinding
8816         * BindingManagerBase.cs: Call UpdateIsBinding before
8817         pushing/pulling data.
8818
8819 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8820
8821         * MenuAPI.cs: Respect disabled items
8822         * ThemeWin32Classic.cs
8823                 - Caches ImageAttributes creation for DrawImageDisabled
8824                 - Fixes vertical menu line drawing
8825                 - Draws disabled arrows in disable menu items
8826
8827 2005-02-24  Peter Bartok  <pbartok@novell.com>
8828
8829         * Hwnd.cs:
8830           - Added UserData property to allow associating arbitrary objects
8831             with the handle
8832           - Fixed leak; now removing Hwnd references from static windows array
8833         * XplatUIWin32.cs:
8834           - Fixed Graphics leak in PaintEventEnd
8835           - Removed usage of HandleData, switched over to Hwnd class
8836         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8837
8838 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8839
8840         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8841         * ScrollBar.cs: Fixes bug
8842         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8843          keyboard navigation enhancements
8844
8845 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8846
8847         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8848         * GroupBox.cs: Add control styles
8849         * Label.cs: Add control styles
8850         * UpDownBase.cs: Add control styles
8851         * ListBox.cs: Add control styles
8852         * XplatUIWin32.cs: Fixes wrong parameter order
8853
8854
8855 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8856
8857         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8858
8859 2005-02-23  Jackson Harper  <jackson@ximian.com>
8860
8861         * PropertyManager.cs: Implement property binding. This doesn't
8862         seem to work yet though as (I think) there are some bugs in
8863         System.ComponentModel.PropertyDescriptor.
8864         * BindingContext.cs: Use new PropertyManager constructor.
8865
8866 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8867
8868         * ProgressBar.cs: use clip region in ProgressBar
8869         * ThemeWin32Classic.cs: use clip region in ProgressBar
8870
8871 2004-02-22  Jackson Harper  <jackson@ximian.com>
8872
8873         * BindingsCollection.cs: Remove some debug code.
8874
8875 2005-02-22  Jackson Harper  <jackson@ximian.com>
8876
8877         * BindingContext.cs:
8878         * ControlBindingsCollection.cs:
8879         * CurrencyManager.cs:
8880         * Binding.cs:
8881         * BindingManagerBase.cs: Initial implementation
8882         * BindingsCollection.cs: Add an internal contains method that the
8883         BindingManagerBase uses to ensure bindings aren't added twice to
8884         the collection.
8885         * PropertyManager.cs: Stubbed out.
8886         * Control.cs:
8887         * ContainerControl.cs: Hook up databinding
8888         
8889 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8890
8891         * XplatUIOSX.cs:
8892           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8893           Fixed Invalidate/Update chain.
8894           Fixed tons of other minor bugs (this is almost a complete rewrite).
8895
8896 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8897
8898         * ComboBox.cs: do subcontrol creation when the control is created
8899
8900 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8901
8902         * Label.cs: fixes image drawing (image and imagelist)
8903         * ThemeWin32Classic.cs: cache brushes
8904         
8905 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8906
8907         * Form.cs: Move menu drawing code to Theme class
8908         * ComboBox.cs: Move ComboBox drawing code to Theme class
8909         * MenuItem.cs: Move menu drawing code to Theme class
8910         * MenuAPI.cs: Move menu drawing code to Theme class
8911         * ThemeWin32Classic.cs: New methods
8912         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8913         * ListBox.cs: Move Listbox drawing code to Theme class
8914         * Theme.cs: New methods
8915
8916 2005-02-20  Peter Bartok  <pbartok@novell.com>
8917
8918         * Control.cs:
8919           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8920             only process mnemonics on those)
8921           - Fixed event sequence for key handling; first calling
8922             ProcessKeyEventArgs now
8923         * TextBoxBase.cs:
8924           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8925             for processing non-character keys
8926           - Fixed WM_CHAR to generate proper event sequence before processing
8927         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8928           generation
8929
8930 2005-02-19  Peter Bartok  <pbartok@novell.com>
8931
8932         * UserControl.cs: Added TextChanged event; added attributes
8933         * SizeGrip.cs: Implemented resizing and optional display of grip
8934         * Form.cs: Fixed attribute
8935         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8936           Changed meaning of ScrollWindow bool argument; instead of the
8937           clear attribute (which will be true usually anyway), it gives the
8938           option of moving child controls as well.
8939         * XplatUIX11.cs:
8940           - Changed to match new ScrollWindow argument
8941           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8942             now handles the implicit parent window a WM puts around us
8943         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8944           to work)
8945         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8946         * TreeView.cs: Adjusted to new ScrollWindow arguments
8947
8948 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8949
8950         * Form.cs: Menu integration with non-client area
8951         * MenuItem.cs: Menu integration with non-client area
8952         * MenuAPI.cs: Menu integration with non-client area
8953
8954 2005-02-18  Peter Bartok  <pbartok@novell.com>
8955
8956         * MethodInvoker.cs: Added
8957         * MdiLayout.cs: Added
8958         * SendKeys.cs: Started implementation
8959         * ErrorIconAlignment.cs: Added
8960
8961 2005-02-18  Peter Bartok  <pbartok@novell.com>
8962
8963         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8964         * Form.cs: Added handling for Menu-related Non-client messages
8965
8966 2005-02-17  Peter Bartok  <pbartok@novell.com>
8967
8968         * UpDownBase.cs: Fixed typo, compilation errors
8969         * DomainUpDown.cs: Fixed attribute value
8970
8971 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8972
8973         * UpDownBase.cs: Attach entry events.
8974         Propagate events.
8975         Add ForeColor property, Focused, InterceptArrowKeys (interception
8976         does not work yet).
8977
8978 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8979
8980         * Form.cs:
8981                 - Redraw non client are on Setmenu
8982                 - Calc proper menu starting point
8983
8984 2005-02-17  Peter Bartok  <pbartok@novell.com>
8985
8986         * Application.cs: Fixed message_filter check
8987
8988 2005-02-17  Peter Bartok  <pbartok@novell.com>
8989
8990         * Application.cs: Now calls registered message filters
8991         * DockStyle.cs: Fixed attribute
8992         * Form.cs: Fixed attribute
8993         * Menu.cs: Fixed attribute
8994         * ToolTip.cs: Fixed attribute
8995         * TreeNode.cs: Added missing attributes and arranged in regions
8996         * PropertyGrid.cs: Fixed signatures
8997         * TreeNodeCollection.cs: Added attributes
8998         * Splitter.cs: Added missing attributes; arranged into regions
8999         * TabPage.cs: Added missing attributes; arranged into regions
9000         * TextBoxBase.cs: Added missing attributes
9001         * TextBox.cs: Added missing attributes
9002         * ArrangeDirection.cs: Added missing attributes
9003         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
9004         * ToolBarButton.cs: Fixed attributes
9005         * AnchorStyles.cs: Fixed attribute
9006         * TrackBar.cs: Fixed attributes
9007         * TabControl.cs: Added missing attributes and arranged into regions
9008         * ToolBar.cs: Fixed attribute
9009         * StatusBar.cs: Fixed signature, organized into regions and added
9010           attributes
9011         * StatusBarPanel.cs: Fixed attributes
9012         * ContentsResizedEventArgs.cs: Implemented
9013         * ContentsResizedEventHandler.cs: Implemented
9014         * DateBoldEventArgs.cs: Implemented
9015         * DateBoldEventHandler.cs: Implemented
9016         * UpDownEventArgs.cs: Implemented
9017         * UpDownEventHandler.cs: Implemented
9018         
9019 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
9020
9021         * Form.cs: first Menu NC refactoring
9022         * MenuAPI.cs: first Menu NC refactoring
9023         
9024 2005-02-16  Peter Bartok  <pbartok@novell.com>
9025
9026         * ImeMode.cs: Added missing attributes
9027         * Menu.cs: Fixed attribute
9028         * GroupBox.cs: Fixed attribute
9029         * Label.cs: Fixed attribute
9030         * ColorDialog.cs (RunDialog): Removed TODO attribute
9031         * ComboBox.cs: Fixed attributes
9032         * ListControl.cs: Added missing attributes
9033         * PropertyGrid.cs: Fixed attributes
9034         * Control.cs: Fixed attributes
9035         * ListViewItem.cs: Added TypeConverter attribute
9036         * NotifyIcon.cs: Fixed attributes
9037         * ListView.cs: Fixed attributes
9038         * ButtonBase.cs: Fixed attribute
9039         * ImageList.cs: Added missing attributes
9040         * ContainerControl.cs: Fixed signature
9041         * CheckedListBox.cs: Fixed attribute; added missing attributes
9042         * Panel.cs: Fixed attributes
9043         * PropertyTabChangedEventArgs.cs: Added missing attribute
9044         * PropertyValueChangedEventArgs.cs: Added missing attribute
9045         * Binding.cs: Fixed attribute
9046         * ListViewItemConverter: Implemented ListViewSubItemConverter class
9047         * ListBox.cs: Fixed attribute; added missing attributes;
9048         * ScrollableControl.cs: Added missing attributes
9049         * PictureBox.cs: Added missing attributes; implemented missing property
9050         * DateTimePicker.cs: Added missing attributes
9051         * Theme.cs (ToolWindowCaptionHeight): Fixed type
9052         * MonthCalendar.cs: Fixed attributes
9053         * StatusBarPanel.cs: Added missing attributes
9054         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
9055
9056 2005-02-16  Peter Bartok  <pbartok@novell.com>
9057
9058         * TextBoxBase.cs: The previous method to enforce height yet remember
9059           the requested high was less than ideal, this is an attempt to do
9060           it better.
9061         * Control.cs: Added comment about possible problem
9062         * Copyright: Updated format
9063         * GridItemType.cs: Fixed swapped values
9064
9065 2005-02-15  Jackson Harper  <jackson@ximian.com>
9066
9067         * BaseCollection.cs: Use property so we never access an
9068         uninitialized list. Also initialize the list in the property.
9069
9070 2005-02-15  Peter Bartok  <pbartok@novell.com>
9071
9072         * GroupBox.cs (ProcessMnemonic): Implemented
9073         * Label.cs (ProcessMnemonic): Implemented
9074         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
9075           hotkeys
9076
9077 2005-02-15  Peter Bartok  <pbartok@novell.com>
9078
9079         * RadioButton.cs (ProcessMnemonic): Implemented
9080         * CheckBox.cs (ProcessMnemonic): Implemented
9081         * Control.cs:
9082           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
9083             handling
9084           - Added internal method to allow calling ProcessMnemonic from other
9085             controls
9086         * ContainerControl.cs:
9087           - Started support for handling validation chain handling
9088           - Implemented ProcessMnemonic support
9089           - Added Select() call to Active, to make sure the active control
9090             receives focus
9091         * Form.cs: Setting toplevel flag for Forms (this was lost in the
9092           FormParent rewrite)
9093         * ThemeWin32Classic.cs:
9094           - DrawCheckBox(): Fixed stringformat to show hotkeys
9095           - DrawRadioButton(): Fixed stringformat to show hotkeys
9096         * CommonDialog.cs: Removed WndProc override, not needed
9097
9098 2005-02-14  Peter Bartok  <pbartok@novell.com>
9099
9100         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
9101           missed those in the rewrite
9102
9103 2005-02-14  Miguel de Icaza  <miguel@novell.com>
9104
9105         * NumericUpDown.cs (Increment, ToString): Add.
9106         (DecimalPlaces): implement.
9107         
9108         Add attributes.
9109         
9110         * UpDownBase.cs: Add the designer attributes.
9111
9112 2005-02-13  Peter Bartok  <pbartok@novell.com>
9113
9114         * Panel.cs: Removed border_style, now in Control
9115         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
9116           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
9117
9118 2005-02-13  Peter Bartok  <pbartok@novell.com>
9119
9120         * MouseButtons.cs: Added missing attributes
9121         * XplatUIStructs.cs: Added enumeration for title styles
9122         * LeftRightAlignment.cs: Added missing attributes
9123         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
9124           it compatible with Graphics.FromHwnd()
9125         * SelectedGridItemChangedEventArgs.cs: Fixed property type
9126         * Keys.cs: Added missing attributes
9127         * SelectionRange.cs: Added missing attributes
9128         * SelectionRangeConverter.cs: Added
9129         * XplatUI.cs:
9130           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
9131             ReleaseMenuDC methods
9132           - Renamed ReleaseWindow to UngrabWindow
9133           - Added proper startup notice to allow version identification
9134         * Form.cs:
9135           - Added missing attributes
9136           - Removed FormParent concept
9137         * Label.cs: Removed border_style field, now in Control
9138         * RadioButton.cs: Now properly selects RadioButton when focus is
9139           received
9140         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
9141         * Control.cs:
9142           - Added missing attributes
9143           - Added borderstyle handling
9144           - Removed FormParent concept support
9145           - Fixed calls to XplatUI to match changed APIs
9146           - Fixed bug that would case us to use disposed Graphics objects
9147           - Removed unneeded internal methods
9148           - PerformLayout(): Fixed to handle DockStyle.Fill properly
9149           - SelectNextControl(): Fixed to properly check common parents
9150         * TextBoxBase.cs: Removed border_style field (now in Control)
9151         * MessageBox.cs:
9152           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
9153             fixed calculations for form size
9154           - Added support for localized strings and icons
9155           - Improved form size calculations, added border
9156         * ListView.cs: Removed border_style field (now in Control)
9157         * X11Structs.cs: Moved several structs from X11 driver here
9158         * X11Keyboard.cs: Changed debug message
9159         * Application.cs: Removed FormParent concept support
9160         * CommonDialog.cs:
9161           - Resetting end_modal flag
9162           - Removed FormParent concept support
9163         * NativeWindow.cs: Removed FormParent concept support
9164         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
9165           Client area and Non-Client whole window to allow support for WM_NC
9166           messages
9167         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
9168           prevent using it until it supports Hwnd as per Geoff Norton's request
9169         * ToolBar.cs: Fixed drawing, was not doing proper drawing
9170         * PictureBox.cs: Removed border_style field, now in Control
9171         * XplatUIWin32.cs: Added new driver methods
9172
9173 2005-02-12  Peter Bartok  <pbartok@novell.com>
9174
9175         * OpacityConverter.cs: Implemented
9176         * Hwnd.cs: Internal class to support drivers that need to emulate
9177           client area/non-client area window behaviour
9178
9179 2005-02-11  Peter Bartok  <pbartok@novell.com>
9180
9181         * KeysConverter.cs: Implemented
9182
9183 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9184
9185         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9186         * LinkLabel: Added missing attributes
9187         * MainMenu.cs: fixes ToString
9188         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9189         * ListBox.cs: fixes event position
9190         * TrackBar.cs: adds missing attributes and events
9191         
9192 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9193
9194         * MenuItem.cs: Use SystemInformation and bug fixes
9195         * MenuAPI.cs: Use SystemInformation and bug fixes
9196
9197 2005-02-09  Jackson Harper  <jackson@ximian.com>
9198
9199         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9200         their keystate otherwise things like VK_MENU get stuck "on".
9201
9202 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
9203
9204         * ListBox.cs: Fixes AddRange bug
9205         
9206 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
9207
9208         * ProgressBar.cs
9209                 - Add missing attributes
9210                 - Add missing method
9211                 
9212         * CheckedListBox.cs: Added missing attributes
9213                 - Add missing attributes
9214                 - Remove extra method
9215         
9216         * ComboBox.cs: Added missing attributes
9217         * VScrollBar.cs: Added missing attributes
9218         * ScrollBar.cs:  Added missing attributes
9219         * ListBox.cs: Fixes signature, add missing consts
9220         * LinkArea.cs:   Added missing attributes
9221         
9222
9223 2005-02-08  Peter Bartok  <pbartok@novell.com>
9224
9225         * Menu.cs: Added missing attributes
9226         * MainMenu.cs: Added missing attributes
9227         * GroupBox.cs: Added missing attributes
9228         * Label.cs: Added missing attributes
9229         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
9230         * ColorDialog.cs:
9231           - Added Instance and Options properties
9232           - Added missing attributes
9233         * Cursor.cs: Made Serializable
9234         * NotifyIcon: Added missing attributes
9235         * MenuItem.cs: Added missing attributes
9236         * TextBoxBase.cs: Implemented AppendText() and Select() methods
9237         * Panel.cs: Added Missing attributes
9238         * MonthCalendar.cs: Fixed CreateParams
9239
9240 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9241         
9242         * LinkLabel.cs:
9243                 - Fixes signature
9244                 - Fixes issues with links
9245                 - Adds the class attributes
9246
9247 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9248         
9249         * ComboBox.cs:
9250                 - Fixes button when no items available in dropdown
9251                 - Fixes repainting problems
9252                 - Adds the class attributes
9253                 
9254 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9255
9256         * XplatUIOSX.cs: Detect the menu bar and title bar height from
9257         the current theme.  Cache these on startup.
9258
9259 2005-02-07  Jackson Harper  <jackson@ximian.com>
9260
9261         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
9262         the scrollbar buttons when they are depressed.
9263
9264 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9265
9266         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
9267         Get the display size from the main displayid.  We currently dont
9268         support multiple display configurations.
9269
9270 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9271
9272         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
9273
9274 2005-02-07  Miguel de Icaza  <miguel@novell.com>
9275
9276         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
9277
9278 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
9279
9280         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
9281
9282 2005-02-04  Jackson Harper  <jackson@ximian.com>
9283
9284         * ThemeWin32Classic.cs: Respect the clipping rect when
9285         drawing. Only fill the intersection of clips and rects so there
9286         isn't a lot of large fills.
9287         * ScrollBar.cs: Pass the correct clipping rect to the theme
9288         engine. Remove some debug code.
9289
9290 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9291         
9292         * DateTimePicker.cs:
9293                 - Fixed crash on DateTime.Parse, use Constructor instead
9294
9295 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9296         
9297         * MenuItem.cs:
9298         * MenuAPI.cs:
9299                 - Owner draw support (MeasureItem and DrawItem)
9300
9301 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9302         
9303         *  Menu.cs:
9304                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9305                 - Fixes MenuItems.Add range
9306         * MenuItem.cs:
9307                 - MergeMenu and Clone and CloneMenu functions
9308
9309 2005-02-03  Jackson Harper  <jackson@ximian.com>
9310
9311         * ScrollBar.cs: Make abstract
9312         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9313         is abstract.
9314
9315 2005-02-03  Jackson Harper  <jackson@ximian.com>
9316
9317         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9318         all the unneeded refreshes and uses invalidates with properly
9319         computed rects.
9320
9321 2005-02-03  Peter Bartok  <pbartok@novell.com>
9322
9323         * ComponentModel.cs: Added
9324         * IDataGridEditingService.cs: Added
9325         * Timer.cs: Added missing attributes
9326         * ToolTip.cs: Added missing attributes
9327
9328 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9329
9330         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9331
9332 2005-02-03  Peter Bartok  <pbartok@novell.com>
9333
9334         * ListBox.cs: Added missing attributes
9335
9336 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9337         
9338         * ListBox.cs:
9339                 - Fixes font height after font change
9340                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9341                 
9342 2005-02-02  Peter Bartok  <pbartok@novell.com>
9343
9344         * HandleData.cs: Introduced static methods to allow class
9345           to be more self-contained and track it's own HandleData objects
9346         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9347           HandleData to use new static methods
9348
9349 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9350
9351         * Combobox.cs:
9352                 - Fixes default size and PreferredHeight
9353                 - Missing events
9354                 - ObjectCollection.Insert implementation
9355                 
9356         * ListControl.cs
9357                 - Fixes signature
9358         * ListBox.cs:
9359                 - Several fixes
9360                 - ObjectCollection.Insert implementation
9361                 - No selection after clean
9362                 - Small fixes
9363
9364 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9365
9366         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9367
9368 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9369
9370         * Combobox.cs:
9371                 - Caches ItemHeight calculation for OwnerDrawVariable
9372                 - Handles dropdown properly
9373                 - Fixes several minor bugs
9374
9375 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9376
9377         * ListBox.cs:
9378                 - Fixes 71946 and 71950
9379                 - Fixes changing Multicolumn on the fly
9380                 - Fixes keyboard navigation on Multicolumn listboxes
9381
9382 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9383         
9384         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9385         crash reporter log.
9386
9387 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9388
9389         * XplatUIOSX.cs: Allow applications to actually exit.
9390
9391 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9392
9393         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9394         their parent at creation time rather than lazily later.  Fixes a major
9395         regression we were experiencing.
9396
9397 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9398
9399         * ThemeWin32Classic.cs: more date time picker painting fixes
9400         * DateTimePicker.cs: more monthcalendar drop down fixes
9401         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9402
9403 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9404
9405         * ScrollBar.cs:
9406                 - When moving the thumb going outside the control should stop the moving
9407                 - Adds the firing of missing events
9408                 - Fixes no button show if Size is not specified
9409                 - End / Home keys for keyboard navigation
9410
9411 2005-01-30  Peter Bartok  <pbartok@novell.com>
9412
9413         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9414           sanity check to prevent theoretical loop
9415         * XplatUIWin32.cs (SetVisible): Removed debug output
9416         * XplatUIX11.cs (SystrayChange): Added sanity check
9417         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9418         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9419           behaviour, valid until the X11 client window rewrite is done
9420         * TextBox.cs (ctor): Setting proper default foreground and background
9421           colors
9422
9423 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9424
9425         * Theme: Added DrawDateTimePicker to interface
9426         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9427         * DateTimePicker.cs: Created (still needs keys and painting code)
9428         * DateTimePickerFormat.cs: added
9429         * MonthCalendar.cs: fixed CreateParams for popup window mode
9430           
9431 2005-01-29  Peter Bartok  <pbartok@novell.com>
9432
9433         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9434           this should also the calculations for ligher/darker
9435         * Theme.cs: Fixed defaults for ScrollBar widths/heights
9436
9437 2005-01-29  Peter Bartok  <pbartok@novell.com>
9438
9439         * ArrangeDirection.cs: Added
9440         * ArrangeStartingPositon.cs: Added
9441         * SystemInformation.cs: Implemented
9442         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9443           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9444           used by SystemInformation class
9445         * X11Strucs.cs: Added XSizeHints structure
9446         * MenuAPI.cs:
9447           - Fixed CreateParams to make sure the menu window is always visible
9448           - TrackPopupMenu: Added check to make sure we don't draw the
9449             menu offscreen
9450
9451 2005-01-29  Peter Bartok  <pbartok@novell.com>
9452
9453         * HandleData.cs: Added method for altering invalid area
9454         * TextBoxBase.cs: Implemented TextLength
9455
9456 2005-01-28  Peter Bartok  <pbartok@novell.com>
9457
9458         * XplatUIX11.cs: Improvement over last patch, not sending
9459           the WM_PAINT directly anymore, instead we scroll any pending
9460           exposed areas and let the system pick out the WM_PAINT later
9461
9462 2005-01-28  Peter Bartok  <pbartok@novell.com>
9463
9464         * SWF.csproj: Deleted, no longer used. Instead,
9465           Managed.Windows.Forms/SWF.csproj should be used
9466         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9467           directly, to avoid a potential race condition with the next
9468           scroll
9469
9470 2005-01-28  Peter Bartok  <pbartok@novell.com>
9471
9472         * XplatUI.cs: Made class internal
9473
9474 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
9475
9476         * CheckedListBox.cs:
9477                 - Draw focus
9478                 - Fixed Drawing
9479                 - Missing methods and events
9480
9481 2005-01-27  Peter Bartok  <pbartok@novell.com>
9482
9483         * Application.cs (Run): Don't use form if we don't have one
9484
9485 2005-01-27  Peter Bartok  <pbartok@novell.com>
9486
9487         * TextBoxBase.cs (get_Lines): Fixed index off by one error
9488
9489 2005-01-27  Peter Bartok  <pbartok@novell.com>
9490
9491         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9492         * GridItem.cs: Added; Patch by Jonathan S. Chambers
9493         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9494         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9495         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9496         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9497         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9498         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9499         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9500         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9501         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9502         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9503
9504 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9505
9506         * Combobox.cs:
9507                 - Draw focus on Simple Combobox
9508                 - Fixes drawing issues
9509                 - fixes 71834
9510
9511 2005-01-27  Peter Bartok  <pbartok@novell.com>
9512
9513         * Form.cs:
9514           - Place window in default location, instead of hardcoded 0/0
9515           - Send initial LocationChanged event
9516         * Control.cs:
9517           - UpdateBounds after creation to find out where the WM placed us
9518           - Make sure that if the ParentForm changes location the Form
9519             is notified
9520         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9521             to the root, but to whatever the WM placed around us.
9522             Translate to root coordinates before returning toplevel
9523             coordinates
9524         * XplatUIWin32.cs: Removed debug output
9525         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9526           flag to GetWindowPos, to allow translation of coordinates on X11
9527
9528 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9529
9530         * ListBox.cs: connect LostFocus Event
9531
9532 2005-01-27  Peter Bartok  <pbartok@novell.com>
9533
9534         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9535           XplatUIX11.cs: Extended the Systray API
9536         * Form.cs: Removed debug output
9537         * Application.cs: Fixed focus assignment, always need to call
9538           XplatUI.Activate() since Form.Activate() has rules that may
9539           prevent activation
9540         * NotifyIcon.cs: Should be complete now
9541         * ToolTip.cs: Worked around possible timer bug
9542
9543 2005-01-27  Jackson Harper  <jackson@ximian.com>
9544
9545         * TabControl.cs:
9546         - Only invalidate the effected tabs when the
9547         selected index changes. This reduces drawing and gets rid of some
9548         flicker.
9549         - Only refresh if the tabs need to be shifted, otherwise only
9550         invalidate the slider button.
9551         - On windows the tabs are not filled to right if the slider is
9552         visible.
9553         
9554 2005-01-27  Jackson Harper  <jackson@ximian.com>
9555
9556         * TabControl.cs: Only refresh on mouseup if we are showing the
9557         slider. Also only invalidate the button whose state has changed.
9558
9559 2005-01-26  Peter Bartok  <pbartok@novell.com>
9560
9561         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9562         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9563           and SystrayRemove() methods
9564         * XplatUIOSX.cs: Stubbed Systray methods
9565         * XplatUIX11.cs:
9566           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9567             methods
9568           - Fixed broken XChangeProperty calls (marshalling messed up things)
9569         * X11Structs.cs: Added enums and structs required for Size hinting
9570         * NotifyIcon.cs: Added & implemented
9571
9572 2005-01-26  Jackson Harper  <jackson@ximian.com>
9573
9574         * TabControl.cs: Space vertically layed out tabs properly.
9575
9576 2005-01-26  Peter Bartok  <pbartok@novell.com>
9577
9578         * Form.cs (CreateClientParams): Always set the location to 0,0
9579           since we're a child window.
9580
9581         * Control.cs (SetVisibleCore): Always explicitly setting the location
9582           of a toplevel window, apparently X11 doesn't like to move windows
9583           while they're not mapped.
9584
9585 2005-01-26  Jackson Harper  <jackson@ximian.com>
9586
9587         * TabControl.cs: Implement FillToRight size mode with vertically
9588         rendered tabs.
9589
9590 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9591
9592         * ControlPaint.cs, ThemeWin32Classic.cs
9593                 - Fixes DrawFocusRectangle
9594
9595 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9596
9597         * MenuAPI.cs:
9598                 - MenuBar tracking only starts when item is first clicked
9599                 - Fixes menu hidding for multiple subitems
9600                 - Unselect item in MenuBar when item Executed
9601                 - Fixes bug 71495
9602
9603 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
9604
9605         * ListControl.cs:
9606                 - IsInputKey for ListBox
9607         * ListBox.cs:
9608                 - Focus item
9609                 - Shift and Control item selection
9610                 - Implement SelectionMode.MultiExtended
9611                 - Fixes RightToLeft
9612         * ComboBox.cs:
9613                 - IsInputKey implemented
9614                 - Do not generate OnTextChangedEdit on internal txt changes
9615                 
9616 2005-01-23  Peter Bartok  <pbartok@novell.com>
9617
9618         * AccessibleObject.cs: Partially implemented Select()
9619         * MonthCalendar.cs: Added missing attributes and events
9620         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9621           form can properly override CreateParams.
9622         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9623           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9624           Control performs Invalidate & Update
9625         * NativeWindow (CreateHandle): Added special handling for Form
9626           and Form.FormParent classes to allow overriding of From.CreateParams
9627         * Control.cs:
9628           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9629             name 'owner'
9630           - ControlNativeWindow: Added Owner property
9631           - Removed usage of Refresh() on property changes, changed into
9632             Invalidate(), we need to wait until the queue is processed for
9633             updates, direct calls might cause problems if not all vars for
9634             Paint are initialized
9635           - Added call to UpdateStyles() when creating the window, to set any
9636             styles that CreateWindow might have ignored.
9637           - Added support for Form CreateParent overrides to UpdateStyles()
9638         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9639           CreateParams are now properly overridable
9640         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9641           CreateParams are now properly overridable
9642
9643 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9644
9645         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9646         OnTextBoxChanged.
9647
9648         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9649         recursive invocation that I have not figured out yet.
9650
9651         Reset the timer when not using (it was accumulating).
9652
9653
9654         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9655         user has made changes that require validation.
9656
9657         Reset changing to avoid loops.
9658
9659 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9660
9661         * NumericUpDown.cs: Display value at startup.
9662
9663         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9664         ValidateEditText.
9665
9666         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9667         filled in.  Added some basic parsing of text.
9668
9669         Still missing the OnXXX method overrides, and figuring out the
9670         events that must be emitted.
9671
9672         * UpDownBase.cs: Handle UserEdit on the Text property.
9673         
9674 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9675
9676         * ComboBox.cs:
9677           - Fixes IntegralHeight
9678           - ToString method
9679
9680 2005-01-21  Jackson Harper  <jackson@ximian.com>
9681
9682         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9683         is set so that the page visibility is updated and the tabs are
9684         sized correctly.
9685
9686 2005-01-21  Jackson Harper  <jackson@ximian.com>
9687
9688         * TabControl.cs: Use cliping rectangle for blitting. Give the
9689         theme the clipping rect so we can do clipping while
9690         drawing. Remove some debug code.
9691
9692 2005-01-21  Jackson Harper  <jackson@ximian.com>
9693
9694         * TabPage.cs: Add a new method so tab pages can force the tab
9695         control to recalculate the tab page sizes.
9696         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9697         sizes.
9698
9699 2005-01-20  Jackson Harper  <jackson@ximian.com>
9700
9701         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9702
9703 2005-01-20  Jackson Harper  <jackson@ximian.com>
9704
9705         * TreeView.cs: Set the bounds for nodes properly. They were
9706         getting screwed up when checkboxes were not enabled, but images
9707         were.
9708
9709 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9710
9711         * ListBox.cs:
9712                 - Owner draw support
9713                 - Fixes
9714                 
9715 2005-01-20  Jackson Harper  <jackson@ximian.com>
9716
9717         * XplatUIStructs.cs: More misc keys
9718         * X11Keyboard.cs: Ignore some control keys.
9719
9720 2005-01-20  Jackson Harper  <jackson@ximian.com>
9721
9722         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9723         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9724
9725 2005-01-19  Peter Bartok  <pbartok@novell.com>
9726
9727         * Control.cs: Un-selecting the control when it is loosing focus
9728
9729 2005-01-19  Jackson Harper  <jackson@ximian.com>
9730
9731         * TreeView.cs: Hook up to the text controls leave event so we can
9732         end editing when the users clicks outside the text box.
9733         
9734 2005-01-19  Jackson Harper  <jackson@ximian.com>
9735
9736         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9737         get set in the conversion array.
9738
9739 2005-01-19  Peter Bartok  <pbartok@novell.com>
9740
9741         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9742           focus is properly set
9743         * Button.cs:
9744           - Added missing attributes
9745           - removed styles, those are already set in the base class
9746         * ButtonBase.cs:
9747           - Added missing attributes
9748           - Added clip window styles
9749         * CheckBox.cs: Added missing attributes
9750         * CommonDialog.cs:
9751           - FormParentWindow.CreateParams: Added required clip styles
9752         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9753           also filters modifier keys
9754         * MessageBox.cs:
9755           - Added assignment of Accept and Cancel button to enable Enter
9756             and Esc keys in MessageBox dialogs
9757           - FormParentWindow.CreateParams: Added required clip styles
9758         * RadioButton.cs: Added missing attributes
9759         * TextControl.cs: No longer draws selection if control does not
9760           have focus
9761         * TextBoxBase.cs:
9762           - Now draws simple rectangle around test area to make it obvious
9763             there's a control. This is a hack until we properly support borders
9764           - A few simple fixes to support selections better, now erases selected
9765             text when typing, and resets selection when using movement keys
9766
9767 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9768
9769         * UpDownBase.cs: Added some new properties.
9770
9771         * DomainUpDown.cs: Implement a lot to get my test working.
9772
9773 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9774
9775         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9776
9777 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9778
9779         * OSXStructs (WindowAttributes): Fixed csc complaints
9780
9781 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9782
9783         * XplayUIOSX.cs:
9784           OSXStructs.cs: Initial refactor to move enums and consts into
9785           OSXStructs and use them in the driver for greater readability.
9786
9787 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9788
9789         * XplatUIOSX.cs: Initial support for Standard Cursors.
9790         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9791
9792 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9793
9794         * ComboBox.cs: ability to change style when the ctrl is already
9795         created, missing methods and events, bug fixes, signature fixes
9796
9797 2005-01-19  Peter Bartok  <pbartok@novell.com>
9798
9799         * Cursors.cs (ctor): Added ctor to fix signature
9800
9801 2005-01-18  Peter Bartok  <pbartok@novell.com>
9802
9803         * Button.cs: Implemented DoubleClick event
9804         * ButtonBase.cs:
9805           - Fixed keyboard handling to behave like MS, where the press of
9806             Spacebar is equivalent to a mousedown, and the key release is
9807             equivalent to mouseup. Now a spacebar push will give the same
9808             visual feedback like a mouse click.
9809           - Added missing attributes
9810           - Added ImeModeChanged event
9811           - Added support for generating DoubleClick event for derived classes
9812         * CheckBox.cs:
9813           - Implemented DoubleClick event
9814           - Added missing attributes
9815         * CommonDialog.cs: Added missing attribute
9816         * ContextMenu.cs: Added missing attributes
9817         * RadioButton.cs:
9818           - AutoChecked buttons do not allow to be unselected when clicked
9819             (otherwise we might end up with no selected buttons in a group)
9820           - Added missing attributes
9821           - Implemented DoubleClickEvent
9822         * ThreadExceptionDialog.cs: Enabled TextBox code
9823
9824 2005-01-18  Peter Bartok  <pbartok@novell.com>
9825
9826         * Form.cs: Removed debug output
9827         * Button.cs: Added support for DoubleClick method
9828
9829 2005-01-18  Peter Bartok  <pbartok@novell.com>
9830
9831         * Form.cs:
9832           - Added method to parent window that allows triggering size
9833             calculations when a menu is added/removed
9834           - set_Menu: Cleaned up mess from early days of Form and Control,
9835             now properly triggers a recalc when a menu is added/removed
9836           - Added case to select form itself as focused form if no child
9837             controls exist
9838           - Added PerformLayout call when showing dialog, to ensure properly
9839             placed controls
9840         * Control.cs:
9841           - Select(): Made internal so Form can access it
9842           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9843             status
9844         * Application.cs (Run): Removed hack and calls PerformLayout instead
9845           to trigger calculation when Form becomes visible
9846
9847 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9848
9849         * ComboBox.cs: fixes for ownerdraw
9850
9851 2005-01-18  Peter Bartok  <pbartok@novell.com>
9852
9853         * TextControl.cs:
9854           - Sentinel is no longer static, each Document gets it's own, this
9855             avoids locking or alternatively overwrite problems when more
9856             than one text control is used simultaneously.
9857           - Switched to use Hilight and HilightText brushes for text selection
9858
9859         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9860
9861 2005-01-18  Peter Bartok  <pbartok@novell.com>
9862
9863         * Control.cs:
9864           - Hooked up the following events:
9865                 o ControlAdded
9866                 o ControlRemoved
9867                 o HandleDestroyed
9868                 o ImeModeChanged
9869                 o ParentChanged
9870                 o TabStopChanged
9871                 o Invalidated
9872                 o SystemColorsChanged
9873                 o ParentFontChanged
9874                 o Move
9875           - Removed debug output
9876           - Added a call to the current theme's ResetDefaults when a color change
9877             is detected
9878         * Form.cs: Now setting the proper ImeMode
9879         * Theme.cs: Defined a method to force recreation of cached resources
9880           and rereading of system defaults (ResetDefaults())
9881         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9882
9883 2005-01-17  Peter Bartok  <pbartok@novell.com>
9884
9885         * Control.cs: Added missing attributes
9886
9887 2005-01-17  Jackson Harper  <jackson@ximian.com>
9888
9889         * TreeNode.cs: Implement editing. Add missing properties selected
9890         and visible.
9891         * TreeView.cs: Implement node editing. Also some fixes to use
9892         Invalidate (invalid area) instead of Refresh when selecting.
9893
9894 2005-01-17  Peter Bartok  <pbartok@novell.com>
9895
9896         * Control.cs:
9897           - Implemented InvokeGotFocus() method
9898           - Implemented InvokeLostFocus() method
9899           - Implemented InvokePaint() method
9900           - Implemented InvokePaintBackground() method
9901           - Implemented InvokeClick() method
9902           - Implemented FindForm() method
9903           - Implemented RectangleToClient() method
9904           - Implemented ClientToRectangle() method
9905           - Implemented ResetBackColor() method
9906           - Implemented ResetCursor() method
9907           - Implemented ResetFont() method
9908           - Implemented ResteForeColor() method
9909           - Implemented ResetImeMode() method
9910           - Implemented ResetLeftToRight() method
9911           - Implemented ResetText() method
9912           - Implemented Scale() methods
9913           - Implemented ScaleCore() method
9914           - Implemented Update() method
9915           - Removed unused variables
9916           - Stubbed AccessibilityNotifyClients and
9917             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9918             with those yet)
9919           - Now setting proper default for RightToLeft property
9920           - Fixed bug in SetClientSizeCore that would cause windows to get
9921             really big
9922           - Now sending Click/DoubleClick events
9923           - Now selecting controls when left mouse button is clicked on
9924             selectable control
9925         * AccessibleEvents.cs: Added
9926         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9927         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9928         * XplatUIWin32.cs: Implemented UpdateWindow() method
9929         * XplatUIX11.cs: Implemented UpdateWindow() method
9930         * Form.cs: Removed stray semicolon causing CS0162 warning
9931         * ThemeWin32Classic.cs: Fixed unused variable warnings
9932         * ScrollableControl.cs: Now calls base method for ScaleCore
9933         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9934           style to avoid interference with internal click handler (which is
9935           different than standard Control click handling)
9936         * RadioButton.cs:
9937           - Now unchecks all sibling radio buttons when control is
9938             selected (Fixes #68756)
9939           - Removed internal tabstop variable, using the one inherited from
9940             Control
9941
9942 2005-01-17  Jackson Harper  <jackson@ximian.com>
9943
9944         * NavigateEventArgs.cs: Fix base type.
9945         * LinkLabel.cs: Sig fix
9946         
9947 2005-01-17  Jackson Harper  <jackson@ximian.com>
9948
9949         * TreeView.cs: Only invalidate the effected nodes bounds when
9950         selecting nodes.
9951
9952 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9953
9954         * XplatUIWin32.cs: fixes Win32 marshaling
9955         * XplatUIX11.cs: fixes method signature
9956
9957 2005-01-17  Peter Bartok  <pbartok@novell.com>
9958
9959         * XplatUIX11.cs: Clean up resources when we no longer need them
9960
9961 2005-01-17  Peter Bartok  <pbartok@novell.com>
9962
9963         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9964           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9965           and DestroyCursor() methods.
9966         * Cursor.cs: Partially implemented, now supports standard cursors;
9967           still contains some debug code
9968         * Cursors.cs: Implemented class
9969         * Control.cs:
9970           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9971             appropriate cursor
9972           - Implemented Cursor property
9973           - Replaced break; with return; more straightforwar and possibly
9974             faster
9975           - Now properly setting the result for WM_HELP
9976         * X11Structs.cs: Added CursorFontShape enum
9977         * XplatUIStructs.cs:
9978           - Added StdCursor enum (to support DefineStdCursor() method)
9979           - Added HitTest enum (to support sending WM_SETCURSOR message)
9980         * XplatUIX11.cs:
9981           - Now sends the WM_SETCURSOR message
9982           - Implemented new cursor methods
9983         * XplatUIOSX.cs: Stubbed new cursor methods
9984         * XplatUIWin32.cs:
9985           - Implemented new cursor methods
9986           - Added GetSystemMetrics function and associated enumeration
9987
9988 2005-01-15  Peter Bartok  <pbartok@novell.com>
9989
9990         * Control.cs:
9991           - WndProc(): Now handles EnableNotifyMessage
9992           - SelectNextControl(): Fixed bug where if no child or sibling
9993             controls exist we looped endlessly
9994
9995 2005-01-14  Jackson Harper  <jackson@ximian.com>
9996
9997         * TreeView.cs: Recalculate the tab pages when a new one is added
9998         so that the proper bounding rects are created.
9999
10000 2005-01-14  Jackson Harper  <jackson@ximian.com>
10001
10002         * TreeView.cs: Draw a gray box instead of a grip in the lower
10003         right hand corner when there are both horizontal and vertical
10004         scroll bars.
10005
10006 2005-01-14  Jackson Harper  <jackson@ximian.com>
10007
10008         * Control.cs: When erasing backgrounds use FromHwnd instead of
10009         FromHdc when there is a NULL wparam. This occurs on the X driver.
10010         * XplatUIX11.cs: Set the wparam to NULL.
10011
10012 2005-01-13  Jackson Harper  <jackson@ximian.com>
10013
10014         * PictureBox.cs: Implement missing methods (except ToString, need
10015         to test that on windows) and events. When visibility is changed we
10016         need to redraw the image because the buffers are killed. When size
10017         is changed refresh if the sizemode needs it.
10018
10019 2005-01-13  Peter Bartok  <pbartok@novell.com>
10020
10021         * Control.cs (SelectNextControl): Was using wrong method to select
10022           a control
10023
10024 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10025
10026         * ComboBox.cs: fixes dropstyle
10027
10028 2005-01-13  Peter Bartok  <pbartok@novell.com>
10029
10030         * Form.cs:
10031           - Implemented Select() override
10032           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
10033           - Now sets keyboard focus on startup
10034         * Control.cs (SelectNextControl): Now properly handles directed=true
10035         * TextBoxBase.cs:
10036           - WndProc: Now passes tab key on to base if AcceptTabChar=false
10037           - Added (really bad) focus rectangle (mostly for testing)
10038         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
10039           to enforce redraw on focus changes
10040         * ContainerControl.cs:
10041           - Fixed detection of Shift-Tab key presses
10042           - Fixed traversal with arrow keys
10043         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
10044           gonna keep this or if it's complete yet
10045         
10046 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10047
10048         * ComboBox.cs: missing properties, fixes
10049
10050 2005-01-13  Peter Bartok  <pbartok@novell.com>
10051
10052         * Panel.cs (ctor): Setting Selectable window style to off
10053         * Splitter.cs (ctor): Setting Selectable window style to off
10054         * GroupBox.cs (ctor): Setting Selectable window style to off
10055         * Label.cs (ctor): Setting Selectable window style to off
10056
10057 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
10058
10059         * UpDownBase.cs (InitTimer): If the timer has been already
10060         created, enable it.
10061
10062         Use a TextBox instead of a Label.
10063
10064 2005-01-12  Jackson Harper  <jackson@ximian.com>
10065
10066         * TreeView.cs: Refresh the tree after sorting the nodes. Always
10067         draw the connecting node lines (when ShowLines is true).
10068         * TreeNode.cs: The nodes index can now be updated. This is used
10069         when a node collection is sorted.
10070         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
10071         insert or an existing unsorted node collection can be sorted.
10072         
10073 2005-01-12  Peter Bartok  <pbartok@novell.com>
10074
10075         * ContainerControl.cs: Implemented ProcessDialogKeys()
10076
10077 2005-01-12  Peter Bartok  <pbartok@novell.com>
10078
10079         * Control.cs:
10080           - Implemented SelectNextControl() method
10081           - Several focus related bug fixes
10082           - Fixed Docking calculations to match MS documentation and
10083             behaviour
10084
10085 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
10086
10087         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
10088         bug fixes
10089
10090 2005-01-12  Peter Bartok  <pbartok@novell.com>
10091
10092         * Control.cs:
10093           - Fixed broken Contains() method
10094           - Implemented GetNextControl() method. Finally. This is the pre-
10095             requisite for focus handling.
10096
10097 2005-01-12  Peter Bartok  <pbartok@novell.com>
10098
10099         * OSXStrucs.cs: Added
10100
10101 2005-01-12  Peter Bartok  <pbartok@novell.com>
10102
10103         * XplatUIWin32.cs:
10104           - Removed PeekMessageFlags
10105           - Implemented SetWindowStyle() method
10106         * XplatUIStructs.cs: Added PeekMessageFlags
10107         * X11Structs: Added missing border_width field to XWindowChanges struct
10108         * XplatUIX11.cs:
10109           - PeekMessage: Now throws exception if flags which are not yet
10110             supported are passed
10111           - Implemented SetWindowStyle() method
10112           - Fixed SetZOrder to handle AfterHwnd properly
10113         * XplatUI.cs: Added SetWindowStyle() method
10114         * XplatUIDriver.cs: Added SetWindowStyle() abstract
10115         * Control.cs:
10116           - Implemented UpdateStyles() method
10117           - Implemented UpdateZOrder() method
10118         * XplatUIOSX.cs: Added SetWindowStyle() stub
10119
10120 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
10121
10122         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
10123         button mouse).
10124
10125
10126 2005-01-11  Jackson Harper  <jackson@ximian.com>
10127
10128         * TreeView.cs: Still need to draw lines to siblings even if out of
10129         the current node is out of the clip.
10130
10131 2005-01-11  Jackson Harper  <jackson@ximian.com>
10132
10133         * TreeView.cs: When setting the hbar/vbar/grip position use
10134         SetBounds so that perform layout is only called once. Also suspend
10135         and resume layout so layout is only done once for all controls.
10136         - Removed some debug fluff
10137         * SizeGrip.cs: Call base implmentation in overriding methods.
10138         - When visibility is changed the drawing buffers are killed so we
10139         need to redraw.
10140
10141 2005-01-11  Jackson Harper  <jackson@ximian.com>
10142
10143         * TreeView.cs: Calculate the open node count while drawing. This
10144         saves us an entire tree traversal for every paint operation. Use
10145         a member var for the open node count so less vars are passed around.
10146
10147 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
10148
10149         * MonthCalendar.cs:
10150         - fixed selection to use mousemove, not mouse polling on timer
10151         * ThemeWin32Classic.cs
10152         - removed redundant unused variable "no_more_content"
10153         
10154 2005-01-11  Peter Bartok  <pbartok@novell.com>
10155
10156         * XplatUIX11.cs (DoEvents): Needs to return when no more events
10157           are pending, so it now calls PeekMessage instead of GetMessage;
10158           implemented a incomplete version of PeekMessage
10159         
10160 2005-01-11  Peter Bartok  <pbartok@novell.com>
10161
10162         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
10163           I18n issues
10164         * TextBoxBase.cs: Added sending of TextChanged event
10165
10166 2005-01-10  Jackson Harper  <jackson@ximian.com>
10167
10168         * TreeView.cs: Try not to draw outside the clipping rectangle on
10169         each node element.
10170
10171 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
10172
10173         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
10174
10175 2005-01-10  Jackson Harper  <jackson@ximian.com>
10176
10177         * TreeView.cs:
10178         - Implement fast scrolling. Now only the newly
10179         exposed nodes are drawn and the old image is moved using the
10180         XplatUI::ScrollWindow method.
10181         - Factor in height of nodes when calculating whether or not the
10182         node is in the clipping rect.
10183
10184 2005-01-10  Jackson Harper  <jackson@ximian.com>
10185
10186         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10187
10188 2005-01-10  Peter Bartok  <pbartok@novell.com>
10189
10190         * Application.cs: Added temporary hack to resolve all our resize
10191           required issues on startup. This will get fixed properly at
10192           some point in the future
10193
10194 2005-01-10  Jackson Harper  <jackson@ximian.com>
10195
10196         * SizeGrip.cs: New internal class that is used as a sizing
10197         grip control...hence the name.
10198
10199 2005-01-10  Peter Bartok  <pbartok@novell.com>
10200
10201         * Control.cs: Implemented proper TabIndex handling, now assigning
10202           a tabindex when a control is added to a container
10203         * GroupBox.cs (ctor): Now sets the Container style bit, required
10204           for Control.GetNextControl()
10205
10206 2005-01-09  Jackson Harper  <jackson@ximian.com>
10207
10208         * TextBoxBase.cs: Clear window when scrolling (fixes build).
10209
10210 2005-01-09  Peter Bartok <pbartok@novell.com>
10211
10212         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10213           XplatUIX11.cs: Added ability to control ScrollWindow expose and
10214           an overload for ScrollWindow to allow only scrolling a rectangle
10215
10216 2005-01-09  Peter Bartok <pbartok@novell.com>
10217
10218         * Form.cs:
10219           - Implemented SetDesktopBounds method
10220           - Implemented SetDesktopLocation method
10221
10222 2005-01-08  Jackson Harper  <jackson@ximian.com>
10223
10224         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
10225         the node count has changed, this removes to VScroll::Refresh calls
10226         when drawing.
10227
10228 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
10229
10230         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
10231
10232 2005-01-07  Jackson Harper  <jackson@ximian.com>
10233
10234         * TreeNode.cs: Just update the single node when it is
10235         checked. Don't refresh after toggling, the Expand/Collapse already
10236         handles this.
10237         * TreeView.cs: Respect clipping a little more when drawing. Try
10238         not to redraw things that don't need to be redrawn. Just hide the
10239         scrollbars when they are no longer needed instead of removing
10240         them, so they don't have to be created again and again.
10241         
10242 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
10243
10244         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
10245         coordinates to window space to place the caret properly, FIXED.
10246         Implement GetWindowState & SetWindowState
10247
10248 2005-01-06  Peter Bartok <pbartok@novell.com>
10249
10250         * Form.cs:
10251           - Implemented ClientSize property
10252           - Implemented DesktopBounds property
10253           - Implemented DesktopLocation property
10254           - Implemented IsRestrictedWindow property
10255           - Implemented Size property
10256           - Implemented TopLevel property
10257           - Implemented FormWindowState property
10258         * Control.cs:
10259           - Implemented GetTopLevel() method
10260           - Implemented SetTopLevel() method
10261         * X11Structs.cs (Atom):
10262           - Added AnyPropertyType definition
10263           - Added MapState definiton and updated XWindowAttribute struct
10264         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
10265         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
10266         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
10267         * XplatUIWin32.cs:
10268           - Implemented GetWindowState() and SetWindowState() methods
10269           - Fixed Win32GetWindowLong return type
10270         * XplatUIX11.cs:
10271           - Introduced central function for sending NET_WM messages
10272           - Implemented GetWindowState() and SetWindowState() methods
10273         * TextBoxBase.cs (set_Lines):
10274           - Now uses Foreground color for text added via Text property (Duh!)
10275           - Added code to remember programmatically requested size (fixes
10276             behaviour when Multiline is set after Size)
10277           - Added AutoSize logic
10278
10279 2005-01-06  Jackson Harper  <jackson@ximian.com>
10280
10281         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
10282
10283 2005-01-06  Jackson Harper  <jackson@ximian.com>
10284
10285         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10286         set to less then 0.
10287
10288 2005-01-06  Jackson Harper  <jackson@ximian.com>
10289
10290         * ScrollableControl.cs: Lazy init the scrollbars.
10291         
10292 2005-01-06  Jackson Harper  <jackson@ximian.com>
10293
10294         * Theme.cs: Speed up getting pens and solid brushes, by using
10295         their ARGB as a hash instead of tostring and not calling Contains.
10296
10297 2005-01-06  Peter Bartok <pbartok@novell.com>
10298
10299         * Form.cs:
10300           - Implemented OnActivated and OnDeactivate event trigger
10301           - Implemented Activate() method
10302           - Fixed ShowDialog() to activate the form that was active before
10303             the dialog was shown
10304         * XplatUIX11.cs:
10305           - Added global active_window var that tracks the currently active
10306             X11 window
10307           - Now always grabs Property changes from the root window to always
10308             catch changes on the active window property
10309           - Added code to PropertyNotify handler to send Active/Inactive
10310             messages when state changes. This puts X11 and Win32 en par on
10311             WM_ACTIVATE notifications (except for double notifications when
10312             the user clicks away from our modal window to another one of our
10313             windows)
10314
10315 2005-01-05  Jackson Harper  <jackson@ximian.com>
10316
10317         * ImageList.cs: Implment ctor
10318
10319 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10320
10321         * XplatUIOSX.cs: Implement Activate/SetTopmost
10322
10323 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10324
10325         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10326
10327 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10328
10329         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10330
10331 2005-01-05  Peter Bartok <pbartok@novell.com>
10332
10333         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10334           XplatUIOSX.cs: Added GetActive method to return the currently
10335           active window for the application (or null, if none is active)
10336         * Form.cs:
10337           - Implemented ActiveForm
10338           - Commented out owner assignment for modal dialogs (causes problems
10339             on Win32, since the owner will be disabled)
10340           - Reworked some Active/Focus handling (still incomplete)
10341         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10342           (causes problems on Win32, since the owner will be disabled)
10343         * IWin32Window: Added ComVisible attribute
10344
10345 2005-01-05  Peter Bartok <pbartok@novell.com>
10346
10347         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10348           required XplatUI functions.
10349
10350 2005-01-05  Peter Bartok <pbartok@novell.com>
10351
10352         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10353           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10354           to implement focus and activation handling; still incomplete and
10355           with debug output
10356
10357 2005-01-04  Peter Bartok <pbartok@novell.com>
10358
10359         * TextBoxBase.cs: Changed access level for Document property to
10360           match switch to internal for TextControl
10361
10362 2005-01-04  Peter Bartok <pbartok@novell.com>
10363
10364         * AccessibleObject: Added ComVisible attribute
10365
10366 2005-01-04  Jackson Harper  <jackson@ximian.com>
10367
10368         * X11Keyboard.cs: Remove unneeded var.
10369
10370 2005-01-04  Jackson Harper  <jackson@ximian.com>
10371
10372         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10373         but PAINT.
10374         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10375         ClientMessage. This makes apps exit cleanly (more often).
10376         
10377 2005-01-04  Jackson Harper  <jackson@ximian.com>
10378
10379         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10380         handling focus, return correct colors and fonts,
10381         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10382         handle selection, horizontal scrolling, and mouse interaction.
10383
10384 2005-01-04  Peter Bartok <pbartok@novell.com>
10385
10386         * ICommandExecutor.cs: Added
10387         * IDataGridColumnStyleEditingNotificationService.cs: Added
10388         * IFeatureSupport.cs: Added
10389         * IFileReaderService.cs: Added
10390         * IDataObject.cs: Added ComVisible attribute
10391         * AmbientProperties.cs: Added
10392         * BaseCollection.cs: Added missing attributes
10393         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10394         * BaseCollection.cs: Added missing attributes
10395         * Binding.cs: Added TypeConverter attribute
10396         * BindingContext.cs: Added DefaultEvent attribute
10397         * BindingsCollection.cs: Added DefaultEvent attribute
10398         * Button.cs: Added DefaultValue attribute
10399         * DragEventArgs.cs: Added ComVisible attribute
10400         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10401         * KeyEventArgs.cs: Added ComVisible attribute
10402         * KeyPressEventArgs.cs: Added ComVisible attribute
10403         * MouseEventArgs.cs: Added ComVisible attribute
10404         * NavigateEventArgs.cs: Added
10405         * NavigateEventHandler.cs: Added
10406         * FeatureSupport.cs: Added
10407         * OSFeature.cs: Added
10408         * Theme.cs: Added abstract Version property to support OSFeature
10409         * ThemeWin32Classic.cs: Added Version property to
10410           support OSFeature.Themes
10411         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10412           the proper styles to avoid background drawing are set, also doesn't
10413           match MS signature
10414         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10415         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10416         * ScrollEventArgs.cs: Added ComVisible attribute
10417         * SplitterEventArgs.cs: Added ComVisible attribute
10418         * AccessibleSelection.cs: Added Flags attribute
10419         * Appearance.cs: Added ComVisible attribute
10420         * Border3DSide.cs: Added ComVisible attribute
10421         * Border3DStyle.cs: Added ComVisible attribute
10422         * BorderStyle.cs: Added ComVisible attribute
10423         * DragAction.cs: Added ComVisible attribute
10424         * ErrorBlinkStyle.cs: Added
10425         * ScrollEventType.cs: Added ComVisible attribute
10426         * AnchorStyles.cs: Added Editor attribute
10427         * DockStyle.cs: Added Editor attribute
10428         * HorizontalAlignment.cs: Added ComVisible attribute
10429         * HelpEventArgs.cs: Added ComVisible attribute
10430         * PaintEventArgs.cs: Added IDisposable
10431
10432 2005-01-04  Peter Bartok <pbartok@novell.com>
10433
10434         * TextControl.cs: Switched Line, LineTag and Document classes to
10435           internal
10436
10437 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10438
10439         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10440         Simple mode, fixes, IntegralHeight, etc.
10441
10442 2005-01-04  Peter Bartok <pbartok@novell.com>
10443
10444         * TextBoxBase.cs: Using proper font variable now
10445
10446 2005-01-04  Peter Bartok <pbartok@novell.com>
10447
10448         * Form.cs (ShowDialog): Set parent to owner, if provided
10449         * GroupBox.cs: Removed unused vars
10450         * TextControl.cs:
10451           - Added GetHashCode() for Document and LineTag classes
10452           - Removed unused variables
10453           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10454             to allow translation between continuous char position and line/pos
10455         * CheckBox.cs: Removed vars that are provided by base class
10456         * RadioButton.cs: Removed vars that are provided by base class, added
10457           new keyword where required
10458         * LinkLabel.cs: Added new keyword where required
10459         * Control.cs (WndProc): Removed unused variable
10460         * TextBoxBase.cs:
10461           - Finished SelectionLength property
10462           - Implemented SelectionStart property
10463           - Implemented Text property
10464           - Removed unused vars
10465         * MessageBox.cs: Added new keyword where required
10466         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10467           WndProc signature
10468         * MenuAPI.cs: Added new keyword where required
10469         * ButtonBase.cs: Removed vars that are provided by base class, added
10470           new keyword where required
10471         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10472           argument to double, to allow compiling with csc 2.0 (Atsushi ran
10473           into this)
10474         * Application.cs (Run): Now triggers the ThreadExit event
10475         * CommonDialog.cs: Added new keyword where required; now properly sets
10476           parent (owner) for dialog
10477         * XplatUIX11.cs: Commented out unused vars
10478         * StatusBar.cs: Fixed signature for Text property
10479         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10480
10481 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10482
10483         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10484         TrackBar.cs, MonthCalendar.cs: remove unused vars
10485
10486 2005-01-03  Jackson Harper  <jackson@ximian.com>
10487
10488         * ThemeWin32Classic.cs:
10489         * X11Keyboard.cs: Remove unused vars.
10490
10491 2005-01-03  Peter Bartok  <pbartok@novell.com>
10492
10493         * TextBox.cs:
10494           - set_Text: Tied into TextControl
10495           - set_TextAlignment: Tied into TextControl
10496         * TextControl.cs:
10497           - Added alignment properties and implemented alignment handling
10498             and drawing (still has a bug, not generating proper expose events)
10499           - Added new Line() constructor to allow passing the line alignment
10500           - Fixed selection setting, properly handling end<start now
10501           - Added aligment considerations to RecalculateDocument()
10502         * TextBoxBase.cs:
10503           - Now properly enforces control height for single line controls
10504           - Added support for CharacterCasing
10505           - Added IsInputKey override
10506           - Fixed Keys.Enter logic
10507           - Added SetBoundsCore override
10508           - Fixed mouse selection handling
10509
10510 2005-01-03  Jackson Harper  <jackson@ximian.com>
10511
10512         * TreeView.cs:
10513           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10514           - Checkboxes are always aligned to the bottom of the node,
10515           regardless of item height.
10516           - Use the node bounds to draw the text so we can center it when
10517           the item height is greater then the font height.
10518           - Node::Bounds are only the text part of the node.
10519         * TreeNode.cs: New method to combine collapsing and unchecking all
10520           nodes recursively.
10521
10522 2005-01-02  Jackson Harper  <jackson@ximian.com>
10523
10524         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10525         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10526         tree when a check is changed. TODO: Only refresh the checked node.
10527
10528 2004-12-30  Jackson Harper  <jackson@ximian.com>
10529
10530         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10531         * TreeNode.cs: When collapsing make sure to never collapse the
10532         root node.
10533
10534 2004-12-29  Jackson Harper  <jackson@ximian.com>
10535
10536         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10537         
10538 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10539
10540         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10541
10542 2004-12-28  Peter Bartok  <pbartok@novell.com>
10543
10544         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10545           not yet assigned
10546
10547 2004-12-28  Peter Bartok  <pbartok@novell.com>
10548
10549         * Control.cs (WndProc): Added WM_HELP handler, now generates
10550           HelpRequested event
10551         * Form.cs: Added HelpButton property and required support code
10552         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10553
10554 2004-12-28  Peter Bartok  <pbartok@novell.com>
10555
10556         * CommonDialog.cs:
10557           - Made DialogForm.owner variable internal
10558           - Added check to ensure owner form is set before setting
10559             owner properties in CreateParams
10560
10561 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
10562
10563         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
10564           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
10565           GetCursorPos.  Fix major visibility issues.  Rework the windowing
10566           system to support borderless/titleless windows (implements menus).
10567           Fix GetWindowPos.  Implement initial background color support for
10568           views.
10569
10570 2004-12-28  Peter Bartok  <pbartok@novell.com>
10571
10572         * Form.cs (get_CreateParams): Make sure we have an owner before using
10573           the owner variable. Implement proper default if no owner exists
10574
10575 2004-12-28  Peter Bartok  <pbartok@novell.com>
10576
10577         * In preparation for making Managed.Windows.Forms the default build target
10578           for System.Windows.Forms, the following stubbed files were added.
10579           Dialogs are currently being implemented by contributors and are only
10580           short-term place holders.
10581         * ColorDialog.cs: Initial check-in (minmal stub)
10582         * DataGrid.cs: Initial check-in (minimal stub)
10583         * DataGridLineStyle.cs: Initial check-in (minimal stub)
10584         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10585         * DataGridTableStyle.cs: Initial check-in (minimal stub)
10586         * FontDialog.cs: Initial check-in (minimal stub)
10587         * FileDialog.cs: Initial check-in (minimal stub)
10588         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10589         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10590         * OpenFileDialog: Initial check-in (minimal stub)
10591         * IComponentEditorPageSite.cs: Initial check-in
10592         * Splitter.cs: Initial check-in (for Jackson)
10593         * SplitterEventArgs.cs: Initial check-in (for Jackson)
10594         * SplitterEventHandler.cs: Initial check-in (for Jackson)
10595         * TextBox.cs: Initial check-in; still needs some wiring to
10596           TextControl backend
10597         * Form.cs: Implemented ControlBox property
10598         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10599         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10600         * TextControl.cs: Added selection functionality; added todo header
10601         * TextBoxBase.cs:
10602           - Implemented Lines property
10603           - Implemented TextHeight property
10604           - Implemented SelectedText property
10605           - Implemented SelectionLength property
10606           - Implemented SelectAll method
10607           - Implemented ToString method
10608           - Removed and cleaned up some debug code
10609           - Implemented (still buggy) mouse text selection
10610
10611 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
10612
10613         * ComboBox.cs: Complete DropDownList implementation, fixes.
10614
10615 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10616
10617         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10618         * ComboBoxStyle.cs: ComboBoxStyle enum
10619         * ComboBox.cs: Initial work on ComboBox control
10620
10621 2004-12-21  Peter Bartok  <pbartok@novell.com>
10622
10623         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10624           forward so that anything that creates a window gets the default,
10625           also no longer uses Visible property in CreateParams to avoid
10626           walking up the parent chain and possibly get the wrong visible
10627           status. Fixed IsVisible to no longer walk up to the parent.
10628
10629 2004-12-21  Peter Bartok  <pbartok@novell.com>
10630
10631         * Form.cs (ShowDialog): Unset modality for the proper window
10632  
10633 2004-12-20  Peter Bartok  <pbartok@novell.com>
10634
10635         * CommonDialog.cs: Initial check-in
10636
10637 2004-12-20  Peter Bartok  <pbartok@novell.com>
10638
10639         * Control.cs (Visible): Now uses the parent window instead of the
10640           client area window for the property
10641
10642         * Form.cs
10643           - ShowDialog(): Now uses the proper window for modality
10644           - The default visibility state for the form parent is now false. This
10645             will prevent the user from seeing all the changes to the form and
10646             its controls before the application hits Application.Run()
10647           - Removed some stale commented out code
10648
10649         * NativeWindow.cs:
10650           - Added FindWindow() method to have a method to check for existence
10651             of a window handle
10652           - Added ability to override default exception handling (for example
10653             when debugging with VS.Net; to do this the ExternalExceptionHandler
10654             define must be set
10655           - Removed some useless debug output
10656
10657         * XplatUIX11.cs:
10658           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10659             not working as expected
10660           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10661             property to allow switching back to the modal window if focus is
10662             given to another one of our windows (Application Modal)
10663           - Now only sets override_redirect if we create a window
10664             without WS_CAPTION
10665           - Moved EventMask selection before mapping of newly created window
10666             so we can catch the map event as well
10667           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10668           - Added various Atom related DllImports
10669           - Implemented Exit() method
10670           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10671             in the CreateParams
10672
10673         * MessageBox.cs: Now properly deals with the FormParent window by
10674           providing an override the FormParent CreateParams property to
10675           set as POPUP instead of OVERLAPPED window.
10676
10677 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10678
10679         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10680         Minor code cleanup.
10681
10682 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10683         
10684         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10685
10686 2004-12-18  Peter Bartok  <pbartok@novell.com>
10687
10688         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10689           implementing SetModal() method
10690
10691 2004-12-18  Peter Bartok  <pbartok@novell.com>
10692
10693         * X11Structs.cs (XGCValues): Fixed type of function element
10694         * XplatUI.cs: Added ScrollWindow() method
10695         * XplatUIDriver.cs: Added ScrollWindow() abstract
10696         * XplatUIWin32.cs: Implemented ScrollWindow() method
10697         * XplatUIX11.cs: Implemented ScrollWindow() method
10698         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10699
10700 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10701
10702         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10703         Some more keyboard support (INCOMPLETE)
10704
10705 2004-12-17  Peter Bartok  <pbartok@novell.com>
10706
10707         * TextControl.cs:
10708         - Added color attribute to line tags.
10709         - Added color argument to all functions dealing with tags
10710         - Added color argument support to various functions
10711         - Fixed miss-calculation of baseline/shift in certain circumstances
10712
10713         * TextBoxBase.cs: Added new color option to test code
10714
10715 2004-12-17  Jackson Harper  <jackson@ximian.com>
10716
10717         * TreeNode.cs:
10718         * MonthCalendar.cs: Signature fixes
10719
10720 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10721
10722         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10723         keyboard event moved it.  Create a new graphics context for each paint resolves this
10724
10725 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10726
10727         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10728         Make caret exist and go blink blink.  Initial keyboard support.
10729         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10730         works.
10731
10732 2004-12-17  Jackson Harper  <jackson@ximian.com>
10733
10734         * XplatUIStructs.cs: Updated set of virtual keycodes.
10735         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10736
10737 2004-12-17  Jackson Harper  <jackson@ximian.com>
10738
10739         * XplatUIX11.cs: Prune old keyboard code.
10740
10741 2004-12-17  Jackson Harper  <jackson@ximian.com>
10742
10743         * XplatUIX11.cs: When generating mouse wparams get the modifier
10744         keys from the ModifierKeys property.
10745
10746 2004-12-17  Jackson Harper  <jackson@ximian.com>
10747
10748         * X11Keyboard.cs: Send up/down input when generating
10749         messages. Remove some unused vars.
10750
10751 2004-12-17  Jackson Harper  <jackson@ximian.com>
10752
10753         * TabControl.cs:
10754         * TreeView.cs: get rid of warnings.
10755
10756 2004-12-17  Jackson Harper  <jackson@ximian.com>
10757
10758         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10759
10760 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10761
10762         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10763           CheckedListBox.cs: Implementation
10764
10765 2004-12-17  Peter Bartok  <pbartok@novell.com>
10766
10767         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10768
10769 2004-12-16  Peter Bartok  <pbartok@novell.com>
10770
10771         * TextControl.cs:
10772           - InsertCharAtCaret(): Fixed start pos fixup
10773           - CaretLine_get: No longer derives the line from the tag, the tag
10774             could be stale if lines in the document have been added or deleted
10775           - RebalanceAfterDelete(): Fixed bug in balancing code
10776           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10777           - Line.Streamline(): Now can also elminate leading empty tags
10778           - DumpTree(): Added a few more tests and prevented exception on
10779             uninitialized data
10780           - Added Debug section for Combining lines
10781           - Delete(): Now copies all remaining properties of a line
10782           
10783         * TextBoxBase.cs:
10784           - Left mousebutton now sets the caret (and middle button still acts
10785             as formatting tester, which must go away soon)
10786           - Added Debug section for Deleting/Combining lines
10787           - Fixed calculations for UpdateView after Combining lines
10788
10789 2004-12-16  Peter Bartok  <pbartok@novell.com>
10790
10791         * TextControl.cs: Now properly aligns text on a baseline, using the
10792           new XplatUI.GetFontMetrics() method. Simplified several calculations
10793         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10794           defined
10795
10796 2004-12-16  Peter Bartok  <pbartok@novell.com>
10797
10798         * XplatUI.cs: Added GetFontMetrics() method
10799         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10800         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10801           into libgdiplus, our private GetFontMetrics function
10802         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10803         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10804
10805 2004-12-16  Jackson Harper  <jackson@ximain.com>
10806
10807         * XplatUIStruct.cs: Add enum for dead keys
10808         * X11Keyboard.cs: Map and unmap dead keys.
10809
10810 2004-12-16  Jackson Harper  <jackson@ximian.com>
10811
10812         * X11Keyboard.cs: Detect and use the num lock mask.
10813
10814 2004-12-16  Peter Bartok  <pbartok@novell.com>
10815
10816         * Control.cs (CreateGraphics): Added check to make sure the
10817           handle of the window exists before calling Graphics.FromHwnd()
10818
10819 2004-12-16  Peter Bartok  <pbartok@novell.com>
10820
10821         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10822           contains a lot of code that's not supposed to be there for the
10823           real thing, but required for developing/testing the textbox
10824           backend.
10825
10826 2004-12-16  Peter Bartok  <pbartok@novell.com>
10827
10828         * TextControl.cs:
10829         - Fixed Streamline method
10830         - Added FindTag method to Line
10831         - Added DumpTree method for debugging
10832         - Added DecrementLines() method for deleting lines
10833         - Fixed UpdateView to update the cursor to end-of-line on single-line
10834           updates
10835         - Added PositionCaret() method
10836         - Fixed MoveCaret(LineDown) to move into the last line, too
10837         - Added InsertChar overload
10838         - Fixed InsertChar tag offset calculations
10839         - Added DeleteChar() method
10840         - Added Combine() method for folding lines
10841         - Fixed Delete() method, no longer allocates wasted Line object and
10842           now copies all properties when swapping nodes
10843         - Delete() method now updates document line counter
10844
10845 2004-12-15  Jackson Harper  <jackson@ximian.com>
10846
10847         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10848         * X11Keyboard.cs: Expose the currently selected modifier keys
10849         through a property.
10850
10851 2004-12-15  Peter Bartok  <pbartok@novell.com>
10852
10853         * TextControl.cs: Initial check-in. Still incomplete
10854
10855 2004-12-15  Jackson Harper  <jackson@ximian.com>
10856
10857         * TreeNode.cs:
10858         * TreeView.cs: Fix build on csc (second time today ;-))
10859
10860 2004-12-15  Jackson Harper  <jackson@ximian.com>
10861
10862         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10863         is calculated and use this for click testing.
10864         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10865
10866 2004-12-15  Jackson Harper  <jackson@ximian.com>
10867
10868         * TreeView.cs: Pass the nodes image index to the image list when
10869         drawing that image.
10870
10871 2004-12-15  Jackson Harper  <jackson@ximian.com>
10872
10873         * X11Keyboard.cs: Set messages hwnd.
10874         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10875         post_message calls.
10876
10877 2004-12-15  Jackson Harper  <jackson@ximian.com>
10878
10879         * X11Keyboard.cs: Fix to compile with csc.
10880         
10881 2004-12-15  Jackson Harper  <jackson@ximian.com>
10882
10883         * X11Structs.cs: Add key mask values
10884         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10885         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10886         down/up foo into WM_CHAR foo
10887         * KeyboardLayouts.cs: Common keyboard layouts
10888         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10889         post messages into the main queue.
10890
10891 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10892
10893         * Button.cs: implement ProcessMnemonic
10894         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10895           brushes everytime
10896         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10897         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10898
10899 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10900         
10901         * MonthCalendar.cs: Implemented click-hold for next/previous month
10902           and date selection
10903           
10904 2004-12-11  Peter Bartok  <pbartok@novell.com>
10905
10906         * X11Structs.cs:
10907           - Added XKeyboardState (moved from XplatUIX11.cs)
10908           - Added XCreateGC related enums and structures
10909           - Added GXFunction for XSetFunction
10910
10911         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10912
10913         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10914           CaretVisible() calls
10915
10916         * ToolTip.cs: Added code to prevent stealing focus from app windows
10917
10918         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10919           DestroyCaret, SetCaretPos and CaretVisible)
10920
10921         * XplatUIX11.cs:
10922           - Added implementation for caret functions
10923           - Moved hover variables into a struct, to make it a bit easier
10924             on the eyes and to debug
10925           - Removed XKeyboardState (moved to XplatUIX11.cs)
10926           - Moved Keyboard properties into the properties region
10927
10928         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10929           call to get a graphics context for our control
10930
10931         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10932
10933         * TreeView.cs: Fixed bug. No matter what color was set it would always
10934           return SystemColors.Window
10935
10936         * XplatUIWin32.cs: Implemented caret overrides
10937
10938 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10939
10940         * ListBox.cs: fire events, implement missing methods and properties,
10941         sorting.
10942
10943 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10944
10945         * MonthCalendar.cs: invalidation bug fixing
10946         * ThemeWin32Classic.cs: paint fixing
10947
10948 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10949
10950         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10951         prepare the CGContextRef there now.
10952
10953 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10954
10955         * MonthCalendar.cs:
10956           - optimisationL only invalidate areas that have changed
10957         * ThemeWin32Classic.cs:
10958           - only paint parts that intersect with clip_area
10959
10960 2004-12-09  Peter Bartok  <pbartok@novell.com>
10961
10962         * Application.cs: Undid changes from r37004 which cause problems
10963         on X11
10964
10965 2004-12-09  Ravindra  <rkumar@novell.com>
10966
10967         * ToolBar.cs: Added support for displaying ContextMenu
10968         attached to a button on ToolBar.
10969         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10970         property.
10971
10972 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10973
10974         * Label.cs: autosize works in text change and removes unnecessary
10975         invalidate
10976
10977 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10978
10979         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10980         remove warnings
10981
10982 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10983
10984         * XplatUIOSX.cs: Added mouse move/click/grab support
10985         Remove some debugging WriteLines not needed anymore.
10986         Add window resizing/positioning.
10987         Fix visibility on reparenting.
10988
10989 2004-12-08  Peter Bartok  <pbartok@novell.com>
10990
10991         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10992
10993 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10994
10995         * XplatUIOSX.cs: Initial checkin
10996         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10997
10998 2004-12-03  Ravindra <rkumar@novell.com>
10999
11000         * ListView.cs: Added some keybindings and fixed scrolling.
11001         ScrollBars listen to ValueChanged event instead of Scroll
11002         Event. This would let us take care of all changes being
11003         done in the scrollbars' values programmatically or manually.
11004         * ListView.cs (CanMultiselect): Added a check for shift key.
11005         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
11006         * ListViewItem.cs (Clone): Fixed. We need to make a copy
11007         of ListViewSubItemCollection as well.
11008
11009 2004-12-06  Peter Bartok <pbartok@novell.com>
11010
11011         * Control.cs (Parent): Added check and exception to prevent
11012         circular parenting
11013
11014 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
11015
11016         * ListBox.cs: implemented clipping, selection single and multiple,
11017         bug fixing
11018
11019 2004-12-03  Ravindra <rkumar@novell.com>
11020
11021         * ListView.cs (ListView_KeyDown):
11022         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
11023         when CTRL key is pressed.
11024         * ListViewItem.cs (Selected): Fixed setting the property.
11025
11026 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11027
11028         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
11029
11030         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
11031         MinimizeBox, ShowInTaskbar, TopMost properties.
11032
11033         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
11034         will be implemented).
11035
11036 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11037
11038         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
11039
11040         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
11041         tests.
11042         
11043         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
11044         
11045         * TreeView.cs: BackColor is Colors.Window.
11046
11047 2004-12-01  Jackson Harper  <jackson@ximian.com>
11048
11049         * TreeView.cs: When resizing the tree if the user is making it
11050         smaller we don't get expose events, so we need to handle adding
11051         the horizontal scrollbar in the size changed handler as well as
11052         the expose handler.
11053
11054 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
11055
11056         * DrawItemState.cs: fixes wrong enum values
11057
11058 2004-12-01  Jackson Harper  <jackson@ximian.com>
11059
11060         * TreeView.cs: Resize the hbar as well as the vbar on resize.
11061
11062 2004-12-01  Jackson Harper  <jackson@ximian.com>
11063
11064         * NodeLabelEditEventArgs.cs:
11065         * NodeLabelEditEventHandler.cs:
11066         * OpenTreeNodeEnumerator.cs:
11067         * TreeNode.cs:
11068         * TreeNodeCollection.cs:
11069         * TreeView.cs:
11070         * TreeViewAction.cs:
11071         * TreeViewCancelEventArgs.cs:
11072         * TreeViewCancelEventHandler.cs:
11073         * TreeViewEventArgs.cs:
11074         * TreeViewEventHandler.cs: Initial implementation.
11075
11076 2004-12-01  Ravindra <rkumar@novell.com>
11077
11078         * ListView.cs (CalculateListView): Fixed scrolling related
11079         calculations. Also, removed some debug statements from other
11080         places.
11081         * ListViewItem.cs: Changed access to 'selected' instance variable
11082         from private to internal.
11083         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
11084
11085 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
11086
11087         * ThemeWin32Classic.cs: remove cache of brush and pens for
11088         specific controls and use the global system, fixes scrollbutton
11089         bugs (for small sizes, disabled, etc)
11090         
11091         * ScrollBar.cs: does not show the thumb for very small controls
11092         (as MS) and allow smaller buttons that the regular size
11093
11094 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
11095
11096         * UpDownBase.cs: Add abstract methods for the interface.
11097         Add new virtual methods (need to be hooked up to TextEntry when it
11098         exists).
11099         Add override methods for most features.
11100         Computes the size, forces the height of the text entry.
11101
11102         * NumericUpDown.cs: Put here the current testing code.
11103
11104         * Set eol-style property on all files that do not have mixed line
11105         endings, to minimize the future problems.  There are still a few
11106         files with mixed endings, and someone should choose whether they
11107         want to move it or not.
11108
11109 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
11110
11111         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
11112         System.Colors
11113         
11114 2004-11-30  Ravindra <rkumar@novell.com>
11115
11116         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
11117         drawing and replaced use of SystemColors by theme colors.
11118         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
11119         * ListView.cs (ListViewItemCollection.Add): Throw exception when
11120         same ListViewItem is being added more than once.
11121
11122 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
11123
11124         * MonthCalendar.cs:
11125           - ControlStyles love to make the control not flicker
11126           
11127 2004-11-30  Peter Bartok  <pbartok@novell.com>
11128
11129         * CharacterCasing.cs: Added
11130
11131 2004-11-29  Peter Bartok  <pbartok@novell.com>
11132
11133         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11134           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
11135           I am removing these files as they conflict with already completed
11136           work. While it is fantastic to get contributions to MWF, I
11137           respectfully ask that everyone please coordinate their contributions
11138           through mono-winforms-list or #mono-winforms at this time. We're
11139           explicitly avoiding stubbing and don't want controls that don't have
11140           their basic functionality implemented in svn. Please also see
11141           http://www.mono-project.com/contributing/winforms.html
11142
11143
11144 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
11145
11146         * Application.cs (ModalRun): Don't hang after exit.
11147
11148         * Theme.cs: New TreeViewDefaultSize property.
11149
11150         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
11151         with less hardcoded SystemColors constant.
11152         Implemented TreeViewDefaultSize.
11153
11154         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11155         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
11156
11157
11158 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
11159
11160         * MonthCalendar.cs:
11161           - Fix NextMonthDate and PrevMonthDate click moving calendar
11162
11163 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11164
11165         * MonthCalendar.cs:
11166           - Fix usage of ScrollChange Property when scrolling months
11167
11168 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
11169
11170         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
11171          - Fixes menu destroying
11172          - Support adding and removing items on already created menus
11173
11174 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11175
11176         * MonthCalendar.cs:
11177           - Re-worked all bolded dates handling to match win32
11178         * ThemeWin32Classic.cs:
11179           - Fixed rendering with bolded dates
11180
11181 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11182
11183         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11184         - Horizontal scroolbar
11185         - Multicolumn
11186         - Fixes
11187
11188
11189 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11190
11191         * MonthCalendar.cs:
11192           - Fix Usage of MaxSelectionCount from SelectionRange
11193           - Fixed Shift + Cursor Selection
11194           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11195           - Fixed normal cursor selection to be compat with win32
11196           - Fixed Shift + Mouse Click selection
11197
11198 2004-11-24  Peter Bartok <pbartok@novell.com>
11199
11200         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
11201         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
11202         * XplatUIX11.cs:
11203           - CreatedKeyBoardMsg now updates keystate with Alt key
11204           - Added workaround for timer crash to CheckTimers, Jackson will
11205             develop a proper fix and check in later
11206           - Implemented DispatchMessage
11207           - Removed calling the native window proc from GetMessage (call
11208             now moved to DispatchMessage)
11209
11210         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
11211           the keydata (Fixes bug #69831)
11212
11213         * XplatUIWin32.cs:
11214           - (DispatchMessage): Switched to return IntPtr
11215           - Added DllImport for SetFocus
11216
11217 2004-11-24  Ravindra <rkumar@novell.com>
11218
11219         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
11220         background drawing.
11221         * ListViewItem.cs: Fixed various properties, calculations
11222         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
11223         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
11224         and some internal properties. Fixed MouseDown handler and Paint
11225         method.
11226
11227 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11228
11229         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
11230
11231 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11232
11233         * ContainerControl.cs: correct accidental check in of local changes
11234
11235 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11236
11237         * ThemeWin32Classic.cs:
11238                 - Fixed Drawing Last month in grid (sometimes not showing)
11239         * MonthCalendar.cs:
11240                 - Fixed title width calculation bug (makeing title small)
11241
11242 2004-11-23  Peter Bartok <pbartok@novell.com>
11243
11244         * XplatUIX11.cs:
11245           - Added generation of WM_MOUSEHOVER event
11246           - Added missing assignment of async_method atom
11247           - Fixed WM_ERASEBKGND; now only redraws the exposed area
11248
11249 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11250
11251         * ThemeWin32Classic.cs:
11252                 - Fixed Drawing of today circle when showtodaycircle not set
11253                 - fixed drawing of first and last month in the grid (gay dates)
11254         * MonthCalendar.cs:
11255                 - Fixed Drawing of today circle
11256                 - Fixed drawing of grady dates
11257                 - Fixed HitTest for today link when ShowToday set to false
11258                 - Fixed DefaultSize to obey ShowToday
11259
11260 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11261
11262         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
11263         * System.Windows.Forms/Theme.cs
11264         * MonthCalendar.cs: added for MonthCalendar
11265         * SelectionRange.cs: added for MonthCalendar
11266         * Day.cs: added for MonthCalendar: added for MonthCalendar
11267         * DateRangeEventArgs.cs: added for MonthCalendar
11268         * DateRangeEventHandler.cs: added for MonthCalendar
11269
11270 2004-11-22  Ravindra <rkumar@novell.com>
11271
11272         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
11273         property.
11274
11275 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
11276
11277         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
11278         event handler.
11279         
11280         * NumericUpDown.cs: Added new implementation.
11281         * UpDownBase.cs: Added new implementation.
11282
11283         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11284         implementations.
11285         
11286         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11287         implementations.
11288
11289         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11290         methods.
11291
11292 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11293
11294         * Timer.cs  (Dispose): Should call the base dispose when
11295         overriding.
11296
11297 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11298
11299         * ScrollBar.cs: updates thumb position when max, min or increment
11300         is changed
11301
11302 2004-11-21  Ravindra <rkumar@novell.com>
11303
11304         * ListView.cs: Implemented item selection, activation and
11305         column header style. Fixed properties to do a redraw, if
11306         required. Added support for MouseHover, DoubleClick, KeyDown
11307         and KeyUp event handling and some minor fixes.
11308         * ListViewItem.cs: Fixed constructor.
11309         * ThemeWin32Classic.cs: Improved drawing for ListView.
11310
11311 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11312
11313         * ThemeWin32Classic.cs: initial listbox drawing code
11314         * DrawMode.cs: new enumerator
11315         * ListControl.cs: stubbed class
11316         * ListBox.cs: initial implementation
11317         * Theme.cs: new methods definitions
11318         * SelectionMode.cs: new enumerator
11319
11320 2004-11-17  Peter Bartok  <pbartok@novell.com>
11321
11322         * XplatUIWin32.cs: Added double-click events to the class style
11323         * Control.cs (WndProc):
11324           - Added handling of click-count to MouseDown/ MouseUp events.
11325           - Added handling of middle and right mouse buttons
11326           - Removed old debug code
11327
11328 2004-11-17  Jackson Harper  <jackson@ximian.com>
11329
11330         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11331
11332 2004-11-17  Ravindra <rkumar@novell.com>
11333
11334         * ListView.cs: Added event handling for MouseMove/Up/Down.
11335         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11336         * ThemeWin32Classic.cs: We need to clear the graphics context and
11337         draw column header in a proper state.
11338
11339
11340 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11341
11342         *  Menu.cs: fixes signature
11343
11344 2004-11-16  Peter Bartok  <pbartok@novell.com>
11345
11346         * XplatUIX11.cs (GetMessage): Implemented generation of
11347           double click mouse messages
11348
11349 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11350
11351         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11352         not by menu
11353
11354 2004-11-11  Peter Bartok  <pbartok@novell.com>
11355
11356         * HandleData.cs: Added Visible property
11357         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11358           HandleData
11359         * XplatUIX11.cs: Removed old debug leftovers
11360         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11361         * Control.cs (WndProc): Removed old debug leftovers,
11362           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11363           needed WM_SIZE handling
11364
11365 2004-11-11  Jackson Harper  <jackson@ximian.com>
11366
11367         * OwnerDrawPropertyBag.cs:
11368         * TreeViewImageIndexConverter.cs: Initial implementation
11369
11370 2004-11-10  Jackson Harper  <jackson@ximian.com>
11371
11372         * ThemeWin32Classic.cs:
11373         * TabControl.cs: instead of moving tabs by the slider pos just
11374         start drawing at the tab that is offset by the slider. This way
11375         scrolling always moves by exactly one tab.
11376
11377 2004-11-10  Jackson Harper  <jackson@ximian.com>
11378
11379         * TabControl.cs: You can only scroll left when the slider has
11380         already ben moved right.
11381         
11382 2004-11-10  Jackson Harper  <jackson@ximian.com>
11383
11384         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11385         the clip area.
11386         
11387 2004-11-10  Jackson Harper  <jackson@ximian.com>
11388
11389         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11390         clip area.
11391         
11392 2004-11-09  Jackson Harper  <jackson@ximian.com>
11393
11394         * TabControl.cs (CalcXPos): New helper method so we can determine
11395         the proper place to start drawing vertical tabs.
11396         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11397         
11398 2004-11-09  Jackson Harper  <jackson@ximian.com>
11399
11400         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11401         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11402         and Bottom, left and right are illegal values for this and
11403         multiline is enabled when the alignment is set to left or right.
11404         (DrawTab): Each alignment block should draw the text itself now
11405         because Left requires special love. Also add rendering for Left
11406         aligned tabs.
11407         
11408 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11409
11410         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11411         does not destroy the windows, removes debugging messages
11412
11413 2004-11-09  jba  <jba-mono@optusnet.com.au>
11414
11415         * ThemeWin32Classic.cs
11416         (DrawButtonBase): Fix verticle text rect clipping in windows
11417         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11418         rendering and incorrect text rect clipping
11419         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11420         rendering and incorrect text rect clipping
11421         
11422 2004-11-08  Jackson Harper  <jackson@ximian.com>
11423
11424         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11425         bottom when they are bottom aligned so the bottoms of the tabs get
11426         displayed.
11427         * TabControl.cs (DropRow): Move rows up instead of down when the
11428         tab control is bottom aligned.
11429
11430 2004-11-08 13:59  pbartok
11431
11432         * XplatUIX11.cs:
11433           - Added handling for various window styles
11434           - Added handling for popup windows
11435           - Added SetTopmost handling
11436
11437 2004-11-08 13:55  pbartok
11438
11439         * XplatUIWin32.cs:
11440           - Added argument to SetTopmost method
11441           - Fixed broken ClientToScreen function
11442
11443 2004-11-08 13:53  pbartok
11444
11445         * XplatUIStructs.cs:
11446           - Added missing WS_EX styles
11447
11448 2004-11-08 13:53  pbartok
11449
11450         * XplatUI.cs, XplatUIDriver.cs:
11451           - Added argument to SetTopmost
11452
11453 2004-11-08 13:52  pbartok
11454
11455         * X11Structs.cs:
11456           - Added XSetWindowAttributes structure
11457           - Improved XWindowAttributes structure
11458           - Added SetWindowValuemask enum
11459           - Added window creation arguments enum
11460           - Added gravity enum
11461           - Added Motif hints structure
11462           - Added various Motif flags and enums
11463           - Added PropertyMode enum for property functions
11464
11465 2004-11-08 13:50  pbartok
11466
11467         * Form.cs:
11468           - Fixed arguments for updated SetTopmost method
11469
11470 2004-11-08 13:49  pbartok
11471
11472         * ToolTip.cs:
11473           - Fixed arguments for updated SetTopmost function
11474           - Fixed usage of PointToClient
11475
11476 2004-11-08 13:44  pbartok
11477
11478         * MenuAPI.cs:
11479           - Added Clipping of children and siblings
11480
11481 2004-11-08 13:41  pbartok
11482
11483         * MainMenu.cs:
11484           - Removed SetMenuBarWindow call. We do this in Form.cs
11485
11486 2004-11-08 13:40  jackson
11487
11488         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11489           scrolling jimmi in the correct location with bottom aligned tabs
11490
11491 2004-11-08 13:36  pbartok
11492
11493         * ContainerControl.cs:
11494           - Implemented BindingContext
11495           - Implemented ParentForm
11496
11497 2004-11-08 12:46  jackson
11498
11499         * TabControl.cs: Put bottom rendered tabs in the right location
11500
11501 2004-11-08 07:15  jordi
11502
11503         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11504           removes dead code
11505
11506 2004-11-05 17:30  jackson
11507
11508         * TabControl.cs: When selected tabs are expanded make sure they
11509           don't go beyond the edges of the tab control
11510
11511 2004-11-05 14:57  jackson
11512
11513         * TabControl.cs: Reset show_slider so if the control is resized to
11514           a size where it is no longer needed it's not displayed anymore
11515
11516 2004-11-05 13:16  jackson
11517
11518         * TabControl.cs: Make tab pages non visible when added to the
11519           control
11520
11521 2004-11-05 12:42  jackson
11522
11523         * TabControl.cs: Implement SizeMode.FillToRight
11524
11525 2004-11-05 12:16  jackson
11526
11527         * Control.cs: Do not call CreateHandle if the handle is already
11528           created
11529
11530 2004-11-05 11:46  jackson
11531
11532         * TabControl.cs: Remove superflous call to CalcTabRows
11533
11534 2004-11-05 09:07  jackson
11535
11536         * XplatUIX11.cs: Update for Mono.Posix changes
11537
11538 2004-11-05 07:00  ravindra
11539
11540         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11541           scrolling.
11542
11543 2004-11-04 22:47  jba
11544
11545         * ThemeWin32Classic.cs:
11546           - Fix Button rendering for FlatStyle = Flat or Popup
11547           - Fix RadioButton and CheckBox rendering when Appearance = Button
11548             (normal and flatstyle).
11549           - Correct outer rectangle color when drawing focus rectangle
11550           - Adjust button bounds to be 1 px smaller when focused
11551           - Make button not draw sunken 3d border when pushed (windows compat)
11552           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11553           - Offset the text in RadioButton and Checkbox when being rendered as
11554           a button.
11555           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11556           radiobuttons
11557           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11558           - Fixed disabled text rendering for normally rendered radiobuttons
11559
11560 2004-11-04 10:26  jackson
11561
11562         * TabControl.cs: Recalculate tab rows when resizing
11563
11564 2004-11-04 07:47  jordi
11565
11566         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11567           collection completion, drawing issues, missing features
11568
11569 2004-11-04 05:03  ravindra
11570
11571         * ScrollBar.cs:
11572                 - We need to recalculate the Thumb area when
11573                 LargeChange/maximum/minimum values are changed.
11574           - We set the 'pos' in UpdatePos() method to minimum, if it's less
11575                 than minimum. This is required to handle the case if large_change is
11576                 more than max, and use LargeChange property instead of large_change
11577                 variable.
11578           - We return max+1 when large_change is more than max, like MS does.
11579
11580 2004-11-04 04:29  ravindra
11581
11582         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11583                 - Changed default value signatures (prefixed all with ListView).
11584                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11585                 ListView.
11586           - Fixed calculations for ListViewItem and implemented Clone()
11587           method.
11588
11589 2004-11-04 04:26  ravindra
11590
11591         * Theme.cs, ThemeWin32Classic.cs:
11592                 - Changed default ListView values signatures (prefixed all with
11593                 ListView).
11594           - Fixed default size values for VScrollBar and HScrollBar.
11595                 - Fixed DrawListViewItem method.
11596
11597 2004-11-04 04:05  ravindra
11598
11599         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11600
11601 2004-11-04 04:04  ravindra
11602
11603         * ImageList.cs: Implemented the missing overload for Draw method.
11604
11605 2004-11-03 19:29  jackson
11606
11607         * TabControl.cs: Handle dropping rows on selection properly
11608
11609 2004-11-03 11:59  jackson
11610
11611         * TabControl.cs: remove debug code
11612
11613 2004-11-03 11:52  jackson
11614
11615         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11616           the scrolly widgerywoo
11617
11618 2004-11-02 13:52  jackson
11619
11620         * TabControl.cs: Resize the tab pages and tabs when the tab control
11621           is resized
11622
11623 2004-11-02 13:40  jackson
11624
11625         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11626           selected tab to the bottom
11627
11628 2004-11-02 13:39  jackson
11629
11630         * TabPage.cs: Store the tab pages row
11631
11632 2004-11-02 12:33  jordi
11633
11634         * MenuItem.cs: fixes handle creation
11635
11636 2004-11-02 11:42  jackson
11637
11638         * TabControl.cs: signature fix
11639
11640 2004-11-02 08:56  jackson
11641
11642         * TabControl.cs: Calculate whether the tab is on an edge properly.
11643           Remove top secret debugging code
11644
11645 2004-11-01 19:57  jackson
11646
11647         * TabControl.cs: Add click handling, and proper sizing
11648
11649 2004-11-01 19:47  jackson
11650
11651         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11652           tab controls
11653
11654 2004-11-01 19:39  jackson
11655
11656         * TabPage.cs: add internal property to store the bounds of a tab
11657           page
11658
11659 2004-10-30 04:23  ravindra
11660
11661         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11662           values.
11663
11664 2004-10-30 04:21  ravindra
11665
11666         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11667           fixed calculations.
11668
11669 2004-10-30 03:06  pbartok
11670
11671         * XplatUIX11.cs:
11672           - Removed extension of DllImported libs
11673
11674 2004-10-29 09:55  jordi
11675
11676         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11677           navigation, itemcollection completion, menu fixes
11678
11679 2004-10-27 22:58  pbartok
11680
11681         * XplatUIX11.cs:
11682           - Now throws a nice error message when no X display could be opened
11683
11684 2004-10-26 13:51  jordi
11685
11686         * ListView.cs: removes warning
11687
11688 2004-10-26 03:55  ravindra
11689
11690         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11691           ThemeWin32Classic.cs: Some formatting for my last checkins.
11692
11693 2004-10-26 03:36  ravindra
11694
11695         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11696           control and default values.
11697
11698 2004-10-26 03:35  ravindra
11699
11700         * Theme.cs: Added some default values for ListView control.
11701
11702 2004-10-26 03:33  ravindra
11703
11704         * ToolBar.cs: ToolBar should use the user specified button size, if
11705           there is any. Added a size_specified flag for the same.
11706
11707 2004-10-26 03:33  ravindra
11708
11709         * ColumnHeader.cs: Added some internal members and calculations for
11710           ColumnHeader.
11711
11712 2004-10-26 03:32  ravindra
11713
11714         * ListViewItem.cs: Calculations for ListViewItem.
11715
11716 2004-10-26 03:31  ravindra
11717
11718         * ListView.cs: Added some internal members and calculations for
11719           ListView.
11720
11721 2004-10-22 13:31  jordi
11722
11723         * MenuAPI.cs: speedup menus drawing
11724
11725 2004-10-22 13:16  jackson
11726
11727         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11728           expose event
11729
11730 2004-10-22 11:49  jackson
11731
11732         * Control.cs: oops
11733
11734 2004-10-22 11:41  jackson
11735
11736         * Control.cs: Check to see if the window should have its background
11737           repainted by X when drawing.
11738
11739 2004-10-22 11:31  jackson
11740
11741         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11742           clear is true, this way we do not get flicker from X repainting the
11743           background
11744
11745 2004-10-22 11:28  jackson
11746
11747         * XEventQueue.cs: Queue properly
11748
11749 2004-10-21 09:38  jackson
11750
11751         * XEventQueue.cs: Fix access modifier
11752
11753 2004-10-21 09:36  jackson
11754
11755         * XEventQueue.cs: Don't loose messages
11756
11757 2004-10-21 09:22  jackson
11758
11759         * XEventQueue.cs: Don't loose messages
11760
11761 2004-10-20 04:15  jordi
11762
11763         * BootMode.cs: enum need it by SystemInfo
11764
11765 2004-10-19 21:58  pbartok
11766
11767         * XplatUIWin32.cs:
11768           - Small sanity check
11769
11770 2004-10-19 21:56  pbartok
11771
11772         * Form.cs:
11773           - Added private FormParentWindow class which acts as the container
11774             for our form and as the non-client area where menus are drawn
11775           - Added/Moved required tie-ins to Jordi's menus
11776           - Fixed/Implemented the FormStartPosition functionality
11777
11778 2004-10-19 21:52  pbartok
11779
11780         * Control.cs:
11781           - Removed unneeded locals
11782           - Added code to all size and location properties to understand and
11783             deal with the parent container of Form
11784
11785 2004-10-19 21:33  pbartok
11786
11787         * Application.cs:
11788           - Fixed to deal with new Form subclasses for menus
11789
11790 2004-10-19 17:48  jackson
11791
11792         * XEventQueue.cs: commit correct version of file
11793
11794 2004-10-19 16:50  jackson
11795
11796         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11797
11798 2004-10-19 16:15  jordi
11799
11800         * MenuAPI.cs: MenuBarCalcSize returns the height
11801
11802 2004-10-19 08:31  pbartok
11803
11804         * Control.cs:
11805           - Added missing call to PreProcessMessage before calling OnXXXKey
11806           methods
11807
11808 2004-10-19 00:04  ravindra
11809
11810         * ToolTip.cs: Fixed constructor.
11811
11812 2004-10-18 09:31  jordi
11813
11814         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11815
11816 2004-10-18 09:26  jordi
11817
11818         * MenuItem.cs: fixes MenuItem class signature
11819
11820 2004-10-18 08:56  jordi
11821
11822         * MenuAPI.cs: prevents windows from showing in the taskbar
11823
11824 2004-10-18 00:28  ravindra
11825
11826         * ToolTip.cs: Suppressed a warning message.
11827
11828 2004-10-18 00:27  ravindra
11829
11830         * Control.cs: Default value of visible property must be true.
11831
11832 2004-10-17 23:19  pbartok
11833
11834         * ToolTip.cs:
11835           - Complete implementation
11836
11837 2004-10-17 23:19  pbartok
11838
11839         * XplatUIX11.cs:
11840           - Added EnableWindow method
11841           - Added SetModal stub
11842           - Added generation of WM_ACTIVATE message (still needs testing)
11843           - Added SetTopMost stub
11844           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11845
11846 2004-10-17 23:17  pbartok
11847
11848         * XplatUIWin32.cs:
11849           - Removed VirtualKeys to XplatUIStructs
11850           - Implemented SetTopMost method
11851           - Implemented EnableWindow method
11852           - Bugfix in ScreenToClient()
11853           - Bugfixes in ClientToScreen()
11854
11855 2004-10-17 22:51  pbartok
11856
11857         * XplatUIStructs.cs:
11858           - Added WS_EX styles to WindowStyles enumeration
11859
11860 2004-10-17 22:50  pbartok
11861
11862         * XplatUI.cs, XplatUIDriver.cs:
11863           - Added method for enabling/disabling windows
11864           - Added method for setting window modality
11865           - Added method for setting topmost window
11866
11867 2004-10-17 22:49  pbartok
11868
11869         * ThemeWin32Classic.cs:
11870           - Added ToolTip drawing code
11871
11872 2004-10-17 22:49  pbartok
11873
11874         * Theme.cs:
11875           - Added ToolTip abstracts
11876
11877 2004-10-17 22:47  pbartok
11878
11879         * Form.cs:
11880           - Fixed Form.ControlCollection to handle owner relations
11881           - Added Owner/OwnedForms handling
11882           - Implemented Z-Ordering for owned forms
11883           - Removed unneeded private overload of ShowDialog
11884           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11885             so I hope)
11886           - Fixed Close(), had wrong default
11887           - Added firing of OnLoad event
11888           - Added some commented out debug code for Ownership handling
11889
11890 2004-10-17 22:16  pbartok
11891
11892         * Control.cs:
11893           - Fixed/implemented flat list of controls
11894
11895 2004-10-17 22:14  pbartok
11896
11897         * Application.cs:
11898           - Added code to simulate modal dialogs on Win32
11899
11900 2004-10-17 16:11  jordi
11901
11902         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11903           mouse event
11904
11905 2004-10-17 13:39  jordi
11906
11907         * MenuAPI.cs: menu drawing fixes
11908
11909 2004-10-15 09:10  ravindra
11910
11911         * StructFormat.cs: General Enum.
11912
11913 2004-10-15 09:09  ravindra
11914
11915         * SizeGripStyle.cs: Enum for Form.
11916
11917 2004-10-15 09:08  ravindra
11918
11919         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11920           in Theme for ListView.
11921
11922 2004-10-15 09:06  ravindra
11923
11924         * ColumnHeader.cs: Flushing some formatting changes.
11925
11926 2004-10-15 09:05  ravindra
11927
11928         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11929           style.
11930
11931 2004-10-15 09:03  ravindra
11932
11933         * ListView.cs: Implemented Paint method and fixed coding style.
11934
11935 2004-10-15 07:34  jordi
11936
11937         * MenuAPI.cs: fix for X11
11938
11939 2004-10-15 07:32  ravindra
11940
11941         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11942                 - Renamed Paint() method to Draw() for clarity. Also, moved
11943                 DrawImage() to OnPaint().
11944
11945 2004-10-15 07:25  ravindra
11946
11947         * CheckBox.cs, RadioButton.cs:
11948                 - Removed Redraw (), we get it from ButtonBase.
11949                 - Implemented Paint (), to do class specific painting.
11950
11951 2004-10-15 07:16  ravindra
11952
11953         * ButtonBase.cs:
11954                 - Redraw () is not virtual now.
11955                 - Added an internal virtual method Paint (), so that
11956                 derived classes can do their painting on their own.
11957                 - Modified OnPaint () to call Paint ().
11958
11959 2004-10-15 06:43  jordi
11960
11961         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11962           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11963
11964 2004-10-15 00:30  ravindra
11965
11966         * MessageBox.cs:
11967                 - MessageBox on windows does not have min/max buttons.
11968                 This change in CreateParams fixes this on Windows. We
11969                 still need to implement this windowstyle behavior in
11970                 our X11 driver.
11971
11972 2004-10-14 05:14  ravindra
11973
11974         * ToolBar.cs:
11975                 - Changed Redraw () to do a Refresh () always.
11976                 - Fixed the MouseMove event handling when mouse is pressed,
11977                 ie drag event handling.
11978                 - Replaced the usage of ToolBarButton.Pressed property to
11979                 ToolBarButton.pressed internal variable.
11980
11981 2004-10-14 05:10  ravindra
11982
11983         * ToolBarButton.cs:
11984                 - Added an internal member 'inside' to handle mouse move
11985                 with mouse pressed ie mouse drag event.
11986                 - Changed 'Pressed' property to return true only when
11987                 'inside' and 'pressed' are both true.
11988                 - Some coding style love.
11989
11990 2004-10-14 00:17  ravindra
11991
11992         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11993           public method.
11994
11995 2004-10-14 00:15  ravindra
11996
11997         * ButtonBase.cs: Redraw () related improvements.
11998
11999 2004-10-14 00:14  ravindra
12000
12001         * MessageBox.cs: Moved InitFormSize () out of Paint method and
12002           removed unnecessary calls to Button.Show () method.
12003
12004 2004-10-13 17:50  pbartok
12005
12006         * XplatUIX11.cs:
12007           - Formatting fix
12008           - Removed destroying of window until we solve the problem of X
12009             destroying the window before us on shutdown
12010
12011 2004-10-13 16:32  pbartok
12012
12013         * ButtonBase.cs:
12014           - Now Redraws on MouseUp for FlatStyle Flat and Popup
12015
12016 2004-10-13 14:18  pbartok
12017
12018         * XplatUIX11.cs:
12019           - Added code to destroy the X window
12020
12021 2004-10-13 14:18  pbartok
12022
12023         * XplatUIWin32.cs:
12024           - Added code to destroy a window
12025
12026 2004-10-13 14:12  pbartok
12027
12028         * ButtonBase.cs:
12029           - Added the Redraw on Resize that got dropped in the last rev
12030
12031 2004-10-13 09:06  pbartok
12032
12033         * ThemeWin32Classic.cs:
12034           - Path from John BouAntoun:
12035             * Fix check rendering (centre correctly for normal style, offset
12036               correctly for FlatStyle).
12037             * Fix border color usage (use backcolor) for FlatStyle.Popup
12038             * Use checkbox.Capture instead of checkbox.is_pressed when
12039               rendering flatstyle states.
12040
12041 2004-10-12 21:48  pbartok
12042
12043         * ThemeWin32Classic.cs:
12044           - Removed all occurences of SystemColors and replaced them with the
12045             matching theme color
12046
12047 2004-10-12 21:41  pbartok
12048
12049         * ThemeWin32Classic.cs:
12050           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
12051             him using the function for flatstyle drawing
12052           - Changed functions to use the new version of CPDrawBorder3D
12053
12054 2004-10-12 21:15  pbartok
12055
12056         * ControlPaint.cs:
12057           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
12058             match MS documentation. They need to return defined colors if the
12059             passed color matches the configured control color. Thanks to John
12060             BouAntoun for pointing this out.
12061
12062 2004-10-12 20:57  pbartok
12063
12064         * Control.cs:
12065           - Fix from John BouAntoun: Raise ForeColorChanged event when text
12066             color is changed
12067
12068 2004-10-12 20:46  pbartok
12069
12070         * CheckBox.cs:
12071           - Fix from John BouAntoun: Now properly sets the Appearance property
12072
12073 2004-10-12 20:45  pbartok
12074
12075         * ThemeWin32Classic.cs:
12076           - Fixes from John BouAntoun: now handles forecolors and backcolors
12077             for flatstyle rendered controls much better; It also fixes normal
12078             checkbox rendering when pushed or disabled.
12079
12080 2004-10-08 02:50  jordi
12081
12082         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
12083           work
12084
12085 2004-10-07 08:56  jordi
12086
12087         * ThemeWin32Classic.cs: Removes deletion of cached brushes
12088
12089 2004-10-06 03:59  jordi
12090
12091         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
12092           XplatUIWin32.cs: removes warnings from compilation
12093
12094 2004-10-05 12:23  jackson
12095
12096         * RadioButton.cs: Fix ctor
12097
12098 2004-10-05 11:10  pbartok
12099
12100         * MessageBox.cs:
12101           - Partial implementation by Benjamin Dasnois
12102
12103 2004-10-05 10:15  jackson
12104
12105         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
12106           by John BouAntoun
12107
12108 2004-10-05 03:07  ravindra
12109
12110         * ToolBar.cs:
12111                 - Removed a private method, Draw ().
12112                 - Fixed the ButtonDropDown event handling.
12113                 - Fixed MouseMove event handling.
12114
12115 2004-10-05 03:04  ravindra
12116
12117         * ThemeWin32Classic.cs:
12118                 - Added DrawListView method and ListViewDefaultSize property.
12119                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
12120                 - Changed DOS style CRLF to Unix format (dos2unix).
12121
12122 2004-10-05 03:03  ravindra
12123
12124         * Theme.cs:
12125                 - Added DrawListView method and ListViewDefaultSize property.
12126
12127 2004-10-05 02:42  ravindra
12128
12129         * ToolBarButton.cs: Added an internal member dd_pressed to handle
12130           clicks on DropDown arrow.
12131
12132 2004-10-04 22:56  jackson
12133
12134         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
12135           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
12136           Control handle the buffers, derived classes should not have to
12137           CreateBuffers themselves.
12138
12139 2004-10-04 21:20  jackson
12140
12141         * StatusBar.cs: The control handles resizing the buffers now.
12142
12143 2004-10-04 21:18  jackson
12144
12145         * Control.cs: When resizing the buffers should be invalidated. This
12146           should be handled in Control not in derived classes.
12147
12148 2004-10-04 14:45  jackson
12149
12150         * TabPage.cs: oops
12151
12152 2004-10-04 02:14  pbartok
12153
12154         * LeftRightAlignment.cs:
12155           - Initial check-in
12156
12157 2004-10-04 01:09  jordi
12158
12159         * ThemeWin32Classic.cs: fixes right button position causing right
12160           button not showing on horizontal scrollbars
12161
12162 2004-10-02 13:12  pbartok
12163
12164         * XplatUIX11.cs:
12165           - Simplified the Invalidate method by using an X call instead of
12166             generating the expose ourselves
12167           - Added an expose when the window background is changed
12168           - Implemented ClientToScreen method
12169
12170 2004-10-02 13:08  pbartok
12171
12172         * XplatUIWin32.cs:
12173           - Added Win32EnableWindow method (test for implementing modal
12174           dialogs)
12175           - Added ClientToScreen method and imports
12176
12177 2004-10-02 13:07  pbartok
12178
12179         * XplatUI.cs, XplatUIDriver.cs:
12180           - Added ClientToScreen coordinate translation method
12181
12182 2004-10-02 13:06  pbartok
12183
12184         * KeyPressEventArgs.cs:
12185           - Fixed access level for constructor
12186
12187 2004-10-02 13:06  pbartok
12188
12189         * NativeWindow.cs:
12190           - Changed access level for the window_collection hash table
12191
12192 2004-10-02 13:05  pbartok
12193
12194         * Form.cs:
12195           - Added KeyPreview property
12196           - Added Menu property (still incomplete, pending Jordi's menu work)
12197           - Implemented ProcessCmdKey
12198           - Implemented ProcessDialogKey
12199           - Implemented ProcessKeyPreview
12200
12201 2004-10-02 13:02  pbartok
12202
12203         * Control.cs:
12204           - Added private method to get the Control object from the window
12205           handle
12206           - Implemented ContextMenu property
12207           - Implemented PointToScreen
12208           - Implemented PreProcessMessage
12209           - Implemented IsInputChar
12210           - Implemented IsInputKey
12211           - Implemented ProcessCmdKey
12212           - Completed ProcessKeyEventArgs
12213           - Fixed message loop to call the proper chain of functions on key
12214           events
12215           - Implemented ProcessDialogChar
12216           - Implemented ProcessDialogKey
12217           - Implemented ProcessKeyMessage
12218           - Implemented ProcessKeyPreview
12219           - Added RaiseDragEvent stub (MS internal method)
12220           - Added RaiseKeyEvent stub (MS internal method)
12221           - Added RaiseMouseEvent stub (MS Internal method)
12222           - Added RaisePaintEvent stub (MS Internal method)
12223           - Added ResetMouseEventArgs stub (MS Internal method)
12224           - Implemented RtlTranslateAlignment
12225           - Implemented RtlTranslateContent
12226           - Implemented RtlTranslateHorizontal
12227           - Implemented RtlTranslateLeftRight
12228           - Added generation of KeyPress event
12229
12230 2004-10-02 05:57  ravindra
12231
12232         * ListViewItem.cs: Added attributes.
12233
12234 2004-10-02 05:32  ravindra
12235
12236         * ListView.cs: Added attributes.
12237
12238 2004-10-01 11:53  jackson
12239
12240         * Form.cs: Implement the Close method so work on MessageBox can
12241           continue.
12242
12243 2004-09-30 14:06  pbartok
12244
12245         * XplatUIX11.cs:
12246           - Bug fixes
12247
12248 2004-09-30 11:34  jackson
12249
12250         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
12251
12252 2004-09-30 07:26  ravindra
12253
12254         * ListViewItemConverter.cs: Converter for ListViewItem.
12255
12256 2004-09-30 07:26  ravindra
12257
12258         * SortOrder.cs: Enum for ListView control.
12259
12260 2004-09-30 07:25  ravindra
12261
12262         * ColumnHeader.cs: Supporting class for ListView control.
12263
12264 2004-09-30 07:24  ravindra
12265
12266         * ListView.cs, ListViewItem.cs: Initial implementation.
12267
12268 2004-09-30 07:20  ravindra
12269
12270         * ItemActivation.cs: Enum for ListView Control.
12271
12272 2004-09-29 20:29  pbartok
12273
12274         * XplatUIX11.cs:
12275           - Added lookup of pixel value for background color; tries to get a
12276             color 'close' to the requested color, it avoids having to create a
12277             colormap.  Depending on the display this could mean the used color
12278             is slightly off the desired color. Might have to change it to a more
12279             resource intensive colormap approach, but it will work as a
12280           workaround to avoid red screens.
12281
12282 2004-09-29 14:27  jackson
12283
12284         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12285
12286 2004-09-28 12:44  pbartok
12287
12288         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12289           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12290           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12291           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12292           TrackBar.cs, VScrollBar.cs:
12293           - Streamlined Theme interfaces:
12294             * Each DrawXXX method for a control now is passed the object for
12295               the control to be drawn in order to allow accessing any state the
12296               theme might require
12297
12298             * ControlPaint methods for the theme now have a CP prefix to avoid
12299               name clashes with the Draw methods for controls
12300
12301             * Every control now retrieves it's DefaultSize from the current
12302             theme
12303
12304 2004-09-28 12:17  jackson
12305
12306         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12307           drawing
12308
12309 2004-09-24 14:57  jackson
12310
12311         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12312           Gives us a nice little performance boost.
12313
12314 2004-09-24 12:02  jackson
12315
12316         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12317           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12318           Control and supporting classes. Initial checkin
12319
12320 2004-09-23 13:08  jackson
12321
12322         * Form.cs: Temp build fixage
12323
12324 2004-09-23 01:39  ravindra
12325
12326         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12327           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12328           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12329           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12330           EventHandlers needed by ListView Control.
12331
12332 2004-09-22 14:12  pbartok
12333
12334         * ScrollableControl.cs:
12335           - Implemented DockPadding property
12336           - Implemented AutoScroll property
12337           - Implemented AutoScrollMargin property
12338           - Implemented AutoScrollMinSize property
12339           - Implemented AutoScrollPosition property
12340           - Implemented DisplayRectangle property (still incomplete)
12341           - Implemented CreateParams property
12342           - Implemented HScroll property
12343           - Implemented VScroll property
12344           - Implemented OnVisibleChanged property
12345
12346 2004-09-22 14:09  pbartok
12347
12348         * Form.cs:
12349           - Added Form.ControllCollection class
12350           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12351             RemoveOwnedForm (still incomplete, missing on-top and common
12352             minimize/maximize behaviour)
12353           - Added StartPosition property (still incomplete, does not use when
12354             creating the form)
12355           - Added ShowDialog() methods (still incomplete, missing forcing the
12356             dialog modal)
12357
12358 2004-09-22 14:05  pbartok
12359
12360         * Application.cs:
12361           - Added message loop for modal dialogs
12362
12363 2004-09-22 14:02  pbartok
12364
12365         * GroupBox.cs:
12366           - Fixed wrong types for events
12367
12368 2004-09-22 14:00  pbartok
12369
12370         * Shortcut.cs, FormWindowState.cs:
12371           - Fixed wrong values
12372
12373 2004-09-22 12:01  jackson
12374
12375         * Control.cs: Text is never null
12376
12377 2004-09-20 22:14  pbartok
12378
12379         * XplatUIWin32.cs:
12380           - Fixed accessibility level for Idle handler
12381
12382 2004-09-20 18:54  jackson
12383
12384         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12385           XplatUIX11.cs: New message loop that uses poll so we don't get a
12386           busy loop
12387
12388 2004-09-17 10:43  pbartok
12389
12390         * ScrollBar.cs:
12391           - Fixed behaviour of arrow buttons. Now properly behaves like
12392             Buttons (and like Microsoft's scrollbar arrow buttons)
12393
12394 2004-09-17 10:14  pbartok
12395
12396         * ScrollBar.cs:
12397           - Added missing release of keyboard/mouse capture
12398
12399 2004-09-17 06:18  jordi
12400
12401         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12402           Theme.cs: Very early menu support
12403
12404 2004-09-16 17:45  pbartok
12405
12406         * XplatUIWin32.cs:
12407           - Fixed sending a window to the front
12408           - Added overload for SetWindowPos to avoid casting
12409
12410 2004-09-16 17:44  pbartok
12411
12412         * Control.cs:
12413           - Added SendToBack and BringToFront methods
12414
12415 2004-09-16 07:00  ravindra
12416
12417         * Copyright: Added Novell URL.
12418
12419 2004-09-16 07:00  ravindra
12420
12421         * ToolBar.cs: Invalidate should be done before redrawing.
12422
12423 2004-09-15 21:19  ravindra
12424
12425         * ColumnHeaderStyle.cs: Enum for ListView Control.
12426
12427 2004-09-15 21:18  ravindra
12428
12429         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12430           ListView Control.
12431
12432 2004-09-13 18:26  jackson
12433
12434         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12435           properly
12436
12437 2004-09-13 18:13  jackson
12438
12439         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12440           a second thread and post messages into the main threads message
12441           queue. This makes timing much more consistent. Both win2K and XP
12442           have a minimum timer value of 15 milliseconds, so we now do this
12443           too.
12444
12445 2004-09-13 15:18  pbartok
12446
12447         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12448           XplatUIX11.cs:
12449           - Added Z-Ordering methods
12450
12451 2004-09-13 10:56  pbartok
12452
12453         * Form.cs:
12454           - Fixed #region names
12455           - Moved properties and methods into their proper #regions
12456
12457 2004-09-13 10:51  pbartok
12458
12459         * Form.cs:
12460           - Added Accept and CancelButton properties
12461           - Added ProcessDialogKey() method
12462
12463 2004-09-13 08:18  pbartok
12464
12465         * IWindowTarget.cs:
12466           - Initial check-in
12467
12468 2004-09-10 21:50  pbartok
12469
12470         * Control.cs:
12471           - Added DoDragDrop() [incomplete]
12472           - Properly implemented 'Visible' handling
12473           - Added SetVisibleCore()
12474           - Implemented FindChildAtPoint()
12475           - Implemented GetContainerControl()
12476           - Implemented Hide()
12477
12478 2004-09-10 19:28  pbartok
12479
12480         * Control.cs:
12481           - Moved methods into their appropriate #regions
12482           - Reordered methods within regions alphabetically
12483
12484 2004-09-10 18:57  pbartok
12485
12486         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12487           - Added method to retrieve text from window
12488
12489 2004-09-10 18:56  pbartok
12490
12491         * Control.cs:
12492           - Moved some internal functions into the internal region
12493           - Implemented FontHeight
12494           - Implemented RenderRightToLeft
12495           - Implemented ResizeRedraw
12496           - Implemented ShowFocusCues
12497           - Implemented ShowKeyboardCues
12498           - Implemented FromChildHandle
12499           - Implemented FromHandle
12500           - Implemented IsMnemonic
12501           - Implemented ReflectMessage
12502           - All public and protected Static Methods are now complete
12503
12504 2004-09-10 16:54  pbartok
12505
12506         * Control.cs:
12507           - Implemented remaining missing public instance properties
12508           - Alphabetized some out of order properties
12509
12510 2004-09-10 05:51  ravindra
12511
12512         * PictureBox.cs: Added a check for null image.
12513
12514 2004-09-10 00:59  jordi
12515
12516         * GroupBox.cs: remove cvs tag
12517
12518 2004-09-09 05:25  ravindra
12519
12520         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12521
12522 2004-09-09 05:23  ravindra
12523
12524         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12525           parent redraw.
12526
12527 2004-09-09 02:28  pbartok
12528
12529         * ThemeWin32Classic.cs:
12530           - Improve disabled string look
12531
12532 2004-09-09 01:15  jordi
12533
12534         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12535           args and handler
12536
12537 2004-09-08 23:56  ravindra
12538
12539         * ItemBoundsPortion.cs: It's enum, not a class!
12540
12541 2004-09-08 23:47  ravindra
12542
12543         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12544           Enums for Form.
12545
12546 2004-09-08 21:13  ravindra
12547
12548         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12549           ListView control.
12550
12551 2004-09-08 21:03  ravindra
12552
12553         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12554           avoid crash.
12555
12556 2004-09-08 21:01  ravindra
12557
12558         * ScrollableControl.cs: Removed unreachable code.
12559
12560 2004-09-08 06:45  jordi
12561
12562         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12563
12564 2004-09-08 01:00  jackson
12565
12566         * XplatUIX11.cs: Only run the timers when updating the message
12567           queue. This effectively gives X messages a higher priority then
12568           timer messages. Timers still need love though
12569
12570 2004-09-07 14:01  jackson
12571
12572         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12573           this for us and the handle is no longer valid.
12574
12575 2004-09-07 13:59  jackson
12576
12577         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12578           loop that manages to not crash. TODO: Add poll and cleanup timers
12579
12580 2004-09-07 11:12  jordi
12581
12582         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12583
12584 2004-09-07 03:40  jordi
12585
12586         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12587           fixes, methods, multiple links
12588
12589 2004-09-06 06:55  jordi
12590
12591         * Control.cs: Caches ClientRectangle rectangle value
12592
12593 2004-09-05 02:03  jordi
12594
12595         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12596           certain situations
12597
12598 2004-09-04 11:10  jordi
12599
12600         * Label.cs: Refresh when font changed
12601
12602 2004-09-02 16:24  pbartok
12603
12604         * Control.cs:
12605           - Added sanity check to creation of double buffer bitmap
12606
12607 2004-09-02 16:24  pbartok
12608
12609         * ButtonBase.cs:
12610           - Fixed selection of text color
12611           - Fixed handling of resize event; now properly recreates double
12612             buffering bitmap
12613           - Added missing assignment of TextAlignment
12614           - Added proper default for TextAlignment
12615
12616 2004-09-02 14:26  pbartok
12617
12618         * RadioButton.cs:
12619           - Added missing RadioButton.RadioButtonAccessibleObject class
12620
12621 2004-09-02 14:26  pbartok
12622
12623         * Control.cs:
12624           - Added missing Control.ControlAccessibleObject class
12625           - Started to implement Select()ion mechanisms, still very incomplete
12626
12627 2004-09-02 14:25  pbartok
12628
12629         * AccessibleObject.cs:
12630           - Added missing methods
12631
12632 2004-09-02 14:23  pbartok
12633
12634         * AccessibleNavigation.cs, AccessibleSelection.cs:
12635           - Initial check-in
12636
12637 2004-09-02 10:32  jordi
12638
12639         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12640           pool for pens, brushes, and hatchbruses
12641
12642 2004-09-01 15:30  jackson
12643
12644         * StatusBar.cs: Fix typo
12645
12646 2004-09-01 14:44  pbartok
12647
12648         * RadioButton.cs:
12649           - Fixed state
12650
12651 2004-09-01 14:39  pbartok
12652
12653         * Button.cs, RadioButton.cs:
12654           - Functional initial check-in
12655
12656 2004-09-01 14:01  pbartok
12657
12658         * CheckBox.cs:
12659           - Added missing default
12660           - Added missing region mark
12661
12662 2004-09-01 09:10  jordi
12663
12664         * Label.cs: fixes method signatures, new methods, events, fixes
12665           autosize
12666
12667 2004-09-01 07:19  jordi
12668
12669         * Control.cs: Init string variables with an empty object
12670
12671 2004-09-01 04:20  jordi
12672
12673         * Control.cs: fires OnFontChanged event
12674
12675 2004-08-31 20:07  pbartok
12676
12677         * ButtonBase.cs:
12678           - Enabled display of strings
12679
12680 2004-08-31 20:05  pbartok
12681
12682         * Form.cs:
12683           - Added (partial) implementation of DialogResult; rest needs to be
12684             implemented when the modal loop code is done
12685
12686 2004-08-31 19:55  pbartok
12687
12688         * CheckBox.cs:
12689           - Fixed to match the removal of the needs_redraw concept
12690
12691 2004-08-31 19:55  pbartok
12692
12693         * ButtonBase.cs:
12694           - Removed the rather odd split between 'needs redraw' and redrawing
12695           - Now handles the events that require regeneration (ambient
12696             properties and size)
12697
12698 2004-08-31 19:41  pbartok
12699
12700         * Control.cs:
12701           - Added firing of BackColorChanged event
12702           - Added TopLevelControl property
12703           - Fixed handling of WM_ERASEBKGRND message
12704
12705 2004-08-31 12:49  pbartok
12706
12707         * ButtonBase.cs:
12708           - Removed debug
12709           - Minor fixes
12710
12711 2004-08-31 12:48  pbartok
12712
12713         * CheckBox.cs:
12714           - Finished (famous last words)
12715
12716 2004-08-31 04:35  jordi
12717
12718         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12719           scrolling bugs, adds new methods
12720
12721 2004-08-30 14:42  pbartok
12722
12723         * CheckBox.cs:
12724           - Implemented CheckBox drawing code
12725
12726 2004-08-30 14:42  pbartok
12727
12728         * ButtonBase.cs:
12729           - Made Redraw() and CheckRedraw() virtual
12730           - Improved mouse up/down/move logic to properly track buttons
12731
12732 2004-08-30 09:44  pbartok
12733
12734         * CheckBox.cs:
12735           - Updated to fix broken build. Not complete yet.
12736
12737 2004-08-30 09:28  pbartok
12738
12739         * CheckState.cs:
12740           - Initial checkin
12741
12742 2004-08-30 09:17  pbartok
12743
12744         * Appearance.cs:
12745           - Initial check-in
12746
12747 2004-08-27 16:12  ravindra
12748
12749         * ToolBarButton.cs: Added TypeConverter attribute.
12750
12751 2004-08-27 16:07  ravindra
12752
12753         * ImageIndexConverter.cs: Implemented.
12754
12755 2004-08-27 14:17  pbartok
12756
12757         * Control.cs:
12758           - Removed unneeded stack vars
12759           - First attempt to fix sizing issues when layout is suspended
12760
12761 2004-08-25 15:35  jordi
12762
12763         * ScrollBar.cs: more fixes to scrollbar
12764
12765 2004-08-25 14:04  ravindra
12766
12767         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12768           Added the missing divider code and grip for ToolBar Control.
12769
12770 2004-08-25 13:20  pbartok
12771
12772         * Control.cs:
12773           - Control now properly passes the ambient background color to child
12774             controls
12775
12776 2004-08-25 13:20  jordi
12777
12778         * ScrollBar.cs: small bug fix regarding bar position
12779
12780 2004-08-25 12:33  pbartok
12781
12782         * Timer.cs:
12783           - Now only calls SetTimer or KillTimer if the enabled state has
12784           changed
12785
12786 2004-08-25 12:33  pbartok
12787
12788         * XplatUIWin32.cs:
12789           - Fixed timer handling, now seems to work
12790           - Improved error message for window creation
12791
12792 2004-08-25 12:32  pbartok
12793
12794         * Control.cs:
12795           - Fixed generation of MouseUp message
12796
12797 2004-08-25 12:29  jordi
12798
12799         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12800           and fixes for progressbar
12801
12802 2004-08-24 18:43  ravindra
12803
12804         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12805           in ToolBar control.
12806
12807 2004-08-24 17:15  pbartok
12808
12809         * Panel.cs:
12810           - Added #region
12811           - Added missing events
12812           - Alphabetized
12813
12814 2004-08-24 17:14  pbartok
12815
12816         * StatusBar.cs, PictureBox.cs:
12817           - Now uses Control's CreateParams
12818
12819 2004-08-24 16:36  pbartok
12820
12821         * XplatUIX11.cs:
12822           - Fixed background color handling
12823           - Fixed sending of enter/leave events on a grab
12824
12825 2004-08-24 16:35  pbartok
12826
12827         * X11Structs.cs:
12828           - Refined definitions for CrossingEvent
12829
12830 2004-08-24 12:37  jordi
12831
12832         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12833           formmating, methods signature, and adds missing events
12834
12835 2004-08-24 12:24  jordi
12836
12837         * Control.cs: fire OnEnabledChanged event
12838
12839 2004-08-24 11:17  pbartok
12840
12841         * XplatUIWin32.cs:
12842           - Implemented SetTimer() and KillTimer()
12843
12844 2004-08-24 11:16  pbartok
12845
12846         * XplatUIX11.cs:
12847           - Now uses Remove instead of Add to kill the timer
12848
12849 2004-08-24 10:16  jackson
12850
12851         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12852           picture boxes in the theme now. Draw picture box borders and obey
12853           sizing modes
12854
12855 2004-08-24 05:49  jackson
12856
12857         * Timer.cs: Remove top secret debugging code
12858
12859 2004-08-24 05:34  jackson
12860
12861         * PictureBox.cs: Temp hack to make picture boxes draw their full
12862           image
12863
12864 2004-08-24 05:29  jackson
12865
12866         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12867           XplatUIX11.cs: Move timers to the driver level. On X they are
12868           queued by the driver and checked on idle.
12869
12870 2004-08-24 01:07  jackson
12871
12872         * XplatUIX11.cs: Use a queue for async messages instead of passing
12873           them as ClientMessages since that was totally broken. Also simply
12874           check for events and return an idle message if none are found. This
12875           gives us an idle handler, and prevents deadlocking when no messages
12876           are in the queue.
12877
12878 2004-08-23 18:19  ravindra
12879
12880         * XplatUIWin32.cs: Removed the unwanted destructor.
12881
12882 2004-08-23 17:27  pbartok
12883
12884         * ButtonBase.cs:
12885           - Finishing touches. Works now, just needs some optimizations.
12886
12887 2004-08-23 16:53  jordi
12888
12889         * ScrollBar.cs: small fix
12890
12891 2004-08-23 16:45  pbartok
12892
12893         * Application.cs:
12894           - Removed debug output
12895           - Simplifications
12896
12897 2004-08-23 16:43  jordi
12898
12899         * ScrollBar.cs: [no log message]
12900
12901 2004-08-23 16:10  pbartok
12902
12903         * Form.cs:
12904           - Fixed handling of WM_CLOSE message
12905           - Removed debug output
12906
12907 2004-08-23 16:09  pbartok
12908
12909         * Application.cs:
12910           - Added handling of Idle event
12911           - Added handling of form closing
12912           - Fixed reporting of MessageLoop property
12913           - Removed some unneeded code, should provide a bit of a speedup
12914
12915 2004-08-23 15:22  pbartok
12916
12917         * Control.cs:
12918           - Added InitLayout() method
12919           - Added code to properly perform layout when Anchor or Dock property
12920             is changed
12921           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12922             LAMESPEC, tried to do it in a way that makes sense
12923
12924 2004-08-23 14:10  jordi
12925
12926         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12927           properties and methods
12928
12929 2004-08-23 13:55  pbartok
12930
12931         * Control.cs:
12932           - Properly fixed Jordi's last fix
12933           - Now uses Cursor's Position property instead of calling XplatUI
12934           directly
12935
12936 2004-08-23 13:44  jordi
12937
12938         * PaintEventHandler.cs: Adding missing attribute
12939
12940 2004-08-23 13:39  pbartok
12941
12942         * Cursor.cs:
12943           - Implemented Position property
12944
12945 2004-08-23 13:39  pbartok
12946
12947         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12948           - Added method to move mouse cursor
12949
12950 2004-08-23 13:39  pbartok
12951
12952         * XplatUIX11.cs:
12953           - Fixed setting of background color
12954           - Added method to move mouse cursor
12955
12956 2004-08-23 13:16  jordi
12957
12958         * Control.cs: avoids null exception
12959
12960 2004-08-22 17:46  jackson
12961
12962         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12963           PictureBox
12964
12965 2004-08-22 17:40  jackson
12966
12967         * XplatUIX11.cs: Add some missing locks
12968
12969 2004-08-22 15:10  pbartok
12970
12971         * Control.cs, Form.cs:
12972           - Removed OverlappedWindow style from Control, instead it's default
12973             now is child
12974           - Made form windows OverlappedWindow by default
12975
12976 2004-08-22 13:34  jackson
12977
12978         * ScrollBar.cs: Update the position through the Value property so
12979           the OnValueChanged event is raised.
12980
12981 2004-08-22 12:04  pbartok
12982
12983         * SWF.csproj:
12984           - Added Cursor.cs and UserControl.cs
12985
12986 2004-08-22 12:03  pbartok
12987
12988         * Cursor.cs:
12989           - Started implementation, not usable yet
12990
12991 2004-08-22 12:00  pbartok
12992
12993         * UserControl.cs:
12994           - Implemented UserControl (complete)
12995
12996 2004-08-21 19:20  ravindra
12997
12998         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12999
13000 2004-08-21 18:49  ravindra
13001
13002         * ToolBar.cs: Probably this completes the missing attributes in
13003           toolbar control.
13004
13005 2004-08-21 18:03  ravindra
13006
13007         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
13008           Fixed toolbar control signatures.
13009
13010 2004-08-21 16:32  pbartok
13011
13012         * LinkLabel.cs:
13013           - Signature Fixes
13014
13015 2004-08-21 16:30  pbartok
13016
13017         * Label.cs:
13018           - Signature fixes
13019
13020 2004-08-21 16:19  pbartok
13021
13022         * Control.cs, Label.cs:
13023           - Signature fixes
13024
13025 2004-08-21 15:57  pbartok
13026
13027         * ButtonBase.cs:
13028           - Added loads of debug output for development
13029           - Fixed typo in method name
13030
13031 2004-08-21 15:52  pbartok
13032
13033         * ToolBarButtonClickEventArgs.cs:
13034           - Added missing base class
13035
13036 2004-08-21 14:53  pbartok
13037
13038         * Control.cs:
13039           - Updated to match new GrabWindow signature
13040
13041 2004-08-21 14:51  pbartok
13042
13043         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13044           - Added method to get default display size
13045
13046 2004-08-21 14:23  pbartok
13047
13048         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13049           - Added method to query current grab state
13050           - Added argument to allow confining a grab to a window
13051
13052 2004-08-21 14:22  pbartok
13053
13054         * Keys.cs:
13055           - Added [Flags] attribute so that modifiers can be used in bitwise
13056           ops
13057
13058 2004-08-21 14:21  pbartok
13059
13060         * TrackBar.cs, ScrollBar.cs:
13061           - Replaced direct XplatUI calls with their Control counterpart
13062
13063 2004-08-21 13:32  pbartok
13064
13065         * Control.cs:
13066           - Implemented Created property
13067
13068 2004-08-21 13:28  pbartok
13069
13070         * Control.cs:
13071           - Implemented ContainsFocus
13072
13073 2004-08-21 13:26  pbartok
13074
13075         * Control.cs:
13076           - Implemented CausesValidation
13077
13078 2004-08-21 13:21  pbartok
13079
13080         * Control.cs:
13081           - Implemented CanFocus
13082           - Implemented CanSelect
13083           - Implemented Capture
13084
13085 2004-08-21 12:35  pbartok
13086
13087         * XplatUIWin32.cs:
13088           - Fixed bug with Async message handling
13089           - Implemented getting the ModifierKeys
13090
13091 2004-08-21 12:32  jackson
13092
13093         * AsyncMethodResult.cs: Make sure we have the mutex before we
13094           release it. Fixes BeginInvoke on windows
13095
13096 2004-08-21 11:31  pbartok
13097
13098         * XplatUIWin32.cs, XplatUIX11.cs:
13099           - Drivers now return proper mouse state
13100
13101 2004-08-21 10:54  jackson
13102
13103         * Control.cs: Implement EndInvoke
13104
13105 2004-08-21 10:48  jackson
13106
13107         * Timer.cs: Remove unneeded finalizer
13108
13109 2004-08-20 19:52  ravindra
13110
13111         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
13112           in mouse event handling in the ToolBar control.
13113
13114 2004-08-20 19:50  ravindra
13115
13116         * ImageList.cs: Changed draw method to use the arguments passed in
13117           to draw the image.
13118
13119 2004-08-20 18:58  pbartok
13120
13121         * XplatUIStructs.cs:
13122           - Added private message for async communication
13123
13124 2004-08-20 17:38  ravindra
13125
13126         * Control.cs: Made RightToLeft property virtual and removed a
13127           Console.WriteLine.
13128
13129 2004-08-20 14:39  jordi
13130
13131         * ThemeGtk.cs: use style_attach
13132
13133 2004-08-20 14:39  pbartok
13134
13135         * XplatUIWin32.cs:
13136           - Added jackson's Async code from X11 to Win32
13137
13138 2004-08-20 14:09  pbartok
13139
13140         * SWF.csproj:
13141           - Added all new files
13142
13143 2004-08-20 14:09  pbartok
13144
13145         * Control.cs:
13146           - Added call to set window background color
13147
13148 2004-08-20 14:03  pbartok
13149
13150         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13151           - Added method for setting the window background
13152
13153 2004-08-20 14:02  pbartok
13154
13155         * XplatUIWin32.cs:
13156           - Added method for setting the background color
13157           - Added handling for erasing the window background
13158
13159 2004-08-20 13:45  jordi
13160
13161         * TrackBar.cs: fixes timer, new properties and methods
13162
13163 2004-08-20 13:34  jackson
13164
13165         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
13166           correct thread
13167
13168 2004-08-20 13:22  jackson
13169
13170         * Timer.cs: Timer Tick events are now handed through Controls Async
13171           mechanism so the callbacks are executed in the same thread as X
13172
13173 2004-08-20 13:19  jackson
13174
13175         * XplatUIDriver.cs: Expose functionality to send async messages
13176           through the driver
13177
13178 2004-08-20 13:18  jackson
13179
13180         * Control.cs: Implement Begininvoke
13181
13182 2004-08-20 13:14  jackson
13183
13184         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13185           messages through the driver
13186
13187 2004-08-20 13:12  jackson
13188
13189         * XplatUIX11.cs: Lock before all X operations. Also added Async
13190           method functionality through XSendEvent
13191
13192 2004-08-20 13:11  jackson
13193
13194         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13195           This will screw up on 64 bit systems)
13196
13197 2004-08-20 13:10  jackson
13198
13199         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13200           Async messages through X/Win32
13201
13202 2004-08-19 19:39  pbartok
13203
13204         * XplatUIX11.cs:
13205           - Updated code to match new HandleData.DeviceContext type
13206
13207 2004-08-19 19:38  pbartok
13208
13209         * HandleData.cs:
13210           - Made DeviceContext a generic object to allow usage from various
13211           drivers
13212           - Added support for queueing Windows messages
13213
13214 2004-08-19 19:37  pbartok
13215
13216         * XplatUIWin32.cs:
13217           - Added generation of MouseEnter, MouseLeave and MouseHover events
13218           - Added cleanup on EndPaint
13219
13220 2004-08-19 19:17  pbartok
13221
13222         * Control.cs:
13223           - Added handling of WM_MOUSEHOVER
13224           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
13225           code
13226
13227 2004-08-19 18:55  jordi
13228
13229         * ThemeGtk.cs: fixes button order
13230
13231 2004-08-19 18:12  jordi
13232
13233         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
13234
13235 2004-08-19 17:09  pbartok
13236
13237         * Control.cs:
13238           - Added Right property
13239           - Added RightToLeft property
13240
13241 2004-08-19 16:27  jordi
13242
13243         * ThemeGtk.cs: experimental GTK theme support
13244
13245 2004-08-19 16:26  jordi
13246
13247         * ITheme.cs, Theme.cs: move themes from an interface to a class
13248
13249 2004-08-19 16:25  jordi
13250
13251         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
13252           theme enhancaments
13253
13254 2004-08-19 16:04  pbartok
13255
13256         * XplatUIX11.cs:
13257           - Added colormap basics
13258           - Added a way to re-initialize with a different display handle
13259           - Fixed setting of the window background color
13260           - Added various X11 imports related to colors and colormaps
13261
13262 2004-08-19 15:51  pbartok
13263
13264         * X11Structs.cs:
13265           - Removed packing hints (Paolo suggested this a while back)
13266           - fixed colormap type
13267           - Added default Atom types
13268           - Added Screen and color structs and enums
13269
13270 2004-08-19 15:39  pbartok
13271
13272         * ImageList.cs:
13273           - Added missing Draw() method
13274           - Added missing RecreateHandle event
13275
13276 2004-08-19 15:30  pbartok
13277
13278         * Form.cs:
13279           - Added handling of WM_CLOSE
13280
13281 2004-08-18 13:16  jordi
13282
13283         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13284           a table
13285
13286 2004-08-18 09:56  jordi
13287
13288         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13289
13290 2004-08-17 15:31  ravindra
13291
13292         * SWF.csproj: Updated project.
13293
13294 2004-08-17 15:25  pbartok
13295
13296         * Control.cs:
13297           - Drawing improvement; don't call UpdateBounds if we are not visible
13298             (or have been minimized)
13299
13300 2004-08-17 15:24  pbartok
13301
13302         * XplatUIWin32.cs:
13303           - Finished IsVisible
13304           - Added Win32GetWindowPlacement
13305
13306 2004-08-17 15:08  jackson
13307
13308         * Panel.cs: Initial checkin of the Panel
13309
13310 2004-08-17 14:25  pbartok
13311
13312         * Control.cs:
13313           - Fixed broken handling of default window sizes
13314
13315 2004-08-17 13:29  jackson
13316
13317         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13318           has a large startup time.
13319
13320 2004-08-17 10:25  jackson
13321
13322         * HandleData.cs: union areas properly
13323
13324 2004-08-17 10:12  jackson
13325
13326         * HandleData.cs: union areas properly
13327
13328 2004-08-16 20:00  ravindra
13329
13330         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13331
13332 2004-08-16 18:48  ravindra
13333
13334         * ToolBar.cs: Added attributes.
13335
13336 2004-08-16 17:17  ravindra
13337
13338         * SWF.csproj: Updated project.
13339
13340 2004-08-16 17:16  jackson
13341
13342         * XplatUIX11.cs: Check for more expose events before sending a
13343           WM_PAINT so they can all be grouped together. This makes dragging a
13344           window across another window redraw in a sane way.
13345
13346 2004-08-16 15:47  pbartok
13347
13348         * Control.cs:
13349           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13350             support OnMouseEnter/Leave()
13351           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13352             exposure handling
13353
13354 2004-08-16 15:46  pbartok
13355
13356         * XplatUIStructs.cs, XplatUIX11.cs:
13357           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13358           OnMouseEnter/Leave()
13359
13360 2004-08-16 15:34  jackson
13361
13362         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13363           sure messages get the message field set to WM_NULL if they are not
13364           handled.
13365
13366 2004-08-16 15:24  jackson
13367
13368         * HandleData.cs: HandleData is used for storing message information
13369           for window handles
13370
13371 2004-08-15 17:23  ravindra
13372
13373         * ColorDepth.cs: Added attribute.
13374
13375 2004-08-15 17:23  ravindra
13376
13377         * SWF.csproj: Updated project for ToolBar Control.
13378
13379 2004-08-15 17:20  ravindra
13380
13381         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13382           control and also dos2unix format.
13383
13384 2004-08-15 17:13  ravindra
13385
13386         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13387           ToolBarButtonClickEventArgs.cs,
13388           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13389           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13390
13391 2004-08-15 15:31  pbartok
13392
13393         * ButtonBase.cs:
13394           - First (mostly) working version
13395
13396 2004-08-13 16:15  pbartok
13397
13398         * Control.cs:
13399           - Fixed Anchor default
13400
13401 2004-08-13 15:43  pbartok
13402
13403         * Control.cs:
13404           - Changed GetCursorPos signature
13405
13406 2004-08-13 15:42  pbartok
13407
13408         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13409           - Changed signature for GetCursorPos
13410
13411 2004-08-13 15:25  pbartok
13412
13413         * XplatUIX11.cs:
13414           - Cleanup
13415           - Fixed resizing/exposure handling
13416
13417 2004-08-13 15:22  jordi
13418
13419         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13420           with tickposition
13421
13422 2004-08-13 14:55  jordi
13423
13424         * TrackBar.cs: change from wndproc to events
13425
13426 2004-08-13 13:00  jordi
13427
13428         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13429           XplatUIX11.cs: implements PointToClient (ScreenToClient)
13430
13431 2004-08-13 12:53  pbartok
13432
13433         * XplatUIWin32.cs:
13434           - Changed GetWindowPos to also provide client area size
13435           - Fixed broken prototypes for several win32 functions
13436
13437 2004-08-13 12:53  pbartok
13438
13439         * XplatUI.cs, XplatUIDriver.cs:
13440           - Changed GetWindowPos to also provide client area size
13441
13442 2004-08-13 12:52  pbartok
13443
13444         * XplatUIX11.cs:
13445           - Added generation of WM_POSCHANGED
13446           - Changed GetWindowPos to also provide client area size
13447
13448 2004-08-13 12:52  pbartok
13449
13450         * Control.cs:
13451           - Added Dispose() and destructor
13452           - Fixed resizing and bounds calculation
13453           - Fixed Layout
13454           - Added memory savings for invisible windows
13455
13456 2004-08-13 12:46  jordi
13457
13458         * TrackBar.cs: adds timer and grap window
13459
13460 2004-08-13 10:25  jackson
13461
13462         * Timer.cs: SWF Timer
13463
13464 2004-08-12 16:59  pbartok
13465
13466         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13467           - Implemented method to get current mouse position
13468
13469 2004-08-12 14:29  jordi
13470
13471         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13472           enhancement, fix mouse problems, highli thumb, etc
13473
13474 2004-08-12 13:31  pbartok
13475
13476         * Control.cs:
13477           - Fixed Anchoring bugs
13478
13479 2004-08-12 13:01  jackson
13480
13481         * StatusBar.cs: Don't forget things
13482
13483 2004-08-12 12:54  jackson
13484
13485         * ThemeWin32Classic.cs: Handle owner draw status bars
13486
13487 2004-08-12 12:54  jackson
13488
13489         * StatusBar.cs: Implement missing properties, events, and methods.
13490           Handle mouse clicking
13491
13492 2004-08-12 10:19  jackson
13493
13494         * StatusBarPanelClickEventArgs.cs,
13495           StatusBarPanelClickEventHandler.cs: Classes for handling status
13496           bar panel click events
13497
13498 2004-08-12 10:10  jackson
13499
13500         * Control.cs: Add missing properties
13501
13502 2004-08-12 09:46  pbartok
13503
13504         * BindingsManagerBase.cs:
13505           - Name changed to BindingManagerBase.cs
13506
13507 2004-08-12 09:25  jordi
13508
13509         * ScrollableControl.cs: calls ctrlbase instead of exeception
13510
13511 2004-08-11 16:28  pbartok
13512
13513         * InputLanguageChangingEventArgs.cs:
13514           - Never check in before compiling. Fixes the last check-in
13515
13516 2004-08-11 16:26  pbartok
13517
13518         * InputLanguageChangingEventArgs.cs:
13519           - More signature fixes
13520
13521 2004-08-11 16:20  pbartok
13522
13523         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13524           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13525           ImageListStreamer.cs, InputLanguage.cs,
13526           InputLanguageChangedEventArgs.cs,
13527           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13528           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13529           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13530           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13531           - Signature fixes
13532
13533 2004-08-11 16:16  pbartok
13534
13535         * Application.cs:
13536           - Fixed Signature
13537           - Added .Net 1.1 method
13538
13539 2004-08-11 15:25  pbartok
13540
13541         * SWF.csproj:
13542           - Fixed BindingManagerBase.cs filename
13543
13544 2004-08-11 15:22  pbartok
13545
13546         * BindingManagerBase.cs:
13547           - Was checked in with wrong filename
13548
13549 2004-08-11 14:50  pbartok
13550
13551         * SWF.csproj:
13552           - Updated
13553
13554 2004-08-11 13:41  jordi
13555
13556         * XplatUIWin32.cs: Fixes ClientRect
13557
13558 2004-08-11 13:19  pbartok
13559
13560         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13561           XplatUIX11.cs:
13562           - We had SetWindowPos and MoveWindow to set window positions and
13563             size, removed MoveWindow. We have GetWindowPos, so it made sense to
13564             keep SetWindowPos as matching counterpart
13565           - Added some X11 sanity checking
13566
13567 2004-08-11 12:59  pbartok
13568
13569         * Control.cs:
13570           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13571             (It seems that SetBounds is just a front for SetBoundsCore and
13572              SetBoundsCore updates the underlying window system and
13573              UpdateBounds is responsible for updating the variables associated
13574              with the Control and sending the events)
13575           - Major cleanup of Size handling; we now have two sizes, client_size
13576             and bounds. Bounds defines the window with decorations, client_size
13577             without them.
13578
13579 2004-08-11 12:55  pbartok
13580
13581         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13582           - Added method to calculate difference between decorated window and
13583             raw client area
13584
13585 2004-08-11 12:54  pbartok
13586
13587         * Label.cs:
13588           - Forcing redraw on resize
13589
13590 2004-08-11 11:43  pbartok
13591
13592         * ImageList.cs:
13593           - Removed disposing of the actual images when the list is disposed
13594
13595 2004-08-11 09:13  pbartok
13596
13597         * Control.cs:
13598           - Now properly reparents windows
13599
13600 2004-08-11 08:37  pbartok
13601
13602         * Control.cs:
13603           - Duh!
13604
13605 2004-08-11 07:47  pbartok
13606
13607         * Control.cs:
13608           - Rewrote the collection stuff. Might not be as fast now, not
13609             keeping the number of children around and accessible directly, but
13610             it's more straightforward
13611
13612 2004-08-11 07:44  pbartok
13613
13614         * AccessibleObject.cs:
13615           - Fixed to match ControlCollection rewrite
13616
13617 2004-08-11 07:43  pbartok
13618
13619         * ImageList.cs:
13620           - Added missing creation of the collection list
13621
13622 2004-08-10 20:08  jackson
13623
13624         * StatusBar.cs: Get the paint message from WndProc
13625
13626 2004-08-10 19:31  jackson
13627
13628         * ThemeWin32Classic.cs: Create Brushes as little as possible
13629
13630 2004-08-10 19:20  jackson
13631
13632         * UICues.cs: Add Flags attribute
13633
13634 2004-08-10 19:19  jackson
13635
13636         * StatusBarPanel.cs: Signature cleanup
13637
13638 2004-08-10 19:10  jackson
13639
13640         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13641           Initial implementation of status bar item drawing
13642
13643 2004-08-10 17:27  jordi
13644
13645         * TrackBar.cs: add missing methods, properties, and restructure to
13646           hide extra ones
13647
13648 2004-08-10 16:24  jackson
13649
13650         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13651           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13652           attribute
13653
13654 2004-08-10 13:21  jordi
13655
13656         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13657           enhancements and standarize on win colors defaults
13658
13659 2004-08-10 12:52  jackson
13660
13661         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13662           ThemeWin32Classic.cs: Implement DrawItem functionality
13663
13664 2004-08-10 12:47  jordi
13665
13666         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13667
13668 2004-08-10 12:32  jordi
13669
13670         * Control.cs: throw ontextchange event
13671
13672 2004-08-10 11:43  pbartok
13673
13674         * Control.cs:
13675           - Added more to the still unfinished Dock/Anchor layout code
13676
13677 2004-08-10 11:39  pbartok
13678
13679         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13680           - Added GetWindowPos method
13681
13682 2004-08-10 11:36  pbartok
13683
13684         * XplatUIWin32.cs:
13685           - Implemented several methods
13686
13687 2004-08-10 09:47  jackson
13688
13689         * TrackBar.cs: Allow control to handle buffering
13690
13691 2004-08-10 09:41  jackson
13692
13693         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13694
13695 2004-08-10 09:24  jackson
13696
13697         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13698
13699 2004-08-10 09:09  jackson
13700
13701         * StatusBar.cs: Let Control handle all the buffering.
13702
13703 2004-08-10 09:08  jackson
13704
13705         * Control.cs: Control will now handle the buffering code, so each
13706           control does not have to implement this.
13707
13708 2004-08-10 08:34  jackson
13709
13710         * XplatUIDriver.cs: Use default colors from the theme
13711
13712 2004-08-09 17:12  pbartok
13713
13714         * ImageList.cs:
13715           - Fixed several bugs Ravindra pointed out
13716
13717 2004-08-09 16:11  pbartok
13718
13719         * Control.cs:
13720           - Added incomplete dock layout code
13721           - Added support for mouse wheel
13722
13723 2004-08-09 16:09  pbartok
13724
13725         * XplatUIX11.cs:
13726           - Added handling for middle and right mousebutton
13727           - Added handling for mouse wheel
13728           - Added handling for key state and mouse state and position
13729           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13730           messages
13731
13732 2004-08-09 15:40  jackson
13733
13734         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13735           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13736           checkin
13737
13738 2004-08-09 15:37  jackson
13739
13740         * StatusBar.cs: Initial implementation of StatusBar
13741
13742 2004-08-09 15:36  jackson
13743
13744         * ITheme.cs: Add support for drawing status bar and getting status
13745           bar item sizes
13746
13747 2004-08-09 15:35  pbartok
13748
13749         * MouseButtons.cs:
13750           - Fixed values
13751
13752 2004-08-09 15:34  jackson
13753
13754         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13755           status bar item sizes
13756
13757 2004-08-09 15:21  jackson
13758
13759         * ThemeWin32Classic.cs: Use known colors for default control
13760           colours
13761
13762 2004-08-09 15:12  jackson
13763
13764         * ThemeWin32Classic.cs: Make the default font static, it is static
13765           in control so this doesn't change functionality and creating fonts
13766           is sloooooow.
13767
13768 2004-08-09 14:56  pbartok
13769
13770         * X11Structs.cs:
13771           - Added GrabMode enum
13772
13773 2004-08-09 14:55  pbartok
13774
13775         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13776           - Removed Run method, was only required for initial development
13777
13778 2004-08-09 14:51  pbartok
13779
13780         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13781           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13782           capture
13783
13784 2004-08-09 13:48  pbartok
13785
13786         * XplatUIX11.cs:
13787           - Fixed default sizing for child windows
13788
13789 2004-08-09 12:56  pbartok
13790
13791         * XplatUIX11.cs:
13792           - Added generation of WM_DESTROY message
13793           - Added handling of window manager induced shutdown
13794
13795 2004-08-09 11:31  jackson
13796
13797         * ThemeWin32Classic.cs: New names for control properties
13798
13799 2004-08-09 11:25  jackson
13800
13801         * Control.cs: Use new color names
13802
13803 2004-08-09 11:02  jackson
13804
13805         * XplatUI.cs: Get default window properties from the theme
13806
13807 2004-08-09 11:01  jackson
13808
13809         * ITheme.cs: The theme engine now controls default window
13810           properties
13811
13812 2004-08-09 11:00  jackson
13813
13814         * ThemeWin32Classic.cs: Add default window color properties
13815
13816 2004-08-09 10:17  jackson
13817
13818         * ThemeWin32Classic.cs: Use correct default back color
13819
13820 2004-08-09 10:05  jackson
13821
13822         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13823           the theme now.
13824
13825 2004-08-09 09:56  jackson
13826
13827         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13828
13829 2004-08-09 09:54  jackson
13830
13831         * Control.cs: Get default properties from the theme.
13832
13833 2004-08-09 09:53  jackson
13834
13835         * ITheme.cs: Themes now handle default control properties
13836
13837 2004-08-09 09:53  jackson
13838
13839         * ThemeWin32Classic.cs: Themes now handle default control
13840           properties so coloring will be consistent
13841
13842 2004-08-08 16:54  jordi
13843
13844         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13845
13846 2004-08-08 15:08  jordi
13847
13848         * XplatUIX11.cs: fixes keyboard crash
13849
13850 2004-08-08 13:47  jordi
13851
13852         * Label.cs: add cvs header info
13853
13854 2004-08-08 12:09  jackson
13855
13856         * ThemeWin32Classic.cs: Add pen_buttonface
13857
13858 2004-08-08 11:52  jordi
13859
13860         * Label.cs, LinkLabel.cs: [no log message]
13861
13862 2004-08-08 11:34  jordi
13863
13864         * ThemeWin32Classic.cs: Use Windows Standard Colours
13865
13866 2004-08-07 17:32  jordi
13867
13868         * TrackBar.cs: throw exceptions of invalid enums values
13869
13870 2004-08-07 17:31  jordi
13871
13872         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13873           draw method name
13874
13875 2004-08-07 16:56  jackson
13876
13877         * HorizontalAlignment.cs: Initial checkin
13878
13879 2004-08-07 13:16  jordi
13880
13881         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13882           methods
13883
13884 2004-08-07 13:05  jordi
13885
13886         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13887           GetSysColor defines
13888
13889 2004-08-06 18:01  pbartok
13890
13891         * ThemeWin32Classic.cs:
13892           - Fixed some rounding issues with float/int
13893
13894 2004-08-06 18:00  jackson
13895
13896         * DockStyle.cs, AnchorStyles.cs:
13897
13898                   Add flags and serializable attributes.
13899
13900 2004-08-06 17:46  pbartok
13901
13902         * XplatUIX11.cs:
13903           - Implemented GetParent
13904
13905 2004-08-06 17:18  pbartok
13906
13907         * TrackBar.cs:
13908           - Fixed some rounding issues with float/int
13909
13910 2004-08-06 17:17  pbartok
13911
13912         * X11Structs.cs, XplatUIX11.cs:
13913           - Fixed Refresh and Invalidate
13914
13915 2004-08-06 15:30  pbartok
13916
13917         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13918           - Fixed recursive loop when resizing
13919           - Improved/fixed redrawing on expose messages
13920
13921 2004-08-06 09:53  jordi
13922
13923         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13924           keyboard navigation
13925
13926 2004-08-06 08:02  pbartok
13927
13928         * X11Structs.cs, XplatUIX11.cs:
13929           - Fixed reparenting
13930           - Fixed window border creation
13931
13932 2004-08-05 15:38  pbartok
13933
13934         * XplatUIX11.cs:
13935           - Attempted fix for reparenting problems
13936
13937 2004-08-04 15:14  pbartok
13938
13939         * Control.cs:
13940           - Fixed Invalidation bug (calculated wrong client area)
13941           - Added ClientSize setter
13942
13943 2004-08-04 15:13  pbartok
13944
13945         * Form.cs:
13946           - Added AutoScale properties
13947
13948 2004-08-04 15:13  pbartok
13949
13950         * SWF.csproj:
13951           - Added latest files
13952
13953 2004-08-04 14:11  pbartok
13954
13955         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13956           XplatUIX11.cs:
13957           - Added Invalidate handling
13958
13959 2004-08-03 17:09  jordi
13960
13961         * XplatUIDriver.cs: fixes spelling mistake
13962
13963 2004-07-27 09:53  jordi
13964
13965         * TrackBar.cs: fixes trackbar events, def classname, methods
13966           signature
13967
13968 2004-07-27 09:29  jordi
13969
13970         * ScrollBar.cs: fixes scrollbar events
13971
13972 2004-07-27 04:38  jordi
13973
13974         * Control.cs: changes to be able to run winforms samples
13975
13976 2004-07-26 11:42  jordi
13977
13978         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13979           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13980
13981 2004-07-26 05:41  jordi
13982
13983         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13984           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13985           implementation
13986
13987 2004-07-22 09:22  jordi
13988
13989         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13990           check link overlapping, implement events, and fixes
13991
13992 2004-07-21 10:28  jordi
13993
13994         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13995
13996 2004-07-21 10:19  jordi
13997
13998         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13999           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
14000           LinkLabelLinkClickedEventArgs.cs,
14001           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
14002           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
14003           implementation
14004
14005 2004-07-19 13:09  jordi
14006
14007         * Control.cs, Label.cs: label control re-written: added missing
14008           functionlity, events, and properties
14009
14010 2004-07-19 10:49  jordi
14011
14012         * Control.cs: fixes SetBounds logic
14013
14014 2004-07-19 01:29  jordi
14015
14016         * Control.cs: Call RefreshWindow only if the window has created
14017
14018 2004-07-15 14:05  pbartok
14019
14020         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
14021           - Implemented ImageList and ImageList.ImageCollection classes
14022           - Added ColorDepth enumeration
14023           - Updated SWF VS.Net project
14024
14025 2004-07-15 11:06  jordi
14026
14027         * XplatUIStructs.cs: added MsgButons enum
14028
14029 2004-07-15 11:03  jordi
14030
14031         * Control.cs: added basic mouse handeling events
14032
14033 2004-07-15 03:38  jordi
14034
14035         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
14036           Vertical TrackBar control implementation
14037
14038 2004-07-13 09:33  jordi
14039
14040         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
14041
14042 2004-07-13 09:31  jordi
14043
14044         * Control.cs, Form.cs: commit: new properties and fixes form size
14045           problems
14046
14047 2004-07-09 14:13  miguel
14048
14049         * ProgressBar.cs: Spelling
14050
14051 2004-07-09 11:25  pbartok
14052
14053         * ProgressBar.cs:
14054           - Removed usage of Rectangle for drawing. Miguel pointed out it's
14055           faster
14056
14057 2004-07-09 11:17  miguel
14058
14059         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
14060
14061                 * ProgressBar.cs: Fixed spelling for `block'
14062
14063                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
14064                 style guidelines.
14065
14066                 Avoid using the += on rect.X, that exposed a bug in the compiler.
14067
14068 2004-07-08 23:21  pbartok
14069
14070         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
14071           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
14072           BaseCollection.cs, Binding.cs, BindingContext.cs,
14073           BindingMemberInfo.cs, BindingsCollection.cs,
14074           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
14075           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
14076           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
14077           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
14078           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
14079           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
14080           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
14081           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
14082           FrameStyle.cs, GiveFeedbackEventArgs.cs,
14083           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
14084           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
14085           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
14086           InputLanguageChangedEventArgs.cs,
14087           InputLanguageChangedEventHandler.cs,
14088           InputLanguageChangingEventArgs.cs,
14089           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
14090           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
14091           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
14092           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
14093           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
14094           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
14095           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
14096           QueryAccessibilityHelpEventArgs.cs,
14097           QueryAccessibilityHelpEventHandler.cs,
14098           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
14099           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
14100           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
14101           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
14102           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
14103           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
14104           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
14105           XplatUIX11.cs, lang.cs:
14106           - Initial check-in
14107