2006-06-02 Mike Kestner <mkestner@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-06-02  Mike Kestner  <mkestner@novell.com>
2
3         * ComboBox.cs: restructure grab and general mouse event handling.
4         Make the composite control raise mouse events like it was a single
5         control for leaves/enters/motion/up/down events.  fix dropdown list
6         coordinate mangling and refactor it into the scrollbar subclass to
7         reduce code duplication.  Fixes #78282 #78361 and #78457.
8
9 2006-06-02  Mike Kestner  <mkestner@novell.com>
10
11         * ScrollBar.cs: remove Capture setting/clearing, as it happens
12         automatically in the Control.WndProc.
13
14 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15
16         * FileDialog.cs: fix crash when running SharpChess, which sets the
17         FilterIndex to 2 with only one Filter.
18
19 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20
21         * ToolBar.cs: add SizeSpecified property.
22         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
23         try to figure out our real size, otherwise fallback to what the
24         container says.
25
26 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
27
28         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
29         * Control.cs (WndProc): MS always calls the DefWndProc to pass
30           up the event
31
32 2006-06-01  Mike Kestner  <mkestner@novell.com>
33
34         * ListView.cs: revamp the focus management in ListView.  It still
35         causes churn of LostFocus/GotFocus emissions on clicks, but it's
36         better than not handling focus at all.  Will revisit when pdb feels
37         the general focus handling is solid.  Fixes #78526.
38
39 2006-06-01  Jackson Harper  <jackson@ximian.com>
40
41         * TreeView.cs: Set the default border style in the constructor.
42         - Move painting to use OnPaintInternal instead of capturing
43         WM_PAINT, this is the correct way of doing things
44         - UpdateBelow shouldn't invalidate the scrollbar area
45         - Cap the top on update below in case the node was above the top
46         of the viewport rectangle.
47         - ExpandBelow and Collapse below need to obey Begin/End Update.
48         * TreeNode.cs: Make is_expanded internal so the treenode
49         collection can change it without firing the whole event chain.
50         * TreeNodeCollection.cs: When clearing all the child nodes make
51         sure to recalc the visible order.
52         - Improve algo for remove the top node
53
54 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
55
56         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
57           SendMessage directly calling window procedures, which in turn might
58           call SetFocus()
59
60 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
61
62         * Control.cs: Don't handle WM_SETFOCUS if the same window already
63           has focus (works around X11 sending a FocusIn after our SetFocus)
64         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
65
66 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
67
68         * Mime.cs: Fix for the NET_2_0 build.
69           NameValueCollection needs StringComparer now.
70
71 2006-05-31  Chris Toshok  <toshok@ximian.com>
72
73         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
74         return (via an out parameter) the starting X of the column.
75         (UpdateVisibleColumn): track change to FromPixelToColumn.
76         (HitTest): add a ColumnResize case here.
77         (DrawResizeLine): new function, probably poorly named.
78
79         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
80         only need to keep one reference.
81         (set_ListManager): same.
82         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
83         Also, add support for HitTestType.ColumnResize.
84         (OnMouseMove): add column resize behavior here, and change the
85         cursor to the correct one as we move around the datagrid.
86         (OnMouseUp): terminate the column resize if we're resizing.
87         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
88         for the current cell.
89         (ConnectListManagerEvents): use cached_currencymgr.
90         (DisconnectListManagerEvents): fill this in, using
91         cached_currencymgr.
92         (SetCurrentCell): remove cached_currencymgr_events handling.
93         (SetDataMember): only call DisconnectListManagerEvents if
94         cached_currencymgr is != null.
95         (SetDataSource): same.
96         (OnListManagerCurrentChanged): cached_currencymgr_events ->
97         cached_currencymgr.
98
99 2006-05-31  Jackson Harper  <jackson@ximian.com>
100
101         * BindingManagerBase.cs: Remove somedebug code that creeped into
102         SVN.
103         * TreeNode.cs: We get the indent level dynamically right now, so
104         don't track it as a member.
105         * TreeNodeCollection.cs: Make sure all nodes added to the list
106         have parents, treeviews/topnodes setup properly.
107         - Don't attempt to track indent level.
108
109 2006-05-30  Jackson Harper  <jackson@ximian.com>
110
111         * BindingContext.cs: Create the currency manager tables here.
112         This allows us to more easily create null tables (when bad data
113         members are used), and more easily create related currency
114         managers.
115         * CurrencyManager.cs: All the table creation stuff is done by the
116         binding context now.
117         - Current should throw an exception if listposition is -1.
118         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
119         been bound yet.
120
121 2006-05-30  Mike Kestner  <mkestner@novell.com>
122
123         * ListView.cs: allow reexpansion of zero-width column headers.
124         Fixes #78528.
125
126 2006-05-28  Chris Toshok  <toshok@ximian.com>
127
128         * CurrencyManager.cs (get_Current): after the late binding
129         listposition = -1 fix, we need to guard against it here and return
130         null, otherwise we raise an exception (which is swallowed
131         elsewhere, and breaks datagrid databinding.)
132
133 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
134
135         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
136           than WM_SYSKEY, don't throw if get something unexpected (#78507)
137
138 2006-05-26  Jackson Harper  <jackson@ximian.com>
139
140         * ControlPaint.cs:
141         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
142         values, it's faster and it's all we care about (we don't care if
143         the names aren't equal).
144         * KeyboardLayouts.cs: Eliminate some dead code.
145         - Lazy init things
146         * X11Keyboard.cs: Lazy init keyboard detection.
147         - Cleanup access modifiers a little.
148
149 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
150
151         * XplatUIX11.cs: Once again, attempting to get layout just right.
152
153 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
154
155         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
156           the sizes of each link section, that will result in sizes that
157           match DrawString's layout (Fixes #78391)
158
159 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
160
161         * FileDialog.cs: If AddExtension property is true autocomplete the
162           extensions in SaveFileDialog correctly. Fixes bug #78453.
163           Set MyNetwork and MyComputer to "C:\" for windows. This should
164           fix part 8 of bug #78446 for now.
165
166 2006-05-26  Chris Toshok  <toshok@ximian.com>
167
168         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
169         invalidate the current row header if we need to, but presumably
170         we'll invalidate the row corrsponding to the bounds or
171         editingControl.
172         (GridHScrolled): switch back to this method, as it's part of the
173         public api.  *sigh*.
174         (GridVScrolled): same.
175         (OnMouseWheel): hack up something that more or less works.  Call
176         GridHScrolled/GridVScrolled directly, instead of duplicating much
177         of their code here.
178         (EnsureCellVisibility): reinstate a bunch of this code, since we
179         can't just set the scrollbar Value and expect to do all the work
180         in the ValueChanged handler.  Also, Call Update() after scrolling
181         in one direction so the other XplatX11.ScrollWindow call has the
182         proper stuff in the proper places.
183         (EditCell): set is_editing to true before calling .Edit.
184
185         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
186         don't bother comparing first.
187         (OnKeyPress): call grid.ColumnStartedEditing before calling
188         base.OnKeyPress.  this will set is_changing and invalidate the row
189         header if necessary.
190         (ProcessKeyMessage): for WM_CHAR messages, call
191         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
192         and WM_KEYDOWN.
193         
194         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
195         it's done in the DataGrid.
196         (NextState): call grid.ColumnStartedEditing, which takes care of
197         invalidating the row header (and setting is_changing).
198
199         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
200         here.  it's done in the DataGrid.
201
202 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
203
204         * Control.cs: allow changing the cursor when the mouse position is
205         out of bounds but Capture is set.
206         * LinkLabel.cs: handle the case when the mouse button is pressed on the
207         linklabel but released somewhere else.
208
209 2006-05-25  Jackson Harper  <jackson@ximian.com>
210
211         * TreeView.cs: When we get focus if there is no selected node make
212         it the top node
213         - Remove some uneeded setup code from Draw.
214         * TreeNodeCollection.cs: If the tree doesn't have a top node when
215         a new node is inserted make the new node the top.
216         * XplatUIX11.cs:
217         * Timer.cs: Use Utc time so that no local time zone stuff needs to
218         be used (should be faster).
219         
220 2006-05-25  Chris Toshok  <toshok@ximian.com>
221
222         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
223         problem with the last commit.
224
225 2006-05-25  Chris Toshok  <toshok@ximian.com>
226
227         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
228         need the invalidate call here, while scrolling right-to-left via
229         the left arrow key (i.e. moving the editing cell while scrolling).
230
231         * DataGrid.cs (.ctor): remove the initialization of
232         ctrl_pressed/shift_pressed.  We no longer track them using key
233         up/down handlers, but by using Control.ModifierKeys.  Also, switch
234         to using ValueChanged handlers on the scrollbars instead of
235         Scrolled event handlers.  This simplifies a bunch of the scrolling
236         code.
237         (GridHValueChanged): rename from GridHScrolled, and change it to
238         work with the new event args.
239         (GridVValueChanged): same.
240         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
241         (OnMouseWheel): actually scroll the datagrid.  Don't change the
242         selected cell.
243         (ProcessGridKey): correct all the keyboard navigation stuff I
244         could find.  Ctrl up/down/left/right/home/end work now.
245         (EnsureCellVisibility): correct method name spelling.  Also,
246         simplify this a touch by not explicitly calling the
247         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
248         scrollbar value.
249         (OnKeyUpDG): no need for this method now.
250         
251 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
252
253         * LinkLabel.cs: display the OverrideCursor when hovering the label.
254         Fixes bug #78392.
255
256 2006-05-25  Chris Toshok  <toshok@ximian.com>
257
258         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
259         r61019.
260
261 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
262
263         * Application.cs: Moved setting of is_modal and closing to before
264           we create the control, to allow the event handlers called as a
265           result of creation affect closing. Also removed Gonzalo's previous
266           change to setting DialogResult, the behaviour has been moved to 
267           Form.ShowDialog()
268         * Form.cs: 
269           - ShowDialog(): Removed explicit creation of the form, let RunLoop
270             handle it instead
271           - ShowDialog(): If no dialog result is set, we need to return Cancel
272           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
273             the close is cancelled
274
275 2006-05-25  Jackson Harper  <jackson@ximian.com>
276
277         * StatusBar.cs: We only need to update the sizes of the other
278         panels when we have auto size contents.  Also we are only updating
279         the contents of the panel, not the borders, so compensate for the
280         border width (TODO: get this width from the theme somehow).
281         * TreeView.cs: Scrollable is true by default
282         - Use invalidate instead of refresh where needed
283         - Factor the scrollable value into scrollbar updating
284         - Update the scrollbars if the Scrollable property is altered
285         - Update the selected node if its ImageIndex is changed
286         - Handle null nodes in UpdateNode (mainly so we don't have to
287         check if selected is null when updating it
288         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
289         are factored into the visible count
290         - Use VisibleCount for clarity in the code
291         - When the font is changed we need to recurse through all the
292         nodes and invalidate their sizes
293         
294 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
295
296         * Application.cs: set the DialogResult to fixed when the main form is
297         hidden or destroyed while being modal.
298
299 2006-05-25  Miguel de Icaza  <miguel@novell.com>
300
301         * Theme.cs: Use Tangoified messagebox icons. 
302
303         (GetSizedResourceImage): Also cope with width = 0 and do not
304         trigger a warning in that case (0 means "give me your icon from
305         the resouce, no special size needed).
306
307 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
308
309         * Application.cs: Leave runloop if the the main modal form is 
310           hidden (fixes #78484)
311
312 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
313
314         * BindingContext.cs : reject null datasource in Contains() and
315           Item[].
316         * CurrencyManager.cs : check data_member validity when data_source
317           is dataset. When it is late binding, the initial position is -1.
318
319 2006-05-24  Jackson Harper  <jackson@ximian.com>
320
321         * TreeNodeCollection.cs: Dont't recalculate the visible order on
322         inserted nodes that aren't visible.  This changes the
323         max_visible_order which confuses scrollbar settings.
324         - Use the enumerator to get the prev node instead of duplicating
325         code.
326         * TreeView.cs: Use new method for setting scrollbar values
327         - Don't set the bounds every time the scrollbar is updated
328         - When updating below the root node use an invalidate instead of a
329         refresh to prevent the child controls (scrollbars) from being
330         refreshed. (UpdateBelow still needs to be reworked anyways).
331         - Reenable SetBottom now that visible orders are set correctly,
332         added some debug code incase we ever get bad values there again.
333         - Set the scrollbar max to 2 less then the max value, this
334         compensates for the max value being one above the node count, and
335         for scrollbars adding one extra "notch".
336         - When drawing image nodes if there is an imagelist we draw the
337         first image in the list if the supplied image index is out of the
338         image list's bounds.
339         
340 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
341
342         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
343           we receive a size change from the WM (Fixes #78503)
344
345 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
346
347         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
348           rectangle (Fixes #78501)
349
350 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
351
352         * ButtonBase.cs: 
353           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
354             as a bitfield.
355           - Fixed MouseMove to no longer switch pressed state unless the left
356             mouse button is pressed. Atsushi provided the original patch (#78485)
357           
358 2006-05-24  Jackson Harper  <jackson@ximian.com>
359
360         * ScrollBar.cs: New internal methods that allow us to change a
361         couple values on the scrollbar (the most common case is maximum
362         and large change) without getting multiple invalidates.
363
364 2006-05-24  Chris Toshok  <toshok@ximian.com>
365
366         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
367         (Edit): save off the original state in oldState, and set
368         grid.is_editing to true.
369         (OnKeyDown): abort editing if escape is pressed.  also, call
370         NextState if space is pressed.
371         (OnMouseDown): call NextState.
372         (NextState): factor out shared code from OnKeyDown and OnMouseDown
373         here.  Also, only invalidate the row header once (on the initial
374         is_changing switch) to save on redraws.
375
376 2006-05-24  Chris Toshok  <toshok@ximian.com>
377
378         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
379         if the value in the cell is different than it was before.  This
380         keeps us from triggering a layout when we move around a datarid
381         with a highlighted cell.
382         (Edit): suspend layout when creating/positining the text box, and
383         resume passing false so we don't ever actually re-layout.
384         (ReleaseHostedControl): same.
385         (EnsureTextBox): reformat slightly, and set WordWrap to false.
386
387         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
388         control-key sequences should go to the datagrid - remove that
389         lock.  Also, modify the conditions under which we move between
390         cells when moving the cursor within a cell, and remove the "this"
391         and "base" from field accesses.  We weren't even consistent, given
392         they all were in the base class.
393
394 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
395
396         * Binding.cs : (.ctor)
397           An obvious NRE fix for BindingTest.CtorNullTest().
398
399 2006-05-23  Chris Toshok  <toshok@ximian.com>
400
401         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
402         them between lines.  This fixes some quirks editing cells in the
403         datagrid.
404
405 2006-05-23  Jackson Harper  <jackson@ximian.com>
406
407         * TreeView.cs: Use begin/end update when doing expand/collapse all
408         so that we don't get flicker on the scrollbar.
409
410 2006-05-23  Jackson Harper  <jackson@ximian.com>
411
412         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
413         treenode calculations to be independant of the painting code. To
414         do this nodes track a visible order which is calculated by the
415         treeview.
416         - Call new methods for expanding/collapsing nodes.  These methods
417         use scrollwindow so we don't have to update everything below the
418         node.
419         * TreeView.cs: Refactored drawing and scrolling code.  We don't
420         need to update nodes when drawing anymore or calculate scrollbar
421         stuff.
422         - Added new methods for expanding/collapsing nodes. These methods
423         use ScrollWindow so as to not have to redraw all the nodes below.
424         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
425         we add/remove nodes or sort.
426         - Handle removing the selected and the top node properly.
427
428 2006-05-23  Chris Toshok  <toshok@ximian.com>
429
430         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
431         maybe this should actually happen in the datagrid code?
432         (EndEdit): no need to invalidate anything, given that
433         ReleaseHostedControl causes the datagrid to relayout, which
434         invalidates everything anyway.
435
436         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
437         in SetCurrentCell).
438         (set_SelectionBackColor): call InvalidateSelection instead of
439         Refresh.
440         (set_SelectionForeColor): same.
441         (BeginEdit): Flesh this out a bit.
442         (CancelEditing): only do any of this if we're editing/adding.
443         (EndEdit): same.
444         (OnMouseDown): there's no need to cancel editing here, it's done
445         in SetCurrentCell.
446         (SetCurrentCell): only invalidate the current row header if it's a
447         different row than the new one.
448         (ShiftSelection): fix this to work like MS does.
449         (ResetSelection): factor out the invalidation of selected_rows to
450         InvalidateSelection.
451         (SetDataSource): cancel any editing that's going on.
452
453         * DataGridColumnStyle.cs
454         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
455         call the non-interface version.
456
457         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
458         header rectangle with the clip rectangle so we don't redraw the
459         entire header for just a small area.  Gets rid of the last flicker
460         when horizontally scrolling.
461         (DataGridPaintRow): same.
462
463 2006-05-23  Mike Kestner  <mkestner@novell.com>
464
465         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
466         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
467         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
468         Critical bug report.
469
470 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
471
472         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
473           and this fixes #78493
474
475 2006-05-23  Miguel de Icaza  <miguel@novell.com>
476
477         * Theme.cs (GetSizedResourceImage): Scale images if the proper
478         size is not found.  
479         
480         * FileDialog.cs: Do not change the background for the side bar as
481         it wont work nicely with the theme, and also reduces the artifacts
482         in rendering the icons (which I want to fix too).
483
484         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
485         resources, not resgen resources. 
486
487         (PlatformDefaultHandler): Pull images using the new API.
488
489 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
490
491         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
492           a reference to the hwnd and will not remove it unless there are
493           no pending exposures (fixes #78341)
494         * XplatUI.cs: Improved debug
495
496 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
497
498         * MenuAPI.cs : don't handle OnClick event when it was not the left
499           button. Fixed bug #78487.
500
501 2006-05-23  Mike Kestner  <mkestner@novell.com>
502
503         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
504         prefer submenus to the top menu for item lookup, to avoid popping down
505         top-row items.
506
507 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
508
509         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
510           Graphics.FillRectangle as the visual results are really bad (even
511           on win). We now draw perfect arrows (and perfect shadows when the
512           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
513           Pen.DashPattern to draw the dots of each line.
514
515 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
516
517         * FileDialog.cs: Update the filename combobox when navigating through
518           the ListView with the cursor keys. Fixes part 7 of bug #78446.
519
520 2006-05-22  Mike Kestner  <mkestner@novell.com>
521
522         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
523         Fixes #78463.
524
525 2006-05-22  Mike Kestner  <mkestner@novell.com>
526
527         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
528         requests. Fix a misspelled parameter and a copy paste exception error
529         in Select.
530
531 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
532
533         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
534           to get the same width/height (5/13) on X11 as the default font has on
535           win32. This means that our DefaultFont emSize is smaller than the 
536           the MS SWF equivalent (even thought the width/height stays the same)
537
538 2006-05-20  Jackson Harper  <jackson@ximian.com>
539
540         * MdiClient.cs:
541         * MdiWindowManager.cs:
542         * InternalWindowManager.cs: Make sure to use the border width from
543         the theme.
544
545 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
546
547         * PrintDialog.cs: Implements printer details
548
549 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
550
551         * FileDialog.cs: Added focus handling for PopupButtonPanel.
552           Fixes part 1 and 2 of bug #78446
553
554 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
555
556         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
557           instead of sticking to the first ever calculated value
558
559 2006-05-19  Mike Kestner  <mkestner@novell.com>
560
561         * ComboBox.cs: fix mouse motion selection to use MousePosition and
562         PointToClient, since Capture is set. Fixes #78344.
563
564 2006-05-19  Mike Kestner  <mkestner@novell.com>
565
566         * ListView.cs: match MS behavior in Details view where items are not
567         drawn if Columns.Count == 0. 
568         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
569         Use a separate pen to draw the check, since changing the width affects
570         the box as well.  Fixes #78454.
571
572 2006-05-18  Miguel de Icaza  <miguel@novell.com>
573
574         * ListView.cs: ArgumentOutOfRangeException, single versions of the
575         exception should throw the name of the invalid argument.
576
577         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
578         there are no files listed. 
579
580 2006-05-18  Jackson Harper  <jackson@ximian.com>
581
582         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
583         up.
584
585 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
586
587         * Control.cs: Brought back our old UpdateZOrder method as a private
588           function and switched our calls from UpdateZOrder to the new one.
589           This fixes the Paint.Net canvas disappearing bug.
590
591 2006-05-18  Jackson Harper  <jackson@ximian.com>
592
593         * Theme.cs:
594         * ThemeWin32Classic.cs:
595         * InternalWindowManager.cs: Move the drawing into the theme,
596         expose everything the theme should need from the window manager.
597
598 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
599
600         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
601           from the call to NativeWindow to avoid walking up the parent chain
602           further than needed (speeds up setting cursors and avoids setting
603           the wrong cursor if a parent has another cursor defined)
604         * Cursor.cs: When loading an icon as cursor, MS uses the center of
605           the icon as hotspot, not what's contained as hotspot in the icon
606           file. This fixes the perceived drawing offset seen with Paint.Net
607         
608 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
609
610         * XplatUIX11.cs: 
611           - Store the calculated rectangle in Hwnd object and use it when 
612             setting the client size
613           - Force Toolwindows to always be type Dock, to ensure they're on top
614
615 2006-05-18  Mike Kestner  <mkestner@novell.com>
616
617         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
618         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
619         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
620         Substantial refactoring to remove confusing nested classes. Coding
621         standard and Get+Set->property refactorings.  Shift to index based
622         highlighting in ComboListBox instead of constantly using IndexOf and
623         Items[]. Add invalidations on resize for DropDownList to fix ugliness
624         in FileDialog growth.  Draw borders manually since Simple mode needs
625         to look like two independent controls.  Make listbox border
626         conditional to DropDownStyle.  Improved OwnerDraw support.
627
628 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
629
630         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
631         Don't set the disposed graphics to null, so we can throw the "right"
632         exception if the graphics is reused later (added a flag to avoid 
633         double disposing). Some behaviours are different under 2.0 and are
634         filled under bug #78448.
635
636 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
637
638         * Control.cs: When double-buffering is enabled, we need to reset
639           our graphics context between paint calls. Otherwise, any 
640           transformations and other alterations on the context will 
641           become cumulative (#77734)
642
643 2006-05-18  Mike Kestner  <mkestner@novell.com>
644
645         * ListView.cs: do focused item selection like MS on clicks. 
646         Rework focus handling for ItemControl so LostFocus invalidates as
647         well.
648         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
649         the ListView ItemControl has focus.
650
651 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
652
653         * XplatUIX11.cs: If client_window ends up being width or height zero
654           due to border settings, move it off window inside whole_window (#78433)
655
656 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
657
658         * Mime.cs: Shrink the mime file cache correctly.
659
660 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
661
662         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
663
664 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
665
666         * XplatUIX11.cs (AddExpose): More sanity checks
667
668 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
669
670         * XplatUIX11.cs:
671           - AddExpose: Don't add expose ranges outside the size of our
672             window
673           - Cast opacity values to Int32 to avoid crashes with certain
674             values
675           - Added disabled code paths that protect against illegal cross-
676             thread painting (Developers.exe)
677
678 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
679
680         * ProgressBar.cs: Invalidate the control when it's resized
681           since block size is based on control size. (#78388)
682
683 2006-05-16  Miguel de Icaza  <miguel@novell.com>
684
685         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
686         of setting the incoming argument to the "reset" value, we set the
687         this.datamember to string.empty (before we were invalidating the
688         incoming data).   
689
690         Fixes 78420
691
692 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
693
694         * Form.cs: Only apply transparency settings after the form
695           is created. (Fixes #77800)
696
697 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
698
699         * ApplicationContext.cs: Grab the HandleDestroyed event so
700           we know when to fire OnMainFormClosed 
701
702 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
703
704         * Application.cs: Introduced sub-class to allow tracking of
705           threads and centralized triggering of the event mess for
706           ThreadExit, AppExit, etc..  (#76156)
707
708 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
709
710         * MimeIcon.cs:
711           - Do not return a null icon index value for a mime subclass.
712             Instead try the main mime type class too.
713           - Seems that some newer distributions don't have a link to some
714             gnome default icons anymore. So check the default gnome dir too.
715           
716
717 2006-05-16  Jackson Harper  <jackson@ximian.com>
718
719         * MdiClient.cs: Don't paint the parent background image if we have
720         our own background image.
721
722 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
723
724         * Control.cs:
725           - PerformLayout: Do not shrink space filled by DockStyle.Fill
726             controls, all filled controls are supposed to overlap (#78080)
727           - UpdateZOrder is supposed to update the control's z-order in the
728             parent's z-order chain. Fixed to behave like that
729           - BringToFront: Removed obsolete code
730           - SendToBack: Simplyfied
731           - SetChildIndex: Trigger layout calculations when Z-order changes
732             since layout is done by z-order
733
734 2006-05-16  Chris Toshok  <toshok@ximian.com>
735
736         [ fixes bug #78410 ]
737         * DataGrid.cs (set_AlternatingBackColor): use
738         grid_drawing.InvalidateCells instead of Refresh().
739         (set_BackColor): call grid_drawing.InvalidateCells.
740         (set_BackgroundColor): use Invalidate instead of Refresh.
741
742         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
743         invalidate the cell area.
744
745 2006-05-15  Chris Toshok  <toshok@ximian.com>
746
747         [ fixes bug #78011 ]
748         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
749         on to DataGridPaintRow.
750         (DataGridPaintRow): take a clip argument, and only draw the cells
751         which intersect it.  same with the not_usedarea.
752
753         * Theme.cs (DataGridPaintRow) add @clip parameter.
754
755         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
756         XplatUI.ScrollWindow.
757         (ScrollToRow): same.
758
759         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
760         with last column which was causing a gray swath to appear with the
761         XplatUI.ScrollWindow code.
762
763 2006-05-15  Chris Toshok  <toshok@ximian.com>
764
765         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
766         use XplatUI.ScrollWindow.
767         (VerticalScrollEvent): use XplatUI.ScrollWindow.
768
769 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
770
771         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
772
773 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
774
775         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
776           file since there are no equivalent X11 cursors
777
778 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
779
780         * MonthCalendar.cs : DateTimePicker should reflect selected date
781           on mouse*up*, not mouse*down*. Fixed originally reported part of
782           bug #76474.
783
784 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
785
786         * TabControl.cs : When argument index is equal or more than tab
787           count, just ignore. Fixed bug #78395.
788
789 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
790
791         * Control.cs: Dispose all child controls when control is diposed (#78394)
792
793 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
794
795         * ColorDialog.cs: Finally it is possible to select the color with
796           the text boxes
797
798 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
799
800         * PrintDialog.cs: Fix typo
801
802 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
803
804         * PrintDialog.cs: PrintDialog is not resizable
805         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
806           color. Made some ToolBar drawing methods protected virtual.
807
808 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
809
810         * PrintDialog.cs: Implementation of the PrintDialog
811
812 2006-05-12  Chris Toshok  <toshok@ximian.com>
813
814         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
815         thumb, instead use MoveThumb.  This has the side effect of making
816         most of the other thumb moving machinery use MoveThumb as well.
817         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
818         need to actually invalidate the rectangle where the new thumb will
819         go.
820         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
821         We force an Update() after, so it's not as fast as it could be,
822         but at least there's zero flicker and no droppings.
823         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
824         (UpdateThumbPos): add another argument (dirty), which says whether
825         or not to calculate/add dirty regions which we later invalidate.
826         For cases where we know we're going to use MoveThumb, we pass
827         false for this.  Otherwise, pass true.
828
829 2006-05-12  Jackson Harper  <jackson@ximian.com>
830
831         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
832         the status bar.
833         
834 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
835
836         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
837           and GetClipRegion methods and UserClipWontExposeParent property.
838         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
839           overriding UserClipWontExposeParent property, setting to false, since
840           Win32 handles the required expose messages to draw our clipped parent
841           areas internally
842         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
843           PaintEventStart to set the user clip region if set.
844         * Control.cs: 
845           - Now internally tracking the Region for the control since we need to
846             store it if the handle is not yet created and only set it when it
847             becomes created. Before setting the region forced handle creation
848           - Added code to draw the parents underneath a user-clipped region
849         * Hwnd.cs: Added UserClip property
850
851 2006-05-12  Chris Toshok  <toshok@ximian.com>
852
853         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
854         (set_Maximum): same.
855         (set_Minimum): same.
856         (set_SmallChange): same.
857         (OnMouseUpSB): remove the call to refresh when releasing the
858         thumb.  We shouldn't need it.
859         
860 2006-05-12  Miguel de Icaza  <miguel@novell.com>
861
862         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
863         AutoSize set to None, we do not need to relayout everything, we
864         just need to invalidate the current region.
865
866         (Draw): Do not draw the entire ClientArea, just redraw the
867         clip area being passed.
868
869         * MdiClient.cs: Make MdiClient constructor with the Form argument
870         internal. 
871
872 2006-05-12  Jackson Harper  <jackson@ximian.com>
873
874         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
875         parents background image,  but strangely not their own.
876         - (DrawStatusBarPanel): Take into account horizontal alignment
877         when drawing the strings and icons.
878
879 2006-05-12  Mike Kestner  <mkestner@novell.com>
880
881         * ListBox.cs: avoid invalidations for focus when the collection is
882         empty. 
883
884 2006-05-12  Chris Toshok  <toshok@ximian.com>
885
886         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
887         invalidate the entire thumb area.  Call InvalidateDirty which
888         limits the redraw to the thumb itself and surrounding pixels.
889
890         * XplatUIX11.cs (ScrollWindow): optimize copying.
891         
892 2006-05-12  Chris Toshok  <toshok@ximian.com>
893
894         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
895         Figure out the positioning/layout in a single pass instead of
896         multiple recursive invocations.  Speeds up the initial display of
897         the data grid.  Also, make many things private that were
898         originally public but unused outside this class.
899
900 2006-05-11  Jackson Harper  <jackson@ximian.com>
901
902         * MdiClient.cs: Improved layout code.
903
904 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
905
906         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
907           not SelectedObject.
908
909 2006-05-11  Chris Toshok  <toshok@ximian.com>
910
911         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
912         union of that will always be {0,0,width,height}.
913
914 2006-05-11  Jackson Harper  <jackson@ximian.com>
915
916         * Form.cs: Match MS's DefaultSize for forms (they must have
917         changed the size in sp2).
918
919 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
920
921         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
922
923 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
924
925         * TextControl.cs : Fixed bug #78109. This incorrect position
926           comparison caused crash on automatic line split.
927         * TextBoxBase.cs : reduce duplicate code.
928
929 2006-05-10  Jackson Harper  <jackson@ximian.com>
930
931         * MdiClient.cs: Active form is only sent to the back when using
932         the Next form functionality, when a form is clicked the current
933         active shouldn't be sent to the back.
934         - Layout the mdi windows when the container is first made visible.
935         * Form.cs: Give the MdiClient a ref to the containing form when we
936         create it.
937         
938 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
939
940         * LinkLabel.cs : link_font could be uninitialized, so populate one
941           before actual use. Fixed bug #78340.
942
943 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
944
945         * XplatUIX11.cs : clipboard format native value is IntPtr.
946           Fixed bug #78283.
947
948 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
949
950         * Control.cs: 
951           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
952             which is passed up the parent chain by DefWndProc
953           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
954             to DefWndProc (#77956)
955         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
956
957 2006-05-10  Jackson Harper  <jackson@ximian.com>
958
959         * MdiClient.cs: We need to remove the controls from the mdi
960         collection, when we close the window.
961         * MdiWindowManager.cs: Special handling of closing mdi windows.
962         * InternalWindowManager.cs: Make the close method virtual so the
963         mdi window manager can handle it specially.
964
965 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
966
967         * DataGrid.cs:
968           - Recalculate grid when the data source has changed
969           - Matches styles provided by user from all data sources types
970         * DataGridTableStyle.cs: For columns that provided by the user set the
971         with the preferred value is there was unassigned.
972         * CurrencyManager.cs: throw OnItemChanged event
973
974 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
975
976         * PictureBox.cs: Don't animate until handle is created. Start animation
977           when handle is created.
978
979 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
980
981         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
982           current codebase.
983         * XEventQueue.cs: We don't need to provide the extra info
984
985 2006-05-10  Jackson Harper  <jackson@ximian.com>
986
987         * MdiClient.cs: If the mdi clients parent form has a background
988         image set, we draw that background image for the mdi area's
989         background.
990
991 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
992
993         * TextBoxBase.cs: Set IBeam cursor (#78347)
994
995 2006-05-10  Mike Kestner  <mkestner@novell.com>
996
997         * ToolBar.cs: fix some text padding issues with ButtonSize
998         calculation. Update the default size to match MS documentation.
999         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
1000         button size. Fixes #78296.
1001
1002 2006-05-10  Mike Kestner  <mkestner@novell.com>
1003
1004         * ListBox.cs: use is_visible for scrollbar positioning in case the
1005         control isn't on screen yet.  Fix off by one with Right vs Width
1006         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
1007         
1008 2006-05-10  Jackson Harper  <jackson@ximian.com>
1009
1010         * X11Dnd.cs: Drop to a control with another control on top of it.
1011         * ToolBar.cs: Work on a copy of the buttons list, so that it can
1012         be modified in click handlers. TODO: Look for similar problems in
1013         other controls.
1014
1015 2006-05-09  Jackson Harper  <jackson@ximian.com>
1016
1017         * Form.cs: Window managers need the old window state when setting
1018         window state now.
1019         * InternalWindowManager.cs: Allow the base mdi window manager to
1020         handle more of the MDI only stuff (like maximize buttons).
1021         * MdiWindowManager.cs: Fix some snafus in changing the window
1022         state.  Add all the menu functionality, for both popup and
1023         maximized menus.
1024         * MdiClient.cs: When a new form is selected the currently
1025         activated form is sent to the back, this matches MS.
1026         - Implement a new method to activate the next mdi child window.
1027
1028 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
1029
1030         * Control.cs: 
1031           - Added new InternalCapture method to allow controls to prevent
1032             the capture behaviour on the click handlers
1033           - Switched to use InternalCapture
1034         * ComboBox.cs:
1035           - Using InternalCapture to prevent mouse captures from being released
1036             on mouse button release (Fixes #78100)
1037         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
1038           returns Form borders if a caption is present. (Fixes #78310)
1039
1040 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
1041
1042         * TreeNode.cs: Changed serialization .ctor to not require every field
1043           to be present. (#78265)
1044         * OwnerDrawPropertyBag.cs: Added serialization .ctor
1045
1046 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
1047
1048         * MimeIcon.cs: for is faster than foreach for strings.
1049
1050 2006-05-05  Mike Kestner  <mkestner@novell.com>
1051
1052         * CheckedListBox.cs: update check handling code to not use selected.
1053         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
1054         behavior for visual feedback, motion response, shift/ctrl handling,
1055         and properly deal with all 4 selection modes. Updates to bounds
1056         handling logic.  Add scroll wheel support. [Fixes #77842]
1057
1058 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1059
1060         * ListView.cs:
1061           - Moved adding of Implicit controls into .ctor. That way, subsequent
1062             creation of the controls will not cause them to think they are 
1063             toplevel windows (fixes #78200 header problem)
1064           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
1065           - Switched visibility setting of header control to use internal field
1066             to avoid triggering handle creation
1067           - Now checking if handle is created before causing a refresh when items
1068             are added (This makes us now match handle creation time with MS)
1069         * Splitter.cs: Removed loading of private splitter cursor, switched to
1070           Cursors version now that that is loading the right ones
1071         * Cursors.cs: Load proper splitter cursors from resources
1072         * Cursor.cs: Added second method of loading resource cursors for the 
1073           VS.Net users amongst us
1074
1075 2006-05-05  Mike Kestner  <mkestner@novell.com>
1076
1077         * ListView.cs: give header_control a minimum size based on the
1078         ListView size.
1079
1080 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1081
1082         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
1083           window seems to do that with metacity, so set that type. (#78120)
1084
1085 2006-05-05  Mike Kestner  <mkestner@novell.com>
1086
1087         * ListViewItem.cs: fix Details mode checkbox layout bug.
1088         * ThemeWin32Classic.cs: draw a ListView column header for unused space
1089         at the end of the header, if it exists. [Fixes for #78200]
1090
1091 2006-05-04  Jackson Harper  <jackson@ximian.com>
1092
1093         * MdiClient.cs: Add a helper property to get the container form.
1094         * MdiWindowManager.cs: We have to make sure to use the menu origin
1095         when drawing the icons and buttons, this fixes maximized window
1096         icons/buttons on win32.
1097         * InternalWindowManager.cs: Reset the restore captions when a
1098         window goes from Maximized to Minimized and vice versa. Move the
1099         DrawMaximizedButtons into the MdiWindowManager source, tool
1100         windows can't be maximized. NOTE: This could use a little
1101         refactoring if time ever permits.
1102         
1103 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1104
1105         * TextBox.cs: Add MWFCategoryAttributes
1106         * TextBoxBase.cs: Add MWFCategoryAttributes
1107         * Form.cs: Add MWFCategoryAttributes
1108
1109 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1110
1111         * Control.cs: Add MWFCategoryAttributes
1112         * ScrollableControl.cs: Add MWFCategoryAttributes
1113
1114 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
1115
1116         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
1117           Divider is true. Fix a little glitch in PropertyToolBar
1118           drawing code
1119
1120 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
1121
1122         * Control.cs:
1123           - Dispose: Call base.Dispose, this causes the disposed event
1124             to be fired (and probably other, more important stuff)
1125           - SetVisibleCore: Set is_visible to true after creating the
1126             window so that the window still gets created invisible (if
1127             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
1128             to generate a WM_ACTIVE message
1129         * Form.cs: Call Dispose when we want to destroy the window, instead of
1130           just destroying the handle (Dispose will do that for us)
1131         * XplatUIX11.cs:
1132           - RootWindow also needs a queue, so we can properly process the
1133             property change events from RootWindow (like Activate)
1134           - Generatic synthetic WM_ACTIVE message when the active window is
1135             being destroyed
1136
1137 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1138
1139         * LinkLabel.cs: Trigger a recalc of our label dimensions when
1140           bounds are changed
1141
1142 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1143
1144         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1145           for determining width and height (image might not be assigned if
1146           we're drawing an imagelist)
1147
1148 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1149
1150         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1151         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1152           height from system
1153         * Theme.cs: No longer returns hardcoded menu height, instead calls
1154           new driver method
1155         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1156           on MS (# 78257)
1157
1158 2006-05-01  Mike Kestner  <mkestner@novell.com>
1159
1160         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1161
1162 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1163
1164         * TextBoxBase.cs: Removed Fixme
1165         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
1166
1167 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1168
1169         * XplatUIX11.cs:
1170           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
1171             the rectangle relative to the parent, considering borders. We
1172             don't really want that.
1173           - ScrollWindow: Fixed warning to be more understandable
1174         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
1175           scrollbars and scroll only the visible area
1176         * RichTextBox.cs: Removed debug output
1177
1178 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1179
1180         * NumericUpDown.cs (Text): Just use base
1181         * UpDownBase.cs: Ensure txtView is created before using it
1182
1183 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1184
1185         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
1186           casting to IntPtr to avoid 64bit overflow errors
1187
1188 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1189
1190         * Control.cs:
1191           - AllowDrop: Don't force handle creation.
1192           - CreateHandle: Added call to tell driver if we're allowed to drop
1193
1194 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1195
1196         * FileDialog.cs: Remember the last directory not only for the
1197           current instance but also for new FileDialog instances.
1198
1199 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1200         
1201         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
1202           broke sending async messages
1203
1204 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1205
1206         * XplatUIX11.cs:
1207           - ScrollWindow: Fixed method. We finally generate expose events again
1208             for scrolled areas. This was causing 'garbage' when scrolling
1209             textbox and other controls that used ScrollWindow
1210           - Switched from using the regular queue for paint events to the MS 
1211             model of 'generating' paint events when the queue is empty.
1212             We use the new XQueueEvent.Paint subclass to store which windows
1213             need painting.
1214           - AddExpose now takes the x/y/width/height of the exposed area
1215             and inserts the window into the paint queue if not already there
1216           - InvalidateWholeWindow: Switched to use new AddExpose method
1217           - UpdateMessageQueue: Added which queue to monitor for paint events
1218           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
1219             the unlikely case nothing above handles it. We reset the expose
1220             pending states to get them off the queue.
1221           - GetMessage: Now pulls a paint event if no other events are in the
1222             queue
1223           - Invalidate: Switched to new AddExpose method
1224           - PeekMessage: Updated to understand pending paint events
1225           - UpdateWindow: Fixed logic bug. We were only updating if the window
1226             didn't need updating. Also switched to sending WM_PAINT directly,
1227             like MS does.
1228         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
1229           and random access Remove(). The random access is needed to handle
1230           UpdateWindow() where a WM_PAINT is sent directly without accessing
1231           the queue.
1232         * ScrollBar.cs: Added Update() calls to cause immediate updates to
1233           allow for better feedback when scrolling. Scrollbars are small and
1234           the immediate update should make it 'feel' more responsive without
1235           slowing things down. ScrollBar still needs it's invaliate logic
1236           updated to not always invalidate the whole bar on certain changes.
1237
1238 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1239
1240         * Control.cs:
1241         (BackColor): if the control does not support a transparent background,
1242         return the default backcolor when the parent backcolor is transparent.
1243
1244 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
1245
1246         * Application.cs: Updated to new StartLoop/GetMessage API
1247         * RichTextBox.cs: Provide some output on RTF parsing errors
1248         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
1249           new queue_id argument to GetMessage and PeekMessage to allow faster
1250           handling of per-thread queues in drivers.
1251         * Hwnd.cs: Added Queue tracking and property
1252         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1253         * XEventQueue.cs: Added thread trackingA
1254         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1255         * XplatUIX11.cs:
1256           - Implemented new per-thread queue
1257           - GetMessage: Fixed return/break behaviour on several cases. We were
1258             returning stale messages in some cases, instead of just processing
1259             the next message
1260
1261 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1262
1263         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1264
1265 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1266
1267         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1268           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1269
1270 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1271
1272         * PropertyGridView.cs: Fix drop down width.
1273
1274 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1275
1276         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1277           a mess in DrawToolBar, so I removed one of them.
1278
1279 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1280
1281         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1282           needed (clip). Otherwise we get artifacts.
1283
1284 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1285
1286         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1287           dimension is fixed
1288         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1289           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1290         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1291           if it matches the scale base font (avoids unneeded scaling)
1292
1293 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1294
1295         * X11DesktopColors.cs: One gtk_init_check should be enough
1296
1297 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1298
1299         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1300           match MS behaviour
1301
1302 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1303
1304         * TextBoxBase.cs: 
1305           - Generate OnTextChanged for Backspace even if we're only deleting
1306             the current selection
1307           - When setting the Text property, only select all text if the
1308             control does not have focus when it is being set. Otherwise
1309             just place the cursor at the beginning of the control
1310
1311 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1312
1313         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1314           Added a little helper to draw PropertyGrid ToolBar with a different
1315           border and a different BackColor.
1316         * PropertyGrid.cs: Some background parts didn't get painted with the
1317           correct background color. Added a class that helps us to draw the
1318           correct border for PropertyGridView and a class that helps us to
1319           draw ToolBars with a different backcolor
1320         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1321
1322 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1323
1324         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1325         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1326
1327 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1328
1329         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1330           into the palette entries. Also, since we're working on a copy
1331           we needed to copy the palette back onto the bitmap.
1332         * Cursor.cs: Same fix as XplatUIWin32.cs.
1333
1334 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1335
1336         * ImageListStreamer.cs: Need to read the var (or we're off)
1337
1338 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1339
1340         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1341           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1342           TextBoxBase.cs: Unused var fixes
1343         * AxHost.cs: Small 2.0 fix
1344         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1345           as it seems that is what at least Metacity expects. This will make
1346           icons show up on 64bit platforms. We still have some 64bit size
1347           issues, though, since the startup app window size still won't match.
1348
1349 2006-04-25  Mike Kestner  <mkestner@novell.com>
1350
1351         * *.cs: cleanup newly reported exception var unused warnings.
1352
1353 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1354
1355         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1356           ms
1357
1358 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1359
1360         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1361           image. The image position is always the same, no matter if the
1362           button is pressed or not.
1363
1364 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1365
1366         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1367           selection and set the correct filename for SaveFileDialog.
1368           Patch by Emery Conrad.
1369
1370 2006-04-24  Mike Kestner  <mkestner@novell.com>
1371
1372         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1373         check for item.X outside the ClientRect instead of item.Y. Fixes
1374         #78151.
1375
1376 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1377
1378         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1379         trust that value blindly and do some sanity check. Fixes bug #77814.
1380
1381 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1382
1383         * ImageListStreamer.cs: save the mask as a 1bpp image.
1384
1385 2006-04-21  Mike Kestner  <mkestner@novell.com>
1386
1387         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1388         pass Checked and Indeterminate to the Theme Engine. Improve
1389         encapsulation with ListBox.
1390         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1391         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1392         nested types.  Move all CheckState functionality to CheckedListBox.
1393         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
1394         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
1395         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1396         single base list. Fix scrollbar sizing and placement to mirror MS.
1397         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1398         used.
1399         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1400         for CheckedListBox by using new DrawItemState info.  Center the
1401         checkboxes on the items. Use new StringFormat property.
1402
1403 2006-04-18  Jackson Harper  <jackson@ximian.com>
1404
1405         * Form.cs: MdiChildren don't do default locations the same way as
1406         regular forms.  This prevents a crash when trying to position the
1407         mdi windows.
1408
1409 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
1410
1411         * PropertyGridTextBox.cs: Formatting, copyright
1412         * PropertiesTab.cs: Formatting
1413         * PropertyGrid.cs: Formatting
1414         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
1415           click toggling of values
1416           
1417 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
1418
1419         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1420         * Control.cs (.ctor): verify_thread_handle is static, don't reset
1421           every time a control is created
1422         * Application.cs: Removed obsolete EnableRTLMirroring method
1423
1424 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
1425
1426         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1427         SelectedIndex to -1. Fixes bug #78121.
1428
1429 2006-04-17  Jackson Harper  <jackson@ximian.com>
1430
1431         * Binding.cs: Handle null values for Current and BindingContext.
1432         This occurs when binding is a little delayed.
1433         * CurrencyManager.cs: return null for Current when there are no
1434         items in the list.
1435         - Hookup to the listchanged event on the DataView and update
1436         bindings when the list is changed.  This fixes late binding of
1437         controls.
1438
1439 2006-04-17  Jackson Harper  <jackson@ximian.com>
1440
1441         * X11Dnd.cs:
1442         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1443         Ringenbach.
1444
1445 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
1446
1447         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1448           place
1449         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1450           with the correct ButtonState
1451
1452 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
1453
1454         * XplatUIX11.cs: Improved distinguishing between window types to
1455           tell the WM a type closer to what the app wants (Fixes #78107)
1456
1457 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1458
1459         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1460           GrabHandle
1461
1462 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1463
1464         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1465           drawing code to reflect the size grip changes
1466
1467 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1468
1469         * ImageListStreamer.cs: fix handling of the mask that follows the main
1470         bitmap when deserializing and serialize it properly. The generated mask
1471         should better be a 1bpp image, but I'll do that later.
1472
1473 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1474
1475         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1476           path doesn't fit into some of our Current.Places
1477
1478 2006-04-13  Jackson Harper  <jackson@ximian.com>
1479
1480         * ComboBox.cs: Use borders instead of drawing our own decorations,
1481         try to obey correct rules for heights.
1482         * Theme.cs:
1483         * ThemeNice.cs:
1484         * ThemeClearLooks.cs:
1485         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1486         this is now handled by borders.
1487         - Remove unused DrawListBoxDecorationSize method.
1488         
1489 2006-04-13  Mike Kestner  <mkestner@novell.com>
1490
1491         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1492         reported by Alex.
1493
1494 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1495
1496         * ThemeWin32Classic.cs: 
1497           - Fixed CPDrawStringDisabled
1498           - Corrected drawing of disabled menu items
1499           - Fixed drawing of disabled radio buttons (bug #78095)
1500           - Draw check in a disabled CheckBox with color ControlDark 
1501
1502 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1503
1504         * Form.cs: Use the provided width when calculating the menu size;
1505           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1506           and ClientSize.Width won't be updated yet
1507         * Application.cs: Use Visible instead of Show() to make form visible,
1508           this way we create the handle later and menusize is considered
1509
1510 2006-04-12  Mike Kestner  <mkestner@novell.com>
1511
1512         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1513         reporting.
1514
1515 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1516
1517         * TextBox.cs: Implemented context menu
1518
1519 2006-04-12  Mike Kestner  <mkestner@novell.com>
1520
1521         * ListView.cs: implement box selection. fixes #77838.
1522         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1523
1524 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1525
1526         * XplatUIX11.cs: Added setting of window type when transient window
1527           is created (metacity would move it otherwise)
1528         * X11Structs.cs: Added WINDOW_TYPE atoms
1529         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1530           background (the control is Opaque but still wants transparent
1531           backgrounds)
1532
1533 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1534
1535         * Control.cs: Added OnPaintBackgroundInternal to allow controls
1536           that set Opaque but don't mean it (like all ButtonBase-derived
1537           controls) to still draw their background
1538         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1539           the background
1540
1541 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1542
1543         * Control.cs (PaintControlBackground): Set the graphics object
1544           on our PaintEvent to null to prevent it from being disposed
1545           when the PaintEvent gets disposed
1546
1547 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
1548
1549         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1550         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1551
1552 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1553
1554         * Control.cs: 
1555           - Added transparency check to BackColor property. Transparent
1556             backgrounds are only allowed if the control styles permit it
1557           - Added recursive painting of parent control background and
1558             foreground if a control with a transparent backcolor is drawn
1559             (Thanks to Tim Ringenback for providing his 'hack' as a base
1560              for this patch) Fixes #77985 and #78026.
1561           - Added Opaque style check before calling OnPaintBackground, no
1562             need to draw the background if the control is opaque
1563           - Removed ControlAccessibleObject owner variable (inherited from
1564             base, no need to define again)
1565           - Added some documentation links explaining the drawing events
1566             and styles
1567
1568 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1569
1570         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1571           that the affected control is the located at the left border of our
1572           parent (Fixes #77936)
1573
1574 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1575
1576         * TextBoxBase.cs: When rendering disabled or readonly controls,
1577           draw the background with 'Control' instead of 'Window' color as
1578           long as the user hasn't specifically set a color
1579
1580 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1581
1582         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1583           since that won't be updated if the user types text (only if it's
1584           programatically set)
1585
1586 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1587
1588         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1589           layout changes do to app-triggered resizes will have the proper
1590           display rectangle for layout
1591
1592 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1593
1594         * ThemeWin32Classic.cs:
1595           - Make use of the SystemBrushes and SystemPens wherever possible
1596           - Corrected some highlight colors
1597           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1598             drawing
1599         * Theme.cs: Added Empty field to CPColor struct
1600
1601 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1602
1603         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1604           is displayed when calculating the display rectangle. Thanks to Mike
1605           for teaching me the err of my ways.
1606
1607 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1608
1609         * ScrollableControl.cs:
1610           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1611             (instead of 0,0) and we now return the real width/height instead of
1612             just the clientrectangle, adjusted for padding. The rectangle is
1613             now cached and created by the new CalculateDisplayRectangle method.
1614           - Created new CalculateDisplayRectange method, which basically does
1615             what get_DisplayRectangle() did originally, but now using the 
1616             right edge instead of DisplayRectangle to determine the size of
1617             our scrollbars
1618           - get_Canvas(): Fixed it to properly calculate canvas for 
1619             right/bottom controls which seem to be placed to the right/bottom
1620             of any controls that have a fixed location
1621           - Removed TODO that's taken care of
1622           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1623             and SetDisplayRectLocation according to new MSDN2 docs
1624           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1625             event when that is called, this is added for compatibility
1626           - ScrollControlIntoView(): Implemented.
1627           - Switched scrollbars to be implicit, they shouldn't be selectable
1628         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1629           call it when the active control is set/changed
1630         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1631         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1632           implicit_control variable (used for native Win32 message generation)
1633         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1634           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1635         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1636         * XplatUIStructs.cs: Added ScrollBarCommands enum
1637
1638 2006-04-10  Jackson Harper  <jackson@ximian.com>
1639
1640         * ButtonBase.cs:
1641         * CheckedListBox.cs:
1642         * ComboBox.cs:
1643         * DataGrid.cs:
1644         * DataGridView.cs:
1645         * Form.cs:
1646         * GroupBox.cs:
1647         * ListBox.cs:
1648         * PrintPreviewControl.cs:
1649         * ProgressBar.cs:
1650         * PropertyGrid.cs:
1651         * Splitter.cs:
1652         * StatusBar.cs:
1653         * TrackBar.cs:
1654         * UpDownBase.cs: Fixup base event overrides.
1655         
1656 2006-04-06  Mike Kestner  <mkestner@novell.com>
1657
1658         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1659         all user-initiated value changes to min <= value <= max-thumbsz+1.
1660         (set_Value): check for vert/horiz when calculating new thumb position.
1661         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1662         like MS does.
1663         (OnMouseMoveSB): refactor the thumb dragging code and refine
1664         invalidation logic to reduce flicker.
1665         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1666         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1667         (UpdateThumbPosition): small code readability cleanup
1668
1669 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1670
1671         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1672           different
1673
1674 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1675
1676         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1677
1678 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1679
1680         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1681         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1682           This dramatically reduces the number of Pen.Dispose calls. 
1683           Where possible call ResPool methods only once instead of calling it
1684           over and over again (for example for the same color).
1685
1686 2006-04-06  Mike Kestner  <mkestner@novell.com>
1687
1688         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1689         Also remove an unused private field on the collection. Fixes #77972.
1690
1691 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1692
1693         * ThemeNice.cs: Added ToolBar drawing code
1694
1695 2006-04-06  Mike Kestner  <mkestner@novell.com>
1696
1697         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1698         I'm assuming that means we need to look up the toplevel for the
1699         provided control. Fixes the crash trace in #77911 but exposes another
1700         crash in some strange reflection usage in NDocGui.
1701
1702 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1703
1704         * ThemeNice.cs: Gave it a little silver touch and added Images
1705           method
1706         * FontDialog.cs: FontDialog is not resizable
1707         * FileDialg.cs: Added SizeGripStyle.Show
1708
1709 2006-04-05  Jackson Harper  <jackson@ximian.com>
1710
1711         * KeyboardLayouts.cs: Remove warning.
1712
1713 2006-04-05  Jackson Harper  <jackson@ximian.com>
1714
1715         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1716         all of our controls instead of Paint +=.
1717         * ListBox.cs:
1718         * ListView.cs:
1719         * MenuAPI.cs:
1720         * MessageBox.cs:
1721         * NotifyIcon.cs:
1722         * ProgressBar.cs:
1723         * ScrollBar.cs:
1724         * Splitter.cs:
1725         * StatusBar.cs:
1726         * TabControl.cs:
1727         * TextBoxBase.cs:
1728         * ToolBar.cs:
1729         * TrackBar.cs:
1730         * UpDownBase.cs:
1731         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1732         use OnPaintInternal. Remove Width/Height and Visible checks in
1733         paint handler, this is done at a higher level now.
1734         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1735         * PaintEventArgs.cs: Add a handled flag so controls that don't
1736         want anymore painting after OnPaintInternal can make sure OnPaint
1737         isn't called.
1738
1739 2006-04-05  Mike Kestner  <mkestner@novell.com>
1740
1741         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1742         state of the form, so that we don't process events when Modal dialogs
1743         are up. Fixes #77922.
1744
1745 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1746
1747         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1748           checking is done.
1749
1750 2006-04-05  Mike Kestner  <mkestner@novell.com>
1751
1752         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1753
1754 2006-04-05  Mike Kestner  <mkestner@novell.com>
1755
1756         * ListView.cs (HeaderMouseMove): null guarding for the over column
1757         when setting up the drag_to_index.  Fixes #78015.
1758
1759 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1760
1761         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1762           in the taskbar. Transient windows seem to accomplish that.
1763
1764 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1765
1766         * Form.cs:
1767           - Re-enabled CreateParams.X/Y code for FormStartPosition
1768           - Added code for manual placement when creating the Control
1769           - Incomplete patch to treat MDI forms differently when
1770             setting the ClientSizeCore. (Still need to figure out handling
1771             x/y coords there)
1772         * XplatUIX11.cs:
1773           - When we're explicitly setting the X/Y position of a non-Child
1774             window, let the WM know. Metacity really wants this.
1775
1776 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1777
1778         * ThemeNice.cs: Added CPDrawButton
1779
1780 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1781
1782         * ThemeNice.cs: Changed the color for focused buttons and activated
1783           the arrows for small scroll buttons.
1784
1785 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1786
1787         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1788           anymore. Changed some method modifiers to protected (virtual)
1789         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1790           changes
1791         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1792           Updated drawing of menus, buttons and progressbars; added
1793           CPDrawBorder3D 
1794
1795 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1796
1797         * ImageListStreamer.cs: implemented serialization/deserialization
1798         of the images.
1799
1800 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1801
1802         * ThemeWin32Classic.cs:
1803           - Removed all the DrawFrameControl stuff; CPDrawButton,
1804             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1805             inside the methods
1806           - Updated and corrected the drawing code of CPDrawButton,
1807             CPDrawCheckBox and CPDrawRadioButton to better match ms
1808           - Updated theme checkbox and radiobutton code to use the CP*
1809             methods
1810
1811 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1812
1813         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1814           bug is fixed
1815
1816 2006-03-31  Jackson Harper  <jackson@ximian.com>
1817
1818         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1819         sometimes.
1820         * UpDownBase.cs: Don't CreateGraphics manually, use a
1821         Refresh. Ideally we would invalidate the correct areas here.
1822
1823 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1824
1825         * XplatUIX11.cs: 
1826           - We now track the mapping state of windows. If a window (or 
1827             one of it's parents) is not mapped we no longer permit
1828             WM_PAINT messages to be generated since we'd otherwise get 
1829             lots of BadMatch X errors. Jackson did all the work figuring
1830             out the problem.
1831           - Destroying the caret if the window it's contained in is 
1832             destroyed. Can't use regular DestroyCaret method since it
1833             might fall into a drawing function (trying to remove the
1834             caret) and with that generate new BadMatch errors. Again,
1835             Jackson tracked this down.
1836           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1837             make sure we send the messages to all windows. (The old code
1838             would send the WM_DESTROY to the window, and then all child
1839             windows would be 'gone' because the WM_DESTROY handle lookup
1840             would no longer find the destroyed window)
1841         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1842         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1843
1844 2006-03-31  Jackson Harper  <jackson@ximian.com>
1845
1846         * ScrollableControl.cs: Dont recalc if we are not visible.
1847
1848 2006-03-31  Mike Kestner  <mkestner@novell.com>
1849
1850         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1851         the visibility branch.
1852
1853 2006-03-31  Jackson Harper  <jackson@ximian.com>
1854
1855         * ScrollBar.cs: Cap values when incrementing/decrementing.
1856
1857 2006-03-31  Mike Kestner  <mkestner@novell.com>
1858
1859         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1860         * ToolTip.cs: guard against timer expirations with no active control.
1861         Not sure why it happened.
1862
1863 2006-03-31  Mike Kestner  <mkestner@novell.com>
1864
1865         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1866         text.
1867         * ToolTip.cs: Position the tooltip based on where the cursor is at
1868         popup time, not at MouseEnter time.  Add a Down state so that we don't
1869         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1870         positioning offset. Lookup DisplaySize at positioning time, since it
1871         can theoretically change during invocation.
1872         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1873         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1874
1875 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1876
1877         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1878           Fixes behaviour when the Text property of the box is String.Empty
1879
1880 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1881
1882         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1883           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1884           a window)
1885
1886 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1887
1888         * FileDialog.cs: Visual enhancement for the popup buttons in 
1889           PopupButtonPanel
1890
1891 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1892
1893         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1894           code
1895
1896 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1897
1898         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1899           highlighted menu items to match ms
1900
1901 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1902
1903         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1904
1905 2006-03-30  Mike Kestner  <mkestner@novell.com>
1906
1907         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1908         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1909         go active to account for HotLight to Selected transition.
1910         * MenuItem.cs: add internal Selected prop. Fill out the Status
1911         property by calculating it from item info. Add HotLight,
1912         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1913
1914 2006-03-30  Mike Kestner  <mkestner@novell.com>
1915
1916         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1917
1918 2006-03-29  Jackson Harper  <jackson@ximian.com>
1919
1920         * Form.cs: Implement TODO.
1921
1922 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1923
1924         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1925           missing proper dialog setup in the constructor
1926
1927 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1928
1929         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1930         * Control.cs:
1931           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1932           - Fixed ResetBindings and removed TODO
1933           - Added check for cross-thread calls to get_Handle()
1934           - Added Marshaller attribute for set_Font to satisfy class status
1935         * FontDialog.cs: Removed TODOs that seemed implemented
1936         * UpDownBase.cs: Removed unneeded TODO and Fixme
1937         * MessageBox.cs: Implemented support for Default button and removed TODO
1938         * FileDialog.cs: Removed obsolete TODO
1939         * DomainUpDown.cs: Removed obsolete TODO
1940         * ButtonBase.cs: Removed obsolete TODO
1941         * XplatUIWin32.cs: Removed obsolete TODO
1942         * Form.cs:
1943           - Removed obsolete TODO
1944           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1945             internal status updates
1946           - Making sure the active control is selected when the control is created
1947         * CurrencyManager.cs: Removed obsolete TODO
1948
1949 2006-03-29  Mike Kestner  <mkestner@novell.com>
1950
1951         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1952         of PrintPreviewDialog and RichTextBox.
1953
1954 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1955
1956         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1957           DarkDark, Light and LightLight colors for a specific color
1958         * ThemeWin32Classic.cs:
1959           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1960             Appearance = Button 
1961           - Make use of the new ResPool helper CPColor
1962           - Draw ProgressBar and StatusBar with correct 3D borders
1963
1964 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1965
1966         * ColorDialog.cs: Return selected color. Fixes bug #77940.
1967
1968 2006-03-28  Mike Kestner  <mkestner@novell.com>
1969
1970         * ListView.cs: fix Icon layout to plan for scrollbar widths when
1971         calculating col/row counts.
1972
1973 2006-03-28  Mike Kestner  <mkestner@novell.com>
1974
1975         * ColumnHeader.cs:
1976         * ListView.cs:
1977         * ListViewItem.cs:
1978         * Menu.cs: 
1979         switch to explicit interface method implementation for some methods
1980         corcompare identifies as inconsistent with MS.
1981
1982 2006-03-28  Mike Kestner  <mkestner@novell.com>
1983
1984         * MainMenu.cs: 
1985         * Menu.cs:
1986         add a few missing methods from the class status output.
1987
1988 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
1989
1990         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1991           correct.
1992
1993 2006-03-28  Mike Kestner  <mkestner@novell.com>
1994
1995         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1996
1997 2006-03-27  Mike Kestner  <mkestner@novell.com>
1998
1999         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
2000         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
2001
2002 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
2003
2004         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
2005
2006 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2007
2008         * ThemeWin32Classic.cs:
2009           - GroupBox: Inserted a little gap between the text and the lines
2010             on the right side
2011           - Made the code in CPDrawBorder3D more readable
2012           - Corrected the drawing location of the up and down arrows in 
2013             CPDrawScrollButton
2014
2015 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2016
2017         * ControlPaint.cs: Corrected line widths in DrawBorder for
2018           ButtonBorderStyle Inset and Outset
2019
2020 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2021
2022         * ThemeWin32Classic.cs:
2023           - Rewrote the totally broken CPDrawBorder3D method. That was
2024             one of the main problems for the terrific ThemeWin32Classic
2025             look
2026           - Updated and corrected Button drawing
2027           - Correct the dimensions of the SizeGrip to match ms ones
2028           - Removed a small drawing glitch in DrawComboBoxEditDecorations
2029         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
2030           Border3DStyle.Sunken to match ms.
2031
2032 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
2033
2034         * ThemeWin32Classic.cs: First small part of the "de-uglify
2035           ThemeWin32Classic" effort, SizeGrip
2036
2037 2006-03-24  Jackson Harper  <jackson@ximian.com>
2038
2039         * XplatUIX11.cs: Give a max idle time of one second, this matches
2040         MS and forces an Idle event every second when there are no other
2041         events in the queue.
2042
2043 2006-03-24  Mike Kestner  <mkestner@novell.com>
2044
2045         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
2046         * ListView.Item.cs: fix layout issues with null image lists and images
2047         smaller than checkbox size.
2048         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
2049         mode like MS does.  It's weird, but consistent.  ;-)
2050         Fixes #77890.
2051
2052 2006-03-24  Mike Kestner  <mkestner@novell.com>
2053
2054         * ListView.cs: Scroll wheel support for the item control.  Fixes
2055         #77839.
2056
2057 2006-03-23  Jackson Harper  <jackson@ximian.com>
2058
2059         * ScrollableControl.cs: Special case negative sized areas, not
2060         zero.
2061         * MonthCalendar.cs: Save the rect of the clicked date so we can
2062         use it for invalidation.
2063         - Try to cut down on the number of invalidates
2064         - Invalidate the rect the mouse is over and was over when moving
2065         the mouse, so we get the focus box following the cursor.
2066
2067 2006-03-23  Mike Kestner  <mkestner@novell.com>
2068
2069         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
2070         focus rectangle drawing. Fixes #77835.
2071
2072 2006-03-23  Mike Kestner  <mkestner@novell.com>
2073
2074         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
2075         the if and else if and reverting back to the original == check on the
2076         None conditional.
2077
2078 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2079
2080         * FontDialog.cs: Update the example panel if the selected index of
2081           the fontListBox changes.
2082
2083 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2084
2085         * FileDialog.cs: Make FileDialog remember which directory it was in
2086           last in the same execution.
2087
2088 2006-03-22  Mike Kestner  <mkestner@novell.com>
2089
2090         * FileDialog.cs: make the DropDownMenu on the toolbar display
2091         RadioChecks since they are mutually exclusive and that's what MS does.
2092
2093 2006-03-22  Mike Kestner  <mkestner@novell.com>
2094
2095         * Theme.cs: add Color param to CPDrawMenuGlyph.
2096         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
2097         checks and radio marks and arrows are visible on highlighted items.
2098         * ControlPaint.cs: update to use new Theme signature.
2099
2100 2006-03-22  Mike Kestner  <mkestner@novell.com>
2101
2102         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
2103         is active. Fixes #77870.
2104
2105 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2106
2107         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
2108           to be focused/selected after startup
2109
2110 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2111
2112         * ColorDialog.cs: 
2113           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
2114             CustomColors and ShowHelp properties
2115           - Some internal rewrites to get better results when using the
2116             ColorMatrix
2117
2118 2006-03-22  Mike Kestner  <mkestner@novell.com>
2119
2120         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
2121         HoverSelection.  Fixes #77836.
2122
2123 2006-03-22  Mike Kestner  <mkestner@novell.com>
2124
2125         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
2126         ToggleButtons.  (De)Sensitize the Back button around a stack count of
2127         1, not 0.  Update ButtonSize based on a pixel count of the win32
2128         control.  Adjust the toolbar size/location for new button size.
2129
2130 2006-03-22  Jackson Harper  <jackson@ximian.com>
2131
2132         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
2133         true.
2134         * ScrollBar.cs: When doing increments and decrements we need to
2135         set the Value property so that ValueChanged gets raised. A
2136         possible optimization here would be to make an internal SetValue
2137         that doesn't invalidate immediately.
2138         * ToolTip.cs: Tooltips get added to their container (when
2139         supplied) so they get disposed when the container is disposed.
2140         - Don't create tooltips for String.Empty. This prevents all these
2141         little 2-3 pixel windows from showing up when running nunit-gui
2142         and driving me mad.
2143         * Form.cs: Don't set topmost when setting the owner if the handles
2144         haven't been created yet.  The topmost set will happen when the
2145         handles are created.
2146
2147 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2148
2149         * XplatUIX11.cs:
2150           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2151           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2152             visible (to allow them to recalculate their sizes)
2153
2154 2006-03-21  Mike Kestner  <mkestner@novell.com>
2155
2156         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2157         methods. Removed a ton of redundant code.  Still not really happy with
2158         the border rendering, but I think that's mainly because of the
2159         ControlDarkDark being black instead of a dark grey. Depending on how 
2160         close we want to be, we might want to revisit those color choices.
2161         Among the new features added during the refactor were DropDownArrow
2162         pressed rendering, Disabled image rendering.  Proper flat appearance
2163         boundary rendering.  Removed the Divider and Wrapping dividers since I
2164         can't figure out any combination of themes and conditions to make the
2165         MS control draw a horizontal line on a toolbar despite what the
2166         Divider property docs indicate.
2167         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
2168         conditions and incorrect layout.  Updated to coding standard.
2169         * ToolBarButton.cs: refactored layout and positioning code from
2170         ToolBar to here.  Invalidate wherever possible instead of forcing
2171         redraws of the whole toolbar. 
2172         (Known remaining issues: explicit ButtonSize smaller than provided
2173         images.)
2174
2175 2006-03-21  Mike Kestner  <mkestner@novell.com>
2176
2177         * ContextMenu.cs (Show): use the position parameter instead of just
2178         showing at the MousePosition.
2179
2180 2006-03-21  Jackson Harper  <jackson@ximian.com>
2181
2182         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
2183         control handle this.
2184         * TreeNodeCollection.cs: If we are clearing the root node we need
2185         to reset top_node so calcs can still happen.
2186         * ThemeWin32Classic.cs: This is a Flags so we need to check
2187         properly.
2188         
2189 2006-03-21  Jackson Harper  <jackson@ximian.com>
2190
2191         * DataGrid.cs: Create columns when the binding context has been
2192         changed.
2193         * X11Structs.cs: Keysyms are uints.
2194         - Add size to fix build.
2195
2196 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
2197
2198         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2199           XplatUIOSX.cs: 
2200           - Added ResetMouseHover method to allow controls to retrigger
2201             hovering if they need it more than once
2202           - Implemented MouseHoverTime and MouseHoverSize properties
2203         * Timer.cs: Start() must reset the interval
2204         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
2205           properties
2206
2207 2006-03-21  Jackson Harper  <jackson@ximian.com>
2208
2209         * X11Keyboard.cs: improved layout detection. Move the nonchar
2210         tables into this file.
2211         * KeyboardLayouts.cs: Move the tables into resource files.
2212
2213 2006-03-21  Mike Kestner  <mkestner@novell.com>
2214
2215         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2216
2217 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
2218
2219         * Mime.cs: Various speed optimizations. Looking up mime types
2220           is now 2 times faster than before
2221
2222 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
2223
2224         * CreateParams.cs: Added internal menu field
2225         * Control.cs: 
2226           - Switched call order for UpdateBounds; now we always call
2227             the one that also takes ClientSize, and we're calculating the 
2228             client size via driver method in the others. The previous
2229             method of tracking client size by difference wasn't working
2230             for forms where even the starting client size wouldn't match
2231             the overall form size (due to borders) (Part of fix for #77729)
2232           - CreateParams(): Do not use parent.Handle unless the handle is
2233             already created. Causes havoc with Nexxia and throws off our
2234             creation of controls
2235         * XplatUIX11.cs:
2236           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
2237           - Switched handling of ConfigureNotify over to new PerformNCCalc 
2238             method (consolidates code)
2239           - Changed RequestNCRecalc to use new PerformNCCalc method
2240           - Added calls to RequestNCRecalc when menus and borders are changed
2241             to allow app to set NC size. (Part of fix for #77729) This matches
2242             when MS send a WM_NCRECALC on Win32 windows.
2243           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
2244             (Part of fix for #77729). This matches what MS does, they also
2245             send that message when the form is made visible.
2246           - XException.GetMessage: Improved usability of X errors by including
2247             a translation of the window into Hwnd and Control class
2248           - Improved debug info for window creation, reparenting and destruction
2249           - Created helper method WindowIsMapped() [Currently not used]
2250         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2251         * Form.cs:
2252           - CreateParams: Now setting our menu on the new internal menu field
2253           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2254             avoid calculating the same property twice
2255         * Hwnd.cs:
2256           - Improved usability of ToString() for debugging purposes
2257           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2258             determine the height of the menu, instead of just the font. This
2259             required to also create a graphics context and to keep a bmp 
2260             around (for performance reasons)
2261
2262 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2263
2264         * MenuAPI.cs: Added OnMouseUp method
2265         * Form.cs:
2266           - Now remembering the requested client size, avoids size errors
2267           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2268             instead of base if the menu is active. This is required due to
2269             control now capturing and releasing on down/up and it would
2270             prematurely release our menu capture
2271
2272 2006-03-17  Jackson Harper  <jackson@ximian.com>
2273
2274         * KeyboardLayouts.cs: Add the czech layouts.
2275
2276 2006-03-16  Jackson Harper  <jackson@ximian.com>
2277
2278         * Control.cs: Use the viewport space when sizing not the controls
2279         client size, so things like ScrollableControl that effect the
2280         viewport size (when scrollbars are added) are computed correctly.
2281         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2282         of ManagerEntrys.
2283         - Handle creating BindingManagers for null data sources.
2284         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2285         source, otherwise when rows are added they are added to the 'fake'
2286         datasource and we will crash when trying to set the position in
2287         those rows.
2288         - Use Implicit scrollbars on the datagrid so they arent
2289         selectable.
2290         
2291 2006-03-16  Jackson Harper  <jackson@ximian.com>
2292
2293         * Binding.cs:
2294         * InternalWindowManager.cs:
2295         * MdiWindowManager.cs:
2296         * X11Keyboard.cs: I really want Mike to love me again (fix
2297         compiler warnings).
2298
2299 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2300
2301         * DataGrid.cs:
2302           - OnMouseDown: Switch to editing mode when clicking on the cell
2303                          even if we're clicking on the cell that's currently 
2304                          selected
2305           - ProcessGridKey: Left/Right now wrap like MS.Net does
2306           - ProcessGridKey: Tab now knows to add a new row when tab is
2307                             pressed in the cell of the last column of the 
2308                             last row
2309           - ProcessGridKey: Enter now adds another row  if pressed in the last
2310                             row and selectes the new row, same column cell
2311           - ProcessGridKey: Home/End navigate columns, not rows, like 
2312                             originally implemented
2313           - Broke ProcessKeyPreview code out into an extra Internal method
2314             so it can be called from the edit code
2315         * DataGridTextBox.cs (ProcessKeyMessage):
2316           - Switched to accept Tab keypresses
2317           - Added F2 handling to allow jumping to the end of the edited cell
2318           - Added logic to allow moving caret left/right inside edited cell
2319             and making the edited cell jump when the caret hits cell borders
2320           - Tab and Enter are now passed to the datagrid after being handled
2321         * TextBoxBase.cs:
2322           - Removed capture code now that Control handles it
2323           - set_SelectionStart now ensures caret is visible
2324
2325 2006-03-16  Jackson Harper  <jackson@ximian.com>
2326
2327         * TrackBar.cs: Debackwards the increment/decrement for handling
2328         mouse clicks on the bar with vertical trackbars.
2329         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2330         bottom to match MS.
2331
2332 2006-03-16  Mike Kestner  <mkestner@novell.com>
2333
2334         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2335         consistent with the MS control. Fix a bug in
2336         SelectedListViewItemCollection.Clear that was pissing me off for the
2337         better part of a day because the collection was being altered
2338         underneath us as we walked the list.
2339
2340 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2341
2342         * Control.cs: Not sure how we could miss this so long, but it seems
2343           that MS.Net has Capture set all the way from before calling 
2344           OnMouseDown through sending the mouse events until after
2345           OnMouseUp. This will fix DataGrid's selection being set to end
2346           at the location of the MouseUp.
2347
2348 2006-03-15  Jackson Harper  <jackson@ximian.com>
2349
2350         * BindingContext.cs: Check the binding after its added so that it
2351           can initialize the binding managers and hookup to events.
2352         * Binding.cs: Data members seem to sometimes include rows/cols in
2353           the format Row.Column we now take this into account.
2354           - Hookup to the position changed event so we can update the
2355           control when the position has changed in the data set.
2356         * CurrencyManager.cs: Take into account the row/col naming
2357           convention when creating dataset tables.
2358         * BindingContext.cs: Using a newer better way of storing
2359           datasource/datamember pairs.  Hopefully this better matches MS for
2360           looking up binding managers.
2361
2362
2363 2006-03-15  Jackson Harper  <jackson@ximian.com>
2364
2365         * BindingContext.cs: The currency manager needs the data member
2366         name, if the member is a data set we use the name to find the
2367         correct table.
2368         * CurrencyManager.cs: When creating the list prefer an IList over
2369         an IListSource.
2370         - Attempt to create a DataTable from a DataSet (TODO: might need
2371         some better error checking here, although MS doesn't seem to have much)
2372         - If we have a DataTable create a view and use it as our list.
2373
2374 2006-03-15  Mike Kestner  <mkestner@novell.com>
2375
2376         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2377         keyboard navigation. Support Up/Down/Left/Right selection correctly
2378         for all 4 View modes.
2379         * ListViewItem.cs: add internal row/col fields for icon layouts.
2380
2381 2006-03-15  Jackson Harper  <jackson@ximian.com>
2382
2383         * TabControl.cs: Redraw the tabs when we resize so their newly
2384         calculated sizes are drawn on screen.
2385         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2386         composite characters.
2387         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2388         - filter events so that composite characters can be created
2389         patches by peter
2390         * X11Structs.cs: Add XIMProperties enum.
2391
2392 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2393
2394         * Control.cs (BringToFront, SendToBack): Don't use window or handle
2395           unless it's created
2396
2397 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2398
2399         * Control.cs (PerformLayout): We don't need to consider visiblity
2400           for anchoring, only for docking. This fixes 'whacky' alignment
2401           in listbox and other controls that use implicit scrollbars after
2402           the previous PerformLayout patch
2403         * ListBox.cs: Switched to use implicit scrollbars
2404           
2405 2006-03-14  Mike Kestner  <mkestner@novell.com>
2406
2407         * ToolBar.cs: 
2408         * VScrollBar.cs:
2409         - chain up the "new event" overrides to base and use
2410         OnEvent to raise them.  Part of fix for bug #76509.
2411
2412 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
2413
2414         * FileDialog.cs: Do not select an item in the parent directory
2415           on backspace
2416
2417 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2418
2419         * Control.cs (PerformLayout): It would seem that we considered
2420           invisible windows for our layout. Not quite the right thing
2421           to do. Now we don't any longer, thereby fixing bug #76889.
2422
2423 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2424
2425         * Control.cs (CanFocus): I goofed. A control can have focus 
2426           even though it's not selectable. Made it match MS docs.
2427
2428 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2429
2430         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2431           center by default (fixes #76895)
2432         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
2433           all uses of Border3DSides.All with the explicit ORd together
2434           Left|Right|Top|Bottom because I assume that nobody was aware 
2435           that All also implies a center fill. Most places I checked had
2436           a fill right above.
2437         * ProgressBarStyle.cs: Added
2438
2439 2006-03-13  Mike Kestner  <mkestner@novell.com>
2440
2441         * ListView.cs: fix breakage in drag shadow header positioning 
2442         from Peter's csc compilation fix.
2443
2444 2006-03-13  Mike Kestner  <mkestner@novell.com>
2445
2446         * ListView.cs: fix NRE produced by backspacing twice in a focused
2447         FileDialog.
2448
2449 2006-03-13  Mike Kestner  <mkestner@novell.com>
2450
2451         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2452
2453 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2454
2455         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2456           be changed
2457         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2458           the allowed size before making programmatic size changes
2459
2460 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
2461
2462         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
2463           set, metacity is broken and will still use the emty sizes in 
2464           the struct. (Fix for #77089)
2465
2466 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2467
2468         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2469           WindowExStyles and marked both enums as Flags
2470         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2471           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2472           to match WindowStyles split
2473         * XplatUIX11.cs:
2474           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2475           - Updated to match WindowStyles split
2476         * XplatUIWin32.cs:
2477           - Fixed FosterParent creation, was using ExStyle on the Style field
2478             (This should help with Popup focus issues)
2479           - Updated to match WindowStyles split
2480
2481 2006-03-13  Jackson Harper  <jackson@ximian.com>
2482
2483         * MdiWindowManager.cs: Use the system menu height. Fixes some
2484         strange sizing issues.
2485
2486 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2487
2488         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2489         * TextBoxBase.cs:
2490           - Scroll to caret after inserting text (#77672)
2491           - Make scroll range one pixel higher, fixes off-by-one error (and
2492             makes underlines visible on the last line)
2493
2494 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2495
2496         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2497           the keyboard state from being stuck with keys in 'pressed' state when
2498           focus is switched away via keyboard
2499         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2500           reset the keyboard if no X11 KeyUp events are expected to come
2501         * X11Structs.cs: Switched type of Visible to bool to match driver
2502
2503 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2504
2505         * TextControl.cs:
2506           - Switched caret to be just 1 pixel wide, matches MS and looks less
2507             clunky
2508           - Moved caret display 1 pixel down from the top of the control
2509             to improve view
2510           - InsertCharAtCharet: Update the selection start if moving the caret
2511             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2512           - No longer always creating the caret when the caret methods are
2513             called. Only the actual ShowCaret/HideCaret will do that now
2514           - Only setting caret visible if the owner control has focus
2515           - UpdateView: Added invalidation-shortcut logic for center and right 
2516             aligned text. Previously we'd update all according to the left
2517             logic which caused drawing errors. Also fixed height of invalidated
2518             areas, now properly invalidating the whole area (was off-by-one)
2519           - owner_HandleCreated: Always generate the document when the
2520             handle is created; this ensures that 
2521         * TextBoxBase.cs:
2522           - Fixed situation where caret would disappear under the right
2523             window border, also improved scrolling behaviour on left-
2524             aligned textboxes
2525           - Fixed right-aligned textboxes to have a border to the
2526             right instead of the caret being under the right border
2527         * XplatUIX11.cs:
2528           - Switched from 'nested' to simple visible/not visible tracking 
2529             for caret (part of fix for #77671)
2530           - No longer passing through translated FocusIn/FocusOut messages
2531             since we were notifying too often and the wrong windows. Instead
2532             we just notify our focussed window of receiving or loosing focus
2533         * XplatUIWin32.cs: Switched from 'nested' show/hide 
2534           counting for caret to simple visible yes/no behaviour (part of 
2535           fix for #77671)
2536
2537 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2538
2539         * Mime.cs: Remove debug code...
2540
2541 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2542
2543         * MimeGenerated.cs: Removed
2544         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2545           and subclasses) from /usr/(local/)share/mime and
2546           $HOME/.local/share/mime.
2547
2548 2006-03-10  Jackson Harper  <jackson@ximian.com>
2549
2550         * MdiWindowManager.cs: Recalc the NC area when a window is
2551         maximized/restored so that the menu area is drawn on forms that
2552         don't have a menu.
2553
2554 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2555
2556         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2557           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2558           us to force a WM_NCCALCRESIZE message being sent. This is needed
2559           for MDI maximizing.
2560
2561 2006-03-10  Jackson Harper  <jackson@ximian.com>
2562
2563         * Form.cs: We need to use the ActiveMenu when calculating menu
2564         height.
2565         - Fix nullref when the window manager hasn't been created yet.
2566         * Control.cs: Fix nullref when we try to bring a control to the
2567         front that has no parent.
2568         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2569         height.
2570         - Add a dummy item to the maximized menu so it always has the
2571         correct height. Otherwise when there are no menus we don't get our
2572         icon and buttons.
2573         
2574
2575 2006-03-10  Jackson Harper  <jackson@ximian.com>
2576
2577         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2578         stuff.
2579         * Form.cs: Make the window_state internal so the window managers
2580         can track it.
2581         - When an MDI child is maximized let its window manager create the
2582         main menu (so it can add its icon).
2583         - Notify the window managers of state changes
2584         - Let the window manager paint its buttons and handle button
2585         clicks on the menu when it is maximized.
2586         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2587         window manager, since tool windows don't use it, only mdi windows.
2588         - Tell the main form that we don't want it to handle NCPAINT
2589         itself to avoid extra painting.
2590         - Handle clicks on a maximized windows menu.
2591         - Handle window state changes
2592         - Handle minimize/maximize clicks correctly by setting the window state.
2593         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2594         when clicking on the forms icon).
2595         - New method to create a forms maximized menu. This is its normal
2596         menu + an icon.
2597         - Handle window state changes.
2598         - Handle sizing of maximized windows.  Maximized windows are just
2599         drawn bigger then the parent visible area. All controls are still
2600         there, they are just outside the visible area (this matches windows).
2601         * MdiClient.cs: No scrollbars when a child window is maximized.
2602         - Let the children windows figure out how big they should be when
2603         sizing maximized windows.
2604         - Implement a version of ArrangeIconicWindows somewhat similar to
2605         Windows version.  There are some little differences, but I don't
2606         think any app will rely on the layout of minimized mdi windows.
2607
2608 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2609
2610         * Padding.cs: Several fixes to allow compiling with csc 2.0
2611
2612 2006-03-09  Jackson Harper  <jackson@ximian.com>
2613
2614         * Menu.cs:
2615         * MenuItem.cs: Cheap hack so we can add items to the list without
2616         the events being raised.  This allows adding mdi items during
2617         drawing. TODO: Should probably find a better time to add the items.
2618
2619 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2620
2621         * ThemeWin32Classic.cs:
2622           - CheckBox_DrawText: Added logic to not wrap if not enough space
2623             is available (Fix for bug #77727)
2624           - RadioButton_DrawText: Added logic not to wrap if not enough
2625             space is available (Fix for bug #77727). Also removed some
2626             duplicate code, DrawString always drawing the regular text
2627             before hitting the if statement.
2628
2629 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2630
2631         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2632
2633 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2634
2635         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2636         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2637           methods. Moved the new 2.0 properties into alphabetical order with
2638           other properties and added MonoTODO tags
2639
2640 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2641
2642         * AutoScaleMode.cs: Added. Fix build.
2643
2644 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2645
2646         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2647           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2648           and was requiring premature handle creation for calls from above
2649         * Form.cs, Control.cs: Removed handle arguments from calls to
2650           CalculateClientRect()
2651
2652 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2653
2654         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2655           drag_column.column_rect is MarshalByRef and can't be used that way
2656
2657 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2658
2659         * AxHost.cs: Added deserialization constructor for 
2660           AxHost+State (fixes 77743)
2661
2662 2006-03-09  Mike Kestner  <mkestner@novell.com>
2663
2664         * ListView.cs: 
2665         - Added column drag reordering for details view.
2666         - fixed behavior when mouse is dragged off column and
2667         AllowColumnReorder is false.
2668         * ColumnHeader.cs: clone the format too in Clone.
2669         * Theme.cs: add DrawListViewHeaderDragDetails method.
2670         * ThemeWin32Classic.cs:
2671         - impl new method for drawing drag column shadows and targets.
2672         - support column offset for details mode in DrawListViewItem.
2673
2674 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2675
2676         * TextControl.cs: Reset the char_count when the document is cleared
2677           (Fixes bug reported on mono-winforms mailing list)
2678
2679 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2680
2681         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2682           of calling base we simply process the key ourselves, since both
2683           DefWindowProc and the handled method would set m.Result. 
2684           (Fixes #77732)
2685
2686 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2687
2688         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2689           method also moves the window; instead implemented a copy of
2690           Control.ScaleCore (Part of fix for #77456)
2691         * TextBoxBase.cs: 
2692           - Created new CreateGraphicsInternal method to allow providing
2693             a graphics context when no handle is created without triggering
2694             handle creation. (Part of fix for #77456)
2695           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2696         * TextControl.cs: 
2697           - Switched Constructor to require TextBoxBase instead of Control (to
2698             allow uncast access to CreateGraphicsInternal)
2699           - Safeguarded use of owner.Handle property. No longer accessing it
2700             unless the handle is already created.
2701           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2702           - Now triggering a recalc when owning control becomes visible
2703         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2704           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2705           premature handle creation (Part of fix for #77456)
2706         * Control.cs:
2707           - We now only destroy our double-buffering buffers when the
2708             control is resized or disposed, but not when visibility
2709             changes. (The code even re-created them twice every time)
2710           - Now requiring a redraw of the buffer on visibility changes
2711             (fixes bug 77654 part 2)
2712           - Not passing OnParentVisibleChanged up unless the control
2713             is visible
2714           - CanFocus: Fixed to match MS documentation
2715           - Focus: Fixed to return actual focus state and to check if
2716             setting focus is legal before setting it
2717
2718 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2719
2720         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2721           when to draw focus rectangle by looking at parent focus and
2722           selected state instead. This fixes TabPages on Linux sometimes
2723           having none or multiple focus rectangles.
2724         * XplatUIX11.cs (SetFocus): 
2725           - Don't set the focus if the same window already has focus
2726           - Use SendMessage instead of PostMessage (like it's Win32
2727             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2728             to match MS behaviour
2729         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2730           are not selectable.
2731
2732 2006-03-07  Jackson Harper  <jackson@ximian.com>
2733
2734         * PictureBox.cs: Revert line I accidently committed last week.
2735
2736 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2737
2738         * Control.cs: 
2739           - Added new IsRecreating and ParentIsRecreating properties to
2740             allow testing if RecreateHandle has been called on ourselves
2741             or one of our parents
2742           - WndProc(WM_DESTROY): If our control handle is being recreated
2743             we immediately need to create the handle when receiving the
2744             destroy, that way our child windows find a valid parent handle
2745             when they themselves are being recreated upon WM_DESTROY receipt
2746             (fix for bug #77654 part 1)
2747         * XplatUIX11.cs:
2748           - DestroyWindow: WM_DESTROY must be sent to our own window before
2749             notifying any child windows. MS documents that child windows
2750             are still valid when WM_DESTROY is received. (Control now relies on
2751             this behaviour)
2752           - Added some fine-grain debug options
2753
2754 2006-03-06  Jackson Harper  <jackson@ximian.com>
2755
2756         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2757         box and base calculations off this.
2758         * MdiChildContext.cs:
2759         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2760         anymore.
2761         
2762 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2763
2764         * Splitter.cs: In situations where the affected control is added
2765           to the parent's control list after the splitter, we would not
2766           populate affected. Now we try populating it on mousedown, if
2767           it's not already set, and force it to be re-set whenever our
2768           parent changes.
2769
2770 2006-03-03  Matt Hargett  <matt@use.net>
2771
2772         * Control.cs: implement Control.Padding
2773         * Padding.cs: -Padding.All returns -1 when constructing with the
2774         implicit default ctor
2775         -Padding.ToString() matches MS.NET
2776         * ContainerControl.cs: implement
2777         ContainerControl.AutoScaleDimensions
2778         * ListControl.cs: implement ListControl.FormattingEnabled
2779         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2780         * ButtonBase.cs:
2781         * TabPage.cs: Implement UseVisualStyleBackColor.
2782         * PictureBox.cs: Implement PictureBox.InitialImage.
2783
2784 2006-03-03  Mike Kestner  <mkestner@novell.com>
2785
2786         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2787         event declarations to proxy to base event.
2788         * ListViewItem.cs: update to use ItemControl.
2789         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2790         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2791         column header label rendering for 0 width columns.
2792
2793 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2794
2795         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2796           that causes the control to be created. Fixes #77476.
2797
2798 2006-03-02  Jackson Harper  <jackson@ximian.com>
2799
2800         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2801         expose_pending.
2802
2803 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2804
2805         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2806           passed in for the EventArgs (fixes #77690)
2807
2808 2006-03-01  Jackson Harper  <jackson@ximian.com>
2809
2810         * ScrollBar.cs: Refresh afterbeing resized.
2811
2812 2006-02-28  Mike Kestner  <mkestner@novell.com>
2813
2814         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2815         Clean up a tracker compile warning.
2816         * MenuItem.cs: add internal PerformPopup method.
2817         [Fixes #77457]
2818
2819 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2820
2821         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2822           implicit expose) when the text is set to null
2823
2824 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2825
2826         * RichTextBox.cs (FlushText): When newline is true, we always
2827           need to split the line, even if no text is on it and we may
2828           never eat newlines. (Fixes #77669)
2829
2830 2006-02-28  Mike Kestner  <mkestner@novell.com>
2831
2832         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2833         and set Selected instead.
2834         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2835         collections.
2836
2837 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2838
2839         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2840
2841 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2842
2843         * FontDialog.cs:
2844           - Got rid of the panel. All controls are now directly added to
2845             the dialog form
2846           - It is now possible to set a font with the Font property
2847           - MinSize and MaxSize property do now what they should
2848           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2849           - Searching and selecting a font with the font textbox works now,
2850             the same applies to the style and size textbox
2851           - Draw the correct 3D border in the example panel
2852           - Fixed a little mem leak (unused fonts didn't get disposed)
2853           - Many other internal updates/rewrites...
2854           - Fix typo
2855
2856 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2857
2858         * TextControl.cs: 
2859           - InsertRTFFromStream: Added 'number of characters inserted' argument
2860           - set_SelectedRTF: Now using the number of characters to calculate
2861             the new location for the selection and cursor (x/y cannot be used
2862             due to potentially already wrapped text)
2863
2864 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2865
2866         * TextControl.cs: Added property and implemented means to allow 
2867           disabling recalculation of a document (can be used to speed up
2868           multiple inserts and is needed to make RTF inserts predictable, see
2869           bug #77659)
2870         * RichTextBox.cs: Using the new NoRecalc property of Document to
2871           keep x/y insert locations predictable. Also makes it faster inserting
2872           large chunks of RTF
2873
2874 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2875
2876         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2877           it's easier for a child control to handle the other messages without
2878           having to duplicate the special functionality
2879         * TextBoxBase.cs
2880           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2881             code to handle processing the key ourselves, in order to get 
2882             access to the result of KeyEventArgs.Handled. We now only call 
2883             ProcessKey if they key hasn't been handled already. Fixes #77526.
2884           - set_Text: If null or empty string is given, just clear the 
2885             document. Fixes part of #77526
2886
2887 2006-02-27  Jackson Harper  <jackson@ximian.com>
2888
2889         * SizeGrip.cs: Paint the background color before painting the grip
2890         so things look right.
2891         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2892
2893 2006-02-27  Mike Kestner  <mkestner@novell.com>
2894
2895         * ListView.cs:
2896           - Restructure layout and invalidation model to remove a ton of
2897           flicker from the control and speed up performance in general.
2898           - Add manual column resize, flickers like crazy, but I already have
2899           some ideas on how I'll fix that. (#76822)
2900           - Merge the three Icon-based views into a single layout method.
2901           - Move item selection interaction logic from the item since 
2902           interaction with the collections is more appropriate to the view.
2903           - Deselection on non-item clicks.
2904         * ListViewItem.cs:
2905           - Encapsulate most of the layout. Add some internal props to trigger
2906           layout.  Move to a model where Items invalidate themselves instead
2907           of just invalidating the whole control every time something changes.
2908           - Invalidate on Text/Caption changes.
2909           - switch to an offset based layout model to avoid having to absolute
2910           position every element on item moves.
2911           - correct checkbox layout to conform to MS layout.
2912         * ThemeWin32Classic.cs:
2913           - refactor some column header drawing code.
2914           - fix string justification for column headers (#76821)
2915           - make SmallIcon labels top justified for compat with MS impl.
2916         * ThemeClearlooks.cs:
2917           - adjust to new ListViewItem internal checkbox bounds api.
2918
2919 2006-02-27  Jackson Harper  <jackson@ximian.com>
2920
2921         * Control.cs:  Change where implicit controls fall in the zorder.
2922         They are now on top of all children.
2923         - Synced AddImplicit code with Add
2924         - Removed unused enumerator.
2925         * SizeGrip.cs: Remove the TODO as its been TODONE.
2926
2927 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2928
2929         * TextControl.cs(Insert): Combine the last lines unless the insertion
2930           string ends with \n\n, otherwise we leave one line too many (Fixes
2931           something I noticed with the testapp for #77526; the bug itself was
2932           already fixed in the previous checkin)
2933
2934 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2935
2936         * RichTextBox.cs:
2937           - SelectionColor and SelectionFont methods no longer set absolute
2938             styles. Instead, the keep font or color respectively (This 
2939             resolves a long-standing FIXME in the code)
2940           - When flushing RTF text, the insert code now considers text trailing
2941             behind the insertion point (Fixes the bug where when replacing
2942             the selected text via SelectedRTF the remainder of the line behind 
2943             the selection would stay on the first insertion line)
2944         * TextBoxBase.cs:
2945           - AppendText now updates the selection points after inserting text
2946           - AppendText now ensures that the last tag (sometimes 0-length) of
2947             the document is used for the style information (Fixes part of 
2948             bug #77220)
2949         * TextControl.cs:
2950           - Created new FontDefiniton class to allow describing partial style
2951             changes
2952           - StreamLine() now takes a lines argument, to allow it to decide
2953             whether an encountered zero-length tag is the last in the document
2954             (which must be kept to not loose the font/color contained in it,
2955             for later appends)
2956           - Created Combine() and Split() methods for Marker structs, to 
2957             support marker updates due to reformatted documents (soft line
2958             wraps)
2959           - Implemented Document.CaretTag setter
2960           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2961             of the last line (Not the cause, but also exposed by bug #77220)
2962           - Added LineTag argument to InsertString method, to allow callers
2963             to force a certain tag to be used (required to force use of the
2964             trailing zero-length tag of a document)
2965           - Now updating markers in Combine(), to avoid stale tag markers
2966           - Added some method descriptions to aid maintenance
2967           - Implemented new FormatText concept, allowing additive/subtractive
2968             formatting by only specifying the components that are to be 
2969             changed. This was needed for resolving the RTB.SelectedColor/
2970             RTB.SelectedFont fixmes
2971           - Added Break() support method to allow breaking up linetags (used
2972             for partial formatting)
2973           - Added GenerateTextFormat() method. It is used for partial 
2974             formatting and allows to generate a full font/color from given
2975             attributes and an existing tag.
2976
2977 2006-02-26  Jackson Harper  <jackson@ximian.com>
2978
2979         * XplatUIX11.cs:  Use the correct caption height.
2980         - Translate hittest coordinates to screen coords to match MS.
2981         * XplatUIWin32.cs: When we create MDI windows we need to reset
2982         some of the style flags, so we get a nice blank window, and can
2983         draw all the decorations ourselves.
2984         - Set a clipping rectangle on the non client paint event, the
2985         window manager drawing code needs one.
2986         * Form.cs: The window manager needs to know when the window state
2987         has been updated.
2988         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2989         don't need to factor in border and title sizes in these
2990         methods. TODO: Remove the args and fix the call points.
2991         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2992         properly.
2993         - Let the driver set the cursors.
2994         - Improve active window handling
2995         - Correct sizes for title bars and buttons.
2996         - Match MS drawing better
2997         * MdiWindowManager.cs: We don't need to handle border style
2998         updates specially anymore.
2999         - Check for scrollbars when windows are done moving
3000         - Handle Active properly.
3001         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
3002         correctly. I am spewing the exception though, so we don't hide the
3003         bugs.
3004         
3005 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
3006
3007         * DataGridViewRowPostPaintEventArgs.cs,
3008           DataGridViewCellPaintingEventArgs.cs,
3009           DataGridViewRowCollection.cs,
3010           DataGridViewRowPrePaintEventArgs.cs,
3011           DataGridViewCell.cs: Clear a few warnings and implement a few
3012           exceptions that should be thrown.
3013
3014 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3015
3016         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
3017           'inheriting' our parent's (non-default) cursor. (Part of
3018            the fix for #77479)
3019
3020 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
3021
3022         * XplatUIX11.cs: Fixed cast to make csc happy
3023
3024 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
3025
3026         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
3027           it's for the client area (part of fix for #77479 and needed
3028           for MDI window cursor handling)
3029         * XplatUIX11.cs
3030           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
3031             the appropriate default cursors and also passing the message
3032             up the parent chain 
3033           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
3034             for non-client areas
3035
3036 2006-02-15  Jackson Harper  <jackson@ximian.com>
3037
3038         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
3039         is a real MDI window
3040
3041 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
3042
3043         * X11DesktopColors.cs: Instead of checking the desktop session
3044           string for "KDE" check if it starts with "KDE"
3045
3046 2006-02-10  Jackson Harper  <jackson@ximian.com>
3047
3048         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
3049         systems).
3050
3051 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3052
3053         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
3054           errors
3055         * ColorDialog.cs:
3056           - Got rid of the panel. All controls are now directly added to
3057             the dialog form
3058           - Changed to mono coding style
3059
3060 2006-02-10  Jackson Harper  <jackson@ximian.com>
3061
3062         * InternalWindowManager.cs: We don't need the set visibility to
3063         false hack anymore now that peter has written beautiful shutdown
3064         code.
3065
3066 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
3067
3068         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
3069           where already explicitly destroyed
3070
3071 2006-02-10  Jackson Harper  <jackson@ximian.com>
3072
3073         * MdiClient.cs: Handle the case where windows are too high or to
3074         the left and we need scrollbars.
3075
3076 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3077
3078         * MimeIcon.cs: Added some icons
3079         * FileDialog.cs:
3080           - Fixed bug #77477
3081           - Got rid of the panel. All controls are now directly added to
3082             the dialog form
3083           - Changed to mono coding style
3084           - On Linux "My Computer" and "My Network" will now show some
3085             more usefull information. A new class, MasterMount, gathers
3086             this information from /proc/mount. Updated MWFFileView to make
3087             use of this information
3088           - Fixed a bug that caused FileDialog to crash when
3089             ".recently_used" file had a zero size
3090           - FilterIndex does now what it should
3091           - Some Refactoring
3092         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
3093             FileDialog changes
3094
3095 2006-02-09  Jackson Harper  <jackson@ximian.com>
3096
3097         * ComboBox.cs: Don't touch if null.
3098
3099 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
3100
3101         * Cursor.cs: 64bit safeness fix
3102         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
3103
3104 2006-02-09  Jackson Harper  <jackson@ximian.com>
3105
3106         * Form.cs: If a form is made into an MDI form update the styles so
3107         all the props can get set correctly.
3108         - Kill the mdi_container when we dont need it anymore.
3109         * InternalWindowManager.cs: Add missing NOT
3110
3111 2006-02-08  Jackson Harper  <jackson@ximian.com>
3112
3113         * InternalWindowManager.cs: Respek clipping when drawing MDi
3114         decorations.
3115
3116 2006-02-08  Jackson Harper  <jackson@ximian.com>
3117
3118         * Hwnd.cs: Add bits to track non client expose events.
3119         * XplatUIX11.cs: Track non client expose events on the hwnd. This
3120         gives us a proper invalid rect and will allow for some nice
3121         optimizations with NC client drawing
3122         - MDI windows are children windows, so move their style handling
3123         into the child window block.
3124         * InternalWindowManager.cs: Remove a state reset that was
3125         getting invoked at the wrong time. Fixes managed windows getting
3126         into a 'stuck' captured state.
3127
3128 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3129
3130         * TextControl.cs (Document.ctor): Now initializing 
3131           selection_anchor. Fixes #77493
3132
3133 2006-02-07  Jackson Harper  <jackson@ximian.com>
3134
3135         * TrackBar.cs: The increment/decrements were backwards.
3136
3137 2006-02-07  Mike Kestner  <mkestner@novell.com>
3138
3139         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
3140         to the instance itself.
3141
3142 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3143
3144         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3145           on ulongs and pointers, the size differs between 32bit and 64bit
3146           systems. 
3147
3148 2006-02-07  Mike Kestner  <mkestner@novell.com>
3149
3150         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3151         for 64 bit platforms to work around a metacity bug. 
3152
3153 2006-02-07  Jackson Harper  <jackson@ximian.com>
3154
3155         * TrackBar.cs: Process the input keys we need, and hookup to
3156         KeyDown instead of using WndProc, so we get key messages.
3157
3158 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3159
3160         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3161           machine we're on. 
3162         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3163           we need to translate the XdndVersion atoms array before sending it
3164
3165 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
3166
3167         * XplatUIX11.cs: 
3168           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
3169             number of bits for the property, not the number of bytes. The
3170             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
3171             but would not crash since it specified 8 bits instead of 4 bits)
3172           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
3173             defined as XID -> long in the C headers)
3174           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
3175             references since those are now IntPtr to begin with
3176           - Switched all Atom.XXX 'int' casts to IntPtr casts
3177           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
3178           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
3179           - Added XChangeActivePointerGrab DllImport (for X11DnD)
3180         * X11Structs.cs:
3181           - Changed 'int' type for Atoms in XEvent structures to IntPtr
3182           - Changed atom in HoverStruct to be IntPtr
3183         * X11DnD.cs:
3184           - Removed local DllImports, switched code to use those from XplatUIX11
3185           - Removed/fixed casts related to the switch of Atom to be a IntPtr
3186
3187 2006-02-06  Mike Kestner  <mkestner@novell.com>
3188
3189         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
3190         method signatures in the import region.  There may still be some
3191         lingering struct marshaling issues, as I didn't drill down into those.
3192         Yet.
3193
3194 2006-02-06  Jackson Harper  <jackson@ximian.com>
3195
3196         * ComboBox.cs: Dont manually set the top_item, this is computed
3197         when the scrollbar position is set.
3198
3199 2006-02-06  Mike Kestner  <mkestner@novell.com>
3200
3201         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
3202         startup crashes on amd64.  There's other fixes needed.  All pinvoke
3203         usage of Atom needs to be mapped to IntPtr for example.  And there are
3204         likely other int/long issues to be addressed.
3205
3206 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
3207
3208         * FileDialog.cs: One more...
3209
3210 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3211
3212         * FileDialog.cs: Next try
3213
3214 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3215
3216         * FileDialog.cs: First part of fix for #77464
3217
3218 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3219
3220         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
3221           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
3222           AcceptButton border drawing.
3223
3224 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
3225
3226         * Form.cs: Moved positioning of form after auto scaling is applied,
3227           otherwise it would possibly use wrong form size.
3228
3229 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
3230
3231         * Control.cs (RecreateHandle): No need to re-create any child
3232           controls, the child windows will get destroyed automatically by
3233           the windowing system or driver, and re-created when the handle
3234           is being accessed the first time. Fixes #77456
3235         * Form.cs: No longer setting the form to closing if the handle is 
3236           being recreated. This seems like the right thing to do, don't
3237           have a bug or testcase for this, though.
3238
3239 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3240
3241         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
3242           controls to avoid unwanted side effects
3243
3244 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
3245
3246         * Control.cs: 
3247           - ScaleCore needs to scale the bounds, not the ClientSize of the 
3248             control. Fixes #77416.
3249           - DefaultSize is 0,0 for control
3250         * TextBoxBase.cs: 
3251           - DefaultSize is 100, 20
3252           - SetBoundsCore: Now enforcing the height, no matter if the provided
3253             height is more or less than the preferred one, as long as AutoSize
3254             is on
3255         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3256
3257 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3258
3259         * Control.cs:
3260           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3261             call unless both performLayout is true *and* we have a pending
3262             layout change
3263           - ResumeLayout: MS does not completely nest Suspend and Resume,
3264             they bottom out at 0, fixed our code to match that.
3265           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3266             SetBoundsCore, we were updating even when we shouldn't. This fixes
3267             swf-anchors mis-anchoring when resizing the app fast and lots.
3268           - UpdateDistances: Now only setting the left and top distance if 
3269             we have a parent and are not suspended, this is based on
3270             a suggestion by Don Edvaldson in bug #77355.
3271           - OnVisibleChanged: Fixed logic when to create the control. We may
3272             not create the control if we have no parent or if it's not visible;
3273             switched to using Visible property instead of is_visible field 
3274             since the property also considers parent states. This fixes a bug
3275             when starting Paint.Net
3276
3277 2006-02-02  Jackson Harper  <jackson@ximian.com>
3278
3279         * Form.cs: If the forms handle hasn't been created yet don't call
3280         into xplatui to make it top most, just set the topmost flag on the
3281         form in CreateParams
3282         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3283
3284 2006-02-01  Jackson Harper  <jackson@ximian.com>
3285
3286         * ScrollableControl.cs: Refactored the Recalculate method a
3287         little, this wasn't handling all the variants of bottom and right
3288         bars needed to be added and added/removed based on their
3289         counterparts being added/removed (which changes the drawable
3290         size). Also we special case client widths and heights of 0 and
3291         don't add the scrollbar for those.
3292
3293 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3294
3295         * XplatUIX11.cs: 
3296           - Added method to get AbsoluteGeometry(); currently unused, but might
3297             be used in the future, if we try again to figure out toplevel
3298             coordinates with some more crappy window managers
3299           - Added FrameExtents() method to retrieve the WM set decoration size
3300           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3301             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3302         * Hwnd.cs: 
3303           - Added whacky_wm tracking var for metacity
3304           - Added logic to have default menu height if the actual menu height
3305             has not yet been calculated (part of fix for #77426)
3306         * Form.cs: Keep track whether client size has been set and re-set 
3307           it if a menu is added/removed afterwards (Fixes #77426)
3308
3309 2006-01-31  Jackson Harper  <jackson@ximian.com>
3310
3311         * Control.cs: When a new Site is set on the component attempt to
3312         pull the AmbientProperties from it.
3313
3314 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3315
3316         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3317           in the background of the owning form. Fixes #77332
3318
3319 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3320
3321         * MimeIcon.cs: Fix for #77409
3322
3323 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3324
3325         * XplatUIX11GTK.cs: Initial import
3326
3327 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3328
3329         * FixedSizeTextBox: fixes class signature
3330
3331 2006-01-30  Jackson Harper  <jackson@ximian.com>
3332
3333         * FixedSizeTextBox.cs: New internal class that represents a
3334         textBox that will not be scaled.
3335         * TreeView.cs:
3336         * ComboBox.cs:
3337         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3338         standard TextBox.
3339                 
3340 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3341
3342         * XplatUIX11.cs: Retrieve default screen number instead of
3343           assuming 0. Attempted fix for #77318
3344
3345 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3346
3347         * XplatUIWin32.cs: 
3348           - GetWindowPos: When a window is parented by FosterParent, use 
3349             the desktop instead of FosterParent as the base to get coordinates
3350           - CreateWindow: Don't make FosterParent the parent window for Popups
3351             if we don't want a taskbar entry, Popups automatically don't get one
3352         * Hwnd.cs: Need to call remove to actually remove the key from the
3353           hash table
3354
3355 2006-01-30  Mike Kestner  <mkestner@novell.com>
3356
3357         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3358
3359 2006-01-30  Jackson Harper  <jackson@ximian.com>
3360
3361         * TreeView.cs:
3362         * TreeNode.cs: Raise events no matter how the treenode is
3363         checked. Patch by Don Edvalson.
3364
3365 2006-01-30  Jackson Harper  <jackson@ximian.com>
3366
3367         * TreeNode.cs: Signature fix.
3368
3369 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3370
3371         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3372
3373 2006-01-20  Mike Kestner  <mkestner@novell.com>
3374
3375         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3376         event forwarding when menus are active.
3377         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3378         Most of the patch is pdb's with a little rework.
3379
3380 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3381
3382         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3383           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3384           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3385         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3386         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3387           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3388           the PaintWindowDecorations method
3389         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3390         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3391         * MenuAPI.cs: Made tracker window invisible
3392         * XplatUIWin32.cs:
3393           - Removed GetMenuDC and ReleaseMenuDC methods
3394           - Implemented the client=false path for PaintEventStart and
3395             PaintEventEnd
3396
3397 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3398
3399         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3400         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3401           styles
3402         * Form.cs: 
3403           - MaximizeBox, MinimizeBox: Recreate the handle when setting
3404             the style
3405           - CreateParams: Reworked the styles to match MS look'n'feel,
3406             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3407             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3408
3409 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3410
3411         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
3412           window is not mapped, since otherwise every form that's being 
3413           created is considered minimized, which is wrong.
3414         * Form.cs: Catching the exception and returning our internal value
3415           instead
3416
3417 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3418
3419         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3420           SetWindowMinMax() to have means to tell the driver about the minimum,
3421           maximum and maximized state window sizes. (Part of the fix for #76485)
3422         * Form.cs:
3423           - Implemented tracking of minimum and maximum window size, now calling
3424             new SetWindowMinMax() driver method to tell the driver (Part of the
3425             fix for #76485)
3426           - Finished handling of WM_GETMINMAXINFO method, now setting all values
3427             (Completes fix for #76485)
3428           - Calling new SetWindowMinMax driver method when the handle for a 
3429             form is created, to make sure the driver knows about it even if
3430             the values have been set before the window was created
3431           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3432             to avoid messing up our anchoring calculations (partial fix
3433             for #77355)
3434         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3435         * XplatUIX11.cs:
3436           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3437           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
3438             (and presumably other freedesktop.org compliant WMs). Left the
3439             assumption unmapped=minimized, needed for SetVisible to work.
3440           - Now setting the window state when creating windows
3441           - Fixed SetVisible to consider/set the window state when mapping
3442             a Form. We cannot set the state before it's mapped, and we cannot
3443             use Form.WindowState once it's mapped (since it would ask the
3444             driver and get 'normal'. Therefore, we grab the state before
3445             mapping, map, and then set state.
3446           - Implmemented SetWindowMinMax method; Metacity does not seem to
3447             honor the ZoomHints, though.
3448         * XplatUIWin32.cs:
3449           - Removed MINMAXINFO (moved to XplatUIStructs)
3450           - Added SetWindowMinMax stub (on Win32 the only way to set that
3451             information is in response to the WM_GETMINMAXINFO message, which
3452             is handled in Form.cs)
3453           - Added logic to SetVisible to set the proper window state when a 
3454             form is made visible (fixes #75720)
3455
3456 2006-01-26  Jackson Harper  <jackson@ximian.com>
3457
3458         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3459         same way we handle them with Invoke.
3460
3461 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
3462
3463         * Form.cs:
3464           - Added tracking of window state so CreateParams can return
3465             the appropriate style
3466           - Moved setting of WS_CAPTION style in CreateParams to allow
3467             styles without caption
3468         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3469           control if the TextBox property is accessed. Fixes #77345
3470         * Control.cs:
3471           - get_Created: now uses is_disposed and is_created to determine
3472             return value (suggested by Jackson)
3473           - CreateHandle: No longer exits if the handle is being recreated
3474           - RecreateHandle: If the handle is not yet created call the 
3475             appropriate method to create either control or handle. If the
3476             control is already created CreateHandle will simply exit instead
3477             of just creating the handle
3478         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3479           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3480           is called.
3481         * XplatUIX11.cs: 
3482           - When DestroyWindow is called, instead of waiting for the 
3483             DestroyNotification from X11, we directly post it to the WndProc
3484             and immediately dispose the hwnd object.
3485             Same applies to DestroyChildWindows, and this obsoletes the
3486             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3487             child windows before our own, to avoid X11 errors.
3488           - Removed the direct sending of WM_PAINT on UpdateWindow
3489         * XplatUIWin32.cs:
3490           - Reworked DoEvents and GetMessage to allow access to internal queue
3491             even when trying non-blocking access to the queue.  Fixes #77335. 
3492             Based on a patch suggestion by Don Edvalson. The new private
3493             GetMessage can now also be used as a backend for a PeekMessage
3494             frontend version.
3495         * XplatUI.cs: Improved debug output for CreateWindow
3496
3497 2006-01-25  Jackson Harper  <jackson@ximian.com>
3498
3499         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3500
3501 2006-01-24  Jackson Harper  <jackson@ximian.com>
3502
3503         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3504         when we have a MaxDropItems lower then the selected index.
3505
3506 2006-01-24  Jackson Harper  <jackson@ximian.com>
3507
3508         * Control.cs: Don't allow selection of non visible controls, allow
3509         selection of controls without parents.
3510
3511 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3512
3513         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3514         * DataGridDrawingLogic.cs: Add editing row only when is necessary
3515
3516 2006-01-23  Jackson Harper  <jackson@ximian.com>
3517
3518         * UpDownBase.cs: Make the textbox handle all the selection and
3519         tabbing. This fixes tabing to updown controls.
3520
3521 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3522
3523         * TextBoxBase.cs: fixes exception thown the object was null
3524
3525 2006-01-23  Jackson Harper  <jackson@ximian.com>
3526
3527         * ButtonBase.cs: Just use the base CreateParams. They set
3528         visibility and enabled correctly.
3529         * ComboBox.cs:
3530         * TrackBar.cs:
3531         * MonthCalendar.cs: Lets let the base set as much of the
3532         createparams as possible so we don't have duplicate code all over
3533         the place.
3534
3535 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
3536
3537         * ThemeGtk.cs: Added TrackBar and some experimental code to
3538           get double buffering back
3539
3540 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3541
3542         * DataGrid.cs: Allows row number set internally higher than the last
3543         when creating a new row. Restores the editing functionality.
3544
3545 2006-01-20  Mike Kestner  <mkestner@novell.com>
3546
3547         * MimeIcon.cs: delay Image creation until the icons are accessed
3548         instead of creating 190 scaled images on GnomeHandler startup.
3549
3550 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
3551
3552         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3553           first call base before processing the event. Fixes #77279
3554
3555 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
3556
3557         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3558           that the stride for the GDI bitmap would match the stride of
3559           a DIB or a Cursor.
3560
3561 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
3562
3563         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3564
3565 2006-01-19  Jackson Harper  <jackson@ximian.com>
3566
3567         * ComboBox.cs: Hookup the text controls keydown event so we get
3568         those when the text control has the focus.
3569
3570 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3571
3572         * Label.cs: Now using the base events instead of defining new ones;
3573           this allows us to just call the base properties without having to
3574           duplicate all base property logic 
3575
3576 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3577
3578         * Label.cs: A label by default is not a tabstop (Fixes one of our
3579           failing nunit tests)
3580
3581 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3582
3583         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3584         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3585
3586 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3587
3588         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3589           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3590           This fixes #77218
3591         * XplatUIWin32.cs: 
3592           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3593             constructor creates images that can't be saved. Part of the fix
3594             for #76103
3595           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3596           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3597             bug fix for handling window state in forms properly)
3598
3599 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3600
3601         * ThemeGtk.cs: Simplify ScrollBar drawing
3602
3603 2006-01-18  Jackson Harper  <jackson@ximian.com>
3604
3605         * Splitter.cs: Set the default dock style for the splitter control
3606         in the constructor.
3607
3608 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3609
3610         * ThemeGtk.cs: Corrected StateType and ShadowType for
3611           gtk_paint_box
3612
3613 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3614
3615         * Control.cs: Make use of Theme.DoubleBufferingSupported
3616         * ThemeGtk.cs:
3617           - Added drawing for flat style buttons
3618           - Added ScrollBar drawing
3619
3620 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3621
3622         * ThemeClearlooks.cs: Removed some unneeded code.
3623         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3624
3625 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3626
3627         * LinkLabel.cs: We need to update the hover drawing when
3628           leaving the control as well.
3629
3630 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3631
3632         * DataGrid.cs: Clicking on non empty areas in the columns
3633            area was giving an exception
3634
3635 2006-01-17  Jackson Harper  <jackson@ximian.com>
3636
3637         * ThemeWin32Classic.cs:
3638         * ListView.cs: Do not draw/clip the headers when the header style
3639         is None.
3640
3641 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3642
3643         * DataGrid.cs: Fixes 77260
3644         
3645 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3646
3647         * DataGrid.cs: Clicking on a column on a empty grid was giving
3648           an exception
3649
3650 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3651
3652         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3653           or any keypress will crash the grid.
3654
3655 2006-01-17  Mike Kestner  <mkestner@novell.com>
3656
3657         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3658         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3659         invisible/previously-visible items.
3660         [Fixes #76909]
3661
3662 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3663
3664         * ThemeClearlooks.cs:
3665         - Added CL_Draw_Button method; now other theme controls that are 
3666           not derived from button or do not have a button can draw buttons
3667           too
3668         - Updated ComboBox drawing
3669         - Beautified RadioButton drawing
3670         - Corrected drawing of bottom and left tabs
3671         - Beautified DateTimePicker and MonthCalendar
3672         - Added CPDrawButton and CPDrawRadioButton
3673
3674 2006-01-16  Jackson Harper  <jackson@ximian.com>
3675
3676         * ComboBox.cs: Set the initial value of the scrollbar to the
3677         current index. Reduce the numbers of refreshs and IndexOfs called.
3678
3679 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3680
3681         * FileDialog.cs: When the file listview is focused hitting the
3682           backspace key moves the fileview to the parent directory
3683
3684 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3685
3686         * Form.cs: 
3687           - Added RecreateHandle call when changing taskbar visibility to 
3688             trigger reparenting in Win32 driver (Fixes #75719)
3689           - If a window has minimize or maximize buttons, it cannot have
3690             a help button
3691         * XplatUIWin32.cs:
3692           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3693             the toplevel form with FosterParent (A toolwindow not on the
3694             taskbar) (Fixes #75719)
3695           - Made FosterParent a toolwindow
3696
3697 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3698
3699         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3700
3701 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3702
3703         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3704           is currently over that control, make sure that tooltip_window.Text
3705           gets updated
3706
3707 2006-01-13  Mike Kestner  <mkestner@novell.com>
3708
3709         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3710
3711 2006-01-13  Jackson Harper  <jackson@ximian.com>
3712
3713         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3714         value passed.  Also redraw the selected node when we recieve
3715         focus, so tabbing between trees works correctly.
3716
3717 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3718
3719         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3720           ~/.gconf/%gconf-tree.xml, so use
3721           .gconf/desktop/gnome/interface/%gconf.xml
3722
3723 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3724
3725         * TextControl.cs: Draw text in gray if control is disabled
3726
3727 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3728
3729         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3730           make sure it's always visible. Fixes #76680.
3731
3732 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3733
3734         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3735
3736 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3737
3738         * PageSetupDialog.cs: Added.
3739         * PrintDialog.cs: Attributes.
3740         * PrintPreviewControl.cs: Updates.
3741         * PrintPreviewDialog.cs: Updates.
3742         
3743 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3744
3745         * Control.cs: Undid my selection check fix, since it's not needed
3746         * TextBoxBase.cs:
3747           - Now considering the presence of hscroll/vscroll when sizing
3748             vscroll/hscroll respectively. Fixed bug #77077
3749           - Added Left/Up/Down/Right to IsInputKey list to prevent
3750             ContainerControl from stealing them. This fixes what I broke
3751             with my last checkin.
3752
3753 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3754
3755         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3756           I finally understand how the property can be set without a setter :-)
3757
3758 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3759
3760         * Application.cs:
3761           - Switched RunLoop to use static Message.Create to create a 
3762             Message object
3763           - Added PreProcessMessage call in runloop for keyboard events; this
3764             is part of the fix for #77219, I overlooked this originally in the
3765             MSDN doc for PreProcessMessage
3766         * Control.cs:
3767           - Removed call to PreProcessMessage from handling of keyboard 
3768             messages; it's supposed to be done in the message pump
3769           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3770             per MSDN documentation.
3771           - IsInputChar: All chars are input chars by default; removed the 
3772             parent calling chain, MS does not document that
3773           - PreProcessMessage: If IsInputChar is true, we want to return false
3774             to allow dispatching of the message
3775           - When selecting the next control, now also check that we're not
3776             selecting ourselves again and therefore return a false positive.
3777         * TextBoxBase.cs:
3778           - Tried to match return values for IsInputKey and ProcessDialogKey
3779             to what MS returns; moved processing of our special keys outside
3780             ProcessDialogKey since MS does not seem to return true on those.
3781           - Moved code that previously was in ProcessDialogKey into new private
3782             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3783           - Reworked handling of WM_CHAR to not have to duplicate code from
3784             Control.cs anymore, instead we simply call down to base.
3785            
3786 2006-01-12  Jackson Harper  <jackson@ximian.com>
3787
3788         * ComboBox.cs: We always need to refresh the text area when
3789         EndUpdate is called. Fixes the combobox in the file dialog.
3790         * Control.cs: Don't create the creator_thread until the controls
3791         handle is created.  Also in InvokeRequired we check if the
3792         creator_thread is null. This gives the effect of InvokeRequired
3793         returning true if the controls handle is not created yet, and
3794         matches MS.
3795
3796 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3797
3798         * XplatUI.cs:
3799           - Added StartLoop() driver method. This is used to allow drivers to
3800             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3801             loop for a particular thread
3802           - Added EndLoop() driver method. This is called once the message
3803             pump for the thread is shut down
3804           - Added SupportsTransparency method to allow the driver to indicate
3805             opacity support for windows
3806         * Form.cs:
3807           - Removed TODO attribute, completed AllowTransparency property
3808           - Added documented logic to Opacity
3809         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3810           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3811           versions of CompatibleTextRendering
3812         * X11Structs.cs: Added opacity atom to our atom enumeration
3813         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3814           of a form might be set before it's reparented by the WM, and we need
3815           the opacity value without calling up to Form)
3816         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3817           SupportsTransparency() driver methods
3818         * Application.cs: Now calling StartLoop and EndLoop driver methods
3819         * XplatUIX11.cs:
3820           - Added opacity atom registration
3821           - Added StartLoop()/EndLoop() methods. They're empty right now but
3822             will need to get implemented when we switch to a per-thread queue
3823           - Implemented SupportsTransparency() method
3824           - Implemented SetWindowTransparency() method
3825           - Added support for setting the opacity value when a window is
3826             reparented (since the opacity needs to be set on the WM frame)
3827         * XplatUIOSX.cs, XplatUIWin32.cs:
3828           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3829
3830 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3831
3832         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3833
3834 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3835
3836         * FileDialog.cs: Added ToolTip for MWFFileView
3837         * MimeIcon.cs: Rewrote GnomeHandler.
3838           - Get currently used gnome icon theme from
3839             ($HOME)/.gconf/%gconf-tree.xml
3840           - Make use of inherited icon themes
3841           - Support SVG icon themes like Tango via librsvg
3842
3843 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3844
3845         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3846         builds. 
3847         
3848         * Application.cs: Move the use_compatible_text_rendering outside
3849         the NET_2_0 define.  If we ever need to use the
3850         use_compatible_text_rendering on the individual controls they will
3851         access the variable from the common shared code paths.
3852
3853 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3854
3855         * XplatUI.cs:
3856           - Added more granular debug options
3857           - Added method to print both window text and id
3858           - Switched debug output to use new Window() debug method
3859           - Added IsEnabled() driver method
3860           - Added EnableWindow() driver method
3861         * Form.cs:
3862           - Removed end_modal; no longer needed, new loop handles termination
3863             via 'closing' variable
3864           - If form is modal, setting DialogResult will now initiate loop
3865             termination via 'closing' variable
3866           - Added support for is_enabled/WS_DISABLED to CreateParams
3867           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3868             does all the work
3869           - Removed code that's now in RunLoop from ShowDialog()
3870           - Added various documented sanity checks to ShowDialog()
3871           - Added handling of WM_DESTROY message; we set 'closing' on getting
3872             the message to indicate the message pump to terminate
3873           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3874             send by the Application.ExitThread method. (We send the message
3875             to destroy the window after all other events have been
3876             processed through the queue, instead of destroying the handle 
3877             directly)
3878           - Moved code from Close() method to WM_CLOSE handler; added logic
3879             to only send close-related events if the form is not displayed
3880             modal
3881         * Splitter.cs (..ctor): Fixed typo in resource name
3882         * Control.cs:
3883           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3884             brush now
3885           - set_Cursor: Now only setting calling into XplatUI if the handle for
3886             the control is already created; this avoids implict handle creation
3887             or crashes if it's not created
3888           - set_Enabled: Now setting the enabled state via the new driver method
3889             instead of just tracking it
3890           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3891           - CreateControl: Reordered event firing and method calls to more
3892             closely fire events in the order MS does. Now setting the
3893             enabled state in the driver when creating the control.
3894           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3895             match MS order
3896         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3897           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3898         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3899         * Hwnd.cs:
3900           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3901           - Added EnabledHwnd property to easily allow a driver to find the
3902             handle of the first enabled window in the parent chain (this is
3903             used by drivers to pass up input events of disabled windows)
3904         * XplatUIDriver.cs: Added IsEnabled() method
3905         * Application.cs:
3906           - Removed crude and obsolete exiting tracking variable
3907           - Removed internal ModalRun(); replaced by RunLoop()
3908           - Implemented private CloseForms() method to allow closing all 
3909             windows owned by a particular (or all) threads
3910           - Exit() now properly closes all windows without forcing the message
3911             pump to quit
3912           - Removed obsolete InternalExit() method
3913           - Changed Run() methods to use new RunLoop() message pump
3914           - Implemented new RunLoop() method for both modal and non-modal forms
3915         * CommonDialog.cs:
3916           - get_CreateParams: Added setting of WS_DISABLED
3917           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3918             invoked via Form.ShowDialog()
3919         * NativeWindow.cs: We don't remove the window from the collection when
3920           the handle is destroyed; there might still be messages for it in the
3921           queue (mainly the resulting WM_DESTROY); instead it will be removed
3922           when Control calls InvalidateHandle in the WM_DESTROY handler
3923         * XplatUIX11.cs:
3924           - CreateWindow: Added logic to handle the WS_DISABLED window style
3925           - EnableWindow: Implemented based on Hwnd.Enabled
3926           - GetMessage: Reset PostQuitState so the method can be called again
3927           - Implemented support for disabled windows (passing messages to the
3928             first enabled parent) in handling all input messages
3929           - Added optimizations for handling Expose events
3930           - Implemeted new driver method IsEnabled()
3931           - Now always resetting paint pending tracking vars when we start paint
3932           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3933         * XplatUIOSX.cs: Added IsEnabled method stub
3934         * XplatUIWin32.cs: Implemented new IsEnabled() method
3935
3936 2006-01-11  Jackson Harper  <jackson@ximian.com>
3937
3938         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3939         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3940         variables a little.
3941         * ColorDialog.cs: Clear out the old form before adding the new
3942         panel.  
3943
3944 2006-01-11  Jackson Harper  <jackson@ximian.com>
3945
3946         * X11Dnd.cs: Make sure to add all the text formats when adding
3947         strings to the data object.
3948         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3949         do some redrawing too.  Also change the UpdateNode to an
3950         UpdateBelow so the newly added node gets painted.
3951         
3952 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3953
3954         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3955         LinkLabel.cs, PropertyGrid.cs: Implement the
3956         UseCompatibleTextRendering property for 2.x
3957
3958         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3959
3960 2006-01-11  Jackson Harper  <jackson@ximian.com>
3961
3962         * TreeView.cs: Use the property for setting the selected node so
3963         the correct events get raised.
3964         * TreeNode.cs: Update the tree when the fore/back colours of a
3965         node are set.
3966
3967 2006-01-10  Jackson Harper  <jackson@ximian.com>
3968
3969         * TreeView.cs: Allow setting SelectedNode to null.
3970
3971 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3972
3973         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3974
3975 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3976
3977         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3978
3979 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3980
3981         * PrintDialog.cs: Added attributes and set default property values.
3982
3983 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3984
3985         * PrintControllerWithStatusDialog.cs: 
3986         Added PrintControllerWithStatusDialog.
3987
3988 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3989
3990         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3991         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3992
3993 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3994
3995         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3996
3997 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
3998
3999         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
4000         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
4001
4002 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4003
4004         * MimeIcon.cs: Added internal class SVGUtil.
4005
4006 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
4007
4008         * FileDialog.cs: Don't crash if there are two files with the
4009           same name but different locations.
4010
4011 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
4012
4013         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
4014         dates across multiple month grids. Used to not highlight entire 
4015         month, but does now.
4016         
4017 2006-01-06  Jackson Harper  <jackson@ximian.com>
4018
4019         * MonthCalendar.cs: Removed DoEvents call to prevent a running
4020         message loop. Change timer intervals to numbers that seem more
4021         natural.
4022
4023 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
4024
4025         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
4026           object for location info since screen object is now implemented.
4027
4028 2006-01-05  Jackson Harper  <jackson@ximian.com>
4029
4030         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
4031         * AsyncMethodResult.cs: We no longer use a WeakReference for the
4032         AsyncMethodResult, this is because we ALWAYS want the
4033         ManualResetEvent to get set.
4034         * Control.cs: When disposing use an async invoke to call shutdown
4035         code, so that thigns don't block on the finalizer thread.  Also
4036         check if we even have a message loop before trying to send
4037         messages, if we don't then don't bother sending messages.
4038         - No more weak references for async methods
4039         * XplatUIDriver.cs: No more weak references for async methods.
4040
4041 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4042
4043         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
4044           returns two FontFamily with the same name
4045
4046 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4047
4048         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
4049           drawing disabled text. Instead using the ColorGrayText color
4050
4051 2006-01-04  Jackson Harper  <jackson@ximian.com>
4052
4053         * TreeNode.cs: redraw the node when its image index is changed.
4054
4055 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4056
4057         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
4058           time I checked there are no others like it.
4059
4060 2006-01-04  Jackson Harper  <jackson@ximian.com>
4061
4062         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
4063         this gives the behavoir I was looking for.
4064         * Control.cs: Special case Invoking EventHandlers, this matches MS
4065         and fixes part of bug #76326.
4066
4067 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4068
4069         * ThemeClearlooks.cs, FileDialog.cs:
4070           - Reflect the latest Theme class changes
4071           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
4072             with DateTime
4073             
4074 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4075
4076         * Theme.cs: Cache UI resource images and resize them if needed
4077
4078 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4079
4080         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
4081           is called. This fixes the crash in Nexxia when setting the font
4082           attributes in the chat. [However, RTF needs a look-over to make sure
4083           that all SelectionXXX methods handle the special case that selection
4084           is empty and therefore the change must be applied to all text starting
4085           at the cursor/selection start]
4086
4087 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
4088
4089         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4090           XplatUIOSX.cs: Added SendMessage and PostMessage methods
4091         * X11Keyboard.cs: Switched to new way of calling PostMessage
4092
4093 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4094
4095         * Theme.cs: Added theme interface for images to allow the theme to
4096           control what images are used for things like FileDialog, MessageBox
4097           icons, etc.
4098         * MessageBox.cs: Now uses the new Theme icon/image interfaces
4099
4100 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
4101
4102         * FileDialog.cs:
4103           - Removed some dead code
4104           - Opening a recently used file does work now
4105           - Small UI enhancements
4106           - Refactoring
4107
4108 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4109
4110         * FileDialog.cs: Forgot too add __MonoCS__
4111
4112 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4113
4114         * FileDialog.cs: We are able to read recently used files now let's
4115           go on and write them.
4116
4117 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
4118
4119         * FileDialog.cs: Breathe some life into "last open"/"recently used"
4120           button
4121         * MimeIcon.cs: Do a check for the top level media type also
4122
4123 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4124
4125         * ThemeClearlooks.cs:
4126           - Added CPDrawStringDisabled
4127           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
4128             some chars if the text doesn't fit into text_rect
4129           - DrawListViewItem: If View = View.LargeIcon center the image;
4130             rewrote the drawing of ListViewItem.Text if View = 
4131             View.LargeIcon
4132
4133 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4134
4135         * MimeIcon.cs: Use default KDE icon theme if there is no
4136           "48x48" directory for the current icon theme, fixes #77114
4137         * Mime.cs: Disable not working and actually not used code. 
4138         * ThemeWin32Classic.cs:
4139           - Replace "new SolidBrush" in GetControlBackBrush and
4140             GetControlForeBrush with ResPool.GetSolidBrush
4141           - Changed DrawListViewItem from private to protected virtual
4142         * FileDialog.cs:
4143           - Added form.MaximizeBox = true
4144           - Don't throw an exception if there is a broken symbolic link
4145
4146 2005-12-23  Jackson Harper  <jackson@ximian.com>
4147
4148         * TabControl.cs: Give the panels focus, keyboard navigation is
4149         fixed so this works correctly now.
4150         - We need these key events also.
4151         * ToolBar.cs: Remove some of the poor mans double buffering.
4152         
4153 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4154
4155         * ComboBox.cs: The internal TextBox now returns the focus.
4156
4157 2005-12-23  Jackson Harper  <jackson@ximian.com>
4158
4159         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4160
4161 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4162
4163         * Control.cs: Removed debug code
4164         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
4165           implicit children
4166
4167 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
4168
4169         * Control.cs: When creating the control, update the Z-order after
4170           all it's children are created, too. (Fixes nexxia not showing
4171           picturebox bug)
4172
4173 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4174
4175         * Control.cs: Do not update the anchoring distances if layout is
4176           suspended, instead do it once layout is resumed
4177
4178 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
4179
4180         * Control.cs: 
4181           - After many hours of debugging, for both Jackson and
4182             myself, it turns out that it helps to set the parent of a control
4183             if you want to actually see it onscreen. In the spirit of that
4184             discovery, we're now setting the parent of the control and
4185             it's children when the control's handle is created. This fix
4186             will make Lutz Roeder's Reflector run happily. 
4187           - now just creating the handle instead of the whole control when
4188             getting a graphics context for the control.
4189
4190 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4191
4192         * ScrollableControl.cs: When calculating the canvas, don't consider
4193           the scrollbar widths. Instead, predict if horizontal scrollbar
4194           will affect canvas when deciding on vertical display and vice versa.
4195
4196 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4197
4198         * RichTextBox.cs: Set default RTF font for documents that don't
4199           have a font table (Fixes #77076)
4200
4201 2005-12-22  Jackson Harper  <jackson@ximian.com>
4202
4203         * TextBoxBase.cs: It's difficult to do, but you can have an empty
4204         clipboard. This prevents a NullRef in that case.
4205         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
4206         clipboard. PRIMARY is for the currently selected text only. (We
4207         should implement PRIMARY at some point.
4208
4209 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4210
4211         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
4212           a Unicode function with a structure that was defined in Ansi way.
4213           This fixes #76942.
4214
4215 2005-12-21  Jackson Harper  <jackson@ximian.com>
4216
4217         * StatusBar.cs: Statusbar handles its fore/back colours on it's
4218         on. Because thats how it rolls. (and this avoids it using ambient
4219         colours).
4220         * ThemeWin32Classic.cs: Use the proper back color for filling.
4221         * Menu.cs: Use the system menu bar color for drawing menu
4222         bars. Using the window back color will bring ambient colours into
4223         the picture.
4224
4225 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
4226
4227         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
4228           Bitmaps were created and not disposed.
4229
4230 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4231
4232         * Control.cs (CreateControl): Don't do anything if the control is
4233           already created, otherwise we'd fire the OnCreated event more than
4234           once
4235
4236 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4237
4238         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
4239           will always match. Instead return -1. Fixes #76464.
4240
4241 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4242
4243         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
4244           neither the beginning nor the end of the line (Fixes bug #76479)
4245
4246 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4247
4248         * Control.cs:
4249           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4250             where handle is invalid
4251           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4252             instead of slower linear search
4253         * NativeWindow.cs: Don't remove the window from the hashtable until
4254           after the driver has destroyed it (since the driver might use
4255           Control.FromHandle to lookup the control object
4256         * Hwnd.cs: Added DestroyPending property to track if a window is 
4257           already destroyed as far as the driver is concerned and only hasn't
4258           yet notified the control
4259         * XplatUIX11.cs:
4260           - Activate(): Check if the window is still valid before using the 
4261             handle
4262           - Implemented DestroyChildWindow() method to mark child windows as
4263             destroyed when a window is destroyed. This prevents situations 
4264             where we might call an X method based on queued events for a
4265             window that already has been destroyed but we haven't yet pulled
4266             the destroy method from the queue.
4267           - Added a call to the new DestroyChildWindow() method to the drivers
4268             DestroyWindow code. Also now marking the destroyed window itself
4269             as pending
4270
4271 2005-12-20  Jackson Harper  <jackson@ximian.com>
4272
4273         * StatusBar.cs:
4274         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4275         anymore. Just do them when needed, also track the rects of panels
4276         so that we can optimize refreshing more in the future.
4277
4278 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4279
4280         * ColorDialog.cs: Fixed focus drawing in small color controls
4281
4282 2005-12-19  Jackson Harper  <jackson@ximian.com>
4283
4284         * InternalWindowManager.cs:
4285         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4286         moving windows works properly.
4287
4288 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4289
4290         * Control.cs: 
4291           - Removed call to InitLayout() from SetBoundsCore(); doc says
4292             it's only called when a control is added to a container
4293           - Split InitLayout logic, moved to separate UpdateDistances() method
4294             since we need to perform those calculations more often than just
4295             when adding the control to a container. (Needed to fix #77022)
4296           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4297           - Reduced the OnBindingContextChanged events count, don't send them
4298             unless the control is created, we still aren't totally matching
4299             MS, but I can't quite figure out some of their rules
4300
4301 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4302
4303         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4304           stripes
4305
4306 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4307
4308         * ThemeClearlooks.cs:
4309           - Updated ProgressBar drawing
4310           - Corrected drawing of ScrollBars and scroll buttons
4311           - Some temporary fixes for minor pixel artefacts
4312
4313 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4314
4315         * Control.cs:
4316           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4317             cause events to be sent in the same order as MS does.
4318           - Added ChangeParent() method to trigger various OnXXXChanged events
4319             that need to be fired when a parent changes (This is a reworking
4320             of the patch from r54254, with the X11 errors fixed)
4321           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4322             since on MS we get OnLayoutChanged events when calling Clear()
4323           - Changed Enabled property to consider parent state as well, if a
4324             parent is not enabled, the control will not be either
4325           - Changed Parent property to simply call Controls.Add() since that
4326             now does all the work required, this way we avoid code duplication
4327           - Threw in a few OnBindingsContextChanged calls to try and match
4328             when MS sends them. We seem to send a few too many, though.
4329           - Added call to CreateControl when adding the control to a parent.
4330             We were never calling CreateControl. Still needs some work, in
4331             some places we treat HandleCreated and ControlCreated as equal, 
4332             which is wrong
4333           - Removed obsolete commented out code from UpdateZOrder()
4334
4335 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4336
4337         * ThemeClearlooks.cs: Updated TrackBar drawing.
4338
4339 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4340
4341         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4342
4343 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4344
4345         * FileDialog.cs: Add the Help button and the open readonly
4346           checkbox only if needed
4347
4348 2005-12-16  Jackson Harper  <jackson@ximian.com>
4349
4350         * Control.cs: Make sure we have an active menu before trying to
4351         process commands on it. Prevents menu-less forms from crashing
4352         when Alt is pressed.
4353         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4354         Dieter Bremes.
4355         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4356         2.0 build.
4357
4358 2005-12-16  Jackson Harper  <jackson@ximian.com>
4359
4360         * InternalWindowManager.cs: Don't translate tool windows screen
4361         coordinates. This fixes windows 'bouncing' around when being moved.
4362
4363 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4364
4365         * TextBoxBase.cs:
4366           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4367             not quite MS compatible, MS uses that number only for single line
4368             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4369             the limit at 2GB)
4370           - Now enforcing the MaxLength limit when entering characters
4371           - Added argument to internal Paste() method to track if it's called
4372             from programatically or via keyboard, since keyboard driven pastes
4373             need to enforce max-length
4374           - Added logic to Paste to only paste as many chars as MaxLength 
4375             allows
4376         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4377         * TextControl.cs:
4378           - Added Length property to return number of characters in document
4379           - Added private CharCount property which only tracks actual chars
4380             in the document (no linefeeds) and fires event when CharCount
4381             changes
4382           - Added tracking of character count to all methods that alter it
4383           - Added LengthChanged event to allow applications to subscribe
4384             to any changes to the document
4385
4386 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4387
4388         * TextBox.cs: 
4389           - Removed local password_char field (moved to TextBoxBase)
4390           - Now setting the document's password var when password is
4391             set
4392         * TextBoxBase.cs:
4393           - Added password_char field (needed here so MultiLine can
4394             access it)
4395           - Added logic to MultiLine property setter to set the document's
4396             variable when password display is allowed
4397           - Removed debug code and made some debug code conditional
4398         * TextControl.cs:
4399           - Added RecalculatePasswordLine() method to handle special password
4400             char only lines
4401           - Added PasswordChar property, also added related tracking vars
4402           - Draw() method now uses local text var for grabbing text to draw,
4403             this var is set to line.text unless we're doing password display,
4404             then it is set to the pre-generated all-password-chars line
4405           - Added calling RecalculatePasswordLine() method for password lines
4406
4407 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4408
4409         * Hwnd.cs: 
4410           - Added Reparented property to allow tracking of Window Manager
4411             reparenting actions (which affect X/Y calculations of toplevel 
4412             windows)
4413           - Made ToString() print window handles in hex
4414         * XplatUIX11.cs:
4415           - AddConfigureNotify(): Now uses reparented state off Hwnd to
4416             determine if X/Y needs offsetting
4417           - AddConfigureNotify(): Fixed offset calculations
4418           - Now adds ReparentNotify messages into the queue
4419           - Now processes ReparentNotify messages and causes a 
4420             WM_WINDOWPOSCHANGED message to be sent upstream if a window
4421             is reparented (as most likely it's X/Y coordinates are changed
4422             due to that)
4423
4424 2005-12-14  Jackson Harper  <jackson@ximian.com>
4425
4426         * XplatUIX11.cs: Tool windows still need to respek focus.
4427
4428 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4429
4430         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4431           have a working release
4432
4433 2005-12-13  Jackson Harper  <jackson@ximian.com>
4434
4435         * Form.cs: Update styles after setting the border style regardless
4436         of whether or not the window is using a window manager.
4437
4438 2005-12-13  Jackson Harper  <jackson@ximian.com>
4439
4440         * Form.cs: We now hook into an internal window manager instead of just an
4441         MDI subsystem, this is so we can have properly behaving tool windows.
4442         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4443         * InternalWindowManager.cs: New internal class that acts as a
4444         window manager for tool windows and as a base for mdi windows.
4445         * MdiWindowManager.cs: New class that acts as a window manager for
4446         mdi windows.
4447
4448 2005-12-12  Jackson Harper  <jackson@ximian.com>
4449
4450         * Control.cs: Updates so we match behavoir for for implicit
4451         controls. Fixes explosions in MDI.
4452
4453 2005-12-12  Jackson Harper  <jackson@ximian.com>
4454
4455         * Control.cs: Implement Invalidate (Region).
4456
4457 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
4458
4459         * Control.cs: 
4460           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
4461             the same events as MS does. MS fires events for each property 
4462             except, for unknown reasons, Cursor, when the control is reparented. 
4463             I can't seem to totally match add/remove since MS also fires some 
4464             VisibleChanged events, which makes no sense. Consolidated the
4465             parenting code into a separate method so it can be called from
4466             both Add and Remove. set_Parent no longer needs any special logic
4467             as it calls the parent's add method which implicitly fires
4468             all events
4469           - Removed some obsolete code and debug output
4470           - Enabled state is inherited from parents, if this is enabled
4471
4472 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4473
4474         * Form.cs: Removed commented out code
4475
4476 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4477
4478         * Control.cs:
4479           - Added internal version of Invoke, with additional argument 
4480             indicating if we're calling it from a Dispose() handler. That
4481             way we can avoid BeginInvoke throwing an exception if we're
4482             calling for an already destroyed window.
4483           - Added a dispose argument to BeginInvokeInternal, and made the
4484             check if a valid window handle chain exists conditional on
4485             it not being a dispose call
4486           - Removed code in DestroyHandle to destroy our children. Since we
4487             now handle the WM_DESTROY message we will catch all our children
4488             being destroyed.
4489           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4490         * Form.cs:
4491           - Added a field to track the application context of the form.
4492           - No need to set closing variable as response to WM_CLOSE, instead
4493             we destroy the window. We also call PostQuitMessage if the form
4494             has an application context (which makes it the main app form,
4495             which, when closed terminates the app)
4496         * XplatUI.cs:
4497           - Dropped Exit() method, it's naming was confusing
4498           - Added PostQuitMessage() which causes GetMessage to return false
4499             once the message queue is empty
4500         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4501           PostQuitMessage()
4502         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4503           no longer a valid XplatUI method, but left it in since it's used
4504           internally. Added empty PostQuitMessage() method.
4505         * MenuAPI.cs: Replaced call to Exit() with call to
4506           PostQuitMessage, even though this is probably no longer needed.
4507         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4508         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4509         * Application.cs:
4510           - Replaced call to XplatUI.Exit() with PostQuitMessage()
4511           - Removed old debug code that would call XplatUI for exception
4512             display, enabled standard exception handling (Still not enabled
4513             though, until NativeWindow's ExternalExceptionHandler define
4514             is removed
4515         * NativeWindow.cs:
4516           - Added internal method to allow control to update NativeWindow
4517             after a window has been destroyed
4518           - Added handling of already destroyed windows when calling i
4519             DestroyWindow
4520           - Added removal of handle from list on ReleaseHandle
4521         * XplatUIX11.cs:
4522           - Dropped GetMessageResult var and related code
4523           - Added PostQuitState to field to track if PostQuitMessage has been
4524             called
4525           - Dropped Exit() method
4526           - Added PostQuitMessage() method
4527           - GetMessage now will return false if PostQuitState is set and no
4528             more messages are in the queue.
4529           - Expose handler will no longer generate WM_PAINT messages if we are
4530             in PostQuitState since it's very likely any windows have already
4531             been destroyed, and since Hwnd won't get updated until we have
4532             processed the DestroyNotify we'd be causing X errors.
4533         
4534 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4535
4536         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4537           Thanks to Mike for pointing out the err of my ways.
4538
4539 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4540
4541         * Control.cs(PreProcessMessage): Moved menu handling back, but
4542           after all other key handling, to match MS (who handles Menu in
4543           DefWndProc)
4544         * Menu.cs (WndProc): Removed my brainfart
4545
4546 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4547
4548         * Control.cs(PreProcessMessage): Removed special menu handling 
4549         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4550
4551 2005-12-07  Mike Kestner  <mkestner@novell.com>
4552
4553         * Control.cs : special case SYSKEYUP so that we can adjust keynav
4554         state according in tracker.
4555         * Menu.cs : promote tracker field to base class and provide a tracker
4556         lookup capability.  Add/Remove shortcuts dynamically if the top menu
4557         has a tracker. Unparent items that are removed from the collection.
4558         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4559         * Theme*.cs: add always_show_hotkeys field to support configurability
4560         of mnemonic display.  win32 doesn't show mnemonics until Alt is
4561         pressed.
4562
4563 2005-12-07  Jackson Harper  <jackson@ximian.com>
4564
4565         * MdiChildContext.cs: Use Control.ResetCursor.
4566         * Control.cs: ResetCursor needs to set the property so that the
4567         correct XplatUI call gets made.
4568
4569 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4570
4571         * Control.cs: More fixes to make our key events match MS. We
4572           were not setting the modifier state on KeyData, and we were
4573           not generating any events when Alt was pressed with a key
4574           since handling of WM_SYSxxx was missing for the OnKey methods.
4575
4576 2005-12-07  Jackson Harper  <jackson@ximian.com>
4577
4578         * MdiChildContext.cs: reenable the sizing code.
4579         - When the mouse leaves a window reset its cursor.
4580
4581 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4582
4583         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4584
4585 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4586
4587         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4588           widths of Fixed3D borders
4589
4590 2005-12-07  Jackson Harper  <jackson@ximian.com>
4591
4592         * MdiClient.cs: Fix warnings. Earn Mike's love.
4593
4594 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4595
4596         * ThemeClearlooks.cs:
4597           - Adjusted mouse over button color
4598           - Added first parts of CheckBox drawing
4599           - Added correct color for selected text background
4600           - Fixed ComboBox drawing
4601           - Added CPDrawBorder3D and CPDrawBorder
4602
4603 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4604
4605         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4606
4607 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4608
4609         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4610           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4611           alert users via sound. We could add an enum arg with different
4612           types of alerts in the future
4613
4614 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4615
4616         * Control.cs: Fix behaviour problems pointed out by Mike
4617
4618 2005-12-05  Mike Kestner  <mkestner@novell.com>
4619
4620         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4621         prop setters.  Calls parent.Refresh for now, but could be maybe be
4622         optimized with an internal method on StatusBar at some point.
4623         [Fixes #76513]
4624
4625 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4626
4627         * RichTextBox.cs: Implemented get_SelectionColor
4628
4629 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4630
4631         * ThemeClearlooks.cs:
4632           - Removed dead code
4633           - Draw black button border only if button is Form.AcceptButton
4634           - Draw correct button color for pressed RadioButton if the mouse 
4635             has entered the button
4636           - Updated ProgressBar drawing!
4637           - Updated CPDrawSizeGrip drawing
4638           - Updated StatusBarPanel drawing
4639
4640 2005-12-05  Mike Kestner  <mkestner@novell.com>
4641
4642         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4643         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4644
4645 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4646
4647         * ThemeClearlooks.cs: Initial check-in, activate with
4648           export MONO_THEME=clearlooks
4649         * ThemeEngine.cs: Added ThemeClearlooks
4650
4651 2005-12-03  Mike Kestner  <mkestner@novell.com>
4652
4653         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4654         [Fixes #76897]
4655
4656 2005-12-02  Jackson Harper  <jackson@ximian.com>
4657
4658         * Form.cs: If the child form has no menu the default main menu is
4659         used as the active menu.
4660
4661 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4662
4663         * ListBox.cs: Check if any items exist before trying to resolve 
4664           coordinates into items
4665
4666 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4667
4668         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4669           as the second color for the background hatch
4670
4671 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4672
4673         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4674         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4675           sure that what we pass to FormatText is always 1-based. Fixes #76885
4676
4677 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4678
4679         * NumericUpDown.cs (EndInit): When we are done initializing,
4680         reflect any updates on the UI.
4681
4682 2005-12-02  Jackson Harper  <jackson@ximian.com>
4683
4684         * ImplicitHScrollBar.cs:
4685         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4686         their container controls.
4687         * TreeView.cs: Use the new implicit scrollbars.
4688
4689 2005-12-02  Jackson Harper  <jackson@ximian.com>
4690
4691         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4692         can play with it.
4693         * TreeNodeCollection.cs: If we remove the topnode we need to
4694         update topnode to the next node in line.
4695         - When clearing nodes go through the same process as removing
4696         them, so they get depareneted and checked if they are top node.
4697
4698 2005-12-01  Jackson Harper  <jackson@ximian.com>
4699
4700         * TreeView.cs: When imagelists are used the image area is
4701         selectable as well as the text.
4702         - If there are no selected nodes select the first one.
4703         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4704         so don't do it more then we need to.
4705
4706 2005-12-01  Jackson Harper  <jackson@ximian.com>
4707
4708         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4709         that arrows can be scaled.
4710
4711 2005-12-01  Jackson Harper  <jackson@ximian.com>
4712
4713         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4714         fail. Patch by Dieter Bremes
4715
4716 2005-11-30  Jackson Harper  <jackson@ximian.com>
4717
4718         * Form.cs: Property is 2.0 only
4719         * PrintDialog.cs: Signature fix.
4720
4721 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4722
4723         * TextControl.cs: 
4724           - No longer artificially moves text 2 pixels down (now that we have
4725             borders this is no longer needed)
4726           - Added calcs for left, hanging and right indent
4727
4728 2005-11-23  Mike Kestner  <mkestner@novell.com>
4729
4730         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4731
4732 2005-11-30  Jackson Harper  <jackson@ximian.com>
4733
4734         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4735         get cloned as part of CloneMenu ().
4736         * Menu.cs: Make sure the parent of the items get set correctly
4737         when they are added.  And the owners are notified of the changes.
4738         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4739         we can change the menu being displayed/handled by the form without
4740         changing the menu assosciated with the form.
4741         - Don't let Mdi children draw/handle menus.
4742         
4743 2005-11-30  Jackson Harper  <jackson@ximian.com>
4744
4745         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4746         a MenuChanged event. Just to make the API a little more
4747         consistent.
4748         * MainMenu.cs:
4749         * MenuItem.cs: Use the new OnMenuChanged
4750         * MdiChildContext.cs: Handle menu merging.
4751         * Form.cs: Implement MergedMenu.
4752         
4753 2005-11-30  Jackson Harper  <jackson@ximian.com>
4754
4755         * Menu.cs: We were misusing Add. Add goes behind the specified
4756         index according to the docs, and does not replace the specified
4757         index. So I added an Insert method.
4758
4759 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4760
4761         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4762           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4763           is for Jackson
4764         * RichTextBox.cs: Added calls to base for DnD events
4765
4766 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4767
4768         * TextControl.cs:
4769           - Fixed drag-selection related crash; style fixes
4770           - Implemented undo class
4771             o Implemented method to capture document state for specified
4772               range in document tree
4773             o Implemented method to restore captured document state
4774             o Implemented cursor tracking
4775             o Implemented basic undo stack
4776           - Added undo cursor tracking to methods altering cursor location
4777           - Added undo tracking to selection deletion (still missing
4778             other text-altering hookups)
4779         * RichTextBox.cs:
4780           - Added SelectionLength property
4781           - Implemented CanPaste()
4782           - Implemented Paste()
4783           - Added missing protected methods
4784           - Fixed RTF->Document conversion; now uses font index 0 and color 
4785             index 0 as the default font for the parsed text
4786           - Fixed RTF<->Document font size translation
4787           - Fixed RTF generation, now properly handles cross-tag boundaries
4788             for single line selection
4789           - No longer always appends blank line to generated RTF
4790           - Removed TODOs
4791           - Added missing attributes
4792           - Hooked up undo-related methods
4793         * TextBoxBase.cs:
4794           - Implemented Copy()
4795           - Implemented Paste()
4796           - Implemented Cut()
4797           - Fixed caret mis-behaviour on backspace across line-boundaries
4798
4799 2005-11-29  Jackson Harper  <jackson@ximian.com>
4800
4801         * MdiClient.cs: Add a method for activating mdi children. Very
4802         basic right now. I imagine someday it might need more girth.
4803         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4804         children windows names are added to the menu item.
4805         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4806         mdilist. This happens regardless of whether or not there are any
4807         mdi windows to see in the list, and according to my tests happens
4808         before the items are even added. Also happens if there isn't even
4809         an mdi client to get windows from.
4810
4811 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4812
4813         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4814         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4815
4816 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4817
4818         * DataGridTableStyle.cs:
4819           - Create always the styles for the missing columns even if they are
4820             provided by the user (not default table style)
4821         * DataGrid.cs:
4822           - Fixes bug 76770
4823           - Fixes SetDataBinding (always re-attach source)
4824           - Fixes SetNewDataSource (only clear styles if they are not for 
4825             this source)
4826          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4827             and remove properly
4828
4829 2005-11-29  Jackson Harper  <jackson@ximian.com>
4830
4831         * FileDialog.cs: Implement missing bits, remove some dead
4832         code.
4833         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4834         creation of the panel so that the options set on the dialog are
4835         seen when the panel is created.
4836         * TreeView.cs: raise a click when items are clicked.
4837         
4838 2005-11-29  Jackson Harper  <jackson@ximian.com>
4839
4840         * MdiClient.cs: Pass some signature methods through to base.
4841
4842 2005-11-28  Jackson Harper  <jackson@ximian.com>
4843
4844         * ListView.cs: Raise the click event when items are clicked.
4845
4846 2005-11-28  Jackson Harper  <jackson@ximian.com>
4847
4848         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4849         a nullref.
4850
4851 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4852
4853         * ThemeNice.cs: - Removed 1 pixel bitmaps
4854           - Use SmoothingMode.AntiAlias where it makes sense
4855             (ScrollButton arrow for example)
4856           - Enhanced Button focus drawing
4857           - Fixed ComboBox drawing (no artefacts anymore, focus
4858             rectangle is back again, reduced size of ComboButton, etc.)
4859           - Fixed RadioButton focus drawing for Appearence.Button
4860           - Slight ScrollButton redesign
4861           - Some LinearGradientBrush size fixes
4862           - GroupBoxes have now rounded edges
4863           - Fixed StatusBar drawing
4864
4865 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4866
4867         * ThemeNice.cs: - Remove dead code
4868           - use correct background colors for menus, etc.
4869           - Fake pixel drawing with 1 pixel bitmaps
4870
4871 2005-11-24  Jackson Harper  <jackson@ximian.com>
4872
4873         * MdiClient.cs: Size the scrollbars when resizing the window.
4874         - Resize the maximized windows when the client is resized
4875         * Form.cs: Make the child context available
4876         
4877 2005-11-23  Jackson Harper  <jackson@ximian.com>
4878
4879         * MdiChildContext.cs: Don't size windows if they are maximized.
4880
4881 2005-11-23  Mike Kestner  <mkestner@novell.com>
4882
4883         * ContextMenu.cs: use MenuTracker.
4884         * Control.cs: remove menu handle usage.
4885         * Form.cs: remove menu handle usage.
4886         * Hwnd.cs: remove menu handle usage.
4887         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4888         motion and clicks to the new Tracker handlers.
4889         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4890         and handle usage.
4891         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4892         Killed the MENU and MENUITEM data types and associated collections
4893         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4894         MenuTracker class that exposes the leftovers from the old MenuAPI
4895         static methods. Restructured Capture handling so that only one grab is
4896         done for the entire menu hierarchy instead of handing off grabs to
4897         submenus. Tracker now has an invisible control to Capture when active.
4898         * MenuItem.cs: add sizing accessors, kill Create
4899         and handle usage.
4900         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4901         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4902         MENU(ITEM). remove menu handle usage, use Menu directly.
4903         * XplatUIDriver.cs: remove menu handle usage.
4904         * XplatUIOSX.cs: remove menu handle usage.
4905         * XplatUIWin32.cs: remove menu handle usage.
4906         * XplatUIX11.cs: remove menu handle usage.
4907
4908 2005-11-22  Jackson Harper  <jackson@ximian.com>
4909
4910         * Hwnd.cs: Don't compute the menu size for
4911         DefaultClientRectangle.
4912         - Reenable menu sizes being computed for GetClienRectangle.
4913         * Form.cs: Remove comment of trechery
4914         
4915 2005-11-22  Jackson Harper  <jackson@ximian.com>
4916
4917         * Hwnd.cs: The adjustments for the menu bar are made when it is
4918         attached to the form.
4919
4920 2005-11-19  Jackson Harper  <jackson@ximian.com>
4921
4922         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4923         (just like on windows).
4924
4925 2005-11-19  Jackson Harper  <jackson@ximian.com>
4926
4927         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4928         use real buttons anymore because they are in non client area. The
4929         one TODO here is that I need to somehow invalidate a section of
4930         the non client area.
4931
4932 2005-11-18  Jackson Harper  <jackson@ximian.com>
4933
4934         * Control.cs: Put the enum check back in now that MDI doesnt have
4935         to use this to set border styles.
4936         * Form.cs: Only set mdi child windows borders if the handle has
4937         been created.
4938         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4939         this directly on to the driver.
4940         - Get the move start position before adjusting for the titlebar
4941         height, this fixes the windows "skipping" when they are first
4942         moved.
4943
4944 2005-11-18  Jackson Harper  <jackson@ximian.com>
4945
4946         * XplatUIX11.cs: Just compute the mdi borders separately as they
4947         don't totally match up with normal form borders.
4948
4949 2005-11-18  Jackson Harper  <jackson@ximian.com>
4950
4951         * Control.cs: Set WS_ styles for borders, so that the driver does
4952         not have to retrieve the control instance to figure out what kind
4953         of borders it should have.
4954         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4955         driver can know its an mdi child easily.
4956         * XplatUIX11.cs: Get the border styles and whether the window is
4957         MDI from the Styles and ExStyles params instead of having to get a
4958         control. This prevents a chicken and egg problem.       
4959
4960 2005-11-18  Jackson Harper  <jackson@ximian.com>
4961
4962         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4963
4964 2005-11-18  Jackson Harper  <jackson@ximian.com>
4965
4966         * MdiClient.cs: Calculate when to add and remove scrollbars
4967         correctly.
4968         * MdiChildContext.cs: Adjust the y position to take the titlebar
4969         into account.
4970         - No height for FormBorderStyle.None
4971
4972 2005-11-18  Jackson Harper  <jackson@ximian.com>
4973
4974         * Control.cs: Allow non enum values to be used for
4975         InternalBorderStyle.  MDI does this to set a special border style.
4976         - New utility methods for converting points to/from client coords
4977         - Add the newly created control to the Controls collection before
4978         updating its style. This way UpdateStyle can walk the control
4979         heirarchy to find the control if needed.
4980         so I don't need to create a new Point object all the time.
4981         * Form.cs: Let MDI windows handle their border styles.
4982         - Set styles on MDI windows so the correct title style is derived.
4983         * MdiChildContext.cs: Move all the painting and window handling
4984         into the non client area.
4985         - Use correct sizing and put correct buttons on frames based on
4986         the FormBorderStyle.
4987         - Notify the mdi client about scrolling
4988         - Need to handle the buttons ourselves now, because they are all
4989         in non client areas and we can't add controls there.
4990         * MdiClient.cs: Halfway to scrolling, this implementation is
4991         somewhat broken though, we need to check to make sure other
4992         windows aren't causing scrolling before removing the bars. Also
4993         the bars need to be drawn on top, maybe I can switch implicit
4994         controls to be on top.
4995         * Hwnd.cs: caption_height and tool_caption_height are now
4996         properties of an hwnd, this way they can be set by the driver
4997         based on the type of window they are.  In X11 the window manager
4998         handles the decorations so caption_height is zero unless its an
4999         MDI window.
5000         - Add 3 pixel borders for MDI windows (0xFFFF).
5001         - Get rid of some code duplication, have DefaultClientRectanle
5002         just call GetClientRectangle.
5003         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
5004         Hwnd now.
5005         - Set border styles differently for mdi windows.
5006         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
5007         Hwnd now.
5008         
5009 2005-11-15  Mike Kestner  <mkestner@novell.com>
5010
5011         * Menu.cs: when adding an item to the collection, if item is already 
5012         parented, remove it from the parent.
5013
5014 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
5015
5016         * X11DesktopColors.cs: Added KDE support
5017
5018 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
5019
5020         * XplatUIWin32.cs: 
5021           - Clipboard methods now can translate Rtf format
5022           - No longer removes clipboard contents whenever a new format is added
5023             to allow placing multiple formats on the clipboard
5024         * Clipboard.cs: Clipboard now supports getting a IDataObject and
5025           will place all formats contained in it onto the clipboard. Also
5026           now cleans the clipboard before placing a new object onto it
5027         * RichTextBox.cs:
5028           - Implemented set_Rtf
5029           - Implemented set_SelectedRtf
5030           - Created InsertRTFFromStream() method to allow single code base
5031             for all properties and methods that insert RTF into document
5032           - Removed debug output
5033         * TextControl.cs:
5034           - Fixed Delete(int) to fix up line numbers
5035           - Fixed ReplaceSelection to combine start and end line
5036           - Fixed serious DeleteChars bug that would leave the document tree
5037             broken
5038           - Improved DumpTree with several logic checks to detect broken
5039             document trees
5040           - Removed debug lines
5041           - Fixed Caret.WordForward/WordBack moving code, now always also 
5042             updates caret.tag (fixes crash when word-selecting across tag
5043             boundaries via keyboard)
5044           - Added Insert() method for inserting multiline text into documents
5045           - Fixed DeleteChars() calculation errors that would cause a broken
5046             tag chain with multiple tag lines
5047           - DeleteChars() no longer crashes on multi-tag lines if not all tags
5048           - Split() no longer moves caret if split is at caret location
5049           - ReplaceSelection() now updates the cursor and re-displays it
5050           - ReplaceSelection() now uses new Insert() method to avoid code
5051             duplication
5052           - FormatText() can now handle formatting partial lines
5053         * TextBoxBase.cs:
5054           - Append now uses new TextControl.Insert() method (this avoids 
5055             duplicate code)
5056           - Implemented Ctrl-X (Cut) (
5057           - Implemented Ctrl-C (Copy)
5058           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
5059             regeneration when pasting text; roundtripping Copy&Paste within
5060             edit control still fails due to some calculation bugs in GenerateRTF)
5061           - The Delete key will now remove the current selection if it is visible
5062         * TextBox.cs: Removed debug lines
5063         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
5064           driver to be initialized and can't therefore be done via a static ctor)
5065
5066 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
5067
5068         * TextControl.cs: Added backend code for finding char arrays and strings
5069         * TextBoxBase.cs:
5070           - Added mouse wheel scroll support
5071           - Added support for VScroll and HScroll events
5072         * RichTextBox.cs:
5073           - Implemented all seven Find() variants
5074           - Implemented GetCharFromPosition()
5075           - Implemented GetCharIndexFromPosition()
5076           - Implemented GetLineFromIndex()
5077           - Implemented GetPositionFromCharIndex();
5078           - Implemented SaveFile for PlainText and UnicodeText
5079           - Fixed set_Font, now setting a new font applies that font to
5080             the whole document
5081           - Implemented generic Document to RTF converter
5082           - Implemented SaveFile for RichText format (still missing unicode
5083             conversion for non-ansi chars)
5084           - Implemented get_Rtf
5085           - Implemented get_SelectedRtf
5086
5087 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
5088
5089         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
5090           to allow any captures to be released before triggering OnClick. This
5091           way a click handler may capture the mouse without interference.
5092         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
5093           This way we send them even though X may not allow a grab (if the window
5094           isn't visible, for example)
5095
5096 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
5097
5098         * DataGridViewRowEventArgs.cs: DataGridView implementation
5099         * DataGridViewElement.cs: DataGridView implementation
5100         * DataGridViewComboBoxCell.cs: DataGridView implementation
5101         * DataGridViewDataErrorContexts.cs: DataGridView implementation
5102         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
5103         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
5104         * ImageLayout.cs: DataGridView implementation
5105         * DataGridViewComboBoxColumn.cs: DataGridView implementation
5106         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
5107         * DataGridViewSelectionMode.cs: DataGridView implementation
5108         * IDataGridViewEditingControl.cs: DataGridView implementation
5109         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
5110         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
5111         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
5112         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
5113         * DataGridViewColumnSortMode.cs: DataGridView implementation
5114         * DataGridView.cs: DataGridView implementation
5115         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
5116         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
5117         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
5118         * Padding.cs: DataGridView implementation
5119         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
5120         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
5121         * DataGridViewRowEventHandler.cs: DataGridView implementation
5122         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
5123         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
5124         * DataGridViewButtonCell.cs: DataGridView implementation
5125         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
5126         * DataGridViewEditMode.cs: DataGridView implementation
5127         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
5128         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
5129         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
5130         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
5131         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
5132         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
5133         * DataGridViewCellEventHandler.cs: DataGridView implementation
5134         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
5135         * DataGridViewCellStyleConverter.cs: DataGridView implementation
5136         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
5137         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
5138         * DataGridViewColumnEventArgs.cs: DataGridView implementation
5139         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
5140         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5141         * QuestionEventArgs.cs: DataGridView implementation
5142         * IDataGridViewEditingCell.cs: DataGridView implementation
5143         * DataGridViewTriState.cs: DataGridView implementation
5144         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5145         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5146         * DataGridViewColumnCollection.cs: DataGridView implementation
5147         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5148         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5149         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5150         * DataGridViewColumn.cs: DataGridView implementation
5151         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5152         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5153         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5154         * DataGridViewRow.cs: DataGridView implementation
5155         * DataGridViewImageCellLayout.cs: DataGridView implementation
5156         * DataGridViewImageCell.cs: DataGridView implementation
5157         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5158         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5159         * DataGridViewHeaderCell.cs: DataGridView implementation
5160         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5161         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5162         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5163         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5164         * QuestionEventHandler.cs: DataGridView implementation
5165         * DataGridViewCellStyleScopes.cs: DataGridView implementation
5166         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
5167         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
5168         * DataGridViewCell.cs: DataGridView implementation
5169         * DataGridViewCellEventArgs.cs: DataGridView implementation
5170         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
5171         * DataGridViewCellStyle.cs: DataGridView implementation
5172         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
5173         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
5174         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
5175         * TextFormatFlags.cs: DataGridView implementation
5176         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
5177         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
5178         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
5179         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
5180         * DataGridViewButtonColumn.cs: DataGridView implementation
5181         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
5182         * HandledMouseEventArgs.cs: DataGridView implementation
5183         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
5184         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
5185         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
5186         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
5187         * DataGridViewRowCollection.cs: DataGridView implementation
5188         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
5189         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
5190         * DataGridViewHitTestType.cs: DataGridView implementation
5191         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
5192         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
5193         * DataGridViewColumnEventHandler.cs: DataGridView implementation
5194         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
5195         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
5196         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
5197         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
5198         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
5199         * DataGridViewContentAlignment.cs: DataGridView implementation
5200         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
5201         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
5202         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
5203         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
5204         * DataGridViewPaintParts.cs: DataGridView implementation
5205         * DataGridViewCellCollection.cs: DataGridView implementation
5206         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
5207         * DataGridViewImageColumn.cs: DataGridView implementation
5208         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
5209         * DataGridViewElementStates.cs: DataGridView implementation
5210         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
5211         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
5212         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
5213         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
5214         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
5215         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
5216         * DataGridViewRowHeaderCell.cs: DataGridView implementation
5217         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
5218         * DataGridViewTextBoxCell.cs: DataGridView implementation
5219         * DataGridViewBand.cs: DataGridView implementation
5220         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
5221         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
5222         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
5223         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
5224         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
5225         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
5226         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
5227         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
5228         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
5229         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
5230         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
5231
5232 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
5233
5234         * ThemeWin32Classic.cs: 
5235           - Draw the outside focus rectangle around buttons
5236           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
5237             doesn't use end caps for every dash of a line anymore. This
5238             workaround ignores the forecolor.
5239
5240 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
5241
5242         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
5243           endian safe.
5244
5245 2005-11-07  Jackson Harper  <jackson@ximian.com>
5246
5247         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
5248
5249 2005-11-07  Jackson Harper  <jackson@ximian.com>
5250
5251         * ScrollableControl.cs: Calculate the maximum and change vars
5252         (more) correctly so that scrollbars appear as a sensible size.
5253
5254 2005-11-04  Jackson Harper  <jackson@ximian.com>
5255
5256         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5257         collection.
5258         * TreeView.cs: When the tree is sorted null out the top_node so
5259         that it is recalculated.
5260         - Use dotted lines instead of dashed lines to match MS better.
5261
5262 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5263
5264         * ListView.cs: 
5265           - Implements key search for items. Useful when browsing files with FileDialog
5266           - When changing view mode or when clear the items reset scrollbar positions
5267
5268 2005-11-04  Jackson Harper  <jackson@ximian.com>
5269
5270         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5271         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5272         as to what the method may do as there is no real way of creating a
5273         derived CurrencyManager and calling the method. 
5274
5275 2005-11-03  Jackson Harper  <jackson@ximian.com>
5276
5277         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5278         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5279         method which seems to just be used internally to refresh the tabs.
5280
5281 2005-11-03  Jackson Harper  <jackson@ximian.com>
5282
5283         * TabControl.cs: Implement the remove method. Fix some broken
5284         comments.
5285
5286 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5287
5288         * DateTimePicker.cs:
5289           - Added missing DateTimePickerAccessibleObject class
5290           - Added missing events
5291           - Added OnFontChanged method
5292         * Form.cs: Added missing attributes
5293         * TreeView.cs: Added missing attributes
5294
5295 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5296
5297         * GridItemCollection.cs: Fix signatures
5298
5299 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5300
5301         * XplatUI.cs: Updated build rev/date
5302         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5303           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5304         * Application.cs: Trigger context-specific ExitThread events
5305
5306 2005-11-03  Jackson Harper  <jackson@ximian.com>
5307
5308         * Menu.cs:
5309         * MainMenu.cs:
5310         * GridTableStylesCollection.cs:
5311         * Timer.cs:
5312         * TabPage.cs:
5313         * HelpProvider.cs:
5314         * StatusBar.cs:
5315         * MonthCalendar.cs: Signature fixes
5316
5317 2005-11-03  Jackson Harper  <jackson@ximian.com>
5318
5319         * TreeNodeCollection.cs: Remove should not be virtual.
5320         * TreeView.cs: Implement the last of the missing methods.
5321
5322 2005-11-03  Jackson Harper  <jackson@ximian.com>
5323
5324         * TreeNodeConverter.cs: Implement to get off my class-status back.
5325
5326 2005-11-03  Jackson Harper  <jackson@ximian.com>
5327
5328         * TreeView.cs: Hookup the bits for drag and drop.
5329         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5330         that nodes can be moved from tree to tree easily this just causes
5331         all sorts of problems.
5332         * TreeNodeCollection: Don't need to give treenodes an index and
5333         treeview anymore when they are added, these are computed on the
5334         fly. Also make sure to remove a node before its added.
5335
5336 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5337
5338         * TextControl.cs:
5339           - Added CaretSelection enum
5340           - Added comparison methods to Marker struct, makes selection code
5341             more readable
5342           - Added SelectionStart and SelectionEnd as 'moveable' location for
5343             the CaretDirection enum and handler
5344           - Added selection_prev variable to track optimized invalidation for
5345             word and line selection
5346           - Added SelectionVisible property (returns true if there is a valid 
5347             selection)
5348           - Switched CaretHasFocus to only display the caret if there is no
5349             visible selection
5350           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5351             using the direct character index; should be much faster
5352           - Added various conditional debug statements
5353           - Fixed invalidation calculation for selection ranges
5354           - Added ExpandSelection() method to support word and line selection
5355           - Switched SetSelectionToCaret to use new Marker compare overloads
5356           - Added central IsWordSeparator() method to determine word 
5357             separators/whitespace and FindWordSeparator() to streamline common
5358             usage of IsWordSeparator()
5359         * TextBoxBase.cs:
5360           - Removed unneeded grabbed variable, it was just mirroring
5361             Control.Capture
5362           - No longer firing OnTextChanged event when Text setter is called,
5363             since the base will fire the event for us
5364           - Added handling of Ctrl-Up/Down selection
5365           - Added handling of Shift-Cursorkey selection
5366           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5367             words
5368           - Added handling of Shift and Ctrl-Shift-Home/End selection
5369           - Removed some debug output
5370           - Added handling for single/double/tripple-click to place caret/
5371             select word/select line respectively (Fixes bug #76031)
5372           - Added support for drag expansion of word/line selection
5373         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5374           current selection
5375
5376 2005-11-02  Jackson Harper  <jackson@ximian.com>
5377
5378         * X11Dnd.cs: If the drag is going to and from a MWF window just
5379         copy the data instead of sending it out through the X Selection
5380         mechanism.
5381
5382 2005-11-02  Jackson Harper  <jackson@ximian.com>
5383
5384         * X11Dnd.cs:
5385         * XplatUIX11.cs: When in a drag we don't want motion notify
5386         messages to get passed on to the other controls. This prevents
5387         mouse move messages from showing up in the drag source.
5388
5389 2005-11-02  Jackson Harper  <jackson@ximian.com>
5390
5391         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5392         the correct button is release to end a drag.
5393         * XplatUIX11.cs: Make the button state internal so the drag system
5394         can access it.  Dragging needs to know about all button releases,
5395         not just left button.
5396
5397 2005-11-02  Miguel de Icaza  <miguel@novell.com>
5398
5399         * Form.cs (Icon): If the icon is null, reset the icon to the
5400         default value. 
5401
5402         * Cursor.cs: When writing the AND-mask bitmap do not include the
5403         number of colors, but hardcode those to two (black and white),
5404         fixes the loading of color cursors (Paint Dot Net).
5405
5406         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5407         turn off autoscaling.
5408
5409         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5410
5411 2005-11-02  Jackson Harper  <jackson@ximian.com>
5412
5413         * X11Dnd.cs: Make sure to send a status message if the pointer
5414         enters a control that can not accept a drop, otherwise the cursor
5415         isn't updated correctly. Also tried to compress the lines of code
5416         a bit.
5417
5418 2005-11-02  Jackson Harper  <jackson@ximian.com>
5419
5420         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5421         set actions correctly.  This isn't perfect as XDND and win32 have
5422         some differences on how you allow actions. I'll clear this up by
5423         adding a path for drag from MWF to MWF windows.
5424         * XplatUIX11.cs: Hook into the dnd system.
5425
5426 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
5427
5428         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5429         previously shown but they are no longer need it. Very obvious when 
5430         browsing files with FileDialog.
5431
5432 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
5433
5434         * Control.cs: We always need to call OnPaintBackground. We pretty much
5435           ignore AllPaintingInWmPaint and always do the painting there, whether 
5436           it's set or not, since we always ignore the WM_ERASEBKGND message 
5437           (which we don't generate on X11). This fixes #76616.
5438         * Panel.cs: Removed unneeded background painting. This happens properly
5439           in Control.cs already
5440
5441 2005-10-31  Mike Kestner  <mkestner@novell.com>
5442
5443         * Menu.cs: Add items to collection before setting their index.
5444         * MenuItem.cs : add range checking with ArgumentException like MS.
5445         [Fixes #76510]
5446
5447 2005-10-31  Jackson Harper  <jackson@ximian.com>
5448
5449         * ListBox.cs: Invalidate if the area is visible at all not just
5450         contained in the visible rect. Fixes unselection of semi visible
5451         items.
5452
5453 2005-10-31  Jackson Harper  <jackson@ximian.com>
5454
5455         * Control.cs: Consistently name the dnd methods. Make them
5456         internal so we can override them to match some MS behavoir
5457         internally.
5458         * Win32DnD.cs: Use the new consistent names.
5459
5460 2005-10-31  Jackson Harper  <jackson@ximian.com>
5461
5462         * TreeView.cs: Don't draw the selected node when we lose focus.
5463
5464 2005-10-31  Jackson Harper  <jackson@ximian.com>
5465
5466         * X11Dnd.cs: We still need to reset the state even though a full
5467         reset isn't being done, otherwise status's still get sent all over
5468         the place.
5469
5470 2005-10-31  Jackson Harper  <jackson@ximian.com>
5471
5472         * Control.cs: Make the dnd_aware flag internal so the dnd
5473         subsystem can check it. Catch exceptions thrown in dnd handlers to
5474         match MS behavoir.
5475         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5476         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5477         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5478         flags to reduce the number of dnd enters/status's sent.
5479
5480 2005-10-31  Jackson Harper  <jackson@ximian.com>
5481
5482         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5483
5484 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5485
5486         * PictureBox.cs: Fixes 76512
5487
5488 2005-10-28  Jackson Harper  <jackson@ximian.com>
5489
5490         * X11Dnd.cs: Early implementation to support winforms being a drag
5491         source for data on X11. Also restructured the converters so they
5492         can go both ways now.
5493         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5494         
5495 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5496
5497         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5498           clipboard requests
5499
5500 2005-10-27  Jackson Harper  <jackson@ximian.com>
5501
5502         * TreeNode.cs: Implement serialization so my DnD examples will work.
5503
5504 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
5505
5506         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5507           TreeView.cs: Don't dispose objects that are not owned.
5508           
5509 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
5510
5511         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5512           should retrieve the current cursor and report that, but XplatUI
5513           doesn't (yet) have an interface for that (and I'm not sure I even
5514           can, on X11)
5515         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5516           until any message loop processing is done (and the WM_SETCURSOR
5517           replaces the cursor to the proper one)
5518         * XplatUIX11.cs: 
5519           - Fixed override behaviour, we can't set the cursor globally on X11, 
5520             just for our windows.
5521           - Invalidating the System.Drawing X11 display handle when we are
5522             shutting down
5523         * Control.cs: Fix to make csc happy
5524
5525 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
5526
5527         * TextBoxBase.cs: 
5528           - get_Text: Add last line (without trailing newline) to returned
5529             value (Fixes 76212)
5530           - get_TextLength: Count last line in returned length
5531           - ToString: Call Text property instead of duplicating code
5532
5533 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
5534
5535         * ImageList.cs: Dispose ImageAttributes objects.
5536
5537 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5538
5539         * ImageList.cs: Use attribute constructors with less arguments where
5540           possible.
5541
5542 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5543
5544         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5545           Use typeof instead of strings when assembly is referenced. Added
5546           some more comments.
5547
5548 2005-10-21  Jackson Harper  <jackson@ximian.com>
5549
5550         * ListView.cs: Raise a double click event. Also tried to somewhat
5551         fix when the selectedindexchanged event is raised. Its still
5552         broken though.
5553
5554 2005-10-21  Jackson Harper  <jackson@ximian.com>
5555
5556         * TreeView.cs: New method to invalidate the plus minus area of a
5557         node without invalidating the whole node (maybe this can be used
5558         in some more places).
5559         * TreeNodeCollection.cs: When adding to an empty node we need to
5560         invalidate its plus minus area so the little block shows up.
5561         
5562 2005-10-21  Jackson Harper  <jackson@ximian.com>
5563
5564         * TreeView.cs: Make sure that when we invalidate a node the bounds
5565         are big enough to cover the selected box and the focus
5566         rectangle. Use a different colour for the lines connecting nodes
5567         so they show up with all themes.
5568
5569 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5570
5571         * NativeWindow.cs: Don't call anything that could call into the driver,
5572           we might be on a different thread.
5573
5574 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
5575
5576         * Control.cs(Dispose): Since Dispose might run on a different thread,
5577           make sure that we call methods that could call into the driver via
5578           invoke, to avoid thread issues
5579
5580 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5581
5582         * XplatUI.cs: Removed finalizer
5583         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5584           not allowing to be called on the finalizer thread.
5585
5586 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5587
5588         * ImageList.cs:
5589           - Reverted r51889 and r51891.
5590           - Added ImageListItem class that stores unmodified image items and image
5591             properties required to create list images until handle is created.
5592           - Added AddItem and moved image creation logic to AddItemInternal.
5593           - Added CreateHandle method that creates images based on unmodified items.
5594           - Added DestroyHandle that changes state to store unmodified items.
5595           - Add and AddStrip methods no more create handle.
5596           - ReduceColorDepth has no return value.
5597           - Dispose destroys handle.
5598           - Modified other methods to reflect the above changes.
5599           - Implemented key support.
5600           - Added profile 2.0 members and attributes.
5601           - Added private Reset and ShouldSerialize methods that provide the same
5602             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5603             them as they are private.
5604           - Added some more comments about implementation details.
5605
5606 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5607
5608         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5609
5610 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5611
5612         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5613
5614 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5615
5616         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5617         * DataGridColumnStyle.cs: Remove debug message
5618
5619 2005-10-20  Jackson Harper  <jackson@ximian.com>
5620
5621         * TreeView.cs: We can always get input keys regardless of whether
5622         or not editing is enabled. They are used for navigation.
5623
5624 2005-10-20  Jackson Harper  <jackson@ximian.com>
5625
5626         * TreeNode.cs: Use the viewport rect for determining if a node
5627         needs to be moved for visibility. Don't use Begin/End edit. This
5628         calls a full refresh when its done.
5629         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5630         rect property internal so the treenodes can see it. When clicking
5631         on a node we need to ensure that its visible because it might just
5632         be partly visible when clicked.
5633
5634 2005-10-20  Jackson Harper  <jackson@ximian.com>
5635
5636         * TreeNodeCollection.cs: Remove debug code.
5637
5638 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5639
5640         * Datagrid.cs: Implements column sorting in Datagrid
5641         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5642
5643 2005-10-20  Jackson Harper  <jackson@ximian.com>
5644
5645         * TreeNodeCollection.cs: Remove items properly. Update the correct
5646         area after removing them.
5647
5648 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5649
5650         * Datagrid.cs: Should not call base.OnPaintBackground
5651
5652 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5653
5654         * XplatUIX11.cs (GetMessage):
5655           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5656             window instead of client window
5657           - Now properly calculates NC_xBUTTONUP message coordinates
5658           - ScreenToMenu now properly calculates it's coordinates of whole 
5659             window, since menus are in the whole window, not in the client
5660             window
5661           - Added WholeToScreen coordinate translation method
5662
5663 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5664
5665         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5666           want to return a message, loop back to the beginning of the function
5667           and grab the next real message to process instead.
5668
5669 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5670
5671         * Splitter.cs: Properly set limits if no filler control is used
5672
5673 2005-10-19  Jackson Harper  <jackson@ximian.com>
5674
5675         * ColorDialog.cs: Don't show the help button if it is not enabled
5676         instead of disabling it (this is what MS does). Don't create the
5677         panel until the dialog is run, otherwise the vars (such as
5678         ShowHelp) are not set yet.
5679
5680 2005-10-19  Jackson Harper  <jackson@ximian.com>
5681
5682         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5683         are reduced when adding nodes.
5684         * TreeNode.cs:
5685         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5686         tree.
5687         
5688 2005-10-19  Jackson Harper  <jackson@ximian.com>
5689
5690         * FolderBrowserDialog.cs: End editing our treeview so the window
5691         actually gets refreshed.
5692
5693 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5694
5695         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5696           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5697           inside of WM_PAINT
5698
5699 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5700
5701         * MenuAPI.cs: Returns after Hidding window
5702         * XplatUIX11.cs: Added TODO found while debugging menu issues
5703
5704 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5705
5706         * XplatUIX11.cs: Do not re-map the whole window when it's size
5707           becomes non-zero unless it's supposed to be actually visible
5708
5709 2005-10-18  Jackson Harper  <jackson@ximian.com>
5710
5711         * TreeView.cs: We don't need to keep a count anymore.
5712         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5713         use the Grow method.
5714
5715 2005-10-18  Jackson Harper  <jackson@ximian.com>
5716
5717         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5718         implement it manually here.
5719
5720 2005-10-18  Jackson Harper  <jackson@ximian.com>
5721
5722         * ImageList.cs: Dont kill the list when the colour depth is
5723         changed, just change the colour depth of all the images.
5724         - Same goes for setting the image size. Just resize them all
5725         instead of killing the list softly.
5726
5727 2005-10-18  Jackson Harper  <jackson@ximian.com>
5728
5729         * Control.cs: Don't invalidate empty rectangles.
5730
5731 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5732
5733         * ListViewItem.cs:
5734           - Adds checked item to the Checked/Item lists (where empty before)
5735           - Do not add items to the Selected lists if they are already present
5736         * ListView.cs:
5737           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5738           - When deleting items make sure that we delete them for the Selected
5739           and Checked list also.
5740
5741 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5742
5743         * Label.cs: Dispose objects no longer used
5744         * ThemeWin32Classic.cs: Dispose objects no longer used
5745
5746 2005-10-18  Jackson Harper  <jackson@ximian.com>
5747
5748         * TabControl.cs: Don't refresh the whole control when the tabs are
5749         scrolled, we just need to refresh the tab area.
5750
5751 2005-10-17  Jackson Harper  <jackson@ximian.com>
5752
5753         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5754         after handle when we need it.
5755
5756 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5757
5758         * Control.cs: When the parent size changes, recalculate anchor 
5759           positions. Partial fix for #76462
5760
5761 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5762
5763         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5764           drawn. Fixes #76462
5765
5766 2005-10-17  Jackson Harper  <jackson@ximian.com>
5767
5768         * MonthCalendar.cs: Don't create the numeric up down until our
5769         handle is created. Otherwise our handle is created in the
5770         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5771         yet.
5772
5773 2005-10-17  Jackson Harper  <jackson@ximian.com>
5774
5775         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5776         correctly.
5777
5778 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5779         * TreeNode.cs : small logical fix (was using local var instead of field)
5780         
5781 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5782
5783         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5784
5785 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5786
5787         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5788
5789 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5790
5791         * Control.cs: 
5792           - Re-implemented anchoring code. My first version was really broken.
5793             This fixes bug #76033. Unlike the previous implementation we will
5794             no longer have round errors since all numbers are calculated from
5795             scratch every time. Removed various anchor-related obsolete vars.
5796           - InitLayout no longer causes layout event firing and layout to be 
5797             performed
5798
5799 2005-10-16  Jackson Harper  <jackson@ximian.com>
5800
5801         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5802         which was broken).
5803
5804 2005-10-16  Jackson Harper  <jackson@ximian.com>
5805
5806         * TabControl.cs: Remove debug code.
5807
5808 2005-10-16  Jackson Harper  <jackson@ximian.com>
5809
5810         * XEventQueue.cs: Increase the default queue size (very simple
5811         apps needed to grow the queue).
5812         * Hwnd.cs: No finalizer so we don't need to suppress
5813         finalization. Compute the invalid area manually so a new rectangle
5814         does not newto be created.
5815         * ScrollableControl.cs: Don't set any params (otherwise visibility
5816         isn't set correctly).
5817         * MdiChildContext.cs: New constructor takes the mdi parent so it
5818         doesn't have to be computed and avoids a crash on windows. Draw
5819         the window icon properly, and allow the text to be seen.
5820         * Form.cs: Use new MdiChildContext constructor. Make sure the
5821         child context isn't null in wndproc.
5822         * TabControl.cs: Don't set focus, this is muddling keyboard
5823         behavoir. Expand the tab rows when a window size increase will
5824         allow extra tabs to be seen. Don't allow tabs smaller than the
5825         width of a window to be scrolled out of view.
5826         * TreeNode.cs:
5827         * TreeView.cs: Use measure string to calculate a nodes width, the
5828         width is cached and only updated when the text or the font is
5829         changed. Don't check for expand/collapse clicks on the first level
5830         nodes if root lines are disabled.
5831         
5832 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5833
5834         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5835
5836 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5837
5838         * DataGridBoolColumn.cs: fixes warning
5839
5840 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5841
5842         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5843         to match more to match more precisely the MS Net behavior
5844
5845 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5846
5847         * Hwnd.cs: Added field to track if window is mapped
5848         * XplatUIX11.cs: 
5849           - Unmap windows if they become 0-size, re-map when 
5850             they are >0 again; fixes #76035
5851           - Re-set our error handler after initializing X11Desktop
5852             to override any error handlers Gtk or whatever was called
5853             may have set.
5854
5855 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5856
5857         * CheckedListBox.cs: Removed unused vars
5858         * ListView.cs: Fixed signatures
5859         * RichTextBox.cs: Removed unused vars
5860         * TextBoxBase.cs: Removed unused vars
5861         * XplatUIWin32.cs: Removed unused vars
5862         * XplatUIX11.cs: Removed unused vars
5863         * XplatUI.cs: Updated version and date to latest published
5864
5865 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5866
5867         * Cursor.cs: Added private .ctor to work around a bug in
5868           resourceset (Thanks to Geoff Norton for the help on this)
5869         * SplitterEventArgs.cs: Made fields accessible so we don't
5870           waste boatloads of objects and can reuse the same one
5871           in Splitter
5872         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5873           any captions and borders when generating screen coordinates
5874         * Splitter.cs: Reimplemented control, now fully complete, uses
5875           rubberband drawing, supports and obeys all properties, has
5876           proper cursors
5877
5878 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5879
5880         * Form.cs (Form): Setup default values for autoscale and
5881         autoscale_base_size;  Make these instance variables, not static
5882         variables. 
5883
5884         (OnLoad): on the first load, adjust the size of the form.
5885
5886 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5887
5888         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5889           width argument to DrawReversibleRectangle()
5890         * XplatUIWin32.cs, XplatUIX11.cs: 
5891           - Implemented width for DrawReversibleRectangle()
5892           - Added logic to DrawReversibleRectangle that recognizes a zero
5893             width or height and only draws a line in that situation
5894         
5895 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5896
5897         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5898         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5899         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5900           method (it uses our FosterParent window to get a graphics context)
5901
5902 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5903
5904         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5905           and SetWindowBackground methods
5906         * Control.cs:
5907           - Setting proper ControlStyles
5908           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5909             EraseWindowBackground, instead we draw the window background
5910             ourselves in PaintControlBackground. This behaviour is
5911             required to match MS, where, when OnPaintBackground is not
5912             called, the background is not drawn.
5913           - Removed unneeded Refresh() in set_Text
5914         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5915         * XplatUIX11.cs:
5916           - Created DeriveStyles method to translate from CreateParams to
5917             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5918             matches FormBorderStyle enum values)
5919           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5920             style calculations into single DeriveStyles method
5921           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5922             from redrawing the whole window on any resize or expose.
5923           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5924             all styles were applied to our whole/client window appropriately
5925           - Removed EraseWindowBackground() and SetWindowBackground() methods
5926           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5927             no longer clear/redraw the background through X
5928           - Removed handling of erase_pending bit, we have no use for it (or
5929             so it seems)
5930         * XplatUIOSX.cs:
5931           - Removed generation and handling of WM_ERASEBKGND message
5932           - Removed EraseWindowBackground() and SetWindowBackground() methods
5933           - Removed handling of hwnd.ErasePending flag
5934         * XplatUIWin32.cs:
5935           - Removed EraseWindowBackground() and SetWindowBackground() methods
5936           - We no longer call EraseWindowBackground on PaintEventStart, we 
5937             ignore the fErase flag, erasing is handled in Control in the
5938             background handler
5939         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5940           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5941           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5942           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5943           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5944           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5945           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5946
5947 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5948
5949         * PropertyGrids.cs: Get sub properties
5950         * PropertyGridView.cs: Fix drawing code
5951
5952 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5953
5954         * ListBox.cs: Fixes 76383
5955
5956 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5957
5958         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5959         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5960         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5961
5962
5963 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5964
5965         * ComboBox.cs: Fixes border drawing
5966
5967 2005-10-10  Miguel de Icaza  <miguel@novell.com>
5968
5969         * MimeIcon.cs: Ignore errors if the file can not be read.
5970
5971 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5972
5973         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5974          - Fixed border calculations
5975          - Fixed horizontal scrolling in single column listboxes
5976          - Fixed drawing issues
5977
5978 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
5979
5980         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
5981           FormBorderStyle enum
5982         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
5983           code to determine FormBorderStyles from CreateParams
5984         * Form.cs:
5985           - Fixed bug where we'd set the wrong window styles if we were
5986             not creating an MDI window
5987           - Added call to XplatUI.SetBorderStyle when form borders are set
5988         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5989         * Hwnd.cs:
5990           - Removed obsolete edge style
5991           - Switched from BorderStyle to FormBorderStyle
5992         
5993 2005-10-10  Jackson Harper  <jackson@ximian.com>
5994
5995         * Form.cs: Use the property to get the window handle instead of
5996         accessing it directly. Prevents a null reference exception.
5997
5998 2005-10-10  Jackson Harper  <jackson@ximian.com>
5999
6000         * TreeView.cs: Don't adjust the rect given to DrawString now that
6001         our libgdiplus draws correctly.
6002
6003 2005-10-08  Jackson Harper  <jackson@ximian.com>
6004
6005         * TreeView.cs: Don't try to find the clicked on node if there are
6006         no nodes in the tree.
6007
6008 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6009
6010         * RichTextBox.cs:
6011
6012           restore
6013
6014 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
6015
6016         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
6017           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
6018           ErrorProvider.cs:
6019           Use ResPool for brushes and dispose System.Drawing objects that
6020           are not used anymore.
6021
6022 2005-10-07  Jackson Harper  <jackson@ximian.com>
6023
6024         * MdiChildContext.cs: Use the new borders instead of drawing them
6025         ourselves.
6026
6027 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6028
6029         * Calling UpdateBounds after changing the window's BorderStyle 
6030         since the style can change the ClientSize
6031
6032 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6033
6034         * Control.cs: Made PaintControlBackground virtual
6035         * Panel.cs: Overriding PaintControlBackground instead of using paint
6036           event; paint event method was interfering with 'real' users of the
6037           event.
6038
6039 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
6040
6041         * ThemeWin32Classic.cs: remove border drawing since it is handled
6042         by the base control class now and was causing double border drawing.
6043
6044 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6045
6046         * Panel.cs: Redraw our background on paint. Not a pretty solution,
6047           but it does seem to match MS behaviour. This fixes bug #75324
6048
6049 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6050
6051         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
6052           somewhat hackish looking
6053
6054 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6055
6056         * TextBoxBase.cs:
6057           - We now accept Enter even if AcceptEnter is false, if the containing
6058             form does not have an AcceptButton configured (fixes bug #76355)
6059           - Calculations are now fixed to no longer use Width/Height, but
6060             ClientSize.Width/Height, since we now support borders (this was
6061             a result of fixing borders and therefore bug #76166)
6062           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
6063             true (fixes bug #76354)
6064         
6065 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6066
6067         * Control.cs: 
6068           - Defaulting BorderStyle and setting it in XplatUI when our window 
6069             is created
6070           - Added enum check to InternalBorderStyle setter
6071         * XplatUIX11.cs: 
6072           - Added drawing of window borders
6073           - Now properly calculates WM decorations offset for toplevel 
6074             windows (fixes bug #74763)
6075         * XplatUIWin32.cs: 
6076           - Implemented BorderStyles for windows (we're letting win32 draw 
6077             the border for us)
6078           - Fixed the signature for SetWindowLong
6079         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
6080           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
6081           setting borders
6082         * UpDownBase.cs: Remove drawing of borders, this is handled by
6083           the driver, outside the client area
6084         * ListView.cs: Removed bogus border calculations. The control should
6085           be oblivious to borders, since those are not part of the client
6086           area. 
6087         * X11DesktopColors.cs: Commented out (currently) unneeded variables
6088         * ThemeWin32Classic.cs: Removed border calculations from ListView 
6089           drawing code
6090
6091 2005-10-06  Jackson Harper  <jackson@ximian.com>
6092
6093         * MdiChildContext.cs: Clear out the old virtual position remove
6094         all the unneeded calls to CreateGraphics.
6095
6096 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6097
6098         * TextControl.cs: Use proper color for highlighted text; fixes #76350
6099
6100 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6101
6102         * Form.cs: 
6103           - Added loading and setting of our new default icon
6104           - Only set icon if window is already created
6105
6106 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6107
6108         * Label.cs:
6109           - Do not explicitly set the foreground and background colors, to
6110             allow inheriting from parents (fixes #76302)
6111           - Use Control's InternalBorderStyle property to deal with borders
6112
6113 2005-10-06  Jackson Harper  <jackson@ximian.com>
6114
6115         * MdiChildContext.cs: Use the new xplatui function to draw a
6116         reversible rect.
6117
6118 2005-10-06  Jackson Harper  <jackson@ximian.com>
6119
6120         * Form.cs: Add the parent before creating the child context cause
6121         we need the parent when setting up the child.
6122
6123 2005-10-06  Jackson Harper  <jackson@ximian.com>
6124
6125         * FolderBrowserDialog.cs: redo the tree population code so a
6126         second thread isn't used. Should be a lot faster and more stable
6127         now.
6128
6129 2005-10-05  Jackson Harper  <jackson@ximian.com>
6130
6131         * TreeView.cs: There are no expand/collapse boxes if the node has
6132         no children.
6133
6134 2005-10-05  Jackson Harper  <jackson@ximian.com>
6135
6136         * X11DesktopColors.cs: Get menu colours for the gtk theme.
6137
6138 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
6139
6140         * FileDialog.cs: Fix InitialDirectory
6141
6142 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6143
6144         * ComboBox.cs:
6145                 - Fixes changing between styles
6146                 - Fixes simple mode
6147                 - Fixes last item crashing when navigating with keyboard
6148
6149 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6150
6151         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6152
6153 2005-10-05  Jackson Harper  <jackson@ximian.com>
6154
6155         * TreeView.cs: If updating the root node do a full refresh.
6156         * TreeNode.cs: The root node should be expanded by default. Also
6157         added a utility prop to tell if we are the root node.
6158         * TreeNodeCollection.cs: Only refresh if the node we are being
6159         added to is expanded. Also added a comment on a potential
6160         optimization.
6161         
6162 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6163
6164         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
6165           in dispose method. Fixes #76330
6166
6167 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
6168
6169         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
6170
6171                 - Implements vertical and horizontal scrolling using XplatUI
6172                 - Fixes keyboard navagation
6173                 - Fixes EnsureVisible
6174                 - Drawing fixes
6175                 - Handles and draws focus properly
6176
6177
6178 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
6179
6180         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
6181           Create handle. NET_2_0: Destroy handle when value is null.
6182
6183 2005-10-03  Jackson Harper  <jackson@ximian.com>
6184
6185         * ScrollBar.cs: My last scrollbar patch was broken. This is a
6186         revert and a new patch to prevent the thumb from refreshing so
6187         much.
6188
6189 2005-10-02  Jackson Harper  <jackson@ximian.com>
6190
6191         * ScrollBar.cs: Don't update position if it hasn't actually
6192         changed. This occurs when you hold down the increment/decrement
6193         buttons and the thumb gets to the max/min.
6194
6195 2005-10-01  Jackson Harper  <jackson@ximian.com>
6196
6197         * Form.cs:
6198         * MdiChildContext.cs:
6199         * MdiClient.cs: Implement ActiveMdiChild in Form.
6200
6201 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
6202
6203         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
6204
6205 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
6206
6207         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
6208           be found
6209
6210 2005-09-30  Jackson Harper  <jackson@ximian.com>
6211
6212         * ListBox.cs: Don't do a full refresh unless some data has
6213         actually changed.
6214
6215 2005-09-30  Jackson Harper  <jackson@ximian.com>
6216
6217         * TreeView.cs: Make sure that the checkboxes size is factored in
6218         even when not visible.
6219
6220 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6221
6222         * FileDialog.cs: Fix Jordi's build break
6223
6224 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6225
6226         * FileDialog.cs: 
6227                 - Use standard the Windows colours for the combobox as espected
6228                 - Dispose objects that use resouces when no longer need them
6229
6230 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6231
6232         * X11DesktopColors.cs: Initial incomplete implementation
6233         * XplatUIX11.cs: Added call to initialize X11DesktopColors
6234
6235 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
6236
6237         * Theme.cs: 
6238           - Switched Theme color names to match the names defined in 
6239             System.Drawing.KnownColors. Life's hard enough, no need to make 
6240             it harder.
6241           - Added setters to all theme color properties so themes can set
6242             their color schemes. The setters also propagate the color changes
6243             to System.Drawing.KnownColors via reflection
6244         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
6245           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
6246           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
6247           use the new, more logical theme color names
6248         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6249           post-NT colors
6250         * ThemeWin32Classic.cs:
6251           - Removed code to set the old classic Windows colors. Instead it
6252             now relies on the colors returned by System.Drawing.KnownColors
6253             which will be either modern static colors (Unix) or colors
6254             read from the user's configuration (Win32)
6255           - Updated to use the new, more logical theme color names
6256           - Switched DataGrid drawing code to use only Theme colors instead of
6257             a mix of System.Drawing.KnownColors and Theme colors
6258           - DrawFrameControl(): Removed code that fills the button area, the
6259             fill would overwrite any previous fill done by a control. This
6260             fixes bug #75338 
6261           - Added DrawReversibleRectangle() stub
6262         * ScrollableControl.cs: Set visible state to false when scrollbars
6263           are removed (pdn fix)
6264         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6265           DrawReversibleRectangle() method to allow drawing primitive 
6266           'rubber bands'
6267         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6268
6269 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6270
6271         * ImageList.cs: Add(Icon): Create handle.
6272
6273 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6274
6275         * ListView.cs:
6276         * ThemeWin32Classic.cs:
6277                 - Fixes detail mode
6278                 - Sets clippings
6279                 - Issues with drawing
6280
6281 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6282
6283         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6284           source has to be the ImageList.
6285
6286 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6287
6288         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6289
6290 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6291
6292         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6293
6294 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6295
6296         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6297
6298 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6299         * GridItem.cs: Fixed TODOs
6300         * GridItemCollection.cs: Added ICollection interface
6301
6302 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6303
6304         * ImageList.cs: Resize icons when needed.
6305
6306 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6307
6308         * ListViewItem.cs
6309                 - Fixes GetBounds and returns on screen rects
6310         * ListView.cs:
6311                 - Fixes vertical and horzintal scrolling of items
6312         * ThemeWin32Classic.cs:
6313                 - Fixes drawing
6314                 
6315 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6316
6317         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6318
6319 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6320
6321         * ImageList.cs: Added comments about handle creation. Moved Handle,
6322           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6323           Handle is created in Add methods.
6324
6325 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6326          
6327         * DataGridDrawingLogic.cs: 
6328                 - Takes rows into account on Colum calculations
6329                 - Returns the column when clickig
6330         * DataGrid.cs:
6331                 - Fixes default HitTestInfo values
6332                 - Fixes HitTestInfo.ToString
6333                 - Fixes ResetBackColor          
6334         
6335 2005-09-28  Jackson Harper  <jackson@ximian.com>
6336
6337         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6338         sizing or cursor changes). Also added some temp code to draw the
6339         titlebars text (Makes dev a little easier).
6340
6341 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6342
6343         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6344
6345 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6346          
6347         * ListBox.cs: Fixes bug 76253
6348
6349 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6350
6351         * ImageList.cs: Added comments about the current implementation. Added
6352           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6353           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6354           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6355           with Bitmap.LockBits for better performance. Revised the whole file to
6356           match MS.NET behaviour and provide better performance. Non-public
6357           interface members are calling public members even when they throw
6358           NotSupportedException for better maintainability. Moved ColorDepth,
6359           ImageSize, ImageStream and TransparentColor implementations to
6360           ImageCollection for better performance as these properties are not used
6361           by ImageList.
6362         * ImageListStreamer.cs: Added a new internal constructor that takes an
6363           ImageList.ImageCollection and serializes Images based on
6364           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6365           match ImageList property name.
6366
6367 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6368
6369         * ListBox.cs: Fixes IndexFromPoint for last item
6370
6371 2005-09-27  Jackson Harper  <jackson@ximian.com>
6372
6373         * Form.cs: Set the position of new mdi children correctly.
6374
6375 2005-09-27  Jackson Harper  <jackson@ximian.com>
6376
6377         * MdiClient.cs: New mdi children need to be added to the back of
6378         the controls collection so the zorder is set correctly. Also add a
6379         count of all the child windows that have been created.
6380
6381 2005-09-27  Jackson Harper  <jackson@ximian.com>
6382
6383         * Form.cs (CreateParams): Setup MDI forms correctly.
6384
6385 2005-09-27  Jackson Harper  <jackson@ximian.com>
6386
6387         * MdiChildContext.cs:
6388         * MonthCalendar.cs:
6389         * UpDownBase.cs:
6390         * ListBox.cs:
6391         * ListView.cs:
6392         * TextBoxBase.cs:
6393         * TreeView.cs:
6394         * ScrollableControl.cs:
6395         * ComboBox.cs: Add implicit controls using the new implict control
6396         functionality in ControlCollection. Also try to block multiple
6397         control add in a suspend/resume layout to save some cycles.
6398         
6399 2005-09-27  Jackson Harper  <jackson@ximian.com>
6400
6401         * Control.cs: Add functionality to the controls collection to add
6402         'implicit controls' these are controls that are created by the
6403         containing control but should not be exposed to the user. Such as
6404         scrollbars in the treeview.
6405         * Form.cs: The list var of the ControlsCollection is no longer
6406         available because of the potential of implicit controls getting
6407         ignored by someone accessing the list directly.
6408
6409 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
6410
6411         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6412           loose it's parent. (Fixed bug introduced in r49103 when we added
6413           setting the child parent to null on Remove)
6414
6415 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
6416
6417         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6418         * Splitter.cs: Added missing attributes for BorderStyle property.
6419         * TextBoxBase.cs: Marked Calculate* methods internal.
6420         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6421         MS.NET.
6422
6423 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
6424          
6425         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6426
6427 2005-09-25  Jackson Harper  <jackson@ximian.com>
6428
6429         * TreeView.cs: Update the node bounds correctly regardless of
6430         whether the node is visible.
6431
6432 2005-09-25  Jackson Harper  <jackson@ximian.com>
6433
6434         * ImageList.cs: Don't dispose the image after it is added to the
6435         image list. Only reformat images that need to be resized.
6436
6437 2005-09-25  Jackson Harper  <jackson@ximian.com>
6438
6439         * ImageList.cs: Don't set the format when changing the image.
6440
6441 2005-09-25  Jackson Harper  <jackson@ximian.com>
6442
6443         * TreeView.cs: We can't just assume the node has a font. Use the
6444         treeviews font if no node font is available.
6445
6446 2005-09-25  Jackson Harper  <jackson@ximian.com>
6447
6448         * TreeView.cs: Allow the scrollbars to be reset with negative
6449         values.
6450         - Don't add scrollbars to negative sized windows.
6451
6452 2005-09-23  Jackson Harper  <jackson@ximian.com>
6453
6454         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6455         old Mono.Posix. Also remove some stray code that shouldn't have
6456         been committed.
6457
6458 2005-09-23  Jackson Harper  <jackson@ximian.com>
6459
6460         * TreeView.cs: Attempt at proper sizing of the horizontal
6461         scrollbar. Also don't resize the scrollbars unless they are
6462         visible.
6463
6464 2005-09-23  Jackson Harper  <jackson@ximian.com>
6465
6466         * TreeView.cs: We don't need to expand the invalid area when the
6467         selection changes, as this is all drawn in the node's bounding
6468         box. The area needs to be expanded (previous typo was contracting
6469         it) when the focus rect moves.
6470
6471 2005-09-23  Jackson Harper  <jackson@ximian.com>
6472
6473         * TreeView.cs: Display the selection box under the correct
6474         circumstances. We were rendering white text with no selection box
6475         before.
6476
6477 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6478
6479         * TextControl.cs(Split): Now updates selection start/end if it points 
6480           into a line that's being split. Fixes a FIXME and bug #75258
6481
6482 2005-09-23  Jackson Harper  <jackson@ximian.com>
6483
6484         * Binding.cs:
6485         * ListControl.cs: Don't use the path when retrieving binding
6486         managers from the binding context. My bat sense tells me that the
6487         path is only used on insertion.
6488
6489 2005-09-22  Jackson Harper  <jackson@ximian.com>
6490
6491         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6492
6493 2005-09-22  Jackson Harper  <jackson@ximian.com>
6494
6495         * Splitter.cs: There are special cursors used for splitting.
6496         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6497
6498 2005-09-22  Jackson Harper  <jackson@ximian.com>
6499
6500         * Splitter.cs: Change the cursor appropriately when the splitter
6501         is moused over, so the user actually knows there is a splitter
6502         there.
6503
6504 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6505
6506        * Label.cs : Fix ToString method to give same output as MS.NET
6507
6508 2005-09-22  Jackson Harper  <jackson@ximian.com>
6509
6510         * TreeView.cs: Create the scrollbars when the handle is created
6511         and add them right away, just make them invisble. Also account for
6512         the window being shrunk vertically to the point that the vert
6513         scrollbar needs to be added.
6514         - Remove some 0.5 adjustments to get around anti aliasing issues.
6515         
6516 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
6517          
6518         * MainMenu.cs: Fixes default value
6519         * MenuItem.cs: Fixes default value
6520
6521 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
6522
6523         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6524
6525 2005-09-21  Jackson Harper  <jackson@ximian.com>
6526
6527         * Control.cs: Don't try to set the border style on the window if
6528         it hasn't been created. When the window is created the border
6529         style will be used.
6530
6531 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6532
6533         * Control.cs (Update): Don't call XplatUI if we don't have a
6534           window handle yet
6535
6536 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6537
6538         * ContainerControl.cs: Instead of throwing an exception, print
6539           a one-time warning about Validate not being implemented
6540         * XplatUIWin32.cs: Removed debug output
6541
6542 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6543
6544         * Control.cs: Only set XplatUI background if we expect the windowing
6545           system to handle the background. This stops controls that draw their
6546           own background from flickering
6547
6548         * XplatUIX11.cs: Support custom visuals and colormaps for window 
6549           creation. This allows, amongst other things, using MWF X11 windows 
6550           with OpenGL.
6551
6552 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6553
6554         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6555           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6556           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6557           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6558           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6559           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6560           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6561           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6562           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6563           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6564           GridColumnStylesCollection.cs, 
6565           IDataGridColumnStyleEditingNotificationService.cs,
6566           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6567           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6568           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
6569           TreeNodeCollection.cs, AmbientProperties.cs, 
6570           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6571           DataObject.cs, ErrorProvider.cs, Splitter.cs,
6572           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6573           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6574           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6575           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6576           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6577           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6578           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6579           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6580           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6581           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6582           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6583           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6584           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6585           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6586           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6587           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6588           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6589           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6590           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6591           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6592           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6593           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6594           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6595           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6596           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6597           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6598           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6599           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6600           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6601           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6602           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6603           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6604           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6605           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6606           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6607
6608 2005-09-21  Jackson Harper  <jackson@ximian.com>
6609
6610         * TreeNode.cs: Call Before/After Expand not Collapse when
6611         expanding.
6612
6613 2005-09-20  Jackson Harper  <jackson@ximian.com>
6614         
6615         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6616
6617 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6618          
6619         * ListViewItem.cs:
6620                 - Fixes bug 76120
6621                 - Fixes proper storing of subitems
6622                 - Fixes not updated items
6623
6624 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6625
6626         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6627           things if our window handle isn't created yet. Also disabled 
6628           debug for TextBoxBase
6629
6630 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6631
6632         * MenuAPI.cs: Remove filtering of events to allow menu usage
6633
6634 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6635
6636         * Cursor.cs: Allow null to be passed to Cursor.Current.
6637
6638 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6639
6640         * ThemeWin32Classic.cs:
6641           - Change some private methods/fields to protected virtual so that 
6642             they can be accessed and overriden in derived classes
6643           - First refactoring of some methods. Derived themes now don't 
6644             need to duplicate the complete code from ThemeWin32Classic
6645         * ThemeNice.cs:
6646           - Added nice StatusBar
6647           - Derive from ThemeWin32Classic and not Theme
6648           - Removed duplicate ThemeWin32Classic code
6649
6650 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6651
6652         * Control.cs (ControlCollection.Add): If the value null is passed
6653         the control is ignored. 
6654
6655         Optimize this loop.
6656
6657 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6658
6659         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6660           PostQuitMessage state.
6661         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6662
6663 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6664
6665         * Application.cs: Our constructor will never get called, move 
6666           initialization to fields; fixes bug #75933
6667
6668 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6669
6670         * FileDialog.cs :
6671                 - Allow files to be selected properly using file name
6672                 combo box.
6673                 - Add ability to change diretory (absolute / relative)
6674                 using file name combo box.
6675
6676 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6677          
6678         * ListBox.cs: 
6679                 - Fixes Multicolumn listboxes item wrong calculations
6680                 - Allows to click when only one item is in the listbox
6681                 - Fixes crash when no items using keyboard navigation
6682
6683 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6684
6685         * ComboBox.cs: Reverted almost everything from the latest patch which
6686           broke ComboBox
6687
6688 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6689         
6690         * ToolTip.cs:
6691                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6692         * ComboBox.cs:
6693                 - When DropDownStyle is Simple, it does not show scrollbar 
6694                 to the last item of the list.
6695                 - When DropDownStyle is Simple, it crashed when the list was 
6696                 scrolled down with the down cursor key.
6697                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6698                 selected item was not shown.
6699                 - The position of the selected item was not preserved when 
6700                 the next dropdown happened.
6701         * ThemeWin32Classic.cs:
6702                 - Items were wrapped at the right end.
6703         * CheckedListBox.cs:
6704                 - Fixed Add method
6705         * ListBox.cs:
6706                 - Items should be fully shown.
6707                 - When resizing and vertical scrollbar disappeared, the item 
6708                 of index 0 should be on the top of the list.
6709                 - GetItemRectangle should consider the size of ver. scrollbar
6710         * StatusBar.cs:
6711                 - SizingGrip area should not be allocated when it is not 
6712                 displayed.
6713                 - Now it reflects MinWidth of the containing panel and 
6714                 fixed a crash that happens when its width becomes so small.
6715
6716 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6717
6718         * CheckedListBox.cs: Fixes bug 76028
6719         * ListBox.cs: Fixes bug 76028
6720
6721 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6722
6723         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6724         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6725
6726 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6727
6728         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6729
6730 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6731
6732         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6733
6734 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6735
6736         * IRootGridEntry.cs: Added
6737         * PropertyGridCommands.cs: Added
6738         * PropertiesTab.cs: Added missing methods and property
6739         * PropertyGridView.cs: Made class internal
6740         * PropertyGridTextBox.cs: Made class internal
6741
6742 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6743
6744         * MimeIcon.cs: Try to check some other environment variables
6745           if "DESKTOP_SESSION" returns "default"
6746
6747 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6748
6749         * ThemeNice.cs: Corrected background colors (e.g. menus)
6750         * ColorDialog.cs: Use correct background colors for controls
6751
6752 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6753
6754         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6755
6756 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6757
6758         * RichTextBox.cs: Added initial implementation
6759         * lang.cs: Removed. Was accidentally checked in long time ago
6760         * TODO: Removed. Contents were obsolete
6761
6762 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6763                                                                                 
6764         * PropertiesTab.cs : Added
6765
6766 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6767                                                                                 
6768         * PropertyGrid.cs : Update
6769         * PropertyGridView.cs : Update
6770         * System.Windows.Forms.resx : Added images and strings
6771
6772 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6773
6774         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6775  
6776 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6777
6778         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6779           a busy loop right after the Ungrab the X11 display is otherwise 
6780           blocked
6781
6782 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6783
6784         * ThemeWin32Classic.cs: Optimise the use of clipping
6785
6786 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6787
6788         * DataGrid.cs: fixes recursion bug
6789
6790 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6791
6792         * ThemeNice.cs: 
6793           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6794           - Cleanup
6795
6796 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6797
6798         * ThemeNice.cs: Draw nice ProgressBars
6799
6800 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6801
6802         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6803
6804         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6805         bug finder.
6806
6807 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6808
6809         * ThemeNice.cs:
6810           - Added nicer menu drawing
6811           - Updated DrawTab
6812           - some refactoring
6813
6814 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6815
6816         * CreateParams.cs (ToString): Made output match MS
6817         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6818             handle is already created (to avoid forcing window creation)
6819         * XplatUIX11.cs: Set window text to caption after creating window,
6820           in case Text was set before window was created
6821         * Form.cs: Use this.Text instead of a static string as caption
6822
6823 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6824
6825         * NotifyIcon.cs: Don't set the window to visible; this screws
6826           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6827           OnPaint without a bitmap)
6828         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6829           happen very often anyway; we could add the check to the WM_PAINT 
6830           event generation code
6831
6832 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6833
6834         * NotifyIcon.cs: Fill the icon area with a background color, to 
6835           avoid 'residue' when transparent icons are drawn
6836         * XplatUIX11.cs:
6837           - Handle whole_window == client_window when destroying windows
6838           - SystrayAdd(): Set client_window to whole_window value to
6839             get mouse and other events passed to NotifyIcon
6840
6841 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6842
6843         * Form.cs: Set proper default for Opacity property
6844         * NotifyIcon.cs:
6845           - ShowSystray(): Don't bother creating telling the OS
6846             about the systray item if no icon is provided
6847           - Now handles WM_NCPAINT message to deal with whole/client window
6848             split
6849           - Create window as visible to not get caught by Expose optimization
6850         * Hwnd.cs: Removed debug message
6851         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6852           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6853             PaintEventStart/End to use new client argument
6854         * TextBoxBase.cs:
6855           - Commented out debug messages
6856           - Switched PaintEventStart/End to use new client argument
6857         * XplatUI.cs: Added client window bool to PaintEventStart()/
6858           PaintEventEnd() calls, to support drawing in non-client areas
6859         * XplatUIDriver.cs: 
6860           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6861             calls, to support drawing in non-client areas
6862           - Added conditional compile to allow using MWF BeginInvoke 
6863             on MS runtime
6864         * XplatUIX11.cs:
6865           - Added some conditional debug output
6866           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6867             whole/client window split
6868           - Implemented handling of client argument to PaintEventStart()/End()
6869         * Control.cs:
6870           - Throw exception if BeginInvoke() is called and the window handle
6871             or one of the window's parent handles is not created
6872           - Added conditional compile to allow using MWF BeginInvoke on
6873             MS runtime
6874           - get_Parent(): Only sets parent if handle is created. This avoids
6875             forcing window handle creation when parent is set.
6876           - Now fires Layout and Parent changed events in proper order
6877           - Switched to use Handle instead of window.Handle for Z-Order setting,
6878             the get_Parent() patch above causes us to possibly get null for 'window'
6879           - Implemented handling of client argument to PaintEventStart()/End()
6880           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6881             default handling)
6882           - Now sends a Refresh() to all child windows when Refresh() is called
6883
6884 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6885
6886         * Form.cs: Added (non-functional) Opacity property
6887         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6888
6889 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6890         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6891           use export MONO_THEME=nice to activate it.
6892           Currently supported controls:
6893           - Button
6894           - ComboBox
6895           - ScrollBar
6896           - TabControl (TabAlignment.Top only, other will follow)
6897         * ThemeEngine.cs: Add theme nice
6898         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6899           if enabled
6900
6901 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6902
6903         * Splitter.cs: Resize docked control and its neighbor.
6904
6905 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6906         -- Making Windows with Menus layout correctly --
6907         * Form.cs : The first leg of the fix
6908                 Menu setter - adjust Client Size as needed to make space for the menu
6909                 SetClientSizeCore - doesn't call base version to be able to pass the 
6910                         menu handle to XplatUI.CalculateWindowRect
6911         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6912         * XplatUIX11.cs: The critical second leg of the fix
6913                 GetWindowPos needs to use a recalculated client_rect
6914                 so that resizing the window doesn't break layout of child controls. 
6915                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6916                 Lots of \t\n killed
6917
6918 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6919
6920         * Label.cs: Now properly recalculates width and height on Font and Text
6921           changes if AutoSize is set
6922
6923 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6924         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6925
6926 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6927
6928         * ImageList.cs: Makes ToString method compatible with MS
6929
6930 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6931
6932         * MenuAPI.cs: fixes bug 75716
6933
6934 2005-08-11 Umadevi S <sumadevi@novell.com>
6935         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6936
6937 2005-08-11 Umadevi S <sumadevi@novell.com>
6938         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6939
6940 2005-08-10  Umadevi S <sumadevi@novell.com>
6941         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6942
6943 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6944
6945         * Menu.cs: fixes bug 75700
6946         * MenuAPI.cs: fixes navigation issues
6947
6948 2005-08-09  Umadevi S <sumadevi@novell.com>
6949         * CheckedListBox.cs - simple fix for GetItemChecked.
6950
6951 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6952
6953         * ComboBox.cs: Serveral fixes
6954         * ListBox.cs: Serveral fixes
6955
6956 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6957
6958         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6959         * ListBox.cs: Fixes FindString methods
6960
6961 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6962
6963         * DataGrid.cs: fixes bugs exposed by new tests
6964
6965 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
6966
6967         * Mime.cs: Compile Mono assembly references only if compiling
6968           with Mono (Allows to build with VS.Net again)
6969
6970 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
6971
6972         * Control.cs (PaintControlBackground): Draw background image
6973         corrrectly.
6974         (CheckForIllegalCrossThreadCalls): Stubbed.
6975         
6976         * Form.cs (OnCreateControl): Center when should be centered.
6977         
6978         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6979
6980 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
6981
6982         * Binding.cs: Binding to properties should be case unsensitive
6983
6984 2005-07-18 vlindos@nucleusys.com
6985
6986         * DataGrid.cs: fixes setmember order
6987
6988 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
6989
6990         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6991         * FileDialog.cs: FileDialog is now resizable and uses the new
6992           MimeIconEngine
6993
6994 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
6995
6996         * DataGridTextBoxColumn.cs: default value
6997         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6998         * GridTableStylesCollection.cs: fixes checking MappingName
6999         * DataGridDrawingLogic.cs: fixes drawing logic issues
7000         * DataSourceHelper.cs: rewritten to make compatible with more data sources
7001         * DataGrid.cs: fixes    
7002
7003 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
7004
7005         * MimeGenerated.cs: Use case sensitive comparer for
7006           NameValueCollections
7007
7008 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
7009
7010         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
7011         * ThemeWin32Classic.cs: bug fixes, code refactoring
7012         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
7013         * DataGrid.cs: bug fixes, code refactoring
7014         * DataGridTextBox.cs: bug fixes, code refactoring
7015         * DataGridColumnStyle.cs:  bug fixes, code refactoring
7016         * Theme.cs:  bug fixes, code refactoring
7017
7018 2005-07-01  Peter Bartok  <pbartok@novell.com> 
7019
7020         * TextControl.cs: Quick fix for the reported crash on ColorDialog
7021           and other text box usage
7022
7023 2005-07-01  Jackson Harper  <jackson@ximian.com>
7024
7025         * TabControl.cs: Make sure the bottom of the tab covers the pages
7026         border.
7027
7028 2005-06-30  Peter Bartok  <pbartok@novell.com> 
7029
7030         * Form.cs (ShowDialog): Assign owner of the dialog
7031         * TextBoxBase.cs: Always refresh caret size when deleting, caret
7032           might have been moved to a tag with different height
7033
7034 2005-06-30  Jackson Harper  <jackson@ximian.com>
7035
7036         * Form.cs: Don't create an infinite loop when setting focus
7037         * MenuItem.cs: Don't dirty the parents if we don't have any
7038
7039 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
7040
7041         * LibSupport.cs: Rename
7042
7043 2005-06-29  Peter Bartok  <pbartok@novell.com>
7044
7045         * TextBoxBase.cs: Re-align caret after deleting a character
7046         * TextControl.cs:
7047           - DeleteChars(): Ensure that tag covers the provided position
7048           - StreamLine(): Drop reference for dropped tag
7049
7050 2005-06-29  Peter Bartok  <pbartok@novell.com> 
7051
7052         * TextControl.cs: 
7053           - Selections now work properly, anchoring at the initial location
7054             and properly extending in either direction (SetSelectionToCaret(),
7055             SetSelectionStart() and SetSelectionEnd())
7056           - No longer redraws the whole control on selection change, now
7057             calculates delta between previous and new selection and only
7058             invalidates/redraws that area
7059           - Fixed FindPos() math off-by-one errors
7060           - Changed DeleteChars() to verify the provided tag covers the
7061             provided position, selections may have a tag that doesn't cover
7062             the position if the selection is at a tag border
7063           - Fixed off-by-one errors in DeleteChars()
7064           - Added missing streamlining check in DeleteChars() to remove
7065             zero-length tags
7066           - Implemented Invalidate() method, now properly calculates exposures
7067             between two given lines/positions
7068           - Implemented SetSelection()
7069           - Obsoleted and removed FixupSelection()
7070           - Improved RecalculateDocument() logic, removing code duplication
7071
7072 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7073
7074         * LibSupport.cs: changes to match different input/output arguments.
7075
7076 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7077
7078         * LibSupport.cs: added libsupport.so init routine.
7079
7080 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
7081         
7082         * ControlBindingsCollection.cs
7083                 - Throws an exception on null datasource when adding
7084                 - Checks for duplicated bindings when adding
7085
7086 2005-06-28  Jackson Harper  <jackson@ximian.com>
7087
7088         * TreeView.cs (OnKeyDown): Support left and right properly
7089         (navigates as well as expanding and collapsing.
7090         - Add support for Multiply, this expands all the selected nodes
7091         children.
7092         - Fix some tabbing.
7093
7094 2005-06-28  Jackson Harper  <jackson@ximian.com>
7095
7096         * TreeView.cs: Implement keyboard navigation, currently supports,
7097         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
7098         support for toggling checkboxes with the space bar.
7099
7100 2005-06-28  Jackson Harper  <jackson@ximian.com>
7101
7102         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
7103         tree.
7104
7105 2005-06-28  Jackson Harper  <jackson@ximian.com>
7106
7107         * TreeView.cs: Add missing event.
7108
7109 2005-06-27  Peter Bartok  <pbartok@novell.com> 
7110
7111         * TextControl.cs:
7112           - Made line ending size configurable (now allows for counting 
7113             lineendings as \n or \r\n)
7114           - Added margin to viewport to keep caret visible on right side
7115           - Fixed translation routines for line/pos to documentpos to consider
7116             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
7117           - Fixed some line-endings to be unix style
7118           - Fixed Document.FormatText to perform it's calculations 1-based
7119           - Added descriptions for a few methods that might otherwise get 
7120             used wrong
7121           - Added NOTE section with some basic conventions to remember at 
7122             the top of the file
7123           - Major fixup for RichTextBox selection drawing:
7124             * Fixed crashes when multiple tags on a single line were selected
7125             * fixed selection box drawing not overlaying text
7126             * fixed bogus offset calculation for tags not starting at index 1
7127             * Switched behaviour from using multiple Substrings of a 
7128               StringBuilder.ToString() to using multiple 
7129               StringBuilder.ToString(start, length) statements, hoping this is
7130               faster (kept original version commented out in the code, in case
7131               original version was faster)
7132         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
7133           alignment != Left
7134         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
7135           call it as well
7136
7137 2005-06-27  Jackson Harper  <jackson@ximian.com>
7138
7139         * TabControl.cs: Move to the left and right with the arrow
7140         keys. These keys don't cycle beyond first and last like
7141         tab. Refresh all the tabs when scrolling them to the left or
7142         right.
7143
7144 2005-06-27  Jackson Harper  <jackson@ximian.com>
7145
7146         * TabControl.cs:
7147           - ToString: Added method
7148           - CreateParams: Remove TODO and comment
7149           - OnKeyDown: Cycle through bounds properly.
7150           - SelectedIndex: Scroll to the right or left if we need to
7151           display the newly selected tab.
7152
7153 2005-06-23  Jackson Harper  <jackson@ximian.com>
7154
7155         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7156         set.
7157
7158 2005-06-23  Jackson Harper  <jackson@ximian.com>
7159
7160         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7161         CTRL-SHIFT-TAB, and HOME, END are there any others?
7162
7163 2005-06-23  Jackson Harper  <jackson@ximian.com>
7164
7165         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
7166
7167 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7168         
7169         * DataGridTextBoxColumn.cs: fixes and enhancements
7170         * ThemeWin32Classic.cs: fixes and enhancements
7171         * DataGridBoolColumn.cs:  fixes and enhancements
7172         * DataGridDrawingLogic.cs:  fixes and enhancements
7173         * CurrencyManager.cs: fixes and enhancements
7174         * DataGrid.cs: fixes and enhancements
7175         * DataGridColumnStyle.cs:  fixes and enhancements
7176
7177 2005-06-22  Jackson Harper  <jackson@ximian.com>
7178
7179         * TabControl.cs: Add some missing methods that just call into the
7180         base. Make the TabPageCollection's IList interface behave in the
7181         same manner as the MS implementation.
7182
7183 2005-06-22  Peter Bartok  <pbartok@novell.com> 
7184
7185         * TextControl.cs: Added sanity check
7186         * TextBoxBase.cs: 
7187           - Fixed wrapping behaviour, don't set wrap on single line controls
7188             (this fixes the breakage of colordialog introduced in an earlier
7189              checkin)
7190           - Added rudimentary support for autoscrolling right-aligned controls
7191             (still needs fixing, also, center alignment scroll is missing)
7192
7193 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7194         
7195         * ScrollBar.cs: Fixes thumbpos on Maximum values
7196
7197 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
7198         
7199         * PropertyGridView.cs: Pass context information to UITypeEditors 
7200
7201 2005-06-21  Peter Bartok  <pbartok@novell.com> 
7202
7203         * TextBoxBase.cs:
7204           - Now calling PositionCaret with absolute space coordinates
7205           - Enabled vertical scrolling
7206           - Better tracking of scrollbar changes, tied into WidthChange
7207             event
7208           - Improved cursor tracking
7209           - Removed debug output
7210         * TextControl.cs:
7211           - PositionCaret coordinates are now works in absolute space, not 
7212             the canvas
7213           - Improved tracking of document size
7214           - Added events for width and height changes
7215
7216 2005-06-21  Peter Bartok  <pbartok@novell.com>
7217
7218         * Form.cs: Set focus to active control when form is activated
7219         * TextControl.cs: 
7220           - Added word-wrap functionality to RecalculateLine() 
7221           - Added some short function descriptions for VS.Net to aid in
7222             writing dependent controls
7223           - Added Caret property, returning the current coords of the caret
7224           - Added ViewPortWidth and ViewPortHeight properties
7225           - Added Wrap property
7226           - Added CaretMoved event
7227           - Removed some old debug code
7228           - Split() can now create soft splits
7229           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
7230           - Added method to format existing text
7231           - Fixed size/alignment calculations to use viewport
7232           - RecalculateDocument now can handle changing line-numbers while
7233             calculating lines
7234
7235         * TextBox.cs:
7236           - Added some wrap logic, we don't wrap if alignment is not left
7237           - Added casts for scrollbar var, base class switched types to
7238             also support RichTextBoxA
7239           - Implemented handling of scrollbar visibility flags
7240
7241         * TextBoxBase.cs:
7242           - Switched scrollbars type to RichTextBoxScrollBars to support
7243             RichTextBox
7244           - Added tracking of canvas width/height
7245           - Switched scrollbars to be not selectable (to keep focus on text)
7246           - Added central CalculateDocument() method to handle all redraw
7247             requirements
7248           - Added ReadOnly support
7249           - Added WordWrap support
7250           - Fixed handling of Enter key (we now treat it as a DialogKey)
7251           - Fixed caret positioning when h or v scroll is not zero
7252           - Fixed placing/generation of vertical scrollbar
7253           - Added CalculateScrollBars() method to allow updating scrollbar
7254             limits and visibility
7255           - Fixed handling of horizontal scroll
7256           - Added handling of vertical scroll
7257           - Implemented auto-'jump' when caret moves to close to a left or
7258             right border and there is text to be scrolled into view (currently
7259             there's the potential for a stack overflow, until a bug in
7260             scrollbar is fixed)
7261
7262 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7263         
7264         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7265
7266 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7267
7268         * Mime.cs:
7269         - added inodes.
7270         - return application/x-zerosize for files with size zero
7271           (if no extension pattern matches).
7272         - check matches collection for strings too.
7273         - return only the first mime type if the name value
7274           collection has more than one mime type.
7275
7276 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7277         
7278         * PropertyGrid.cs: Cleaned up some TODOs
7279         * PropertyGridView.cs: Added support for UITypeEditors
7280
7281 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7282         
7283         * DataGrid.cs: clears cached value
7284
7285 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7286
7287         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7288         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7289         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7290         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7291         
7292 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7293
7294         * ThemeWin32Classic.cs: fixes colour
7295
7296 2005-06-15  Peter Bartok  <pbartok@novell.com>
7297
7298         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7299         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7300         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7301         * Control.cs: Added some MWFCategory and MWFDescription attributes
7302         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7303
7304 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7305
7306         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7307         usage
7308
7309 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7310
7311         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7312         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7313         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7314         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7315         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7316         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7317
7318 2005-06-13  Jackson Harper  <jackson@ximian.com>
7319
7320         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7321         isn't printed when the user enables dropping. (X11 does accept
7322         drops).
7323         
7324 2005-06-13  Jackson Harper  <jackson@ximian.com>
7325
7326         * TreeView.cs: Remove some TODOS.
7327
7328 2005-06-13  Jackson Harper  <jackson@ximian.com>
7329
7330         * Form.cs: Hook into the mdi framework.
7331         * MdiClient.cs: Use the base control collections add method so
7332         parents get setup correctly. Set the default back colour and dock
7333         style.
7334         * MdiChildContext.cs: New class, this bad actor handles an
7335         instance of an MDI window. Right now there is only basic
7336         support. You can drag, close, and resize windows. Minimize and
7337         Maximize are partially implemented.
7338
7339 2005-06-13  Jackson Harper  <jackson@ximian.com>
7340
7341         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7342         freaky when both vals are negative. NOTE: There are probably other
7343         places in XplatUIX11 that this needs to be done.
7344
7345 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7346
7347         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7348         * DataGridColumnStyle.cs: fixes signature
7349
7350 2005-06-12  Jackson Harper  <jackson@ximian.com>
7351
7352         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7353         windows.
7354
7355 2005-06-11  Jackson Harper  <jackson@ximian.com>
7356
7357         * StatusBarPanel.cs: Signature cleanups. Implement
7358         BeginInit/EndInit.
7359
7360 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7361
7362         * DataGridTextBoxColumn.cs: Honors aligment
7363         * GridColumnStylesCollection.cs: Contains is case unsensitive
7364         * GridTableStylesCollection.cs: several fixes
7365         * DataGridTableStyle.cs: default column creation
7366         * DataGridDrawingLogic.cs: fixes
7367         * CurrencyManager.cs: ListName property
7368         * DataGrid.cs: multiple styles support
7369         * DataGridColumnStyle.cs: fixes
7370         
7371
7372 2005-06-10  Peter Bartok  <pbartok@novell.com>
7373
7374         * Control.cs(Select): Moved SetFocus call to avoid potential
7375           loops if controls change the active control when getting focus
7376         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7377           the up/down buttons
7378
7379 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7380
7381         * ImageListConverter.cs: Implemented
7382
7383 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7384
7385         * MonthCalendar.cs: Wired in NumericUpDown control for year
7386
7387 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7388
7389         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7390           DoubleClick events, since they are not meant to be fired.
7391
7392 2005-06-09  Peter Bartok  <pbartok@novell.com>
7393
7394         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7395           Jonathan's standalone controls into MWF, implemented missing
7396           events, attributes and methods; added xxxAccessible classes
7397         * AccessibleObject.cs: Made fields internal so other classes
7398           can change them if needed
7399
7400 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
7401
7402         * UpDownBase.cs: Complete implementation
7403         * NumericUpDown.cs: Complete implementation
7404         * DomainUpDown.cs: Complete implementation
7405
7406 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
7407
7408         * DataGridTextBoxColumn.cs: drawing fixes
7409         * DataGridCell.cs: fixes ToString method to match MSNet
7410         * DataGridTableStyle.cs: fixes
7411         * DataGridBoolColumn.cs: fixes, drawing
7412         * DataGridDrawingLogic.cs: fixes, new methods
7413         * DataGridTextBox.cs: Keyboard and fixes
7414         * DataGrid.cs:
7415                 - Keyboard navigation
7416                 - Scrolling fixes
7417                 - Row selection (single, multiple, deletion, etc)
7418                 - Lots of fixes
7419         
7420 2005-06-07  Jackson Harper  <jackson@ximian.com>
7421
7422         * ThemeWin32Classic.cs: Clear the background area when drawing
7423         buttons.
7424
7425 2005-06-06  Peter Bartok  <pbartok@novell.com>
7426
7427         * ImageListStreamer.cs: Fixed signature for GetData
7428         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7429         * ComboBox.cs:
7430           - Added missing ChildAccessibleObject class
7431           - Added missing OnXXXFocus overrides, switched to using those
7432             instead of the event handler
7433         * Control.cs:
7434           - Added Parent property for ControlAccessibleObject
7435           - Fixed signatures
7436           - Fixed attributes
7437           - Added ResetBindings()
7438         * ListBindingConverter.cs: Implemented some methods
7439         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7440         * ImageList.cs: Implemented basic handle scheme, removed TODOs
7441         * ContainerControl.cs: Fixed signature, now subscribing to the
7442           ControlRemoved event instead of overriding the handler, LAMESPEC
7443         * CurrencyManager.cs: Added missing attribute
7444         * MonthCalendar.cs: Added missing properties
7445
7446 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7447
7448         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7449         
7450 2005-06-06  Gaurav Vaish and Ankit Jain
7451
7452         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7453         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7454         
7455 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7456
7457         * Control.cs: fixes CreateParams Width / Height.
7458
7459 2005-06-05  Peter Bartok  <pbartok@novell.com>
7460
7461         * Win32DnD.cs: Removed compilation warnings
7462
7463 2005-06-05  Peter Bartok  <pbartok@novell.com>
7464
7465         * Control.cs (CreateParams): Since we don't know if one of the
7466           properties we use is overridden, lets make sure if we fail accessing
7467           we continue with a backup plan
7468
7469 2005-06-05  Peter Bartok  <pbartok@novell.com>
7470
7471         * Win32DnD.cs:
7472           - Removed debug output
7473           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7474             struct
7475           - Plugged resource leak
7476         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7477           MS size
7478
7479 2005-06-05  Peter Bartok  <pbartok@novell.com>
7480
7481         * XplatUIWin32.cs: Removed DnD code
7482         * Win32DnD.cs: Implemented drop source and drop target functionality
7483
7484 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7485
7486         * UpDownBase.cs: remove duplicate addition of event, enable some code
7487         that was commented out.
7488         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7489         Validate input when a key is pressed. It works fine now for every
7490         combination of Hexadecimal. Only missing some drawing love when sharing
7491         space with other controls.
7492
7493 2005-06-04  Peter Bartok  <pbartok@novell.com>
7494
7495         * Control.cs:
7496           - We need to pass a window for DragDrop, so enable callback events
7497           - Added DnD callback events when being a DragSource
7498         * XplatUI.cs (StartDrag): Added window handle argument
7499         * XplatUIDriver.cs (StartDrag): Added window handle argument
7500         * QueryContinueDragEventArgs: Made fields internally accessible so
7501           drivers can set them
7502         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7503           can set them
7504
7505 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
7506
7507         * DataGridTextBoxColumn.cs: column text editing
7508         * DataGridTableStyle.cs: Respect columns styles created by the user
7509         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7510         * DataGridBoolColumn.cs: bool column editing
7511         * DataGrid.cs: fixes to scrolling, properties, etc
7512         * DataGridTextBox.cs: handle keyboard
7513         * DataGridColumnStyle.cs: fixes
7514
7515 2005-06-02  Jackson Harper  <jackson@ximian.com>
7516
7517         * ImageListStreamer.cs: Somewhat broken implementation of
7518         GetObjectData. The RLE needs some work to match MS properly.
7519
7520 2005-06-02  Jackson Harper  <jackson@ximian.com>
7521
7522         * X11Dnd.cs: Attempting to keep at least one file in MWF
7523         monostyled.
7524
7525 2005-06-02  Peter Bartok  <pbartok@novell.com>
7526
7527         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7528           that way
7529
7530 2005-06-02  Peter Bartok  <pbartok@novell.com>
7531
7532         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7533         * XplatUI.cs: Added DoDragDrop() method
7534         * XplatUIDriver.cs: Added DoDragDrop() method
7535
7536 2005-06-02  Jackson Harper  <jackson@ximian.com>
7537
7538         * Splitter.cs: Implement BorderStyle.
7539
7540 2005-06-02  Jackson Harper  <jackson@ximian.com>
7541
7542         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7543         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7544         X11 using XDND.
7545
7546 2005-06-02  Peter Bartok  <pbartok@novell.com>
7547
7548         * DataObject.cs:
7549           - Added Data setter
7550           - Fixed broken insertion code for SetData, now also
7551             overwrites any existing entry of the same format name
7552         * Hwnd.cs: Added list of pointers that automatically gets
7553           freed when the window is disposed
7554         * XplatUI.cs: Call driver initialization method when loading
7555           a driver
7556         * Control.cs:
7557           - OnDragLeave takes EventArgs, not DragEventArgs
7558           - Added setting of WS_EX_ACCEPTFILES style when dropping is
7559             supported
7560           - Forces style update when drop state changes
7561         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7562           not perfect since we cannot (yet) call the IDataObject.GetData()
7563           method, we keep getting 0x80004005 error, dunno why)
7564
7565 2005-06-02  Peter Bartok  <pbartok@novell.com>
7566
7567         * DragEventArgs.cs: Make fields internal so we can cache the
7568           object and re-set the fields from XplatUI
7569
7570 2005-06-02  Jackson Harper  <jackson@ximian.com>
7571
7572         * Control.cs: Add some internal methods so the DnD subsystem can
7573         raise DnD events. Also call into the driver when AllowDrop is set.
7574         * XplatUI.cs:
7575         * XplatUIDriver.cs: New method for setting whether or not a window
7576         is allowed to accept drag and drop messages.
7577                 
7578 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7579         
7580         * ScrollBar.cs: Make sure that values sent in Scroll events
7581         are always between Maximum and Minimum.
7582
7583 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7584
7585         * Menu.cs: Call MenuChanged when menuitem visibility has been
7586         changed.
7587         * MenuItem.cs: Rebuild menu when item is (not) visible.
7588         * MainMenu.cs: MainMenu has special MenuChanged.
7589         * Theme.cs: Caption and FrameBorderSize are not fixed.
7590         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7591         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7592         * XplatUIX11.cs,
7593         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7594         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7595
7596 2005-05-30  Jackson Harper  <jackson@ximian.com>
7597
7598         * DataFormat.cs: We can't statically initialize this stuff because
7599         it calls into the xplatui and could create a loop. So we lazy init
7600         it.
7601
7602 2005-05-28  Jackson Harper  <jackson@ximian.com>
7603
7604         * Control.cs: Proper implementation of Product(Name/Version).
7605
7606 2005-05-27  Jackson Harper  <jackson@ximian.com>
7607
7608         * DataObject.cs: Dont crash if no data is found.
7609
7610 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7611         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7612                 as per status page, guessing it should be set to true
7613
7614 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7615
7616         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7617         * DataGridTableStyle.cs: set proper formatting text, def header text
7618         * ThemeWin32Classic.cs: new themable paramaters
7619         * DataGridBoolColumn.cs: paint check box, get data, fixes
7620         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7621         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7622         * DataGridColumnStyle.cs: fixes
7623         * Theme.cs: new themable paramaters
7624                 
7625 2005-05-26  Peter Bartok  <pbartok@novell.com>
7626
7627         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7628
7629 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7630         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7631
7632 2005-05-24  Peter Bartok  <pbartok@novell.com>
7633
7634         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7635           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7636           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7637           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7638           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7639           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7640           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7641           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7642           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7643           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7644           missing attributes, etc
7645         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7646
7647 2005-05-24  Peter Bartok  <pbartok@novell.com>
7648
7649         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7650           when user tries to get help
7651         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7652           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7653           to suppress warnings
7654         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7655           avoid unreachable code warning
7656
7657 2005-05-20  Peter Bartok  <pbartok@novell.com>
7658
7659         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7660
7661 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7662
7663         * DataGridTextBoxColumn.cs: Basic painting methods
7664         * DataGridTableStyle.cs: Set table style in the column
7665         * ThemeWin32Classic.cs: Use Theme for colors
7666         * DataGridDrawingLogic.cs: Implement more drawing
7667         * DataGrid.cs: drawing, theming, enhacements, fixes
7668         * DataGridColumnStyle.cs: fixes, drawing
7669         * Theme.cs: theming for Datagrid
7670
7671 2005-05-20  Peter Bartok  <pbartok@novell.com>
7672
7673         * Cursor.cs: Implemented GetObjectData() method
7674
7675 2005-05-20  Peter Bartok  <pbartok@novell.com>
7676
7677         * Cursors.cs: Added setting of cursor name
7678         * Cursor.cs:
7679           - Implemented constructors
7680           - Implemented Draw and DrawStretched
7681           - Implemented Current property
7682           - Implemented == and != operators
7683           - Implemented Dispose()
7684           - Implemented ToString
7685           - Added missing attributes
7686         * XplatUIX11.cs:
7687           - Added missing reset for OverrideCursor when DoEvents is called
7688           - Fixed creation of cursor, logic was wrong
7689         * XplatUIWin32.cs:
7690           - Added missing reset for OverrideCursor when DoEvents is called
7691           - Fixed creation of cursor, bit arrays were swapped
7692         * Clipboard.cs: Removed obsolete MonoTODO attribute
7693
7694 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7695
7696         * ComboBox.cs: fixes OnSelectedItemChanged
7697         * ControlBindingsCollection.cs: fixes item range check
7698
7699 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7700
7701         * UpDownBase.cs:
7702                 - Calc preferred height properly
7703                 - Implement missing properties
7704                 
7705         * NumericUpDown.cs: Implement missing events
7706
7707 2005-05-19  Jackson Harper  <jackson@ximian.com>
7708
7709         * TabControl.cs: New method that resizes the tab pages before
7710         redrawing them. This as needed as the control is double buffered
7711         and sizing will not be recalculated unless ResizeTabPages is
7712         called.
7713         * TabPage.cs: Set base.Text instead of Text in the constructor so
7714         that UpdateOwner does not get called. Use the new Redraw method of
7715         TabControl instead of Refresh so the sizing is recalculated.
7716         * ThemeWin32Classic.cs: Draw the text for button tabs.
7717
7718 2005-05-19  Jackson Harper  <jackson@ximian.com>
7719
7720         * Control.cs: Paint control background images. Fix typo where
7721         PaintControlBackground was not getting called correctly.
7722
7723 2005-05-19  Peter Bartok  <pbartok@novell.com>
7724
7725         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7726           I can investigate, apparently I broke FileDialog
7727
7728 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7729
7730         * AxHost.cs: Some simple properties.
7731         * Control.cs: window must be accessible after ctor.
7732         * Form.cs: Added TransparencyKey property.
7733         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7734         * XplatUIWin32.cs: SetBorderStyle implemented.
7735
7736 2005-05-18  Peter Bartok  <pbartok@novell.com>
7737
7738         * DataObject.cs: Entries are not global but particular to the
7739           DataObject, now it behaves that way
7740         * XplatUIWin32.cs: Implemented Clipboard methods
7741         * Clipboard.cs: Implemented
7742         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7743         * XplatUIOSX.cs: Updated to final clipboard prototypes
7744         * XplatUIX11.cs: Implemented Clipboard methods
7745         * XplatUIDriver.cs: Updated to final clipboard prototypes
7746         * XplatUIStructs.cs:
7747           - Added BITMAPINFOHEADER struct
7748           - Added ClipboardFormats enum
7749         * X11Structs.cs:
7750           - Added ClipboardStruct
7751           - Added Atom enum items for clipboard types
7752           - Fixed atom types for Selection event structures
7753         * DataFormats.cs:
7754           - Added internal properties and methods for drivers to enumerate
7755             all known formats
7756           - Switched initialization method to allow drivers to assign their
7757             own IDs even for the MS predefined clipboard IDs
7758         * XplatUI.cs: Updated to final clipboard interface
7759
7760 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7761         * PropertyGridView.cs: Fixed compiler warnings.
7762
7763 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7764         * PropertyGrid.cs: Added some event calls
7765         * PropertyGridView.cs: Change drawing code to use double buffering
7766         * PropertyGridTextBox.cs: Changed Text property name
7767         * GridItem.cs: Added Bounds property.
7768         * GridEntry.cs: Added Bounds property.
7769
7770 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7771
7772         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7773         since GetType() may not return the correct type if the object is
7774         a remoting proxy.
7775
7776 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7777
7778         * TreeNodeCollection.cs: fixes get/set item ranges
7779         
7780 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7781
7782         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7783                 
7784 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7785
7786         * ComboBox.cs: Fix item range comparation
7787         * ListView.cs: Fix item range comparation
7788
7789 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7790
7791         * FontDialog.cs:
7792           - Clear example panel when OnPaint is called
7793           - Better solution for displaying the example panel text
7794           - Select default indexes in the ListBoxes
7795
7796 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7797
7798         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7799
7800 2005-05-11  Peter Bartok  <pbartok@novell.com>
7801
7802         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7803         * SelectionRangeConverter.cs: Implemented
7804         * PropertyGrid.cs: Fixed attribute value
7805         * Control.cs:
7806           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7807           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7808         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7809           that's common to all drivers. First methods to go there are
7810           Sebastien Pouliot's CAS Stack Propagation helper methods
7811         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7812           Sebastien Pouliot for CAS Stack Propagation
7813
7814 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7815
7816         * OSXStructs.cs:
7817           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7818
7819 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7820
7821         * DataGridTextBoxColumn.cs: fixed some members
7822         * GridColumnStylesCollection.cs: indexed column is case insensitive
7823         * DataGridTableStyle.cs: fixes
7824         * ThemeWin32Classic.cs: add new theme parameter
7825         * Theme.cs: add new theme parameter
7826         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7827         * DataGrid.cs: fixes, new internal properties, etc.
7828         * DataGridColumnStyle.cs: allows to set grid value
7829         *
7830
7831 2005-05-10  Peter Bartok  <pbartok@novell.com>
7832
7833         * AccessibleObject.cs:
7834           - Removed MonoTODO attribute on help, method is correct
7835           - Fixed Bounds property
7836         * AxHost.cs: Moved MonoTODO
7837         * ButtonBase.cs: Now setting AccessibleObject properties
7838         * RadioButton.cs: Setting proper AccessibleObject role
7839         * CheckBox.cs: Setting proper AccessibleObject role
7840         * ControlBindingsCollection.cs: Added properties, methods and attributes
7841         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7842           userdefined DataFormats.Format items as well
7843         * ListControl.cs: Removed data_member from the public eye
7844         * OpenFileDialog.cs:
7845           - Made class sealed
7846           - Added missing attributes
7847         * SaveFileDialog.cs: Added missing attributes
7848         * ImageListStreamer.cs: Fixed code that caused warnings
7849         * LinkLabel.cs: Removed unreachable code
7850         * TreeView.cs: Fixed code that caused warnings
7851         * PropertyGridView.cs: Fixed code that caused warnings
7852         * GridColumnStylesCollection.cs: Added missing attributes
7853         * GridTableStylesCollection: Added missing attribute
7854         * PropertyManager: Added .ctor
7855         * SecurityIDType: Added
7856         * DataObject.cs: Implemented class
7857         * LinkArea.cs: Added missing attribute
7858
7859 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7860
7861         * RadioButton.cs: call base method to allow to fire OnClick event
7862         * UpDownBase.cs: OnMouseUp call base method
7863         * CheckedListBox.cs: call base method before returning
7864         * TrackBar.cs: call base method before returning
7865         
7866
7867 2005-05-10  Peter Bartok  <pbartok@novell.com>
7868
7869         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7870           for messages
7871
7872 2005-05-10  Peter Bartok  <pbartok@novell.com>
7873
7874         * DataFormats.cs: Implemented
7875         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7876           XplatUIX11.cs: Added Clipboard APIs
7877         * XplatUIWin32.cs: Implemented Clipboard APIs
7878         * FolderBrowserDialog.cs: Added missing event, attributes
7879
7880 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7881
7882         * CheckBox.cs: call base method to allow to fire OnClick event
7883
7884 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7885
7886         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7887
7888 2005-05-06  Peter Bartok  <pbartok@novell.com>
7889
7890         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7891         * Screen.cs: Implemented
7892         * HelpNavigator.cs: Added
7893         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7894           property
7895         * HelpProvider.cs: Implemented all we can do until we have a CHM
7896           help library (which means that "What's This" does work now)
7897
7898 2005-05-06  Jackson Harper  <jackson@ximian.com>
7899
7900         * XplatUIX11.cs: Fix waking up the main loop.
7901                 
7902 2005-05-05  Peter Bartok  <pbartok@novell.com>
7903
7904         * XplatUI.cs: Updated revision
7905         * Form.cs: Removed enless loop
7906         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7907         * Label.cs (OnPaint): Added call to base.OnPaint()
7908         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7909         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7910         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7911         * AxHost.cs: Added
7912         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7913         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7914           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7915           reuse of ToolTipWindow by other controls
7916         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7917         * XplatUIX11.cs: Now clipping drawing area (experimental)
7918         * PictureBox.cs: Moved base.OnPaint() call to end of method
7919         * Theme.cs: Fixed ToolTip abstracts to match new format
7920         * ErrorProvider.cs: Implemented
7921
7922 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7923
7924         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7925         * LinkLabel.cs:
7926                 - Adds cursors
7927                 - Handles focus
7928                 - Implements LinkBehavior
7929                 - Fixes many issues
7930
7931 2005-05-03  Jackson Harper  <jackson@ximian.com>
7932
7933         * ListView.cs: Calculate the scrollbar positioning on resize and
7934         paint, so they get put in the correct place.
7935
7936 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7937
7938         * ColorDialogs.cs: The small color panels are now handled by
7939           SmallColorControl. This fixes drawing of the focus rectangle
7940           and adds a 3D border.
7941
7942 2005-05-03  Peter Bartok  <pbartok@novell.com>
7943
7944         * Control.cs: Modified version of Jonathan Chamber's fix for
7945           double-buffering
7946
7947 2005-05-03  Jackson Harper  <jackson@ximian.com>
7948
7949         * ListView.cs: Remove redraw variable. Control now handles whether
7950         or not a redraw needs to be done, and will only raise the paint
7951         event if redrawing is needed.
7952
7953 2005-05-03  Jackson Harper  <jackson@ximian.com>
7954
7955         * Splitter.cs: No decorations for the splitter form. Cache the
7956         hatch brush.
7957
7958 2005-05-03  Jackson Harper  <jackson@ximian.com>
7959
7960         * TreeView.cs: Use dashed lines to connect nodes. Use the
7961         ControlPaint method for drawing the focus rect instead of doing
7962         that in treeview.
7963
7964 2005-05-02  Peter Bartok  <pbartok@novell.com>
7965
7966         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7967
7968 2005-04-29  Jackson Harper  <jackson@ximian.com>
7969
7970         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7971         entire image buffer. Just clear the clipping rectangle.
7972
7973 2005-04-29  Jackson Harper  <jackson@ximian.com>
7974
7975         * ThemeWin32Classic.cs: Don't draw list view items that are
7976         outside the clipping rectangle.
7977
7978 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
7979
7980         * ListBox.cs: added horizontal item scroll
7981
7982 2005-04-29  Jackson Harper  <jackson@ximian.com>
7983
7984         * ThemeWin32Classic.cs: Remove some old debug code that was
7985         causing flicker with the new double buffering code.
7986
7987 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
7988
7989         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7990         behave like combobox and comboboxlist (still not sure if this is
7991         correct though).
7992
7993 2005-04-28  Jackson Harper  <jackson@ximian.com>
7994
7995         * ThemeWin32Classic.cs: Don't fill the middle of progress
7996         bars. This fills areas outside of the clip bounds that don't need
7997         to be filled.
7998
7999 2005-04-28  Jackson Harper  <jackson@ximian.com>
8000
8001         * Control.cs: Don't expose functionality to touch the image buffers.
8002         * ProgressBar.cs:
8003         * ListView.cs: We do not need to (and no longer can) manipulate
8004         the image buffers directly. All of this is handled by Control.
8005
8006 2005-04-28  Peter Bartok  <pbartok@novell.com>
8007
8008         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
8009           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
8010           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
8011
8012 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8013
8014         * Combobox:
8015                 - Adjust control's height for non-simple comboboxes (bug fix)
8016                 - Remove dead code
8017         * MenuAPI.cs: remove unused var
8018         * ScrollBar.cs: remove unsed var
8019                  
8020         * ListBox.cs: unselect items when clearing
8021
8022 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
8023
8024         * ListControl.cs: honors OnPositionChanged and default Selected Item
8025         * ListBox.cs: unselect items when clearing
8026
8027 2005-04-27  Jackson Harper  <jackson@ximian.com>
8028
8029         * X11Keyboard.cs: Initialize a default keyboard and give a warning
8030         if a "correct" keyboard is not found. This will make us not crash,
8031         but might give some users bad keyboard layouts...seems to be the
8032         same thing rewind does.
8033
8034 2005-04-27  Jackson Harper  <jackson@ximian.com>
8035
8036         * BindingManagerBase.cs: Attach the current/position changed
8037         handlers to their respective events.
8038
8039 2005-04-27  Jackson Harper  <jackson@ximian.com>
8040
8041         * Control.cs: Make sure that the first WM_PAINT does a full draw,
8042         not just a blit.
8043         * ThemeWin32Classic.cs: Don't fill the background for picture
8044         boxes. This could overright user drawing.
8045         * ComboBox.cs: Just fill the clipping rect not the entire client
8046         rect when drawing the background. This prevents pieces of the
8047         image buffer from getting overwritten and is theoretically faster.
8048
8049 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
8050
8051         * ComboBox.cs: Databinding support fixes, fire missing events
8052         * ListControl.cs: implement missing methods and properties, fixes
8053         * ThemeWin32Classic.cs: Databiding support on Drawing
8054         * CheckedListBox.cs: Databinding support fixes, fire missing events
8055         * ListBox.cs: Databinding support fixes, fire missing events
8056         
8057 2005-04-25  Peter Bartok  <pbartok@novell.com>
8058
8059         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
8060
8061 2005-04-25  Jackson Harper  <jackson@ximian.com>
8062
8063         * TreeView.cs: Use the horizontal scrollbars height not width when
8064         determining how much of the client area is available.
8065
8066 2005-04-25  Jackson Harper  <jackson@ximian.com>
8067
8068         * Control.cs: Double buffering is handled differently now. As per
8069         the spec, the extra buffer is created in the WM_PAINT message and
8070         passed down to the control's drawing code.
8071         * GroupBox.cs:
8072         * Label.cs:
8073         * CheckBox.cs:
8074         * ProgressBar.cs:
8075         * RadioButton.cs:
8076         * ColorDialog.cs:
8077         * ComboBox.cs:
8078         * PropertyGridView.cs:
8079         * UpDownBase.cs:
8080         * MessageBox.cs:
8081         * MenuAPI.cs:
8082         * ListView.cs:
8083         * ButtonBase.cs:
8084         * SizeGrip.cs:
8085         * ScrollBar.cs:
8086         * ListBox.cs:
8087         * TrackBar.cs:
8088         * ToolBar.cs:
8089         * PictureBox.cs:
8090         * DateTimePicker.cs:
8091         * StatusBar.cs:
8092         * TreeView.cs: Update to new double buffering system.
8093         * MonthCalendar.cs: Uncomment block, as Capture is now
8094         working. Update to new double buffering
8095         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
8096         * PaintEventArgs.cs: New internal method allows us to set the
8097         graphics object. This is used for double buffering.
8098         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
8099         rectangle. The internal paint_area var has been removed from
8100         StatusBar. The clipping rect should be used instead.
8101         * Theme.cs: Give the PictureBox drawing method a clipping rect.
8102         * TabPage.cs: The RefreshTabs method was removed, so just call the
8103         tab controls Refresh method now.
8104         * TabControl.cs: Update to new double buffering. Make sure the
8105         handle is created before sizing the tab pages, otherwise we will
8106         get stuck in a loop.
8107
8108 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
8109
8110         * LinkLabel.cs: Fix typo, bug #74719; patch
8111           from Borja Sanchez Zamorano
8112
8113 2005-04-22  Jackson Harper  <jackson@ximian.com>
8114
8115         * TreeNode.cs: Implement Handle stuff.
8116         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
8117
8118 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
8119
8120         * DataGridTextBoxColumn.cs: call base constructors, fixes
8121         * GridColumnStylesCollection.cs: missing events, methods, and functionality
8122         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
8123         * DataGridTableStyle.cs: implements create default column styles
8124         * DataGridBoolColumn.cs: which types can handle
8125         * DataGrid.cs: missing methods, fixes, new functionality
8126         * DataGridColumnStyle.cs: fixes
8127
8128 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
8129         * FolderBrowserDialog.cs:
8130         - Use a thread to fill the TreeView
8131         - Adjusted some sizes
8132
8133 2005-04-19  Peter Bartok  <pbartok@novell.com>
8134
8135         * LinkLabel.cs: (Re-)create the pieces when setting the Text
8136           property. Fixes #74360.
8137
8138 2005-04-19  Jackson Harper  <jackson@ximian.com>
8139
8140         * XEventQueue.cs: Lock when getting the lockqueue size.
8141         * PictureBox.cs: Call base OnPaint
8142         
8143 2005-04-19  Peter Bartok  <pbartok@novell.com>
8144
8145         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8146           messages were no longer being processed (this broke BeginInvoke)
8147
8148           
8149 2005-04-18  Jackson Harper  <jackson@ximian.com>
8150
8151         * TreeView.cs: buglet that caused node images to get drawn
8152         regardless of whether or not they were in the clipping rectangle.
8153
8154 2005-04-18  Jackson Harper  <jackson@ximian.com>
8155
8156         * CurrencyManager.cs: There are four rules for GetItemProperties:
8157         - If the type is an array use the element type of the array
8158         - If the type is a typed list, use the type
8159         - If the list contains an Item property that is not an object, use
8160         that property
8161         - use the first element of the list if there are any elements in
8162         the list.
8163         
8164 2005-04-17  Jackson Harper  <jackson@ximian.oom>
8165
8166         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
8167         click. This handles offsets for scrolling properly and reduces
8168         memory. Also fixed GetNode to not offset now that TopNode works
8169         properly.
8170         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
8171         
8172 2005-04-17  Jackson Harper  <jackson@ximian.com>
8173
8174         * CursorConverter.cs: Initial implementation.
8175
8176 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8177
8178         * ListControl.cs: work towards complex data binding support on ListControl
8179         * CurrencyManager.cs: work towards complex data binding support on ListControl
8180         * ListBox.cs: work towards complex data binding support on ListControl
8181
8182
8183 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8184
8185         * GridTableStylesCollection.cs: fixes name and constructor
8186         * DataGridTableStyle.cs: fixes
8187         * DataGridBoolColumn.cs: fixes names and constructors
8188         * DataGrid.cs: define methods and properties. Some init implementations
8189         * DataGridCell.cs: define methods and properties. Some init implementations
8190         * GridTablesFactory.cs: Define methods and properties
8191
8192 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
8193
8194         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
8195         graphics port changes.  We still want the coordinates in global screen
8196         coordinates.
8197
8198 2005-04-14  Jackson Harper  <jackson@ximian.com>
8199
8200         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
8201         check plus minus or checkbox clicks unless those features are enabled.
8202
8203 2005-04-14  Jackson Harper  <jackson@ximian.com>
8204
8205         * TreeView.cs: Add methods for setting the top and bottom visible
8206         nodes. TreeNode::EnsureVisible uses these methods.
8207         * TreeNode.cs: Implement EnsureVisible
8208
8209 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
8210
8211         * Form.cs: Pospone menu assignation if the window has not been created yet
8212         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
8213         size and position
8214
8215 2005-04-12  Jackson Harper  <jackson@ximian.com>
8216
8217         * TreeView.cs: Set the TopNode properly when scrolling
8218         occurs. This has the added benifit of reducing the amount of
8219         walking that needs to be done when drawing. Also removed an old
8220         misleading TODO.
8221         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
8222         
8223 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
8224
8225         * Timer.cs: fixes interval setting when the timer is already enabled
8226         
8227 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
8228
8229         * FolderBrowserDialog.cs: First approach
8230
8231 2005-04-09  Peter Bartok  <pbartok@novell.com>
8232
8233         * FolderBrowserDialog: Added
8234
8235 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
8236
8237         * LinkLabel.cs: move drawing code into the theme
8238         * ThemeWin32Classic.cs: drawing code and painting background bugfix
8239         * Theme.cs: define DrawLinkLabel method
8240
8241 2005-04-05  Jackson Harper  <jackson@ximian.com>
8242
8243         * BindingContext.cs: Use weak references so these bad actors don't
8244         stay alive longer then they need to.
8245
8246 2005-04-05  Jackson Harper  <jackson@ximian.com>
8247
8248         * ListControl.cs: Basic implementation of complex databinding.
8249         * ComboBox.cs:
8250         * ListBox.cs: Add calls to ListControl databinding methods.
8251
8252 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8253
8254         * FileDialog.cs:
8255           - Don't change PopupButtonState to Normal when the
8256             PopupButton gets pressed several times.
8257           - Renamed ButtonPanel to PopupButtonPanel
8258
8259 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8260
8261         * ColorDialog.cs: Use cached objects instead of creating them
8262         * LinkLabel.cs: Use cached objects instead of creating them
8263         * Splitter.cs: Use cached objects instead of creating them
8264         * FontDialog.cs: Use cached objects instead of creating them
8265         * PropertyGridView.cs: Use cached objects instead of creating them
8266         * MessageBox.cs: Use cached objects instead of creating them
8267         * FileDialog.cs: Use cached objects instead of creating them
8268         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8269         * TreeView.cs: Use cached objects instead of creating them
8270         
8271 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8272
8273         * Control.cs: use Equals to compare the font since no == op
8274         * ScrollBar.cs: use Equals to compare the font since no == op
8275
8276 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8277
8278         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8279
8280 2005-04-01  Jackson Harper  <jackson@ximian.com>
8281
8282         * Binding.cs: Implement IsBinding.
8283         * BindingManagerBase.cs:
8284         * PropertyManager.cs:
8285         * CurrencyManager.cs: Add IsSuspended property.
8286
8287 2005-04-01  Jackson Harper  <jackson@ximian.com>
8288
8289         * Binding.cs: Had some IsAssignableFrom calls backwards.
8290
8291 2005-04-01  Jackson Harper  <jackson@ximian.com>
8292
8293         * Binding.cs: Handle null data members when pulling data.
8294         * PropertyManager.cs: Handle the data member being a property that
8295         does not exist.
8296
8297 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8298
8299         * DataGridTextBoxColumn.cs: fixes signature
8300         * DataGrid.cs: calls right constructor
8301
8302 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8303
8304         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8305         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8306         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8307         * DataGridTableStyle.cs: implements DataGridTableStyle
8308         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8309         * DataGridTextBox.cs: implements DataGridTextBox
8310         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8311
8312 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8313
8314         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8315
8316 2005-03-29  Peter Bartok  <pbartok@novell.com>
8317
8318         * Application.cs:
8319           - Properly implemented CompanyName property
8320           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8321             returns a path that includes CompanyName, ProductName and
8322             Version (fixes bug #70330)
8323
8324 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8325
8326         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8327           fixes bug #72588.
8328
8329 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8330
8331         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8332         
8333           - Added ReadOnly CheckBox
8334           - Further refactoring: moved some code from Open-/SaveFileDialog
8335             to FileDialog
8336
8337 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8338
8339         * OpenFileDialog.cs: Fixed CheckFileExists
8340         * FileDialog.cs:
8341           Moved FileView and DirComboBox outside FileDialog class.
8342           They can now be used outside FileDialog
8343
8344 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8345
8346         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8347         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8348
8349 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8350
8351         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8352           - Added missing CreatePrompt property in SaveDialog
8353           - Overall SaveDialog handling should be better now
8354           - Added non standard ShowHiddenFiles property
8355           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8356           - Added InitialDirectory and RestoreDirectory support
8357
8358 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8359
8360         * FileDialog.cs: Made dirComboBox usable
8361
8362 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8363
8364         * FileDialog.cs: Added Filter support (case sensitiv)
8365
8366 2005-03-24  Jackson Harper  <jackson@ximian.com>
8367
8368         * TabControl.cs: Need a couple more pixels for the lines.
8369
8370 2005-03-23  Jackson Harper  <jackson@ximian.com>
8371
8372         * TabControl.cs: Give the tab page focus when it is selected.
8373
8374 2005-03-23  Jackson Harper  <jackson@ximian.com>
8375
8376         * TabControl.cs: Account for the drawing of tabs borders when
8377         invalidating. If the slider was clicked dont do click detection on
8378         the tabs.
8379
8380 2005-03-23  Jackson Harper  <jackson@ximian.com>
8381
8382         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8383
8384 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8385
8386         * CategoryGridEntry.cs: Added
8387         * GridItem.cs: Added helper properties
8388         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8389         * GridEntry.cs: Updated code for collection
8390         * PropertyGrid.cs: Cleaned up some formatting
8391         * PropertyGridView.cs: Added drop down functionality for enums.
8392         * GridItemCollection.cs: Added enumerator logic
8393         * PropertyGridEntry.cs: Added
8394
8395 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8396
8397         * FileDialog.cs:
8398           - Removed unnecessary commented code
8399           - Fixed handling for entering the filename manually in the combobox
8400
8401 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8402
8403         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8404
8405 2005-03-18  Peter Bartok  <pbartok@novell.com>
8406
8407         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8408           them being touching the border
8409
8410 2005-03-18  Peter Bartok  <pbartok@novell.com>
8411
8412         * TextControl.cs: Quick hack to center text better
8413
8414 2005-03-18  Peter Bartok  <pbartok@novell.com>
8415
8416         * ControlPaint.cs:
8417           - Don't throw NotImplemented exceptions, just print a notice once
8418             instead (requested by Miguel). This makes running existing SWF
8419             apps a bit easier
8420         * Control.cs:
8421           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8422           - Added context menu trigger on right click
8423         * Panel.cs: Trigger invalidate on resize
8424         * StatusBar.cs:
8425           - Removed old double-buffer drawing
8426           - Added ResizeRedraw style to force proper update of statusbar
8427         * ListView.cs:
8428           - Removed debug output
8429         * ThemeWin32Classic.cs:
8430           - Fixed drawing of status bar, now draws Text property if there
8431             are no defined panels
8432
8433 2005-03-18  Jackson Harper  <jackson@ximian.com>
8434
8435         * ImageList.cs: When the image stream is set pull all the images
8436         from it.
8437         * ImageListStreamer.cs: Implement reading image list streams.
8438
8439 2005-03-18  Peter Bartok  <pbartok@novell.com>
8440
8441         * ThemeWin32Classic.cs (DrawPictureBox):
8442           - Fixed calculations for centered drawing
8443           - Fixed drawing for normal mode, not scaling the image on normal
8444
8445 2005-03-18  Peter Bartok  <pbartok@novell.com>
8446
8447         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8448           textbox
8449         * FileDialog.cs:
8450           - Made Open/Save button the accept button for FileDialog
8451           - Tied the cancel button to the IButtonControl cancel button
8452           - Save/Open now properly builds the pathname
8453           - Now handles user-entered text
8454           - Preventing crash on right-click if no item is selected
8455           - Fixed Text property, now uses contents of textbox
8456           - Fixed SelectedText property, now just returns the text part that
8457             is selected in the text box
8458
8459 2005-03-18  Jackson Harper  <jackson@ximian.com>
8460
8461         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8462         rect, make sure to de-adjust the interior rect after drawing the
8463         tab text.
8464
8465 2005-03-18  Peter Bartok  <pbartok@novell.com>
8466
8467         * MenuAPI.cs: Remove menu *before* executing selected action to
8468           prevent the menu from 'hanging around'
8469           
8470 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8471
8472         * XplatUIOSX.cs: Implemented WorkingArea property
8473
8474 2005-03-17  Peter Bartok  <pbartok@novell.com>
8475
8476         * XplatUIX11.cs: Fixed menu coord calculations
8477         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8478           for calculating offsets
8479
8480 2005-03-17  Peter Bartok  <pbartok@novell.com>
8481
8482         * Hwnd.cs: Do not consider menu presence for default client
8483           rectangle location/size
8484         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8485           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8486           translation functions
8487         * FileDialog.cs: Fixed (what I presume is a) typo
8488
8489 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8490
8491         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8492           X access (avoids X-Async errors)
8493
8494 2005-03-16  Jackson Harper  <jackson@ximian.com>
8495
8496         * TabControl.cs: Raise the SelectedIndexChanged event.
8497
8498 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8499
8500         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8501           - Removed vertical ToolBar and replaced it with a custom panel
8502             (desktop and home button already work)
8503           - Added Help button (some controls get resized or relocated then)
8504           - Draw correct text depending on Open or Save.
8505           - Fixed some typos...
8506
8507 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
8508
8509         * ScrollBar.cs:
8510           - Only change Maximum and Minimum when need it (bug fix)
8511
8512 2005-03-15  Peter Bartok  <pbartok@novell.com>
8513
8514         * Form.cs: Use Handle for icon, to trigger creation if
8515           the window does not yet exist
8516         * Control.cs:
8517           - CanSelect: Slight performance improvement
8518           - Focus(): Preventing possible recursion
8519           - Invalidate(): Removed ControlStyle based clear flag setting
8520           - WM_PAINT: fixed logic for calling OnPaintBackground
8521           - WM_ERASEBKGND: Fixed logic, added call to new driver method
8522             EraseWindowBackground if the control doesn't paint background
8523         * XplatUIWin32.cs:
8524           - Moved EraseWindowBackground() method to internal methods
8525           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8526             is sent via SendMessage on BeginPaint call on Win32
8527         * XplatUIX11.cs:
8528           - Added EraseWindowBackground() method
8529           - No longer sends WM_ERASEBKGND on .Expose, but on call to
8530             PaintEventStart, which more closely matches Win32 behaviour
8531           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8532           - Fixed SetFocus() to properly deal with client and whole windows
8533         * Hwnd.cs: Added ErasePending property
8534         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8535         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8536
8537 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
8538
8539         * XplatUIOSX.cs:
8540           - Fix hard loop when timers exist.
8541           - Fix bugs with middle and right click for 3 button mice.
8542
8543 2005-03-11  Peter Bartok  <pbartok@novell.com>
8544
8545         * XplatUIX11.cs:
8546           - get_WorkingArea: Need to call X directly, GetWindowPos only
8547             returns cached data now
8548           - Added sanity check to GetWindowPos hwnd usage
8549
8550 2005-03-11  Jackson Harper  <jackson@ximian.com>
8551
8552         * BindingManagerBase.cs: This method isn't used anymore as
8553         PullData now updates the data in the control.
8554
8555 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
8556
8557         * Form.cs: fixes menu drawing on X11
8558         * MenuAPI.cs:  fixes menu drawing on X11
8559
8560 2005-03-11  Peter Bartok  <pbartok@novell.com>
8561
8562         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8563           from Jonathan Gilbert; should fix bug #73606
8564         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8565           in Screen coordinates. Thanks, Jordi.
8566         * Form.cs: Added missing attribute
8567
8568 2005-03-11  Peter Bartok  <pbartok@novell.com>
8569
8570         * Form.cs:
8571           - Rudimentary Mdi support
8572           - Removed outdated FormParent code
8573           - Implemented lots of missing properties and methods, still missing
8574             transparency support
8575           - Added missing attributes
8576           - Implemented support for MaximumBounds
8577           - Added firing of various events
8578         * XplatUI.cs: Added SetIcon() method
8579         * XplatUIDriver.cs: Added SetIcon() abstract
8580         * XplatUIOSX.cs: Stubbed out SetIcon() method
8581         * XplatUIX11.cs:
8582           - Implemented SetIcon() support
8583           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8584           - Switched to unix line endings
8585         * XplatUIWin32.cs:
8586           - Made POINT internal so for can access it as part of MINMAX
8587           - Implemented SetIcon() support
8588           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8589             native Mdi support again, might have to go managed)
8590         * Control.cs: Now fires the StyleChanged event
8591         * MdiClient.cs: Added; still mostly empty
8592
8593 2005-03-10  Peter Bartok  <pbartok@novell.com>
8594
8595         * SaveFileDialog.cs: Added emtpy file
8596
8597 2005-03-08  Peter Bartok  <pbartok@novell.com>
8598
8599         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8600           in turn triggers OnCreateContro) when creating a handle for the
8601           first time.
8602         * TextControl.cs: Fixed endless loop in certain cases when
8603           replacing the current selection
8604
8605 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8606
8607         * ScrollBar.cs:
8608           - Honors NewValue changes in Scroll events allowing apps to change it
8609           - Adds First and Last Scroll events
8610           - Fixes Thumb events
8611
8612 2005-03-07  Peter Bartok  <pbartok@novell.com>
8613
8614         * Hwnd.cs: Added DefaultClientRectangle property
8615         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8616           more detailed debug information
8617         * XplatUIX11.cs:
8618           - Fixed size-change feedback loop, where we would pull an old size
8619             off the queue and mistakenly change our window's size to an
8620             earlier value
8621           - Now compressing ConfigureNotify events, to reduce looping and
8622             redraw issues
8623         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8624           is called
8625
8626 2005-03-07  Jackson Harper  <jackson@ximian.com>
8627
8628         * Binding.cs: Push data pushes from data -> property. Check if the
8629         property is readonly when attempting to set it.
8630
8631 2005-03-07  Jackson Harper  <jackson@ximian.com>
8632
8633         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8634         instead of IsSubclassOf. Pulling data now sets the value on the
8635         control.
8636         * PropertyManager.cs:
8637         * CurrencyManager.cs: Just need to pull data when updating now,
8638         because PullData will set the value on the control.
8639
8640 2005-03-04  Jackson Harper  <jackson@ximian.com>
8641
8642         * Binding.cs: Implement data type parsing and converting on pulled
8643         data. TODO: Are there more ways the data can be converted?
8644
8645 2005-03-04  Jackson Harper  <jackson@ximian.com>
8646
8647         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8648         controls Validating method so we can repull the data when the
8649         control loses focus.
8650
8651 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8652
8653         * ColumnHeader.cs:
8654           - Fixes null string format
8655           
8656         * ListView.cs:
8657           - Adds enum type checks
8658           - Fixes redrawing and recalc need after changing some properties
8659           - Fixes on focus_item set after the event
8660           - Fixes adding columns after the control has been created
8661           
8662         * ThemeWin32Classic.cs:
8663           - Fixes CheckBox focus rectangle
8664           - Fixes ColumnHeader drawing
8665
8666
8667 2005-03-03  Jackson Harper  <jackson@ximian.com>
8668
8669         * Binding.cs: Bind to <Property>Changed events so we can detect
8670         when properties are changed and update the data.
8671
8672 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8673
8674         * ImageList.cs:
8675           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8676           - Fixes ImageList constructor with ImageList container
8677           - Fixes image scaling (wrong parameters at DrawImage)
8678
8679 2005-02-02  Jackson Harper  <jackson@ximian.com>
8680
8681         * Binding.cs: Make property searches case-insensitive. Eliminate
8682         some duplicated code.
8683
8684 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8685
8686         * ComboBox.cs:
8687                 - Handle focus event
8688                 - Fix scrollbar events
8689                 - Discard highlighted item if remove it
8690                 - Fixes SelectedItem with strings
8691
8692 2005-03-01  Peter Bartok  <pbartok@novell.com>
8693
8694         * Control.cs:
8695           - Fixed Visible property, now follows (once again) parent chain
8696             to return false if any control in the chain is visible=false
8697           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8698           - Fixed several places where is_visible instead of Visible was used
8699           - Implemented FIXME related to focus selection when setting focused
8700             control to be invisible
8701
8702         * XplatUIWin32.cs: Now using proper method to find out if window is
8703           visible. Thanks to Jordi for pointing it out
8704
8705 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8706
8707         * ComboBox.cs: show/hide scrollbar instead of creating it
8708
8709 2005-02-27  Jackson Harper  <jackson@ximian.com>
8710
8711         * CurrencyManager.cs: Add PositionChanged stuff.
8712
8713 2005-02-27  Peter Bartok  <pbartok@novell.com>
8714
8715         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8716         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8717         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8718         * XplatUIX11.cs:
8719           - Implemented GetMenuDC()
8720           - Implemented GetMenuOrigin()
8721           - Implemented ReleaseMenuDC()
8722           - Implemented generation of WM_NCPAINT message
8723           - Implemented generation and handling of WM_NCCALCSIZE message
8724         * Form.cs: Added debug helper message for Jordi's menu work
8725         * Hwnd.cs:
8726           - Modified ClientRect property; added setter, fixed getter to handle
8727             setting of ClientRect
8728           - Added MenuOrigin property
8729
8730 2005-02-26  Peter Bartok  <pbartok@novell.com>
8731
8732         * XplatUIX11.cs:
8733           - Destroys the caret if a window that's being destroyed contains it
8734           - Ignores expose events coming from the X11 queue for windows that
8735             already are destroyed
8736           - Now uses the proper variable for handling DestroyNotify, before we
8737             marked the wrong window as destroyed
8738           - Improved/added some debug output
8739
8740 2005-02-26  Peter Bartok  <pbartok@novell.com>
8741
8742         * X11Keyboard.cs: Fixes to work on 64bit systems
8743
8744 2005-02-26  Peter Bartok  <pbartok@novell.com>
8745
8746         * Control.cs:
8747           - Now calling OnHandleDestroyed from DestroyHandle()
8748             instead of Dispose()
8749           - Removed bogus call to controls.Remove() from DestroyHandle()
8750
8751 2005-02-26  Peter Bartok  <pbartok@novell.com>
8752
8753         * Control.cs: Properly destroy child windows when our handle is
8754           destroyed
8755
8756 2005-02-25  Peter Bartok  <pbartok@novell.com>
8757
8758         * XplatUI.cs:
8759           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8760           - Alphabetized Static Methods and Subclasses
8761
8762         * XplatUIX11.cs:
8763           - Added XException class to allow custom handling of X11 exceptions
8764           - Created custom X11 error handler, tied into XException class
8765           - Added support for MONO_XEXCEPTIONS env var to allow the user
8766             to either throw an exception on X errors or continue running
8767             after displaying the error
8768           - Added handling of DestroyNotify message
8769           - Added handler for CreateNotify message (still disabled)
8770           - Improved (tried to at least) Where method to provide file and lineno
8771         * X11Structs.cs:
8772           - Added XErrorHandler delegate
8773           - Added XRequest enumeration (to suppor translation of errors)
8774
8775 2005-02-25  Jackson Harper  <jackson@ximian.com>
8776
8777         * PropertyManager.cs: Implement editing features
8778         * CurrencyManager.cs:
8779         * Binding.cs: First attempt at UpdateIsBinding
8780         * BindingManagerBase.cs: Call UpdateIsBinding before
8781         pushing/pulling data.
8782
8783 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8784
8785         * MenuAPI.cs: Respect disabled items
8786         * ThemeWin32Classic.cs
8787                 - Caches ImageAttributes creation for DrawImageDisabled
8788                 - Fixes vertical menu line drawing
8789                 - Draws disabled arrows in disable menu items
8790
8791 2005-02-24  Peter Bartok  <pbartok@novell.com>
8792
8793         * Hwnd.cs:
8794           - Added UserData property to allow associating arbitrary objects
8795             with the handle
8796           - Fixed leak; now removing Hwnd references from static windows array
8797         * XplatUIWin32.cs:
8798           - Fixed Graphics leak in PaintEventEnd
8799           - Removed usage of HandleData, switched over to Hwnd class
8800         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8801
8802 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8803
8804         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8805         * ScrollBar.cs: Fixes bug
8806         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8807          keyboard navigation enhancements
8808
8809 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8810
8811         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8812         * GroupBox.cs: Add control styles
8813         * Label.cs: Add control styles
8814         * UpDownBase.cs: Add control styles
8815         * ListBox.cs: Add control styles
8816         * XplatUIWin32.cs: Fixes wrong parameter order
8817
8818
8819 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8820
8821         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8822
8823 2005-02-23  Jackson Harper  <jackson@ximian.com>
8824
8825         * PropertyManager.cs: Implement property binding. This doesn't
8826         seem to work yet though as (I think) there are some bugs in
8827         System.ComponentModel.PropertyDescriptor.
8828         * BindingContext.cs: Use new PropertyManager constructor.
8829
8830 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8831
8832         * ProgressBar.cs: use clip region in ProgressBar
8833         * ThemeWin32Classic.cs: use clip region in ProgressBar
8834
8835 2004-02-22  Jackson Harper  <jackson@ximian.com>
8836
8837         * BindingsCollection.cs: Remove some debug code.
8838
8839 2005-02-22  Jackson Harper  <jackson@ximian.com>
8840
8841         * BindingContext.cs:
8842         * ControlBindingsCollection.cs:
8843         * CurrencyManager.cs:
8844         * Binding.cs:
8845         * BindingManagerBase.cs: Initial implementation
8846         * BindingsCollection.cs: Add an internal contains method that the
8847         BindingManagerBase uses to ensure bindings aren't added twice to
8848         the collection.
8849         * PropertyManager.cs: Stubbed out.
8850         * Control.cs:
8851         * ContainerControl.cs: Hook up databinding
8852         
8853 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8854
8855         * XplatUIOSX.cs:
8856           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8857           Fixed Invalidate/Update chain.
8858           Fixed tons of other minor bugs (this is almost a complete rewrite).
8859
8860 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8861
8862         * ComboBox.cs: do subcontrol creation when the control is created
8863
8864 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8865
8866         * Label.cs: fixes image drawing (image and imagelist)
8867         * ThemeWin32Classic.cs: cache brushes
8868         
8869 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8870
8871         * Form.cs: Move menu drawing code to Theme class
8872         * ComboBox.cs: Move ComboBox drawing code to Theme class
8873         * MenuItem.cs: Move menu drawing code to Theme class
8874         * MenuAPI.cs: Move menu drawing code to Theme class
8875         * ThemeWin32Classic.cs: New methods
8876         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8877         * ListBox.cs: Move Listbox drawing code to Theme class
8878         * Theme.cs: New methods
8879
8880 2005-02-20  Peter Bartok  <pbartok@novell.com>
8881
8882         * Control.cs:
8883           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8884             only process mnemonics on those)
8885           - Fixed event sequence for key handling; first calling
8886             ProcessKeyEventArgs now
8887         * TextBoxBase.cs:
8888           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8889             for processing non-character keys
8890           - Fixed WM_CHAR to generate proper event sequence before processing
8891         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8892           generation
8893
8894 2005-02-19  Peter Bartok  <pbartok@novell.com>
8895
8896         * UserControl.cs: Added TextChanged event; added attributes
8897         * SizeGrip.cs: Implemented resizing and optional display of grip
8898         * Form.cs: Fixed attribute
8899         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8900           Changed meaning of ScrollWindow bool argument; instead of the
8901           clear attribute (which will be true usually anyway), it gives the
8902           option of moving child controls as well.
8903         * XplatUIX11.cs:
8904           - Changed to match new ScrollWindow argument
8905           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8906             now handles the implicit parent window a WM puts around us
8907         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8908           to work)
8909         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8910         * TreeView.cs: Adjusted to new ScrollWindow arguments
8911
8912 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8913
8914         * Form.cs: Menu integration with non-client area
8915         * MenuItem.cs: Menu integration with non-client area
8916         * MenuAPI.cs: Menu integration with non-client area
8917
8918 2005-02-18  Peter Bartok  <pbartok@novell.com>
8919
8920         * MethodInvoker.cs: Added
8921         * MdiLayout.cs: Added
8922         * SendKeys.cs: Started implementation
8923         * ErrorIconAlignment.cs: Added
8924
8925 2005-02-18  Peter Bartok  <pbartok@novell.com>
8926
8927         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8928         * Form.cs: Added handling for Menu-related Non-client messages
8929
8930 2005-02-17  Peter Bartok  <pbartok@novell.com>
8931
8932         * UpDownBase.cs: Fixed typo, compilation errors
8933         * DomainUpDown.cs: Fixed attribute value
8934
8935 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8936
8937         * UpDownBase.cs: Attach entry events.
8938         Propagate events.
8939         Add ForeColor property, Focused, InterceptArrowKeys (interception
8940         does not work yet).
8941
8942 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8943
8944         * Form.cs:
8945                 - Redraw non client are on Setmenu
8946                 - Calc proper menu starting point
8947
8948 2005-02-17  Peter Bartok  <pbartok@novell.com>
8949
8950         * Application.cs: Fixed message_filter check
8951
8952 2005-02-17  Peter Bartok  <pbartok@novell.com>
8953
8954         * Application.cs: Now calls registered message filters
8955         * DockStyle.cs: Fixed attribute
8956         * Form.cs: Fixed attribute
8957         * Menu.cs: Fixed attribute
8958         * ToolTip.cs: Fixed attribute
8959         * TreeNode.cs: Added missing attributes and arranged in regions
8960         * PropertyGrid.cs: Fixed signatures
8961         * TreeNodeCollection.cs: Added attributes
8962         * Splitter.cs: Added missing attributes; arranged into regions
8963         * TabPage.cs: Added missing attributes; arranged into regions
8964         * TextBoxBase.cs: Added missing attributes
8965         * TextBox.cs: Added missing attributes
8966         * ArrangeDirection.cs: Added missing attributes
8967         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8968         * ToolBarButton.cs: Fixed attributes
8969         * AnchorStyles.cs: Fixed attribute
8970         * TrackBar.cs: Fixed attributes
8971         * TabControl.cs: Added missing attributes and arranged into regions
8972         * ToolBar.cs: Fixed attribute
8973         * StatusBar.cs: Fixed signature, organized into regions and added
8974           attributes
8975         * StatusBarPanel.cs: Fixed attributes
8976         * ContentsResizedEventArgs.cs: Implemented
8977         * ContentsResizedEventHandler.cs: Implemented
8978         * DateBoldEventArgs.cs: Implemented
8979         * DateBoldEventHandler.cs: Implemented
8980         * UpDownEventArgs.cs: Implemented
8981         * UpDownEventHandler.cs: Implemented
8982         
8983 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
8984
8985         * Form.cs: first Menu NC refactoring
8986         * MenuAPI.cs: first Menu NC refactoring
8987         
8988 2005-02-16  Peter Bartok  <pbartok@novell.com>
8989
8990         * ImeMode.cs: Added missing attributes
8991         * Menu.cs: Fixed attribute
8992         * GroupBox.cs: Fixed attribute
8993         * Label.cs: Fixed attribute
8994         * ColorDialog.cs (RunDialog): Removed TODO attribute
8995         * ComboBox.cs: Fixed attributes
8996         * ListControl.cs: Added missing attributes
8997         * PropertyGrid.cs: Fixed attributes
8998         * Control.cs: Fixed attributes
8999         * ListViewItem.cs: Added TypeConverter attribute
9000         * NotifyIcon.cs: Fixed attributes
9001         * ListView.cs: Fixed attributes
9002         * ButtonBase.cs: Fixed attribute
9003         * ImageList.cs: Added missing attributes
9004         * ContainerControl.cs: Fixed signature
9005         * CheckedListBox.cs: Fixed attribute; added missing attributes
9006         * Panel.cs: Fixed attributes
9007         * PropertyTabChangedEventArgs.cs: Added missing attribute
9008         * PropertyValueChangedEventArgs.cs: Added missing attribute
9009         * Binding.cs: Fixed attribute
9010         * ListViewItemConverter: Implemented ListViewSubItemConverter class
9011         * ListBox.cs: Fixed attribute; added missing attributes;
9012         * ScrollableControl.cs: Added missing attributes
9013         * PictureBox.cs: Added missing attributes; implemented missing property
9014         * DateTimePicker.cs: Added missing attributes
9015         * Theme.cs (ToolWindowCaptionHeight): Fixed type
9016         * MonthCalendar.cs: Fixed attributes
9017         * StatusBarPanel.cs: Added missing attributes
9018         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
9019
9020 2005-02-16  Peter Bartok  <pbartok@novell.com>
9021
9022         * TextBoxBase.cs: The previous method to enforce height yet remember
9023           the requested high was less than ideal, this is an attempt to do
9024           it better.
9025         * Control.cs: Added comment about possible problem
9026         * Copyright: Updated format
9027         * GridItemType.cs: Fixed swapped values
9028
9029 2005-02-15  Jackson Harper  <jackson@ximian.com>
9030
9031         * BaseCollection.cs: Use property so we never access an
9032         uninitialized list. Also initialize the list in the property.
9033
9034 2005-02-15  Peter Bartok  <pbartok@novell.com>
9035
9036         * GroupBox.cs (ProcessMnemonic): Implemented
9037         * Label.cs (ProcessMnemonic): Implemented
9038         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
9039           hotkeys
9040
9041 2005-02-15  Peter Bartok  <pbartok@novell.com>
9042
9043         * RadioButton.cs (ProcessMnemonic): Implemented
9044         * CheckBox.cs (ProcessMnemonic): Implemented
9045         * Control.cs:
9046           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
9047             handling
9048           - Added internal method to allow calling ProcessMnemonic from other
9049             controls
9050         * ContainerControl.cs:
9051           - Started support for handling validation chain handling
9052           - Implemented ProcessMnemonic support
9053           - Added Select() call to Active, to make sure the active control
9054             receives focus
9055         * Form.cs: Setting toplevel flag for Forms (this was lost in the
9056           FormParent rewrite)
9057         * ThemeWin32Classic.cs:
9058           - DrawCheckBox(): Fixed stringformat to show hotkeys
9059           - DrawRadioButton(): Fixed stringformat to show hotkeys
9060         * CommonDialog.cs: Removed WndProc override, not needed
9061
9062 2005-02-14  Peter Bartok  <pbartok@novell.com>
9063
9064         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
9065           missed those in the rewrite
9066
9067 2005-02-14  Miguel de Icaza  <miguel@novell.com>
9068
9069         * NumericUpDown.cs (Increment, ToString): Add.
9070         (DecimalPlaces): implement.
9071         
9072         Add attributes.
9073         
9074         * UpDownBase.cs: Add the designer attributes.
9075
9076 2005-02-13  Peter Bartok  <pbartok@novell.com>
9077
9078         * Panel.cs: Removed border_style, now in Control
9079         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
9080           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
9081
9082 2005-02-13  Peter Bartok  <pbartok@novell.com>
9083
9084         * MouseButtons.cs: Added missing attributes
9085         * XplatUIStructs.cs: Added enumeration for title styles
9086         * LeftRightAlignment.cs: Added missing attributes
9087         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
9088           it compatible with Graphics.FromHwnd()
9089         * SelectedGridItemChangedEventArgs.cs: Fixed property type
9090         * Keys.cs: Added missing attributes
9091         * SelectionRange.cs: Added missing attributes
9092         * SelectionRangeConverter.cs: Added
9093         * XplatUI.cs:
9094           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
9095             ReleaseMenuDC methods
9096           - Renamed ReleaseWindow to UngrabWindow
9097           - Added proper startup notice to allow version identification
9098         * Form.cs:
9099           - Added missing attributes
9100           - Removed FormParent concept
9101         * Label.cs: Removed border_style field, now in Control
9102         * RadioButton.cs: Now properly selects RadioButton when focus is
9103           received
9104         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
9105         * Control.cs:
9106           - Added missing attributes
9107           - Added borderstyle handling
9108           - Removed FormParent concept support
9109           - Fixed calls to XplatUI to match changed APIs
9110           - Fixed bug that would case us to use disposed Graphics objects
9111           - Removed unneeded internal methods
9112           - PerformLayout(): Fixed to handle DockStyle.Fill properly
9113           - SelectNextControl(): Fixed to properly check common parents
9114         * TextBoxBase.cs: Removed border_style field (now in Control)
9115         * MessageBox.cs:
9116           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
9117             fixed calculations for form size
9118           - Added support for localized strings and icons
9119           - Improved form size calculations, added border
9120         * ListView.cs: Removed border_style field (now in Control)
9121         * X11Structs.cs: Moved several structs from X11 driver here
9122         * X11Keyboard.cs: Changed debug message
9123         * Application.cs: Removed FormParent concept support
9124         * CommonDialog.cs:
9125           - Resetting end_modal flag
9126           - Removed FormParent concept support
9127         * NativeWindow.cs: Removed FormParent concept support
9128         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
9129           Client area and Non-Client whole window to allow support for WM_NC
9130           messages
9131         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
9132           prevent using it until it supports Hwnd as per Geoff Norton's request
9133         * ToolBar.cs: Fixed drawing, was not doing proper drawing
9134         * PictureBox.cs: Removed border_style field, now in Control
9135         * XplatUIWin32.cs: Added new driver methods
9136
9137 2005-02-12  Peter Bartok  <pbartok@novell.com>
9138
9139         * OpacityConverter.cs: Implemented
9140         * Hwnd.cs: Internal class to support drivers that need to emulate
9141           client area/non-client area window behaviour
9142
9143 2005-02-11  Peter Bartok  <pbartok@novell.com>
9144
9145         * KeysConverter.cs: Implemented
9146
9147 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9148
9149         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9150         * LinkLabel: Added missing attributes
9151         * MainMenu.cs: fixes ToString
9152         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9153         * ListBox.cs: fixes event position
9154         * TrackBar.cs: adds missing attributes and events
9155         
9156 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9157
9158         * MenuItem.cs: Use SystemInformation and bug fixes
9159         * MenuAPI.cs: Use SystemInformation and bug fixes
9160
9161 2005-02-09  Jackson Harper  <jackson@ximian.com>
9162
9163         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9164         their keystate otherwise things like VK_MENU get stuck "on".
9165
9166 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
9167
9168         * ListBox.cs: Fixes AddRange bug
9169         
9170 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
9171
9172         * ProgressBar.cs
9173                 - Add missing attributes
9174                 - Add missing method
9175                 
9176         * CheckedListBox.cs: Added missing attributes
9177                 - Add missing attributes
9178                 - Remove extra method
9179         
9180         * ComboBox.cs: Added missing attributes
9181         * VScrollBar.cs: Added missing attributes
9182         * ScrollBar.cs:  Added missing attributes
9183         * ListBox.cs: Fixes signature, add missing consts
9184         * LinkArea.cs:   Added missing attributes
9185         
9186
9187 2005-02-08  Peter Bartok  <pbartok@novell.com>
9188
9189         * Menu.cs: Added missing attributes
9190         * MainMenu.cs: Added missing attributes
9191         * GroupBox.cs: Added missing attributes
9192         * Label.cs: Added missing attributes
9193         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
9194         * ColorDialog.cs:
9195           - Added Instance and Options properties
9196           - Added missing attributes
9197         * Cursor.cs: Made Serializable
9198         * NotifyIcon: Added missing attributes
9199         * MenuItem.cs: Added missing attributes
9200         * TextBoxBase.cs: Implemented AppendText() and Select() methods
9201         * Panel.cs: Added Missing attributes
9202         * MonthCalendar.cs: Fixed CreateParams
9203
9204 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9205         
9206         * LinkLabel.cs:
9207                 - Fixes signature
9208                 - Fixes issues with links
9209                 - Adds the class attributes
9210
9211 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9212         
9213         * ComboBox.cs:
9214                 - Fixes button when no items available in dropdown
9215                 - Fixes repainting problems
9216                 - Adds the class attributes
9217                 
9218 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9219
9220         * XplatUIOSX.cs: Detect the menu bar and title bar height from
9221         the current theme.  Cache these on startup.
9222
9223 2005-02-07  Jackson Harper  <jackson@ximian.com>
9224
9225         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
9226         the scrollbar buttons when they are depressed.
9227
9228 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9229
9230         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
9231         Get the display size from the main displayid.  We currently dont
9232         support multiple display configurations.
9233
9234 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9235
9236         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
9237
9238 2005-02-07  Miguel de Icaza  <miguel@novell.com>
9239
9240         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
9241
9242 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
9243
9244         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
9245
9246 2005-02-04  Jackson Harper  <jackson@ximian.com>
9247
9248         * ThemeWin32Classic.cs: Respect the clipping rect when
9249         drawing. Only fill the intersection of clips and rects so there
9250         isn't a lot of large fills.
9251         * ScrollBar.cs: Pass the correct clipping rect to the theme
9252         engine. Remove some debug code.
9253
9254 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9255         
9256         * DateTimePicker.cs:
9257                 - Fixed crash on DateTime.Parse, use Constructor instead
9258
9259 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9260         
9261         * MenuItem.cs:
9262         * MenuAPI.cs:
9263                 - Owner draw support (MeasureItem and DrawItem)
9264
9265 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9266         
9267         *  Menu.cs:
9268                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9269                 - Fixes MenuItems.Add range
9270         * MenuItem.cs:
9271                 - MergeMenu and Clone and CloneMenu functions
9272
9273 2005-02-03  Jackson Harper  <jackson@ximian.com>
9274
9275         * ScrollBar.cs: Make abstract
9276         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9277         is abstract.
9278
9279 2005-02-03  Jackson Harper  <jackson@ximian.com>
9280
9281         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9282         all the unneeded refreshes and uses invalidates with properly
9283         computed rects.
9284
9285 2005-02-03  Peter Bartok  <pbartok@novell.com>
9286
9287         * ComponentModel.cs: Added
9288         * IDataGridEditingService.cs: Added
9289         * Timer.cs: Added missing attributes
9290         * ToolTip.cs: Added missing attributes
9291
9292 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9293
9294         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9295
9296 2005-02-03  Peter Bartok  <pbartok@novell.com>
9297
9298         * ListBox.cs: Added missing attributes
9299
9300 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9301         
9302         * ListBox.cs:
9303                 - Fixes font height after font change
9304                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9305                 
9306 2005-02-02  Peter Bartok  <pbartok@novell.com>
9307
9308         * HandleData.cs: Introduced static methods to allow class
9309           to be more self-contained and track it's own HandleData objects
9310         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9311           HandleData to use new static methods
9312
9313 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9314
9315         * Combobox.cs:
9316                 - Fixes default size and PreferredHeight
9317                 - Missing events
9318                 - ObjectCollection.Insert implementation
9319                 
9320         * ListControl.cs
9321                 - Fixes signature
9322         * ListBox.cs:
9323                 - Several fixes
9324                 - ObjectCollection.Insert implementation
9325                 - No selection after clean
9326                 - Small fixes
9327
9328 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9329
9330         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9331
9332 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9333
9334         * Combobox.cs:
9335                 - Caches ItemHeight calculation for OwnerDrawVariable
9336                 - Handles dropdown properly
9337                 - Fixes several minor bugs
9338
9339 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9340
9341         * ListBox.cs:
9342                 - Fixes 71946 and 71950
9343                 - Fixes changing Multicolumn on the fly
9344                 - Fixes keyboard navigation on Multicolumn listboxes
9345
9346 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9347         
9348         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9349         crash reporter log.
9350
9351 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9352
9353         * XplatUIOSX.cs: Allow applications to actually exit.
9354
9355 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9356
9357         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9358         their parent at creation time rather than lazily later.  Fixes a major
9359         regression we were experiencing.
9360
9361 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9362
9363         * ThemeWin32Classic.cs: more date time picker painting fixes
9364         * DateTimePicker.cs: more monthcalendar drop down fixes
9365         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9366
9367 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9368
9369         * ScrollBar.cs:
9370                 - When moving the thumb going outside the control should stop the moving
9371                 - Adds the firing of missing events
9372                 - Fixes no button show if Size is not specified
9373                 - End / Home keys for keyboard navigation
9374
9375 2005-01-30  Peter Bartok  <pbartok@novell.com>
9376
9377         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9378           sanity check to prevent theoretical loop
9379         * XplatUIWin32.cs (SetVisible): Removed debug output
9380         * XplatUIX11.cs (SystrayChange): Added sanity check
9381         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9382         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9383           behaviour, valid until the X11 client window rewrite is done
9384         * TextBox.cs (ctor): Setting proper default foreground and background
9385           colors
9386
9387 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9388
9389         * Theme: Added DrawDateTimePicker to interface
9390         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9391         * DateTimePicker.cs: Created (still needs keys and painting code)
9392         * DateTimePickerFormat.cs: added
9393         * MonthCalendar.cs: fixed CreateParams for popup window mode
9394           
9395 2005-01-29  Peter Bartok  <pbartok@novell.com>
9396
9397         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9398           this should also the calculations for ligher/darker
9399         * Theme.cs: Fixed defaults for ScrollBar widths/heights
9400
9401 2005-01-29  Peter Bartok  <pbartok@novell.com>
9402
9403         * ArrangeDirection.cs: Added
9404         * ArrangeStartingPositon.cs: Added
9405         * SystemInformation.cs: Implemented
9406         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9407           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9408           used by SystemInformation class
9409         * X11Strucs.cs: Added XSizeHints structure
9410         * MenuAPI.cs:
9411           - Fixed CreateParams to make sure the menu window is always visible
9412           - TrackPopupMenu: Added check to make sure we don't draw the
9413             menu offscreen
9414
9415 2005-01-29  Peter Bartok  <pbartok@novell.com>
9416
9417         * HandleData.cs: Added method for altering invalid area
9418         * TextBoxBase.cs: Implemented TextLength
9419
9420 2005-01-28  Peter Bartok  <pbartok@novell.com>
9421
9422         * XplatUIX11.cs: Improvement over last patch, not sending
9423           the WM_PAINT directly anymore, instead we scroll any pending
9424           exposed areas and let the system pick out the WM_PAINT later
9425
9426 2005-01-28  Peter Bartok  <pbartok@novell.com>
9427
9428         * SWF.csproj: Deleted, no longer used. Instead,
9429           Managed.Windows.Forms/SWF.csproj should be used
9430         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9431           directly, to avoid a potential race condition with the next
9432           scroll
9433
9434 2005-01-28  Peter Bartok  <pbartok@novell.com>
9435
9436         * XplatUI.cs: Made class internal
9437
9438 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
9439
9440         * CheckedListBox.cs:
9441                 - Draw focus
9442                 - Fixed Drawing
9443                 - Missing methods and events
9444
9445 2005-01-27  Peter Bartok  <pbartok@novell.com>
9446
9447         * Application.cs (Run): Don't use form if we don't have one
9448
9449 2005-01-27  Peter Bartok  <pbartok@novell.com>
9450
9451         * TextBoxBase.cs (get_Lines): Fixed index off by one error
9452
9453 2005-01-27  Peter Bartok  <pbartok@novell.com>
9454
9455         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9456         * GridItem.cs: Added; Patch by Jonathan S. Chambers
9457         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9458         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9459         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9460         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9461         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9462         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9463         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9464         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9465         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9466         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9467
9468 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9469
9470         * Combobox.cs:
9471                 - Draw focus on Simple Combobox
9472                 - Fixes drawing issues
9473                 - fixes 71834
9474
9475 2005-01-27  Peter Bartok  <pbartok@novell.com>
9476
9477         * Form.cs:
9478           - Place window in default location, instead of hardcoded 0/0
9479           - Send initial LocationChanged event
9480         * Control.cs:
9481           - UpdateBounds after creation to find out where the WM placed us
9482           - Make sure that if the ParentForm changes location the Form
9483             is notified
9484         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9485             to the root, but to whatever the WM placed around us.
9486             Translate to root coordinates before returning toplevel
9487             coordinates
9488         * XplatUIWin32.cs: Removed debug output
9489         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9490           flag to GetWindowPos, to allow translation of coordinates on X11
9491
9492 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9493
9494         * ListBox.cs: connect LostFocus Event
9495
9496 2005-01-27  Peter Bartok  <pbartok@novell.com>
9497
9498         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9499           XplatUIX11.cs: Extended the Systray API
9500         * Form.cs: Removed debug output
9501         * Application.cs: Fixed focus assignment, always need to call
9502           XplatUI.Activate() since Form.Activate() has rules that may
9503           prevent activation
9504         * NotifyIcon.cs: Should be complete now
9505         * ToolTip.cs: Worked around possible timer bug
9506
9507 2005-01-27  Jackson Harper  <jackson@ximian.com>
9508
9509         * TabControl.cs:
9510         - Only invalidate the effected tabs when the
9511         selected index changes. This reduces drawing and gets rid of some
9512         flicker.
9513         - Only refresh if the tabs need to be shifted, otherwise only
9514         invalidate the slider button.
9515         - On windows the tabs are not filled to right if the slider is
9516         visible.
9517         
9518 2005-01-27  Jackson Harper  <jackson@ximian.com>
9519
9520         * TabControl.cs: Only refresh on mouseup if we are showing the
9521         slider. Also only invalidate the button whose state has changed.
9522
9523 2005-01-26  Peter Bartok  <pbartok@novell.com>
9524
9525         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9526         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9527           and SystrayRemove() methods
9528         * XplatUIOSX.cs: Stubbed Systray methods
9529         * XplatUIX11.cs:
9530           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9531             methods
9532           - Fixed broken XChangeProperty calls (marshalling messed up things)
9533         * X11Structs.cs: Added enums and structs required for Size hinting
9534         * NotifyIcon.cs: Added & implemented
9535
9536 2005-01-26  Jackson Harper  <jackson@ximian.com>
9537
9538         * TabControl.cs: Space vertically layed out tabs properly.
9539
9540 2005-01-26  Peter Bartok  <pbartok@novell.com>
9541
9542         * Form.cs (CreateClientParams): Always set the location to 0,0
9543           since we're a child window.
9544
9545         * Control.cs (SetVisibleCore): Always explicitly setting the location
9546           of a toplevel window, apparently X11 doesn't like to move windows
9547           while they're not mapped.
9548
9549 2005-01-26  Jackson Harper  <jackson@ximian.com>
9550
9551         * TabControl.cs: Implement FillToRight size mode with vertically
9552         rendered tabs.
9553
9554 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9555
9556         * ControlPaint.cs, ThemeWin32Classic.cs
9557                 - Fixes DrawFocusRectangle
9558
9559 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9560
9561         * MenuAPI.cs:
9562                 - MenuBar tracking only starts when item is first clicked
9563                 - Fixes menu hidding for multiple subitems
9564                 - Unselect item in MenuBar when item Executed
9565                 - Fixes bug 71495
9566
9567 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
9568
9569         * ListControl.cs:
9570                 - IsInputKey for ListBox
9571         * ListBox.cs:
9572                 - Focus item
9573                 - Shift and Control item selection
9574                 - Implement SelectionMode.MultiExtended
9575                 - Fixes RightToLeft
9576         * ComboBox.cs:
9577                 - IsInputKey implemented
9578                 - Do not generate OnTextChangedEdit on internal txt changes
9579                 
9580 2005-01-23  Peter Bartok  <pbartok@novell.com>
9581
9582         * AccessibleObject.cs: Partially implemented Select()
9583         * MonthCalendar.cs: Added missing attributes and events
9584         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9585           form can properly override CreateParams.
9586         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9587           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9588           Control performs Invalidate & Update
9589         * NativeWindow (CreateHandle): Added special handling for Form
9590           and Form.FormParent classes to allow overriding of From.CreateParams
9591         * Control.cs:
9592           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9593             name 'owner'
9594           - ControlNativeWindow: Added Owner property
9595           - Removed usage of Refresh() on property changes, changed into
9596             Invalidate(), we need to wait until the queue is processed for
9597             updates, direct calls might cause problems if not all vars for
9598             Paint are initialized
9599           - Added call to UpdateStyles() when creating the window, to set any
9600             styles that CreateWindow might have ignored.
9601           - Added support for Form CreateParent overrides to UpdateStyles()
9602         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9603           CreateParams are now properly overridable
9604         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9605           CreateParams are now properly overridable
9606
9607 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9608
9609         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9610         OnTextBoxChanged.
9611
9612         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9613         recursive invocation that I have not figured out yet.
9614
9615         Reset the timer when not using (it was accumulating).
9616
9617
9618         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9619         user has made changes that require validation.
9620
9621         Reset changing to avoid loops.
9622
9623 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9624
9625         * NumericUpDown.cs: Display value at startup.
9626
9627         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9628         ValidateEditText.
9629
9630         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9631         filled in.  Added some basic parsing of text.
9632
9633         Still missing the OnXXX method overrides, and figuring out the
9634         events that must be emitted.
9635
9636         * UpDownBase.cs: Handle UserEdit on the Text property.
9637         
9638 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9639
9640         * ComboBox.cs:
9641           - Fixes IntegralHeight
9642           - ToString method
9643
9644 2005-01-21  Jackson Harper  <jackson@ximian.com>
9645
9646         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9647         is set so that the page visibility is updated and the tabs are
9648         sized correctly.
9649
9650 2005-01-21  Jackson Harper  <jackson@ximian.com>
9651
9652         * TabControl.cs: Use cliping rectangle for blitting. Give the
9653         theme the clipping rect so we can do clipping while
9654         drawing. Remove some debug code.
9655
9656 2005-01-21  Jackson Harper  <jackson@ximian.com>
9657
9658         * TabPage.cs: Add a new method so tab pages can force the tab
9659         control to recalculate the tab page sizes.
9660         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9661         sizes.
9662
9663 2005-01-20  Jackson Harper  <jackson@ximian.com>
9664
9665         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9666
9667 2005-01-20  Jackson Harper  <jackson@ximian.com>
9668
9669         * TreeView.cs: Set the bounds for nodes properly. They were
9670         getting screwed up when checkboxes were not enabled, but images
9671         were.
9672
9673 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9674
9675         * ListBox.cs:
9676                 - Owner draw support
9677                 - Fixes
9678                 
9679 2005-01-20  Jackson Harper  <jackson@ximian.com>
9680
9681         * XplatUIStructs.cs: More misc keys
9682         * X11Keyboard.cs: Ignore some control keys.
9683
9684 2005-01-20  Jackson Harper  <jackson@ximian.com>
9685
9686         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9687         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9688
9689 2005-01-19  Peter Bartok  <pbartok@novell.com>
9690
9691         * Control.cs: Un-selecting the control when it is loosing focus
9692
9693 2005-01-19  Jackson Harper  <jackson@ximian.com>
9694
9695         * TreeView.cs: Hook up to the text controls leave event so we can
9696         end editing when the users clicks outside the text box.
9697         
9698 2005-01-19  Jackson Harper  <jackson@ximian.com>
9699
9700         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9701         get set in the conversion array.
9702
9703 2005-01-19  Peter Bartok  <pbartok@novell.com>
9704
9705         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9706           focus is properly set
9707         * Button.cs:
9708           - Added missing attributes
9709           - removed styles, those are already set in the base class
9710         * ButtonBase.cs:
9711           - Added missing attributes
9712           - Added clip window styles
9713         * CheckBox.cs: Added missing attributes
9714         * CommonDialog.cs:
9715           - FormParentWindow.CreateParams: Added required clip styles
9716         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9717           also filters modifier keys
9718         * MessageBox.cs:
9719           - Added assignment of Accept and Cancel button to enable Enter
9720             and Esc keys in MessageBox dialogs
9721           - FormParentWindow.CreateParams: Added required clip styles
9722         * RadioButton.cs: Added missing attributes
9723         * TextControl.cs: No longer draws selection if control does not
9724           have focus
9725         * TextBoxBase.cs:
9726           - Now draws simple rectangle around test area to make it obvious
9727             there's a control. This is a hack until we properly support borders
9728           - A few simple fixes to support selections better, now erases selected
9729             text when typing, and resets selection when using movement keys
9730
9731 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9732
9733         * UpDownBase.cs: Added some new properties.
9734
9735         * DomainUpDown.cs: Implement a lot to get my test working.
9736
9737 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9738
9739         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9740
9741 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9742
9743         * OSXStructs (WindowAttributes): Fixed csc complaints
9744
9745 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9746
9747         * XplayUIOSX.cs:
9748           OSXStructs.cs: Initial refactor to move enums and consts into
9749           OSXStructs and use them in the driver for greater readability.
9750
9751 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9752
9753         * XplatUIOSX.cs: Initial support for Standard Cursors.
9754         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9755
9756 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9757
9758         * ComboBox.cs: ability to change style when the ctrl is already
9759         created, missing methods and events, bug fixes, signature fixes
9760
9761 2005-01-19  Peter Bartok  <pbartok@novell.com>
9762
9763         * Cursors.cs (ctor): Added ctor to fix signature
9764
9765 2005-01-18  Peter Bartok  <pbartok@novell.com>
9766
9767         * Button.cs: Implemented DoubleClick event
9768         * ButtonBase.cs:
9769           - Fixed keyboard handling to behave like MS, where the press of
9770             Spacebar is equivalent to a mousedown, and the key release is
9771             equivalent to mouseup. Now a spacebar push will give the same
9772             visual feedback like a mouse click.
9773           - Added missing attributes
9774           - Added ImeModeChanged event
9775           - Added support for generating DoubleClick event for derived classes
9776         * CheckBox.cs:
9777           - Implemented DoubleClick event
9778           - Added missing attributes
9779         * CommonDialog.cs: Added missing attribute
9780         * ContextMenu.cs: Added missing attributes
9781         * RadioButton.cs:
9782           - AutoChecked buttons do not allow to be unselected when clicked
9783             (otherwise we might end up with no selected buttons in a group)
9784           - Added missing attributes
9785           - Implemented DoubleClickEvent
9786         * ThreadExceptionDialog.cs: Enabled TextBox code
9787
9788 2005-01-18  Peter Bartok  <pbartok@novell.com>
9789
9790         * Form.cs: Removed debug output
9791         * Button.cs: Added support for DoubleClick method
9792
9793 2005-01-18  Peter Bartok  <pbartok@novell.com>
9794
9795         * Form.cs:
9796           - Added method to parent window that allows triggering size
9797             calculations when a menu is added/removed
9798           - set_Menu: Cleaned up mess from early days of Form and Control,
9799             now properly triggers a recalc when a menu is added/removed
9800           - Added case to select form itself as focused form if no child
9801             controls exist
9802           - Added PerformLayout call when showing dialog, to ensure properly
9803             placed controls
9804         * Control.cs:
9805           - Select(): Made internal so Form can access it
9806           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9807             status
9808         * Application.cs (Run): Removed hack and calls PerformLayout instead
9809           to trigger calculation when Form becomes visible
9810
9811 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9812
9813         * ComboBox.cs: fixes for ownerdraw
9814
9815 2005-01-18  Peter Bartok  <pbartok@novell.com>
9816
9817         * TextControl.cs:
9818           - Sentinel is no longer static, each Document gets it's own, this
9819             avoids locking or alternatively overwrite problems when more
9820             than one text control is used simultaneously.
9821           - Switched to use Hilight and HilightText brushes for text selection
9822
9823         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9824
9825 2005-01-18  Peter Bartok  <pbartok@novell.com>
9826
9827         * Control.cs:
9828           - Hooked up the following events:
9829                 o ControlAdded
9830                 o ControlRemoved
9831                 o HandleDestroyed
9832                 o ImeModeChanged
9833                 o ParentChanged
9834                 o TabStopChanged
9835                 o Invalidated
9836                 o SystemColorsChanged
9837                 o ParentFontChanged
9838                 o Move
9839           - Removed debug output
9840           - Added a call to the current theme's ResetDefaults when a color change
9841             is detected
9842         * Form.cs: Now setting the proper ImeMode
9843         * Theme.cs: Defined a method to force recreation of cached resources
9844           and rereading of system defaults (ResetDefaults())
9845         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9846
9847 2005-01-17  Peter Bartok  <pbartok@novell.com>
9848
9849         * Control.cs: Added missing attributes
9850
9851 2005-01-17  Jackson Harper  <jackson@ximian.com>
9852
9853         * TreeNode.cs: Implement editing. Add missing properties selected
9854         and visible.
9855         * TreeView.cs: Implement node editing. Also some fixes to use
9856         Invalidate (invalid area) instead of Refresh when selecting.
9857
9858 2005-01-17  Peter Bartok  <pbartok@novell.com>
9859
9860         * Control.cs:
9861           - Implemented InvokeGotFocus() method
9862           - Implemented InvokeLostFocus() method
9863           - Implemented InvokePaint() method
9864           - Implemented InvokePaintBackground() method
9865           - Implemented InvokeClick() method
9866           - Implemented FindForm() method
9867           - Implemented RectangleToClient() method
9868           - Implemented ClientToRectangle() method
9869           - Implemented ResetBackColor() method
9870           - Implemented ResetCursor() method
9871           - Implemented ResetFont() method
9872           - Implemented ResteForeColor() method
9873           - Implemented ResetImeMode() method
9874           - Implemented ResetLeftToRight() method
9875           - Implemented ResetText() method
9876           - Implemented Scale() methods
9877           - Implemented ScaleCore() method
9878           - Implemented Update() method
9879           - Removed unused variables
9880           - Stubbed AccessibilityNotifyClients and
9881             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9882             with those yet)
9883           - Now setting proper default for RightToLeft property
9884           - Fixed bug in SetClientSizeCore that would cause windows to get
9885             really big
9886           - Now sending Click/DoubleClick events
9887           - Now selecting controls when left mouse button is clicked on
9888             selectable control
9889         * AccessibleEvents.cs: Added
9890         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9891         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9892         * XplatUIWin32.cs: Implemented UpdateWindow() method
9893         * XplatUIX11.cs: Implemented UpdateWindow() method
9894         * Form.cs: Removed stray semicolon causing CS0162 warning
9895         * ThemeWin32Classic.cs: Fixed unused variable warnings
9896         * ScrollableControl.cs: Now calls base method for ScaleCore
9897         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9898           style to avoid interference with internal click handler (which is
9899           different than standard Control click handling)
9900         * RadioButton.cs:
9901           - Now unchecks all sibling radio buttons when control is
9902             selected (Fixes #68756)
9903           - Removed internal tabstop variable, using the one inherited from
9904             Control
9905
9906 2005-01-17  Jackson Harper  <jackson@ximian.com>
9907
9908         * NavigateEventArgs.cs: Fix base type.
9909         * LinkLabel.cs: Sig fix
9910         
9911 2005-01-17  Jackson Harper  <jackson@ximian.com>
9912
9913         * TreeView.cs: Only invalidate the effected nodes bounds when
9914         selecting nodes.
9915
9916 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9917
9918         * XplatUIWin32.cs: fixes Win32 marshaling
9919         * XplatUIX11.cs: fixes method signature
9920
9921 2005-01-17  Peter Bartok  <pbartok@novell.com>
9922
9923         * XplatUIX11.cs: Clean up resources when we no longer need them
9924
9925 2005-01-17  Peter Bartok  <pbartok@novell.com>
9926
9927         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9928           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9929           and DestroyCursor() methods.
9930         * Cursor.cs: Partially implemented, now supports standard cursors;
9931           still contains some debug code
9932         * Cursors.cs: Implemented class
9933         * Control.cs:
9934           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9935             appropriate cursor
9936           - Implemented Cursor property
9937           - Replaced break; with return; more straightforwar and possibly
9938             faster
9939           - Now properly setting the result for WM_HELP
9940         * X11Structs.cs: Added CursorFontShape enum
9941         * XplatUIStructs.cs:
9942           - Added StdCursor enum (to support DefineStdCursor() method)
9943           - Added HitTest enum (to support sending WM_SETCURSOR message)
9944         * XplatUIX11.cs:
9945           - Now sends the WM_SETCURSOR message
9946           - Implemented new cursor methods
9947         * XplatUIOSX.cs: Stubbed new cursor methods
9948         * XplatUIWin32.cs:
9949           - Implemented new cursor methods
9950           - Added GetSystemMetrics function and associated enumeration
9951
9952 2005-01-15  Peter Bartok  <pbartok@novell.com>
9953
9954         * Control.cs:
9955           - WndProc(): Now handles EnableNotifyMessage
9956           - SelectNextControl(): Fixed bug where if no child or sibling
9957             controls exist we looped endlessly
9958
9959 2005-01-14  Jackson Harper  <jackson@ximian.com>
9960
9961         * TreeView.cs: Recalculate the tab pages when a new one is added
9962         so that the proper bounding rects are created.
9963
9964 2005-01-14  Jackson Harper  <jackson@ximian.com>
9965
9966         * TreeView.cs: Draw a gray box instead of a grip in the lower
9967         right hand corner when there are both horizontal and vertical
9968         scroll bars.
9969
9970 2005-01-14  Jackson Harper  <jackson@ximian.com>
9971
9972         * Control.cs: When erasing backgrounds use FromHwnd instead of
9973         FromHdc when there is a NULL wparam. This occurs on the X driver.
9974         * XplatUIX11.cs: Set the wparam to NULL.
9975
9976 2005-01-13  Jackson Harper  <jackson@ximian.com>
9977
9978         * PictureBox.cs: Implement missing methods (except ToString, need
9979         to test that on windows) and events. When visibility is changed we
9980         need to redraw the image because the buffers are killed. When size
9981         is changed refresh if the sizemode needs it.
9982
9983 2005-01-13  Peter Bartok  <pbartok@novell.com>
9984
9985         * Control.cs (SelectNextControl): Was using wrong method to select
9986           a control
9987
9988 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9989
9990         * ComboBox.cs: fixes dropstyle
9991
9992 2005-01-13  Peter Bartok  <pbartok@novell.com>
9993
9994         * Form.cs:
9995           - Implemented Select() override
9996           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9997           - Now sets keyboard focus on startup
9998         * Control.cs (SelectNextControl): Now properly handles directed=true
9999         * TextBoxBase.cs:
10000           - WndProc: Now passes tab key on to base if AcceptTabChar=false
10001           - Added (really bad) focus rectangle (mostly for testing)
10002         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
10003           to enforce redraw on focus changes
10004         * ContainerControl.cs:
10005           - Fixed detection of Shift-Tab key presses
10006           - Fixed traversal with arrow keys
10007         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
10008           gonna keep this or if it's complete yet
10009         
10010 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
10011
10012         * ComboBox.cs: missing properties, fixes
10013
10014 2005-01-13  Peter Bartok  <pbartok@novell.com>
10015
10016         * Panel.cs (ctor): Setting Selectable window style to off
10017         * Splitter.cs (ctor): Setting Selectable window style to off
10018         * GroupBox.cs (ctor): Setting Selectable window style to off
10019         * Label.cs (ctor): Setting Selectable window style to off
10020
10021 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
10022
10023         * UpDownBase.cs (InitTimer): If the timer has been already
10024         created, enable it.
10025
10026         Use a TextBox instead of a Label.
10027
10028 2005-01-12  Jackson Harper  <jackson@ximian.com>
10029
10030         * TreeView.cs: Refresh the tree after sorting the nodes. Always
10031         draw the connecting node lines (when ShowLines is true).
10032         * TreeNode.cs: The nodes index can now be updated. This is used
10033         when a node collection is sorted.
10034         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
10035         insert or an existing unsorted node collection can be sorted.
10036         
10037 2005-01-12  Peter Bartok  <pbartok@novell.com>
10038
10039         * ContainerControl.cs: Implemented ProcessDialogKeys()
10040
10041 2005-01-12  Peter Bartok  <pbartok@novell.com>
10042
10043         * Control.cs:
10044           - Implemented SelectNextControl() method
10045           - Several focus related bug fixes
10046           - Fixed Docking calculations to match MS documentation and
10047             behaviour
10048
10049 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
10050
10051         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
10052         bug fixes
10053
10054 2005-01-12  Peter Bartok  <pbartok@novell.com>
10055
10056         * Control.cs:
10057           - Fixed broken Contains() method
10058           - Implemented GetNextControl() method. Finally. This is the pre-
10059             requisite for focus handling.
10060
10061 2005-01-12  Peter Bartok  <pbartok@novell.com>
10062
10063         * OSXStrucs.cs: Added
10064
10065 2005-01-12  Peter Bartok  <pbartok@novell.com>
10066
10067         * XplatUIWin32.cs:
10068           - Removed PeekMessageFlags
10069           - Implemented SetWindowStyle() method
10070         * XplatUIStructs.cs: Added PeekMessageFlags
10071         * X11Structs: Added missing border_width field to XWindowChanges struct
10072         * XplatUIX11.cs:
10073           - PeekMessage: Now throws exception if flags which are not yet
10074             supported are passed
10075           - Implemented SetWindowStyle() method
10076           - Fixed SetZOrder to handle AfterHwnd properly
10077         * XplatUI.cs: Added SetWindowStyle() method
10078         * XplatUIDriver.cs: Added SetWindowStyle() abstract
10079         * Control.cs:
10080           - Implemented UpdateStyles() method
10081           - Implemented UpdateZOrder() method
10082         * XplatUIOSX.cs: Added SetWindowStyle() stub
10083
10084 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
10085
10086         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
10087         button mouse).
10088
10089
10090 2005-01-11  Jackson Harper  <jackson@ximian.com>
10091
10092         * TreeView.cs: Still need to draw lines to siblings even if out of
10093         the current node is out of the clip.
10094
10095 2005-01-11  Jackson Harper  <jackson@ximian.com>
10096
10097         * TreeView.cs: When setting the hbar/vbar/grip position use
10098         SetBounds so that perform layout is only called once. Also suspend
10099         and resume layout so layout is only done once for all controls.
10100         - Removed some debug fluff
10101         * SizeGrip.cs: Call base implmentation in overriding methods.
10102         - When visibility is changed the drawing buffers are killed so we
10103         need to redraw.
10104
10105 2005-01-11  Jackson Harper  <jackson@ximian.com>
10106
10107         * TreeView.cs: Calculate the open node count while drawing. This
10108         saves us an entire tree traversal for every paint operation. Use
10109         a member var for the open node count so less vars are passed around.
10110
10111 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
10112
10113         * MonthCalendar.cs:
10114         - fixed selection to use mousemove, not mouse polling on timer
10115         * ThemeWin32Classic.cs
10116         - removed redundant unused variable "no_more_content"
10117         
10118 2005-01-11  Peter Bartok  <pbartok@novell.com>
10119
10120         * XplatUIX11.cs (DoEvents): Needs to return when no more events
10121           are pending, so it now calls PeekMessage instead of GetMessage;
10122           implemented a incomplete version of PeekMessage
10123         
10124 2005-01-11  Peter Bartok  <pbartok@novell.com>
10125
10126         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
10127           I18n issues
10128         * TextBoxBase.cs: Added sending of TextChanged event
10129
10130 2005-01-10  Jackson Harper  <jackson@ximian.com>
10131
10132         * TreeView.cs: Try not to draw outside the clipping rectangle on
10133         each node element.
10134
10135 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
10136
10137         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
10138
10139 2005-01-10  Jackson Harper  <jackson@ximian.com>
10140
10141         * TreeView.cs:
10142         - Implement fast scrolling. Now only the newly
10143         exposed nodes are drawn and the old image is moved using the
10144         XplatUI::ScrollWindow method.
10145         - Factor in height of nodes when calculating whether or not the
10146         node is in the clipping rect.
10147
10148 2005-01-10  Jackson Harper  <jackson@ximian.com>
10149
10150         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10151
10152 2005-01-10  Peter Bartok  <pbartok@novell.com>
10153
10154         * Application.cs: Added temporary hack to resolve all our resize
10155           required issues on startup. This will get fixed properly at
10156           some point in the future
10157
10158 2005-01-10  Jackson Harper  <jackson@ximian.com>
10159
10160         * SizeGrip.cs: New internal class that is used as a sizing
10161         grip control...hence the name.
10162
10163 2005-01-10  Peter Bartok  <pbartok@novell.com>
10164
10165         * Control.cs: Implemented proper TabIndex handling, now assigning
10166           a tabindex when a control is added to a container
10167         * GroupBox.cs (ctor): Now sets the Container style bit, required
10168           for Control.GetNextControl()
10169
10170 2005-01-09  Jackson Harper  <jackson@ximian.com>
10171
10172         * TextBoxBase.cs: Clear window when scrolling (fixes build).
10173
10174 2005-01-09  Peter Bartok <pbartok@novell.com>
10175
10176         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10177           XplatUIX11.cs: Added ability to control ScrollWindow expose and
10178           an overload for ScrollWindow to allow only scrolling a rectangle
10179
10180 2005-01-09  Peter Bartok <pbartok@novell.com>
10181
10182         * Form.cs:
10183           - Implemented SetDesktopBounds method
10184           - Implemented SetDesktopLocation method
10185
10186 2005-01-08  Jackson Harper  <jackson@ximian.com>
10187
10188         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
10189         the node count has changed, this removes to VScroll::Refresh calls
10190         when drawing.
10191
10192 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
10193
10194         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
10195
10196 2005-01-07  Jackson Harper  <jackson@ximian.com>
10197
10198         * TreeNode.cs: Just update the single node when it is
10199         checked. Don't refresh after toggling, the Expand/Collapse already
10200         handles this.
10201         * TreeView.cs: Respect clipping a little more when drawing. Try
10202         not to redraw things that don't need to be redrawn. Just hide the
10203         scrollbars when they are no longer needed instead of removing
10204         them, so they don't have to be created again and again.
10205         
10206 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
10207
10208         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
10209         coordinates to window space to place the caret properly, FIXED.
10210         Implement GetWindowState & SetWindowState
10211
10212 2005-01-06  Peter Bartok <pbartok@novell.com>
10213
10214         * Form.cs:
10215           - Implemented ClientSize property
10216           - Implemented DesktopBounds property
10217           - Implemented DesktopLocation property
10218           - Implemented IsRestrictedWindow property
10219           - Implemented Size property
10220           - Implemented TopLevel property
10221           - Implemented FormWindowState property
10222         * Control.cs:
10223           - Implemented GetTopLevel() method
10224           - Implemented SetTopLevel() method
10225         * X11Structs.cs (Atom):
10226           - Added AnyPropertyType definition
10227           - Added MapState definiton and updated XWindowAttribute struct
10228         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
10229         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
10230         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
10231         * XplatUIWin32.cs:
10232           - Implemented GetWindowState() and SetWindowState() methods
10233           - Fixed Win32GetWindowLong return type
10234         * XplatUIX11.cs:
10235           - Introduced central function for sending NET_WM messages
10236           - Implemented GetWindowState() and SetWindowState() methods
10237         * TextBoxBase.cs (set_Lines):
10238           - Now uses Foreground color for text added via Text property (Duh!)
10239           - Added code to remember programmatically requested size (fixes
10240             behaviour when Multiline is set after Size)
10241           - Added AutoSize logic
10242
10243 2005-01-06  Jackson Harper  <jackson@ximian.com>
10244
10245         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
10246
10247 2005-01-06  Jackson Harper  <jackson@ximian.com>
10248
10249         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10250         set to less then 0.
10251
10252 2005-01-06  Jackson Harper  <jackson@ximian.com>
10253
10254         * ScrollableControl.cs: Lazy init the scrollbars.
10255         
10256 2005-01-06  Jackson Harper  <jackson@ximian.com>
10257
10258         * Theme.cs: Speed up getting pens and solid brushes, by using
10259         their ARGB as a hash instead of tostring and not calling Contains.
10260
10261 2005-01-06  Peter Bartok <pbartok@novell.com>
10262
10263         * Form.cs:
10264           - Implemented OnActivated and OnDeactivate event trigger
10265           - Implemented Activate() method
10266           - Fixed ShowDialog() to activate the form that was active before
10267             the dialog was shown
10268         * XplatUIX11.cs:
10269           - Added global active_window var that tracks the currently active
10270             X11 window
10271           - Now always grabs Property changes from the root window to always
10272             catch changes on the active window property
10273           - Added code to PropertyNotify handler to send Active/Inactive
10274             messages when state changes. This puts X11 and Win32 en par on
10275             WM_ACTIVATE notifications (except for double notifications when
10276             the user clicks away from our modal window to another one of our
10277             windows)
10278
10279 2005-01-05  Jackson Harper  <jackson@ximian.com>
10280
10281         * ImageList.cs: Implment ctor
10282
10283 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10284
10285         * XplatUIOSX.cs: Implement Activate/SetTopmost
10286
10287 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10288
10289         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10290
10291 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10292
10293         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10294
10295 2005-01-05  Peter Bartok <pbartok@novell.com>
10296
10297         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10298           XplatUIOSX.cs: Added GetActive method to return the currently
10299           active window for the application (or null, if none is active)
10300         * Form.cs:
10301           - Implemented ActiveForm
10302           - Commented out owner assignment for modal dialogs (causes problems
10303             on Win32, since the owner will be disabled)
10304           - Reworked some Active/Focus handling (still incomplete)
10305         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10306           (causes problems on Win32, since the owner will be disabled)
10307         * IWin32Window: Added ComVisible attribute
10308
10309 2005-01-05  Peter Bartok <pbartok@novell.com>
10310
10311         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10312           required XplatUI functions.
10313
10314 2005-01-05  Peter Bartok <pbartok@novell.com>
10315
10316         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10317           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10318           to implement focus and activation handling; still incomplete and
10319           with debug output
10320
10321 2005-01-04  Peter Bartok <pbartok@novell.com>
10322
10323         * TextBoxBase.cs: Changed access level for Document property to
10324           match switch to internal for TextControl
10325
10326 2005-01-04  Peter Bartok <pbartok@novell.com>
10327
10328         * AccessibleObject: Added ComVisible attribute
10329
10330 2005-01-04  Jackson Harper  <jackson@ximian.com>
10331
10332         * X11Keyboard.cs: Remove unneeded var.
10333
10334 2005-01-04  Jackson Harper  <jackson@ximian.com>
10335
10336         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10337         but PAINT.
10338         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10339         ClientMessage. This makes apps exit cleanly (more often).
10340         
10341 2005-01-04  Jackson Harper  <jackson@ximian.com>
10342
10343         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10344         handling focus, return correct colors and fonts,
10345         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10346         handle selection, horizontal scrolling, and mouse interaction.
10347
10348 2005-01-04  Peter Bartok <pbartok@novell.com>
10349
10350         * ICommandExecutor.cs: Added
10351         * IDataGridColumnStyleEditingNotificationService.cs: Added
10352         * IFeatureSupport.cs: Added
10353         * IFileReaderService.cs: Added
10354         * IDataObject.cs: Added ComVisible attribute
10355         * AmbientProperties.cs: Added
10356         * BaseCollection.cs: Added missing attributes
10357         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10358         * BaseCollection.cs: Added missing attributes
10359         * Binding.cs: Added TypeConverter attribute
10360         * BindingContext.cs: Added DefaultEvent attribute
10361         * BindingsCollection.cs: Added DefaultEvent attribute
10362         * Button.cs: Added DefaultValue attribute
10363         * DragEventArgs.cs: Added ComVisible attribute
10364         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10365         * KeyEventArgs.cs: Added ComVisible attribute
10366         * KeyPressEventArgs.cs: Added ComVisible attribute
10367         * MouseEventArgs.cs: Added ComVisible attribute
10368         * NavigateEventArgs.cs: Added
10369         * NavigateEventHandler.cs: Added
10370         * FeatureSupport.cs: Added
10371         * OSFeature.cs: Added
10372         * Theme.cs: Added abstract Version property to support OSFeature
10373         * ThemeWin32Classic.cs: Added Version property to
10374           support OSFeature.Themes
10375         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10376           the proper styles to avoid background drawing are set, also doesn't
10377           match MS signature
10378         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10379         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10380         * ScrollEventArgs.cs: Added ComVisible attribute
10381         * SplitterEventArgs.cs: Added ComVisible attribute
10382         * AccessibleSelection.cs: Added Flags attribute
10383         * Appearance.cs: Added ComVisible attribute
10384         * Border3DSide.cs: Added ComVisible attribute
10385         * Border3DStyle.cs: Added ComVisible attribute
10386         * BorderStyle.cs: Added ComVisible attribute
10387         * DragAction.cs: Added ComVisible attribute
10388         * ErrorBlinkStyle.cs: Added
10389         * ScrollEventType.cs: Added ComVisible attribute
10390         * AnchorStyles.cs: Added Editor attribute
10391         * DockStyle.cs: Added Editor attribute
10392         * HorizontalAlignment.cs: Added ComVisible attribute
10393         * HelpEventArgs.cs: Added ComVisible attribute
10394         * PaintEventArgs.cs: Added IDisposable
10395
10396 2005-01-04  Peter Bartok <pbartok@novell.com>
10397
10398         * TextControl.cs: Switched Line, LineTag and Document classes to
10399           internal
10400
10401 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10402
10403         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10404         Simple mode, fixes, IntegralHeight, etc.
10405
10406 2005-01-04  Peter Bartok <pbartok@novell.com>
10407
10408         * TextBoxBase.cs: Using proper font variable now
10409
10410 2005-01-04  Peter Bartok <pbartok@novell.com>
10411
10412         * Form.cs (ShowDialog): Set parent to owner, if provided
10413         * GroupBox.cs: Removed unused vars
10414         * TextControl.cs:
10415           - Added GetHashCode() for Document and LineTag classes
10416           - Removed unused variables
10417           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10418             to allow translation between continuous char position and line/pos
10419         * CheckBox.cs: Removed vars that are provided by base class
10420         * RadioButton.cs: Removed vars that are provided by base class, added
10421           new keyword where required
10422         * LinkLabel.cs: Added new keyword where required
10423         * Control.cs (WndProc): Removed unused variable
10424         * TextBoxBase.cs:
10425           - Finished SelectionLength property
10426           - Implemented SelectionStart property
10427           - Implemented Text property
10428           - Removed unused vars
10429         * MessageBox.cs: Added new keyword where required
10430         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10431           WndProc signature
10432         * MenuAPI.cs: Added new keyword where required
10433         * ButtonBase.cs: Removed vars that are provided by base class, added
10434           new keyword where required
10435         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10436           argument to double, to allow compiling with csc 2.0 (Atsushi ran
10437           into this)
10438         * Application.cs (Run): Now triggers the ThreadExit event
10439         * CommonDialog.cs: Added new keyword where required; now properly sets
10440           parent (owner) for dialog
10441         * XplatUIX11.cs: Commented out unused vars
10442         * StatusBar.cs: Fixed signature for Text property
10443         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10444
10445 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10446
10447         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10448         TrackBar.cs, MonthCalendar.cs: remove unused vars
10449
10450 2005-01-03  Jackson Harper  <jackson@ximian.com>
10451
10452         * ThemeWin32Classic.cs:
10453         * X11Keyboard.cs: Remove unused vars.
10454
10455 2005-01-03  Peter Bartok  <pbartok@novell.com>
10456
10457         * TextBox.cs:
10458           - set_Text: Tied into TextControl
10459           - set_TextAlignment: Tied into TextControl
10460         * TextControl.cs:
10461           - Added alignment properties and implemented alignment handling
10462             and drawing (still has a bug, not generating proper expose events)
10463           - Added new Line() constructor to allow passing the line alignment
10464           - Fixed selection setting, properly handling end<start now
10465           - Added aligment considerations to RecalculateDocument()
10466         * TextBoxBase.cs:
10467           - Now properly enforces control height for single line controls
10468           - Added support for CharacterCasing
10469           - Added IsInputKey override
10470           - Fixed Keys.Enter logic
10471           - Added SetBoundsCore override
10472           - Fixed mouse selection handling
10473
10474 2005-01-03  Jackson Harper  <jackson@ximian.com>
10475
10476         * TreeView.cs:
10477           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10478           - Checkboxes are always aligned to the bottom of the node,
10479           regardless of item height.
10480           - Use the node bounds to draw the text so we can center it when
10481           the item height is greater then the font height.
10482           - Node::Bounds are only the text part of the node.
10483         * TreeNode.cs: New method to combine collapsing and unchecking all
10484           nodes recursively.
10485
10486 2005-01-02  Jackson Harper  <jackson@ximian.com>
10487
10488         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10489         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10490         tree when a check is changed. TODO: Only refresh the checked node.
10491
10492 2004-12-30  Jackson Harper  <jackson@ximian.com>
10493
10494         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10495         * TreeNode.cs: When collapsing make sure to never collapse the
10496         root node.
10497
10498 2004-12-29  Jackson Harper  <jackson@ximian.com>
10499
10500         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10501         
10502 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10503
10504         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10505
10506 2004-12-28  Peter Bartok  <pbartok@novell.com>
10507
10508         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10509           not yet assigned
10510
10511 2004-12-28  Peter Bartok  <pbartok@novell.com>
10512
10513         * Control.cs (WndProc): Added WM_HELP handler, now generates
10514           HelpRequested event
10515         * Form.cs: Added HelpButton property and required support code
10516         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10517
10518 2004-12-28  Peter Bartok  <pbartok@novell.com>
10519
10520         * CommonDialog.cs:
10521           - Made DialogForm.owner variable internal
10522           - Added check to ensure owner form is set before setting
10523             owner properties in CreateParams
10524
10525 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
10526
10527         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
10528           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
10529           GetCursorPos.  Fix major visibility issues.  Rework the windowing
10530           system to support borderless/titleless windows (implements menus).
10531           Fix GetWindowPos.  Implement initial background color support for
10532           views.
10533
10534 2004-12-28  Peter Bartok  <pbartok@novell.com>
10535
10536         * Form.cs (get_CreateParams): Make sure we have an owner before using
10537           the owner variable. Implement proper default if no owner exists
10538
10539 2004-12-28  Peter Bartok  <pbartok@novell.com>
10540
10541         * In preparation for making Managed.Windows.Forms the default build target
10542           for System.Windows.Forms, the following stubbed files were added.
10543           Dialogs are currently being implemented by contributors and are only
10544           short-term place holders.
10545         * ColorDialog.cs: Initial check-in (minmal stub)
10546         * DataGrid.cs: Initial check-in (minimal stub)
10547         * DataGridLineStyle.cs: Initial check-in (minimal stub)
10548         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10549         * DataGridTableStyle.cs: Initial check-in (minimal stub)
10550         * FontDialog.cs: Initial check-in (minimal stub)
10551         * FileDialog.cs: Initial check-in (minimal stub)
10552         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10553         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10554         * OpenFileDialog: Initial check-in (minimal stub)
10555         * IComponentEditorPageSite.cs: Initial check-in
10556         * Splitter.cs: Initial check-in (for Jackson)
10557         * SplitterEventArgs.cs: Initial check-in (for Jackson)
10558         * SplitterEventHandler.cs: Initial check-in (for Jackson)
10559         * TextBox.cs: Initial check-in; still needs some wiring to
10560           TextControl backend
10561         * Form.cs: Implemented ControlBox property
10562         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10563         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10564         * TextControl.cs: Added selection functionality; added todo header
10565         * TextBoxBase.cs:
10566           - Implemented Lines property
10567           - Implemented TextHeight property
10568           - Implemented SelectedText property
10569           - Implemented SelectionLength property
10570           - Implemented SelectAll method
10571           - Implemented ToString method
10572           - Removed and cleaned up some debug code
10573           - Implemented (still buggy) mouse text selection
10574
10575 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
10576
10577         * ComboBox.cs: Complete DropDownList implementation, fixes.
10578
10579 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10580
10581         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10582         * ComboBoxStyle.cs: ComboBoxStyle enum
10583         * ComboBox.cs: Initial work on ComboBox control
10584
10585 2004-12-21  Peter Bartok  <pbartok@novell.com>
10586
10587         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10588           forward so that anything that creates a window gets the default,
10589           also no longer uses Visible property in CreateParams to avoid
10590           walking up the parent chain and possibly get the wrong visible
10591           status. Fixed IsVisible to no longer walk up to the parent.
10592
10593 2004-12-21  Peter Bartok  <pbartok@novell.com>
10594
10595         * Form.cs (ShowDialog): Unset modality for the proper window
10596  
10597 2004-12-20  Peter Bartok  <pbartok@novell.com>
10598
10599         * CommonDialog.cs: Initial check-in
10600
10601 2004-12-20  Peter Bartok  <pbartok@novell.com>
10602
10603         * Control.cs (Visible): Now uses the parent window instead of the
10604           client area window for the property
10605
10606         * Form.cs
10607           - ShowDialog(): Now uses the proper window for modality
10608           - The default visibility state for the form parent is now false. This
10609             will prevent the user from seeing all the changes to the form and
10610             its controls before the application hits Application.Run()
10611           - Removed some stale commented out code
10612
10613         * NativeWindow.cs:
10614           - Added FindWindow() method to have a method to check for existence
10615             of a window handle
10616           - Added ability to override default exception handling (for example
10617             when debugging with VS.Net; to do this the ExternalExceptionHandler
10618             define must be set
10619           - Removed some useless debug output
10620
10621         * XplatUIX11.cs:
10622           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10623             not working as expected
10624           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10625             property to allow switching back to the modal window if focus is
10626             given to another one of our windows (Application Modal)
10627           - Now only sets override_redirect if we create a window
10628             without WS_CAPTION
10629           - Moved EventMask selection before mapping of newly created window
10630             so we can catch the map event as well
10631           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10632           - Added various Atom related DllImports
10633           - Implemented Exit() method
10634           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10635             in the CreateParams
10636
10637         * MessageBox.cs: Now properly deals with the FormParent window by
10638           providing an override the FormParent CreateParams property to
10639           set as POPUP instead of OVERLAPPED window.
10640
10641 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10642
10643         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10644         Minor code cleanup.
10645
10646 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10647         
10648         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10649
10650 2004-12-18  Peter Bartok  <pbartok@novell.com>
10651
10652         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10653           implementing SetModal() method
10654
10655 2004-12-18  Peter Bartok  <pbartok@novell.com>
10656
10657         * X11Structs.cs (XGCValues): Fixed type of function element
10658         * XplatUI.cs: Added ScrollWindow() method
10659         * XplatUIDriver.cs: Added ScrollWindow() abstract
10660         * XplatUIWin32.cs: Implemented ScrollWindow() method
10661         * XplatUIX11.cs: Implemented ScrollWindow() method
10662         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10663
10664 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10665
10666         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10667         Some more keyboard support (INCOMPLETE)
10668
10669 2004-12-17  Peter Bartok  <pbartok@novell.com>
10670
10671         * TextControl.cs:
10672         - Added color attribute to line tags.
10673         - Added color argument to all functions dealing with tags
10674         - Added color argument support to various functions
10675         - Fixed miss-calculation of baseline/shift in certain circumstances
10676
10677         * TextBoxBase.cs: Added new color option to test code
10678
10679 2004-12-17  Jackson Harper  <jackson@ximian.com>
10680
10681         * TreeNode.cs:
10682         * MonthCalendar.cs: Signature fixes
10683
10684 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10685
10686         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10687         keyboard event moved it.  Create a new graphics context for each paint resolves this
10688
10689 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10690
10691         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10692         Make caret exist and go blink blink.  Initial keyboard support.
10693         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10694         works.
10695
10696 2004-12-17  Jackson Harper  <jackson@ximian.com>
10697
10698         * XplatUIStructs.cs: Updated set of virtual keycodes.
10699         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10700
10701 2004-12-17  Jackson Harper  <jackson@ximian.com>
10702
10703         * XplatUIX11.cs: Prune old keyboard code.
10704
10705 2004-12-17  Jackson Harper  <jackson@ximian.com>
10706
10707         * XplatUIX11.cs: When generating mouse wparams get the modifier
10708         keys from the ModifierKeys property.
10709
10710 2004-12-17  Jackson Harper  <jackson@ximian.com>
10711
10712         * X11Keyboard.cs: Send up/down input when generating
10713         messages. Remove some unused vars.
10714
10715 2004-12-17  Jackson Harper  <jackson@ximian.com>
10716
10717         * TabControl.cs:
10718         * TreeView.cs: get rid of warnings.
10719
10720 2004-12-17  Jackson Harper  <jackson@ximian.com>
10721
10722         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10723
10724 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10725
10726         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10727           CheckedListBox.cs: Implementation
10728
10729 2004-12-17  Peter Bartok  <pbartok@novell.com>
10730
10731         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10732
10733 2004-12-16  Peter Bartok  <pbartok@novell.com>
10734
10735         * TextControl.cs:
10736           - InsertCharAtCaret(): Fixed start pos fixup
10737           - CaretLine_get: No longer derives the line from the tag, the tag
10738             could be stale if lines in the document have been added or deleted
10739           - RebalanceAfterDelete(): Fixed bug in balancing code
10740           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10741           - Line.Streamline(): Now can also elminate leading empty tags
10742           - DumpTree(): Added a few more tests and prevented exception on
10743             uninitialized data
10744           - Added Debug section for Combining lines
10745           - Delete(): Now copies all remaining properties of a line
10746           
10747         * TextBoxBase.cs:
10748           - Left mousebutton now sets the caret (and middle button still acts
10749             as formatting tester, which must go away soon)
10750           - Added Debug section for Deleting/Combining lines
10751           - Fixed calculations for UpdateView after Combining lines
10752
10753 2004-12-16  Peter Bartok  <pbartok@novell.com>
10754
10755         * TextControl.cs: Now properly aligns text on a baseline, using the
10756           new XplatUI.GetFontMetrics() method. Simplified several calculations
10757         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10758           defined
10759
10760 2004-12-16  Peter Bartok  <pbartok@novell.com>
10761
10762         * XplatUI.cs: Added GetFontMetrics() method
10763         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10764         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10765           into libgdiplus, our private GetFontMetrics function
10766         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10767         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10768
10769 2004-12-16  Jackson Harper  <jackson@ximain.com>
10770
10771         * XplatUIStruct.cs: Add enum for dead keys
10772         * X11Keyboard.cs: Map and unmap dead keys.
10773
10774 2004-12-16  Jackson Harper  <jackson@ximian.com>
10775
10776         * X11Keyboard.cs: Detect and use the num lock mask.
10777
10778 2004-12-16  Peter Bartok  <pbartok@novell.com>
10779
10780         * Control.cs (CreateGraphics): Added check to make sure the
10781           handle of the window exists before calling Graphics.FromHwnd()
10782
10783 2004-12-16  Peter Bartok  <pbartok@novell.com>
10784
10785         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10786           contains a lot of code that's not supposed to be there for the
10787           real thing, but required for developing/testing the textbox
10788           backend.
10789
10790 2004-12-16  Peter Bartok  <pbartok@novell.com>
10791
10792         * TextControl.cs:
10793         - Fixed Streamline method
10794         - Added FindTag method to Line
10795         - Added DumpTree method for debugging
10796         - Added DecrementLines() method for deleting lines
10797         - Fixed UpdateView to update the cursor to end-of-line on single-line
10798           updates
10799         - Added PositionCaret() method
10800         - Fixed MoveCaret(LineDown) to move into the last line, too
10801         - Added InsertChar overload
10802         - Fixed InsertChar tag offset calculations
10803         - Added DeleteChar() method
10804         - Added Combine() method for folding lines
10805         - Fixed Delete() method, no longer allocates wasted Line object and
10806           now copies all properties when swapping nodes
10807         - Delete() method now updates document line counter
10808
10809 2004-12-15  Jackson Harper  <jackson@ximian.com>
10810
10811         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10812         * X11Keyboard.cs: Expose the currently selected modifier keys
10813         through a property.
10814
10815 2004-12-15  Peter Bartok  <pbartok@novell.com>
10816
10817         * TextControl.cs: Initial check-in. Still incomplete
10818
10819 2004-12-15  Jackson Harper  <jackson@ximian.com>
10820
10821         * TreeNode.cs:
10822         * TreeView.cs: Fix build on csc (second time today ;-))
10823
10824 2004-12-15  Jackson Harper  <jackson@ximian.com>
10825
10826         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10827         is calculated and use this for click testing.
10828         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10829
10830 2004-12-15  Jackson Harper  <jackson@ximian.com>
10831
10832         * TreeView.cs: Pass the nodes image index to the image list when
10833         drawing that image.
10834
10835 2004-12-15  Jackson Harper  <jackson@ximian.com>
10836
10837         * X11Keyboard.cs: Set messages hwnd.
10838         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10839         post_message calls.
10840
10841 2004-12-15  Jackson Harper  <jackson@ximian.com>
10842
10843         * X11Keyboard.cs: Fix to compile with csc.
10844         
10845 2004-12-15  Jackson Harper  <jackson@ximian.com>
10846
10847         * X11Structs.cs: Add key mask values
10848         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10849         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10850         down/up foo into WM_CHAR foo
10851         * KeyboardLayouts.cs: Common keyboard layouts
10852         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10853         post messages into the main queue.
10854
10855 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10856
10857         * Button.cs: implement ProcessMnemonic
10858         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10859           brushes everytime
10860         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10861         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10862
10863 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10864         
10865         * MonthCalendar.cs: Implemented click-hold for next/previous month
10866           and date selection
10867           
10868 2004-12-11  Peter Bartok  <pbartok@novell.com>
10869
10870         * X11Structs.cs:
10871           - Added XKeyboardState (moved from XplatUIX11.cs)
10872           - Added XCreateGC related enums and structures
10873           - Added GXFunction for XSetFunction
10874
10875         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10876
10877         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10878           CaretVisible() calls
10879
10880         * ToolTip.cs: Added code to prevent stealing focus from app windows
10881
10882         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10883           DestroyCaret, SetCaretPos and CaretVisible)
10884
10885         * XplatUIX11.cs:
10886           - Added implementation for caret functions
10887           - Moved hover variables into a struct, to make it a bit easier
10888             on the eyes and to debug
10889           - Removed XKeyboardState (moved to XplatUIX11.cs)
10890           - Moved Keyboard properties into the properties region
10891
10892         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10893           call to get a graphics context for our control
10894
10895         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10896
10897         * TreeView.cs: Fixed bug. No matter what color was set it would always
10898           return SystemColors.Window
10899
10900         * XplatUIWin32.cs: Implemented caret overrides
10901
10902 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10903
10904         * ListBox.cs: fire events, implement missing methods and properties,
10905         sorting.
10906
10907 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10908
10909         * MonthCalendar.cs: invalidation bug fixing
10910         * ThemeWin32Classic.cs: paint fixing
10911
10912 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10913
10914         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10915         prepare the CGContextRef there now.
10916
10917 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10918
10919         * MonthCalendar.cs:
10920           - optimisationL only invalidate areas that have changed
10921         * ThemeWin32Classic.cs:
10922           - only paint parts that intersect with clip_area
10923
10924 2004-12-09  Peter Bartok  <pbartok@novell.com>
10925
10926         * Application.cs: Undid changes from r37004 which cause problems
10927         on X11
10928
10929 2004-12-09  Ravindra  <rkumar@novell.com>
10930
10931         * ToolBar.cs: Added support for displaying ContextMenu
10932         attached to a button on ToolBar.
10933         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10934         property.
10935
10936 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10937
10938         * Label.cs: autosize works in text change and removes unnecessary
10939         invalidate
10940
10941 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10942
10943         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10944         remove warnings
10945
10946 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10947
10948         * XplatUIOSX.cs: Added mouse move/click/grab support
10949         Remove some debugging WriteLines not needed anymore.
10950         Add window resizing/positioning.
10951         Fix visibility on reparenting.
10952
10953 2004-12-08  Peter Bartok  <pbartok@novell.com>
10954
10955         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10956
10957 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10958
10959         * XplatUIOSX.cs: Initial checkin
10960         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10961
10962 2004-12-03  Ravindra <rkumar@novell.com>
10963
10964         * ListView.cs: Added some keybindings and fixed scrolling.
10965         ScrollBars listen to ValueChanged event instead of Scroll
10966         Event. This would let us take care of all changes being
10967         done in the scrollbars' values programmatically or manually.
10968         * ListView.cs (CanMultiselect): Added a check for shift key.
10969         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10970         * ListViewItem.cs (Clone): Fixed. We need to make a copy
10971         of ListViewSubItemCollection as well.
10972
10973 2004-12-06  Peter Bartok <pbartok@novell.com>
10974
10975         * Control.cs (Parent): Added check and exception to prevent
10976         circular parenting
10977
10978 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
10979
10980         * ListBox.cs: implemented clipping, selection single and multiple,
10981         bug fixing
10982
10983 2004-12-03  Ravindra <rkumar@novell.com>
10984
10985         * ListView.cs (ListView_KeyDown):
10986         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10987         when CTRL key is pressed.
10988         * ListViewItem.cs (Selected): Fixed setting the property.
10989
10990 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10991
10992         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10993
10994         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10995         MinimizeBox, ShowInTaskbar, TopMost properties.
10996
10997         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10998         will be implemented).
10999
11000 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
11001
11002         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
11003
11004         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
11005         tests.
11006         
11007         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
11008         
11009         * TreeView.cs: BackColor is Colors.Window.
11010
11011 2004-12-01  Jackson Harper  <jackson@ximian.com>
11012
11013         * TreeView.cs: When resizing the tree if the user is making it
11014         smaller we don't get expose events, so we need to handle adding
11015         the horizontal scrollbar in the size changed handler as well as
11016         the expose handler.
11017
11018 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
11019
11020         * DrawItemState.cs: fixes wrong enum values
11021
11022 2004-12-01  Jackson Harper  <jackson@ximian.com>
11023
11024         * TreeView.cs: Resize the hbar as well as the vbar on resize.
11025
11026 2004-12-01  Jackson Harper  <jackson@ximian.com>
11027
11028         * NodeLabelEditEventArgs.cs:
11029         * NodeLabelEditEventHandler.cs:
11030         * OpenTreeNodeEnumerator.cs:
11031         * TreeNode.cs:
11032         * TreeNodeCollection.cs:
11033         * TreeView.cs:
11034         * TreeViewAction.cs:
11035         * TreeViewCancelEventArgs.cs:
11036         * TreeViewCancelEventHandler.cs:
11037         * TreeViewEventArgs.cs:
11038         * TreeViewEventHandler.cs: Initial implementation.
11039
11040 2004-12-01  Ravindra <rkumar@novell.com>
11041
11042         * ListView.cs (CalculateListView): Fixed scrolling related
11043         calculations. Also, removed some debug statements from other
11044         places.
11045         * ListViewItem.cs: Changed access to 'selected' instance variable
11046         from private to internal.
11047         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
11048
11049 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
11050
11051         * ThemeWin32Classic.cs: remove cache of brush and pens for
11052         specific controls and use the global system, fixes scrollbutton
11053         bugs (for small sizes, disabled, etc)
11054         
11055         * ScrollBar.cs: does not show the thumb for very small controls
11056         (as MS) and allow smaller buttons that the regular size
11057
11058 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
11059
11060         * UpDownBase.cs: Add abstract methods for the interface.
11061         Add new virtual methods (need to be hooked up to TextEntry when it
11062         exists).
11063         Add override methods for most features.
11064         Computes the size, forces the height of the text entry.
11065
11066         * NumericUpDown.cs: Put here the current testing code.
11067
11068         * Set eol-style property on all files that do not have mixed line
11069         endings, to minimize the future problems.  There are still a few
11070         files with mixed endings, and someone should choose whether they
11071         want to move it or not.
11072
11073 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
11074
11075         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
11076         System.Colors
11077         
11078 2004-11-30  Ravindra <rkumar@novell.com>
11079
11080         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
11081         drawing and replaced use of SystemColors by theme colors.
11082         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
11083         * ListView.cs (ListViewItemCollection.Add): Throw exception when
11084         same ListViewItem is being added more than once.
11085
11086 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
11087
11088         * MonthCalendar.cs:
11089           - ControlStyles love to make the control not flicker
11090           
11091 2004-11-30  Peter Bartok  <pbartok@novell.com>
11092
11093         * CharacterCasing.cs: Added
11094
11095 2004-11-29  Peter Bartok  <pbartok@novell.com>
11096
11097         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11098           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
11099           I am removing these files as they conflict with already completed
11100           work. While it is fantastic to get contributions to MWF, I
11101           respectfully ask that everyone please coordinate their contributions
11102           through mono-winforms-list or #mono-winforms at this time. We're
11103           explicitly avoiding stubbing and don't want controls that don't have
11104           their basic functionality implemented in svn. Please also see
11105           http://www.mono-project.com/contributing/winforms.html
11106
11107
11108 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
11109
11110         * Application.cs (ModalRun): Don't hang after exit.
11111
11112         * Theme.cs: New TreeViewDefaultSize property.
11113
11114         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
11115         with less hardcoded SystemColors constant.
11116         Implemented TreeViewDefaultSize.
11117
11118         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11119         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
11120
11121
11122 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
11123
11124         * MonthCalendar.cs:
11125           - Fix NextMonthDate and PrevMonthDate click moving calendar
11126
11127 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11128
11129         * MonthCalendar.cs:
11130           - Fix usage of ScrollChange Property when scrolling months
11131
11132 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
11133
11134         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
11135          - Fixes menu destroying
11136          - Support adding and removing items on already created menus
11137
11138 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11139
11140         * MonthCalendar.cs:
11141           - Re-worked all bolded dates handling to match win32
11142         * ThemeWin32Classic.cs:
11143           - Fixed rendering with bolded dates
11144
11145 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11146
11147         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11148         - Horizontal scroolbar
11149         - Multicolumn
11150         - Fixes
11151
11152
11153 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11154
11155         * MonthCalendar.cs:
11156           - Fix Usage of MaxSelectionCount from SelectionRange
11157           - Fixed Shift + Cursor Selection
11158           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11159           - Fixed normal cursor selection to be compat with win32
11160           - Fixed Shift + Mouse Click selection
11161
11162 2004-11-24  Peter Bartok <pbartok@novell.com>
11163
11164         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
11165         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
11166         * XplatUIX11.cs:
11167           - CreatedKeyBoardMsg now updates keystate with Alt key
11168           - Added workaround for timer crash to CheckTimers, Jackson will
11169             develop a proper fix and check in later
11170           - Implemented DispatchMessage
11171           - Removed calling the native window proc from GetMessage (call
11172             now moved to DispatchMessage)
11173
11174         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
11175           the keydata (Fixes bug #69831)
11176
11177         * XplatUIWin32.cs:
11178           - (DispatchMessage): Switched to return IntPtr
11179           - Added DllImport for SetFocus
11180
11181 2004-11-24  Ravindra <rkumar@novell.com>
11182
11183         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
11184         background drawing.
11185         * ListViewItem.cs: Fixed various properties, calculations
11186         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
11187         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
11188         and some internal properties. Fixed MouseDown handler and Paint
11189         method.
11190
11191 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11192
11193         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
11194
11195 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11196
11197         * ContainerControl.cs: correct accidental check in of local changes
11198
11199 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11200
11201         * ThemeWin32Classic.cs:
11202                 - Fixed Drawing Last month in grid (sometimes not showing)
11203         * MonthCalendar.cs:
11204                 - Fixed title width calculation bug (makeing title small)
11205
11206 2004-11-23  Peter Bartok <pbartok@novell.com>
11207
11208         * XplatUIX11.cs:
11209           - Added generation of WM_MOUSEHOVER event
11210           - Added missing assignment of async_method atom
11211           - Fixed WM_ERASEBKGND; now only redraws the exposed area
11212
11213 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11214
11215         * ThemeWin32Classic.cs:
11216                 - Fixed Drawing of today circle when showtodaycircle not set
11217                 - fixed drawing of first and last month in the grid (gay dates)
11218         * MonthCalendar.cs:
11219                 - Fixed Drawing of today circle
11220                 - Fixed drawing of grady dates
11221                 - Fixed HitTest for today link when ShowToday set to false
11222                 - Fixed DefaultSize to obey ShowToday
11223
11224 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11225
11226         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
11227         * System.Windows.Forms/Theme.cs
11228         * MonthCalendar.cs: added for MonthCalendar
11229         * SelectionRange.cs: added for MonthCalendar
11230         * Day.cs: added for MonthCalendar: added for MonthCalendar
11231         * DateRangeEventArgs.cs: added for MonthCalendar
11232         * DateRangeEventHandler.cs: added for MonthCalendar
11233
11234 2004-11-22  Ravindra <rkumar@novell.com>
11235
11236         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
11237         property.
11238
11239 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
11240
11241         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
11242         event handler.
11243         
11244         * NumericUpDown.cs: Added new implementation.
11245         * UpDownBase.cs: Added new implementation.
11246
11247         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11248         implementations.
11249         
11250         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11251         implementations.
11252
11253         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11254         methods.
11255
11256 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11257
11258         * Timer.cs  (Dispose): Should call the base dispose when
11259         overriding.
11260
11261 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11262
11263         * ScrollBar.cs: updates thumb position when max, min or increment
11264         is changed
11265
11266 2004-11-21  Ravindra <rkumar@novell.com>
11267
11268         * ListView.cs: Implemented item selection, activation and
11269         column header style. Fixed properties to do a redraw, if
11270         required. Added support for MouseHover, DoubleClick, KeyDown
11271         and KeyUp event handling and some minor fixes.
11272         * ListViewItem.cs: Fixed constructor.
11273         * ThemeWin32Classic.cs: Improved drawing for ListView.
11274
11275 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11276
11277         * ThemeWin32Classic.cs: initial listbox drawing code
11278         * DrawMode.cs: new enumerator
11279         * ListControl.cs: stubbed class
11280         * ListBox.cs: initial implementation
11281         * Theme.cs: new methods definitions
11282         * SelectionMode.cs: new enumerator
11283
11284 2004-11-17  Peter Bartok  <pbartok@novell.com>
11285
11286         * XplatUIWin32.cs: Added double-click events to the class style
11287         * Control.cs (WndProc):
11288           - Added handling of click-count to MouseDown/ MouseUp events.
11289           - Added handling of middle and right mouse buttons
11290           - Removed old debug code
11291
11292 2004-11-17  Jackson Harper  <jackson@ximian.com>
11293
11294         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11295
11296 2004-11-17  Ravindra <rkumar@novell.com>
11297
11298         * ListView.cs: Added event handling for MouseMove/Up/Down.
11299         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11300         * ThemeWin32Classic.cs: We need to clear the graphics context and
11301         draw column header in a proper state.
11302
11303
11304 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11305
11306         *  Menu.cs: fixes signature
11307
11308 2004-11-16  Peter Bartok  <pbartok@novell.com>
11309
11310         * XplatUIX11.cs (GetMessage): Implemented generation of
11311           double click mouse messages
11312
11313 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11314
11315         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11316         not by menu
11317
11318 2004-11-11  Peter Bartok  <pbartok@novell.com>
11319
11320         * HandleData.cs: Added Visible property
11321         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11322           HandleData
11323         * XplatUIX11.cs: Removed old debug leftovers
11324         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11325         * Control.cs (WndProc): Removed old debug leftovers,
11326           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11327           needed WM_SIZE handling
11328
11329 2004-11-11  Jackson Harper  <jackson@ximian.com>
11330
11331         * OwnerDrawPropertyBag.cs:
11332         * TreeViewImageIndexConverter.cs: Initial implementation
11333
11334 2004-11-10  Jackson Harper  <jackson@ximian.com>
11335
11336         * ThemeWin32Classic.cs:
11337         * TabControl.cs: instead of moving tabs by the slider pos just
11338         start drawing at the tab that is offset by the slider. This way
11339         scrolling always moves by exactly one tab.
11340
11341 2004-11-10  Jackson Harper  <jackson@ximian.com>
11342
11343         * TabControl.cs: You can only scroll left when the slider has
11344         already ben moved right.
11345         
11346 2004-11-10  Jackson Harper  <jackson@ximian.com>
11347
11348         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11349         the clip area.
11350         
11351 2004-11-10  Jackson Harper  <jackson@ximian.com>
11352
11353         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11354         clip area.
11355         
11356 2004-11-09  Jackson Harper  <jackson@ximian.com>
11357
11358         * TabControl.cs (CalcXPos): New helper method so we can determine
11359         the proper place to start drawing vertical tabs.
11360         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11361         
11362 2004-11-09  Jackson Harper  <jackson@ximian.com>
11363
11364         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11365         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11366         and Bottom, left and right are illegal values for this and
11367         multiline is enabled when the alignment is set to left or right.
11368         (DrawTab): Each alignment block should draw the text itself now
11369         because Left requires special love. Also add rendering for Left
11370         aligned tabs.
11371         
11372 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11373
11374         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11375         does not destroy the windows, removes debugging messages
11376
11377 2004-11-09  jba  <jba-mono@optusnet.com.au>
11378
11379         * ThemeWin32Classic.cs
11380         (DrawButtonBase): Fix verticle text rect clipping in windows
11381         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11382         rendering and incorrect text rect clipping
11383         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11384         rendering and incorrect text rect clipping
11385         
11386 2004-11-08  Jackson Harper  <jackson@ximian.com>
11387
11388         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11389         bottom when they are bottom aligned so the bottoms of the tabs get
11390         displayed.
11391         * TabControl.cs (DropRow): Move rows up instead of down when the
11392         tab control is bottom aligned.
11393
11394 2004-11-08 13:59  pbartok
11395
11396         * XplatUIX11.cs:
11397           - Added handling for various window styles
11398           - Added handling for popup windows
11399           - Added SetTopmost handling
11400
11401 2004-11-08 13:55  pbartok
11402
11403         * XplatUIWin32.cs:
11404           - Added argument to SetTopmost method
11405           - Fixed broken ClientToScreen function
11406
11407 2004-11-08 13:53  pbartok
11408
11409         * XplatUIStructs.cs:
11410           - Added missing WS_EX styles
11411
11412 2004-11-08 13:53  pbartok
11413
11414         * XplatUI.cs, XplatUIDriver.cs:
11415           - Added argument to SetTopmost
11416
11417 2004-11-08 13:52  pbartok
11418
11419         * X11Structs.cs:
11420           - Added XSetWindowAttributes structure
11421           - Improved XWindowAttributes structure
11422           - Added SetWindowValuemask enum
11423           - Added window creation arguments enum
11424           - Added gravity enum
11425           - Added Motif hints structure
11426           - Added various Motif flags and enums
11427           - Added PropertyMode enum for property functions
11428
11429 2004-11-08 13:50  pbartok
11430
11431         * Form.cs:
11432           - Fixed arguments for updated SetTopmost method
11433
11434 2004-11-08 13:49  pbartok
11435
11436         * ToolTip.cs:
11437           - Fixed arguments for updated SetTopmost function
11438           - Fixed usage of PointToClient
11439
11440 2004-11-08 13:44  pbartok
11441
11442         * MenuAPI.cs:
11443           - Added Clipping of children and siblings
11444
11445 2004-11-08 13:41  pbartok
11446
11447         * MainMenu.cs:
11448           - Removed SetMenuBarWindow call. We do this in Form.cs
11449
11450 2004-11-08 13:40  jackson
11451
11452         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11453           scrolling jimmi in the correct location with bottom aligned tabs
11454
11455 2004-11-08 13:36  pbartok
11456
11457         * ContainerControl.cs:
11458           - Implemented BindingContext
11459           - Implemented ParentForm
11460
11461 2004-11-08 12:46  jackson
11462
11463         * TabControl.cs: Put bottom rendered tabs in the right location
11464
11465 2004-11-08 07:15  jordi
11466
11467         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11468           removes dead code
11469
11470 2004-11-05 17:30  jackson
11471
11472         * TabControl.cs: When selected tabs are expanded make sure they
11473           don't go beyond the edges of the tab control
11474
11475 2004-11-05 14:57  jackson
11476
11477         * TabControl.cs: Reset show_slider so if the control is resized to
11478           a size where it is no longer needed it's not displayed anymore
11479
11480 2004-11-05 13:16  jackson
11481
11482         * TabControl.cs: Make tab pages non visible when added to the
11483           control
11484
11485 2004-11-05 12:42  jackson
11486
11487         * TabControl.cs: Implement SizeMode.FillToRight
11488
11489 2004-11-05 12:16  jackson
11490
11491         * Control.cs: Do not call CreateHandle if the handle is already
11492           created
11493
11494 2004-11-05 11:46  jackson
11495
11496         * TabControl.cs: Remove superflous call to CalcTabRows
11497
11498 2004-11-05 09:07  jackson
11499
11500         * XplatUIX11.cs: Update for Mono.Posix changes
11501
11502 2004-11-05 07:00  ravindra
11503
11504         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11505           scrolling.
11506
11507 2004-11-04 22:47  jba
11508
11509         * ThemeWin32Classic.cs:
11510           - Fix Button rendering for FlatStyle = Flat or Popup
11511           - Fix RadioButton and CheckBox rendering when Appearance = Button
11512             (normal and flatstyle).
11513           - Correct outer rectangle color when drawing focus rectangle
11514           - Adjust button bounds to be 1 px smaller when focused
11515           - Make button not draw sunken 3d border when pushed (windows compat)
11516           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11517           - Offset the text in RadioButton and Checkbox when being rendered as
11518           a button.
11519           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11520           radiobuttons
11521           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11522           - Fixed disabled text rendering for normally rendered radiobuttons
11523
11524 2004-11-04 10:26  jackson
11525
11526         * TabControl.cs: Recalculate tab rows when resizing
11527
11528 2004-11-04 07:47  jordi
11529
11530         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11531           collection completion, drawing issues, missing features
11532
11533 2004-11-04 05:03  ravindra
11534
11535         * ScrollBar.cs:
11536                 - We need to recalculate the Thumb area when
11537                 LargeChange/maximum/minimum values are changed.
11538           - We set the 'pos' in UpdatePos() method to minimum, if it's less
11539                 than minimum. This is required to handle the case if large_change is
11540                 more than max, and use LargeChange property instead of large_change
11541                 variable.
11542           - We return max+1 when large_change is more than max, like MS does.
11543
11544 2004-11-04 04:29  ravindra
11545
11546         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11547                 - Changed default value signatures (prefixed all with ListView).
11548                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11549                 ListView.
11550           - Fixed calculations for ListViewItem and implemented Clone()
11551           method.
11552
11553 2004-11-04 04:26  ravindra
11554
11555         * Theme.cs, ThemeWin32Classic.cs:
11556                 - Changed default ListView values signatures (prefixed all with
11557                 ListView).
11558           - Fixed default size values for VScrollBar and HScrollBar.
11559                 - Fixed DrawListViewItem method.
11560
11561 2004-11-04 04:05  ravindra
11562
11563         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11564
11565 2004-11-04 04:04  ravindra
11566
11567         * ImageList.cs: Implemented the missing overload for Draw method.
11568
11569 2004-11-03 19:29  jackson
11570
11571         * TabControl.cs: Handle dropping rows on selection properly
11572
11573 2004-11-03 11:59  jackson
11574
11575         * TabControl.cs: remove debug code
11576
11577 2004-11-03 11:52  jackson
11578
11579         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11580           the scrolly widgerywoo
11581
11582 2004-11-02 13:52  jackson
11583
11584         * TabControl.cs: Resize the tab pages and tabs when the tab control
11585           is resized
11586
11587 2004-11-02 13:40  jackson
11588
11589         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11590           selected tab to the bottom
11591
11592 2004-11-02 13:39  jackson
11593
11594         * TabPage.cs: Store the tab pages row
11595
11596 2004-11-02 12:33  jordi
11597
11598         * MenuItem.cs: fixes handle creation
11599
11600 2004-11-02 11:42  jackson
11601
11602         * TabControl.cs: signature fix
11603
11604 2004-11-02 08:56  jackson
11605
11606         * TabControl.cs: Calculate whether the tab is on an edge properly.
11607           Remove top secret debugging code
11608
11609 2004-11-01 19:57  jackson
11610
11611         * TabControl.cs: Add click handling, and proper sizing
11612
11613 2004-11-01 19:47  jackson
11614
11615         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11616           tab controls
11617
11618 2004-11-01 19:39  jackson
11619
11620         * TabPage.cs: add internal property to store the bounds of a tab
11621           page
11622
11623 2004-10-30 04:23  ravindra
11624
11625         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11626           values.
11627
11628 2004-10-30 04:21  ravindra
11629
11630         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11631           fixed calculations.
11632
11633 2004-10-30 03:06  pbartok
11634
11635         * XplatUIX11.cs:
11636           - Removed extension of DllImported libs
11637
11638 2004-10-29 09:55  jordi
11639
11640         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11641           navigation, itemcollection completion, menu fixes
11642
11643 2004-10-27 22:58  pbartok
11644
11645         * XplatUIX11.cs:
11646           - Now throws a nice error message when no X display could be opened
11647
11648 2004-10-26 13:51  jordi
11649
11650         * ListView.cs: removes warning
11651
11652 2004-10-26 03:55  ravindra
11653
11654         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11655           ThemeWin32Classic.cs: Some formatting for my last checkins.
11656
11657 2004-10-26 03:36  ravindra
11658
11659         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11660           control and default values.
11661
11662 2004-10-26 03:35  ravindra
11663
11664         * Theme.cs: Added some default values for ListView control.
11665
11666 2004-10-26 03:33  ravindra
11667
11668         * ToolBar.cs: ToolBar should use the user specified button size, if
11669           there is any. Added a size_specified flag for the same.
11670
11671 2004-10-26 03:33  ravindra
11672
11673         * ColumnHeader.cs: Added some internal members and calculations for
11674           ColumnHeader.
11675
11676 2004-10-26 03:32  ravindra
11677
11678         * ListViewItem.cs: Calculations for ListViewItem.
11679
11680 2004-10-26 03:31  ravindra
11681
11682         * ListView.cs: Added some internal members and calculations for
11683           ListView.
11684
11685 2004-10-22 13:31  jordi
11686
11687         * MenuAPI.cs: speedup menus drawing
11688
11689 2004-10-22 13:16  jackson
11690
11691         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11692           expose event
11693
11694 2004-10-22 11:49  jackson
11695
11696         * Control.cs: oops
11697
11698 2004-10-22 11:41  jackson
11699
11700         * Control.cs: Check to see if the window should have its background
11701           repainted by X when drawing.
11702
11703 2004-10-22 11:31  jackson
11704
11705         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11706           clear is true, this way we do not get flicker from X repainting the
11707           background
11708
11709 2004-10-22 11:28  jackson
11710
11711         * XEventQueue.cs: Queue properly
11712
11713 2004-10-21 09:38  jackson
11714
11715         * XEventQueue.cs: Fix access modifier
11716
11717 2004-10-21 09:36  jackson
11718
11719         * XEventQueue.cs: Don't loose messages
11720
11721 2004-10-21 09:22  jackson
11722
11723         * XEventQueue.cs: Don't loose messages
11724
11725 2004-10-20 04:15  jordi
11726
11727         * BootMode.cs: enum need it by SystemInfo
11728
11729 2004-10-19 21:58  pbartok
11730
11731         * XplatUIWin32.cs:
11732           - Small sanity check
11733
11734 2004-10-19 21:56  pbartok
11735
11736         * Form.cs:
11737           - Added private FormParentWindow class which acts as the container
11738             for our form and as the non-client area where menus are drawn
11739           - Added/Moved required tie-ins to Jordi's menus
11740           - Fixed/Implemented the FormStartPosition functionality
11741
11742 2004-10-19 21:52  pbartok
11743
11744         * Control.cs:
11745           - Removed unneeded locals
11746           - Added code to all size and location properties to understand and
11747             deal with the parent container of Form
11748
11749 2004-10-19 21:33  pbartok
11750
11751         * Application.cs:
11752           - Fixed to deal with new Form subclasses for menus
11753
11754 2004-10-19 17:48  jackson
11755
11756         * XEventQueue.cs: commit correct version of file
11757
11758 2004-10-19 16:50  jackson
11759
11760         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11761
11762 2004-10-19 16:15  jordi
11763
11764         * MenuAPI.cs: MenuBarCalcSize returns the height
11765
11766 2004-10-19 08:31  pbartok
11767
11768         * Control.cs:
11769           - Added missing call to PreProcessMessage before calling OnXXXKey
11770           methods
11771
11772 2004-10-19 00:04  ravindra
11773
11774         * ToolTip.cs: Fixed constructor.
11775
11776 2004-10-18 09:31  jordi
11777
11778         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11779
11780 2004-10-18 09:26  jordi
11781
11782         * MenuItem.cs: fixes MenuItem class signature
11783
11784 2004-10-18 08:56  jordi
11785
11786         * MenuAPI.cs: prevents windows from showing in the taskbar
11787
11788 2004-10-18 00:28  ravindra
11789
11790         * ToolTip.cs: Suppressed a warning message.
11791
11792 2004-10-18 00:27  ravindra
11793
11794         * Control.cs: Default value of visible property must be true.
11795
11796 2004-10-17 23:19  pbartok
11797
11798         * ToolTip.cs:
11799           - Complete implementation
11800
11801 2004-10-17 23:19  pbartok
11802
11803         * XplatUIX11.cs:
11804           - Added EnableWindow method
11805           - Added SetModal stub
11806           - Added generation of WM_ACTIVATE message (still needs testing)
11807           - Added SetTopMost stub
11808           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11809
11810 2004-10-17 23:17  pbartok
11811
11812         * XplatUIWin32.cs:
11813           - Removed VirtualKeys to XplatUIStructs
11814           - Implemented SetTopMost method
11815           - Implemented EnableWindow method
11816           - Bugfix in ScreenToClient()
11817           - Bugfixes in ClientToScreen()
11818
11819 2004-10-17 22:51  pbartok
11820
11821         * XplatUIStructs.cs:
11822           - Added WS_EX styles to WindowStyles enumeration
11823
11824 2004-10-17 22:50  pbartok
11825
11826         * XplatUI.cs, XplatUIDriver.cs:
11827           - Added method for enabling/disabling windows
11828           - Added method for setting window modality
11829           - Added method for setting topmost window
11830
11831 2004-10-17 22:49  pbartok
11832
11833         * ThemeWin32Classic.cs:
11834           - Added ToolTip drawing code
11835
11836 2004-10-17 22:49  pbartok
11837
11838         * Theme.cs:
11839           - Added ToolTip abstracts
11840
11841 2004-10-17 22:47  pbartok
11842
11843         * Form.cs:
11844           - Fixed Form.ControlCollection to handle owner relations
11845           - Added Owner/OwnedForms handling
11846           - Implemented Z-Ordering for owned forms
11847           - Removed unneeded private overload of ShowDialog
11848           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11849             so I hope)
11850           - Fixed Close(), had wrong default
11851           - Added firing of OnLoad event
11852           - Added some commented out debug code for Ownership handling
11853
11854 2004-10-17 22:16  pbartok
11855
11856         * Control.cs:
11857           - Fixed/implemented flat list of controls
11858
11859 2004-10-17 22:14  pbartok
11860
11861         * Application.cs:
11862           - Added code to simulate modal dialogs on Win32
11863
11864 2004-10-17 16:11  jordi
11865
11866         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11867           mouse event
11868
11869 2004-10-17 13:39  jordi
11870
11871         * MenuAPI.cs: menu drawing fixes
11872
11873 2004-10-15 09:10  ravindra
11874
11875         * StructFormat.cs: General Enum.
11876
11877 2004-10-15 09:09  ravindra
11878
11879         * SizeGripStyle.cs: Enum for Form.
11880
11881 2004-10-15 09:08  ravindra
11882
11883         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11884           in Theme for ListView.
11885
11886 2004-10-15 09:06  ravindra
11887
11888         * ColumnHeader.cs: Flushing some formatting changes.
11889
11890 2004-10-15 09:05  ravindra
11891
11892         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11893           style.
11894
11895 2004-10-15 09:03  ravindra
11896
11897         * ListView.cs: Implemented Paint method and fixed coding style.
11898
11899 2004-10-15 07:34  jordi
11900
11901         * MenuAPI.cs: fix for X11
11902
11903 2004-10-15 07:32  ravindra
11904
11905         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11906                 - Renamed Paint() method to Draw() for clarity. Also, moved
11907                 DrawImage() to OnPaint().
11908
11909 2004-10-15 07:25  ravindra
11910
11911         * CheckBox.cs, RadioButton.cs:
11912                 - Removed Redraw (), we get it from ButtonBase.
11913                 - Implemented Paint (), to do class specific painting.
11914
11915 2004-10-15 07:16  ravindra
11916
11917         * ButtonBase.cs:
11918                 - Redraw () is not virtual now.
11919                 - Added an internal virtual method Paint (), so that
11920                 derived classes can do their painting on their own.
11921                 - Modified OnPaint () to call Paint ().
11922
11923 2004-10-15 06:43  jordi
11924
11925         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11926           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11927
11928 2004-10-15 00:30  ravindra
11929
11930         * MessageBox.cs:
11931                 - MessageBox on windows does not have min/max buttons.
11932                 This change in CreateParams fixes this on Windows. We
11933                 still need to implement this windowstyle behavior in
11934                 our X11 driver.
11935
11936 2004-10-14 05:14  ravindra
11937
11938         * ToolBar.cs:
11939                 - Changed Redraw () to do a Refresh () always.
11940                 - Fixed the MouseMove event handling when mouse is pressed,
11941                 ie drag event handling.
11942                 - Replaced the usage of ToolBarButton.Pressed property to
11943                 ToolBarButton.pressed internal variable.
11944
11945 2004-10-14 05:10  ravindra
11946
11947         * ToolBarButton.cs:
11948                 - Added an internal member 'inside' to handle mouse move
11949                 with mouse pressed ie mouse drag event.
11950                 - Changed 'Pressed' property to return true only when
11951                 'inside' and 'pressed' are both true.
11952                 - Some coding style love.
11953
11954 2004-10-14 00:17  ravindra
11955
11956         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11957           public method.
11958
11959 2004-10-14 00:15  ravindra
11960
11961         * ButtonBase.cs: Redraw () related improvements.
11962
11963 2004-10-14 00:14  ravindra
11964
11965         * MessageBox.cs: Moved InitFormSize () out of Paint method and
11966           removed unnecessary calls to Button.Show () method.
11967
11968 2004-10-13 17:50  pbartok
11969
11970         * XplatUIX11.cs:
11971           - Formatting fix
11972           - Removed destroying of window until we solve the problem of X
11973             destroying the window before us on shutdown
11974
11975 2004-10-13 16:32  pbartok
11976
11977         * ButtonBase.cs:
11978           - Now Redraws on MouseUp for FlatStyle Flat and Popup
11979
11980 2004-10-13 14:18  pbartok
11981
11982         * XplatUIX11.cs:
11983           - Added code to destroy the X window
11984
11985 2004-10-13 14:18  pbartok
11986
11987         * XplatUIWin32.cs:
11988           - Added code to destroy a window
11989
11990 2004-10-13 14:12  pbartok
11991
11992         * ButtonBase.cs:
11993           - Added the Redraw on Resize that got dropped in the last rev
11994
11995 2004-10-13 09:06  pbartok
11996
11997         * ThemeWin32Classic.cs:
11998           - Path from John BouAntoun:
11999             * Fix check rendering (centre correctly for normal style, offset
12000               correctly for FlatStyle).
12001             * Fix border color usage (use backcolor) for FlatStyle.Popup
12002             * Use checkbox.Capture instead of checkbox.is_pressed when
12003               rendering flatstyle states.
12004
12005 2004-10-12 21:48  pbartok
12006
12007         * ThemeWin32Classic.cs:
12008           - Removed all occurences of SystemColors and replaced them with the
12009             matching theme color
12010
12011 2004-10-12 21:41  pbartok
12012
12013         * ThemeWin32Classic.cs:
12014           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
12015             him using the function for flatstyle drawing
12016           - Changed functions to use the new version of CPDrawBorder3D
12017
12018 2004-10-12 21:15  pbartok
12019
12020         * ControlPaint.cs:
12021           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
12022             match MS documentation. They need to return defined colors if the
12023             passed color matches the configured control color. Thanks to John
12024             BouAntoun for pointing this out.
12025
12026 2004-10-12 20:57  pbartok
12027
12028         * Control.cs:
12029           - Fix from John BouAntoun: Raise ForeColorChanged event when text
12030             color is changed
12031
12032 2004-10-12 20:46  pbartok
12033
12034         * CheckBox.cs:
12035           - Fix from John BouAntoun: Now properly sets the Appearance property
12036
12037 2004-10-12 20:45  pbartok
12038
12039         * ThemeWin32Classic.cs:
12040           - Fixes from John BouAntoun: now handles forecolors and backcolors
12041             for flatstyle rendered controls much better; It also fixes normal
12042             checkbox rendering when pushed or disabled.
12043
12044 2004-10-08 02:50  jordi
12045
12046         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
12047           work
12048
12049 2004-10-07 08:56  jordi
12050
12051         * ThemeWin32Classic.cs: Removes deletion of cached brushes
12052
12053 2004-10-06 03:59  jordi
12054
12055         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
12056           XplatUIWin32.cs: removes warnings from compilation
12057
12058 2004-10-05 12:23  jackson
12059
12060         * RadioButton.cs: Fix ctor
12061
12062 2004-10-05 11:10  pbartok
12063
12064         * MessageBox.cs:
12065           - Partial implementation by Benjamin Dasnois
12066
12067 2004-10-05 10:15  jackson
12068
12069         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
12070           by John BouAntoun
12071
12072 2004-10-05 03:07  ravindra
12073
12074         * ToolBar.cs:
12075                 - Removed a private method, Draw ().
12076                 - Fixed the ButtonDropDown event handling.
12077                 - Fixed MouseMove event handling.
12078
12079 2004-10-05 03:04  ravindra
12080
12081         * ThemeWin32Classic.cs:
12082                 - Added DrawListView method and ListViewDefaultSize property.
12083                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
12084                 - Changed DOS style CRLF to Unix format (dos2unix).
12085
12086 2004-10-05 03:03  ravindra
12087
12088         * Theme.cs:
12089                 - Added DrawListView method and ListViewDefaultSize property.
12090
12091 2004-10-05 02:42  ravindra
12092
12093         * ToolBarButton.cs: Added an internal member dd_pressed to handle
12094           clicks on DropDown arrow.
12095
12096 2004-10-04 22:56  jackson
12097
12098         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
12099           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
12100           Control handle the buffers, derived classes should not have to
12101           CreateBuffers themselves.
12102
12103 2004-10-04 21:20  jackson
12104
12105         * StatusBar.cs: The control handles resizing the buffers now.
12106
12107 2004-10-04 21:18  jackson
12108
12109         * Control.cs: When resizing the buffers should be invalidated. This
12110           should be handled in Control not in derived classes.
12111
12112 2004-10-04 14:45  jackson
12113
12114         * TabPage.cs: oops
12115
12116 2004-10-04 02:14  pbartok
12117
12118         * LeftRightAlignment.cs:
12119           - Initial check-in
12120
12121 2004-10-04 01:09  jordi
12122
12123         * ThemeWin32Classic.cs: fixes right button position causing right
12124           button not showing on horizontal scrollbars
12125
12126 2004-10-02 13:12  pbartok
12127
12128         * XplatUIX11.cs:
12129           - Simplified the Invalidate method by using an X call instead of
12130             generating the expose ourselves
12131           - Added an expose when the window background is changed
12132           - Implemented ClientToScreen method
12133
12134 2004-10-02 13:08  pbartok
12135
12136         * XplatUIWin32.cs:
12137           - Added Win32EnableWindow method (test for implementing modal
12138           dialogs)
12139           - Added ClientToScreen method and imports
12140
12141 2004-10-02 13:07  pbartok
12142
12143         * XplatUI.cs, XplatUIDriver.cs:
12144           - Added ClientToScreen coordinate translation method
12145
12146 2004-10-02 13:06  pbartok
12147
12148         * KeyPressEventArgs.cs:
12149           - Fixed access level for constructor
12150
12151 2004-10-02 13:06  pbartok
12152
12153         * NativeWindow.cs:
12154           - Changed access level for the window_collection hash table
12155
12156 2004-10-02 13:05  pbartok
12157
12158         * Form.cs:
12159           - Added KeyPreview property
12160           - Added Menu property (still incomplete, pending Jordi's menu work)
12161           - Implemented ProcessCmdKey
12162           - Implemented ProcessDialogKey
12163           - Implemented ProcessKeyPreview
12164
12165 2004-10-02 13:02  pbartok
12166
12167         * Control.cs:
12168           - Added private method to get the Control object from the window
12169           handle
12170           - Implemented ContextMenu property
12171           - Implemented PointToScreen
12172           - Implemented PreProcessMessage
12173           - Implemented IsInputChar
12174           - Implemented IsInputKey
12175           - Implemented ProcessCmdKey
12176           - Completed ProcessKeyEventArgs
12177           - Fixed message loop to call the proper chain of functions on key
12178           events
12179           - Implemented ProcessDialogChar
12180           - Implemented ProcessDialogKey
12181           - Implemented ProcessKeyMessage
12182           - Implemented ProcessKeyPreview
12183           - Added RaiseDragEvent stub (MS internal method)
12184           - Added RaiseKeyEvent stub (MS internal method)
12185           - Added RaiseMouseEvent stub (MS Internal method)
12186           - Added RaisePaintEvent stub (MS Internal method)
12187           - Added ResetMouseEventArgs stub (MS Internal method)
12188           - Implemented RtlTranslateAlignment
12189           - Implemented RtlTranslateContent
12190           - Implemented RtlTranslateHorizontal
12191           - Implemented RtlTranslateLeftRight
12192           - Added generation of KeyPress event
12193
12194 2004-10-02 05:57  ravindra
12195
12196         * ListViewItem.cs: Added attributes.
12197
12198 2004-10-02 05:32  ravindra
12199
12200         * ListView.cs: Added attributes.
12201
12202 2004-10-01 11:53  jackson
12203
12204         * Form.cs: Implement the Close method so work on MessageBox can
12205           continue.
12206
12207 2004-09-30 14:06  pbartok
12208
12209         * XplatUIX11.cs:
12210           - Bug fixes
12211
12212 2004-09-30 11:34  jackson
12213
12214         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
12215
12216 2004-09-30 07:26  ravindra
12217
12218         * ListViewItemConverter.cs: Converter for ListViewItem.
12219
12220 2004-09-30 07:26  ravindra
12221
12222         * SortOrder.cs: Enum for ListView control.
12223
12224 2004-09-30 07:25  ravindra
12225
12226         * ColumnHeader.cs: Supporting class for ListView control.
12227
12228 2004-09-30 07:24  ravindra
12229
12230         * ListView.cs, ListViewItem.cs: Initial implementation.
12231
12232 2004-09-30 07:20  ravindra
12233
12234         * ItemActivation.cs: Enum for ListView Control.
12235
12236 2004-09-29 20:29  pbartok
12237
12238         * XplatUIX11.cs:
12239           - Added lookup of pixel value for background color; tries to get a
12240             color 'close' to the requested color, it avoids having to create a
12241             colormap.  Depending on the display this could mean the used color
12242             is slightly off the desired color. Might have to change it to a more
12243             resource intensive colormap approach, but it will work as a
12244           workaround to avoid red screens.
12245
12246 2004-09-29 14:27  jackson
12247
12248         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12249
12250 2004-09-28 12:44  pbartok
12251
12252         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12253           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12254           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12255           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12256           TrackBar.cs, VScrollBar.cs:
12257           - Streamlined Theme interfaces:
12258             * Each DrawXXX method for a control now is passed the object for
12259               the control to be drawn in order to allow accessing any state the
12260               theme might require
12261
12262             * ControlPaint methods for the theme now have a CP prefix to avoid
12263               name clashes with the Draw methods for controls
12264
12265             * Every control now retrieves it's DefaultSize from the current
12266             theme
12267
12268 2004-09-28 12:17  jackson
12269
12270         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12271           drawing
12272
12273 2004-09-24 14:57  jackson
12274
12275         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12276           Gives us a nice little performance boost.
12277
12278 2004-09-24 12:02  jackson
12279
12280         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12281           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12282           Control and supporting classes. Initial checkin
12283
12284 2004-09-23 13:08  jackson
12285
12286         * Form.cs: Temp build fixage
12287
12288 2004-09-23 01:39  ravindra
12289
12290         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12291           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12292           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12293           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12294           EventHandlers needed by ListView Control.
12295
12296 2004-09-22 14:12  pbartok
12297
12298         * ScrollableControl.cs:
12299           - Implemented DockPadding property
12300           - Implemented AutoScroll property
12301           - Implemented AutoScrollMargin property
12302           - Implemented AutoScrollMinSize property
12303           - Implemented AutoScrollPosition property
12304           - Implemented DisplayRectangle property (still incomplete)
12305           - Implemented CreateParams property
12306           - Implemented HScroll property
12307           - Implemented VScroll property
12308           - Implemented OnVisibleChanged property
12309
12310 2004-09-22 14:09  pbartok
12311
12312         * Form.cs:
12313           - Added Form.ControllCollection class
12314           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12315             RemoveOwnedForm (still incomplete, missing on-top and common
12316             minimize/maximize behaviour)
12317           - Added StartPosition property (still incomplete, does not use when
12318             creating the form)
12319           - Added ShowDialog() methods (still incomplete, missing forcing the
12320             dialog modal)
12321
12322 2004-09-22 14:05  pbartok
12323
12324         * Application.cs:
12325           - Added message loop for modal dialogs
12326
12327 2004-09-22 14:02  pbartok
12328
12329         * GroupBox.cs:
12330           - Fixed wrong types for events
12331
12332 2004-09-22 14:00  pbartok
12333
12334         * Shortcut.cs, FormWindowState.cs:
12335           - Fixed wrong values
12336
12337 2004-09-22 12:01  jackson
12338
12339         * Control.cs: Text is never null
12340
12341 2004-09-20 22:14  pbartok
12342
12343         * XplatUIWin32.cs:
12344           - Fixed accessibility level for Idle handler
12345
12346 2004-09-20 18:54  jackson
12347
12348         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12349           XplatUIX11.cs: New message loop that uses poll so we don't get a
12350           busy loop
12351
12352 2004-09-17 10:43  pbartok
12353
12354         * ScrollBar.cs:
12355           - Fixed behaviour of arrow buttons. Now properly behaves like
12356             Buttons (and like Microsoft's scrollbar arrow buttons)
12357
12358 2004-09-17 10:14  pbartok
12359
12360         * ScrollBar.cs:
12361           - Added missing release of keyboard/mouse capture
12362
12363 2004-09-17 06:18  jordi
12364
12365         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12366           Theme.cs: Very early menu support
12367
12368 2004-09-16 17:45  pbartok
12369
12370         * XplatUIWin32.cs:
12371           - Fixed sending a window to the front
12372           - Added overload for SetWindowPos to avoid casting
12373
12374 2004-09-16 17:44  pbartok
12375
12376         * Control.cs:
12377           - Added SendToBack and BringToFront methods
12378
12379 2004-09-16 07:00  ravindra
12380
12381         * Copyright: Added Novell URL.
12382
12383 2004-09-16 07:00  ravindra
12384
12385         * ToolBar.cs: Invalidate should be done before redrawing.
12386
12387 2004-09-15 21:19  ravindra
12388
12389         * ColumnHeaderStyle.cs: Enum for ListView Control.
12390
12391 2004-09-15 21:18  ravindra
12392
12393         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12394           ListView Control.
12395
12396 2004-09-13 18:26  jackson
12397
12398         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12399           properly
12400
12401 2004-09-13 18:13  jackson
12402
12403         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12404           a second thread and post messages into the main threads message
12405           queue. This makes timing much more consistent. Both win2K and XP
12406           have a minimum timer value of 15 milliseconds, so we now do this
12407           too.
12408
12409 2004-09-13 15:18  pbartok
12410
12411         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12412           XplatUIX11.cs:
12413           - Added Z-Ordering methods
12414
12415 2004-09-13 10:56  pbartok
12416
12417         * Form.cs:
12418           - Fixed #region names
12419           - Moved properties and methods into their proper #regions
12420
12421 2004-09-13 10:51  pbartok
12422
12423         * Form.cs:
12424           - Added Accept and CancelButton properties
12425           - Added ProcessDialogKey() method
12426
12427 2004-09-13 08:18  pbartok
12428
12429         * IWindowTarget.cs:
12430           - Initial check-in
12431
12432 2004-09-10 21:50  pbartok
12433
12434         * Control.cs:
12435           - Added DoDragDrop() [incomplete]
12436           - Properly implemented 'Visible' handling
12437           - Added SetVisibleCore()
12438           - Implemented FindChildAtPoint()
12439           - Implemented GetContainerControl()
12440           - Implemented Hide()
12441
12442 2004-09-10 19:28  pbartok
12443
12444         * Control.cs:
12445           - Moved methods into their appropriate #regions
12446           - Reordered methods within regions alphabetically
12447
12448 2004-09-10 18:57  pbartok
12449
12450         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12451           - Added method to retrieve text from window
12452
12453 2004-09-10 18:56  pbartok
12454
12455         * Control.cs:
12456           - Moved some internal functions into the internal region
12457           - Implemented FontHeight
12458           - Implemented RenderRightToLeft
12459           - Implemented ResizeRedraw
12460           - Implemented ShowFocusCues
12461           - Implemented ShowKeyboardCues
12462           - Implemented FromChildHandle
12463           - Implemented FromHandle
12464           - Implemented IsMnemonic
12465           - Implemented ReflectMessage
12466           - All public and protected Static Methods are now complete
12467
12468 2004-09-10 16:54  pbartok
12469
12470         * Control.cs:
12471           - Implemented remaining missing public instance properties
12472           - Alphabetized some out of order properties
12473
12474 2004-09-10 05:51  ravindra
12475
12476         * PictureBox.cs: Added a check for null image.
12477
12478 2004-09-10 00:59  jordi
12479
12480         * GroupBox.cs: remove cvs tag
12481
12482 2004-09-09 05:25  ravindra
12483
12484         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12485
12486 2004-09-09 05:23  ravindra
12487
12488         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12489           parent redraw.
12490
12491 2004-09-09 02:28  pbartok
12492
12493         * ThemeWin32Classic.cs:
12494           - Improve disabled string look
12495
12496 2004-09-09 01:15  jordi
12497
12498         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12499           args and handler
12500
12501 2004-09-08 23:56  ravindra
12502
12503         * ItemBoundsPortion.cs: It's enum, not a class!
12504
12505 2004-09-08 23:47  ravindra
12506
12507         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12508           Enums for Form.
12509
12510 2004-09-08 21:13  ravindra
12511
12512         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12513           ListView control.
12514
12515 2004-09-08 21:03  ravindra
12516
12517         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12518           avoid crash.
12519
12520 2004-09-08 21:01  ravindra
12521
12522         * ScrollableControl.cs: Removed unreachable code.
12523
12524 2004-09-08 06:45  jordi
12525
12526         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12527
12528 2004-09-08 01:00  jackson
12529
12530         * XplatUIX11.cs: Only run the timers when updating the message
12531           queue. This effectively gives X messages a higher priority then
12532           timer messages. Timers still need love though
12533
12534 2004-09-07 14:01  jackson
12535
12536         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12537           this for us and the handle is no longer valid.
12538
12539 2004-09-07 13:59  jackson
12540
12541         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12542           loop that manages to not crash. TODO: Add poll and cleanup timers
12543
12544 2004-09-07 11:12  jordi
12545
12546         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12547
12548 2004-09-07 03:40  jordi
12549
12550         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12551           fixes, methods, multiple links
12552
12553 2004-09-06 06:55  jordi
12554
12555         * Control.cs: Caches ClientRectangle rectangle value
12556
12557 2004-09-05 02:03  jordi
12558
12559         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12560           certain situations
12561
12562 2004-09-04 11:10  jordi
12563
12564         * Label.cs: Refresh when font changed
12565
12566 2004-09-02 16:24  pbartok
12567
12568         * Control.cs:
12569           - Added sanity check to creation of double buffer bitmap
12570
12571 2004-09-02 16:24  pbartok
12572
12573         * ButtonBase.cs:
12574           - Fixed selection of text color
12575           - Fixed handling of resize event; now properly recreates double
12576             buffering bitmap
12577           - Added missing assignment of TextAlignment
12578           - Added proper default for TextAlignment
12579
12580 2004-09-02 14:26  pbartok
12581
12582         * RadioButton.cs:
12583           - Added missing RadioButton.RadioButtonAccessibleObject class
12584
12585 2004-09-02 14:26  pbartok
12586
12587         * Control.cs:
12588           - Added missing Control.ControlAccessibleObject class
12589           - Started to implement Select()ion mechanisms, still very incomplete
12590
12591 2004-09-02 14:25  pbartok
12592
12593         * AccessibleObject.cs:
12594           - Added missing methods
12595
12596 2004-09-02 14:23  pbartok
12597
12598         * AccessibleNavigation.cs, AccessibleSelection.cs:
12599           - Initial check-in
12600
12601 2004-09-02 10:32  jordi
12602
12603         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12604           pool for pens, brushes, and hatchbruses
12605
12606 2004-09-01 15:30  jackson
12607
12608         * StatusBar.cs: Fix typo
12609
12610 2004-09-01 14:44  pbartok
12611
12612         * RadioButton.cs:
12613           - Fixed state
12614
12615 2004-09-01 14:39  pbartok
12616
12617         * Button.cs, RadioButton.cs:
12618           - Functional initial check-in
12619
12620 2004-09-01 14:01  pbartok
12621
12622         * CheckBox.cs:
12623           - Added missing default
12624           - Added missing region mark
12625
12626 2004-09-01 09:10  jordi
12627
12628         * Label.cs: fixes method signatures, new methods, events, fixes
12629           autosize
12630
12631 2004-09-01 07:19  jordi
12632
12633         * Control.cs: Init string variables with an empty object
12634
12635 2004-09-01 04:20  jordi
12636
12637         * Control.cs: fires OnFontChanged event
12638
12639 2004-08-31 20:07  pbartok
12640
12641         * ButtonBase.cs:
12642           - Enabled display of strings
12643
12644 2004-08-31 20:05  pbartok
12645
12646         * Form.cs:
12647           - Added (partial) implementation of DialogResult; rest needs to be
12648             implemented when the modal loop code is done
12649
12650 2004-08-31 19:55  pbartok
12651
12652         * CheckBox.cs:
12653           - Fixed to match the removal of the needs_redraw concept
12654
12655 2004-08-31 19:55  pbartok
12656
12657         * ButtonBase.cs:
12658           - Removed the rather odd split between 'needs redraw' and redrawing
12659           - Now handles the events that require regeneration (ambient
12660             properties and size)
12661
12662 2004-08-31 19:41  pbartok
12663
12664         * Control.cs:
12665           - Added firing of BackColorChanged event
12666           - Added TopLevelControl property
12667           - Fixed handling of WM_ERASEBKGRND message
12668
12669 2004-08-31 12:49  pbartok
12670
12671         * ButtonBase.cs:
12672           - Removed debug
12673           - Minor fixes
12674
12675 2004-08-31 12:48  pbartok
12676
12677         * CheckBox.cs:
12678           - Finished (famous last words)
12679
12680 2004-08-31 04:35  jordi
12681
12682         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12683           scrolling bugs, adds new methods
12684
12685 2004-08-30 14:42  pbartok
12686
12687         * CheckBox.cs:
12688           - Implemented CheckBox drawing code
12689
12690 2004-08-30 14:42  pbartok
12691
12692         * ButtonBase.cs:
12693           - Made Redraw() and CheckRedraw() virtual
12694           - Improved mouse up/down/move logic to properly track buttons
12695
12696 2004-08-30 09:44  pbartok
12697
12698         * CheckBox.cs:
12699           - Updated to fix broken build. Not complete yet.
12700
12701 2004-08-30 09:28  pbartok
12702
12703         * CheckState.cs:
12704           - Initial checkin
12705
12706 2004-08-30 09:17  pbartok
12707
12708         * Appearance.cs:
12709           - Initial check-in
12710
12711 2004-08-27 16:12  ravindra
12712
12713         * ToolBarButton.cs: Added TypeConverter attribute.
12714
12715 2004-08-27 16:07  ravindra
12716
12717         * ImageIndexConverter.cs: Implemented.
12718
12719 2004-08-27 14:17  pbartok
12720
12721         * Control.cs:
12722           - Removed unneeded stack vars
12723           - First attempt to fix sizing issues when layout is suspended
12724
12725 2004-08-25 15:35  jordi
12726
12727         * ScrollBar.cs: more fixes to scrollbar
12728
12729 2004-08-25 14:04  ravindra
12730
12731         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12732           Added the missing divider code and grip for ToolBar Control.
12733
12734 2004-08-25 13:20  pbartok
12735
12736         * Control.cs:
12737           - Control now properly passes the ambient background color to child
12738             controls
12739
12740 2004-08-25 13:20  jordi
12741
12742         * ScrollBar.cs: small bug fix regarding bar position
12743
12744 2004-08-25 12:33  pbartok
12745
12746         * Timer.cs:
12747           - Now only calls SetTimer or KillTimer if the enabled state has
12748           changed
12749
12750 2004-08-25 12:33  pbartok
12751
12752         * XplatUIWin32.cs:
12753           - Fixed timer handling, now seems to work
12754           - Improved error message for window creation
12755
12756 2004-08-25 12:32  pbartok
12757
12758         * Control.cs:
12759           - Fixed generation of MouseUp message
12760
12761 2004-08-25 12:29  jordi
12762
12763         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12764           and fixes for progressbar
12765
12766 2004-08-24 18:43  ravindra
12767
12768         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12769           in ToolBar control.
12770
12771 2004-08-24 17:15  pbartok
12772
12773         * Panel.cs:
12774           - Added #region
12775           - Added missing events
12776           - Alphabetized
12777
12778 2004-08-24 17:14  pbartok
12779
12780         * StatusBar.cs, PictureBox.cs:
12781           - Now uses Control's CreateParams
12782
12783 2004-08-24 16:36  pbartok
12784
12785         * XplatUIX11.cs:
12786           - Fixed background color handling
12787           - Fixed sending of enter/leave events on a grab
12788
12789 2004-08-24 16:35  pbartok
12790
12791         * X11Structs.cs:
12792           - Refined definitions for CrossingEvent
12793
12794 2004-08-24 12:37  jordi
12795
12796         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12797           formmating, methods signature, and adds missing events
12798
12799 2004-08-24 12:24  jordi
12800
12801         * Control.cs: fire OnEnabledChanged event
12802
12803 2004-08-24 11:17  pbartok
12804
12805         * XplatUIWin32.cs:
12806           - Implemented SetTimer() and KillTimer()
12807
12808 2004-08-24 11:16  pbartok
12809
12810         * XplatUIX11.cs:
12811           - Now uses Remove instead of Add to kill the timer
12812
12813 2004-08-24 10:16  jackson
12814
12815         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12816           picture boxes in the theme now. Draw picture box borders and obey
12817           sizing modes
12818
12819 2004-08-24 05:49  jackson
12820
12821         * Timer.cs: Remove top secret debugging code
12822
12823 2004-08-24 05:34  jackson
12824
12825         * PictureBox.cs: Temp hack to make picture boxes draw their full
12826           image
12827
12828 2004-08-24 05:29  jackson
12829
12830         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12831           XplatUIX11.cs: Move timers to the driver level. On X they are
12832           queued by the driver and checked on idle.
12833
12834 2004-08-24 01:07  jackson
12835
12836         * XplatUIX11.cs: Use a queue for async messages instead of passing
12837           them as ClientMessages since that was totally broken. Also simply
12838           check for events and return an idle message if none are found. This
12839           gives us an idle handler, and prevents deadlocking when no messages
12840           are in the queue.
12841
12842 2004-08-23 18:19  ravindra
12843
12844         * XplatUIWin32.cs: Removed the unwanted destructor.
12845
12846 2004-08-23 17:27  pbartok
12847
12848         * ButtonBase.cs:
12849           - Finishing touches. Works now, just needs some optimizations.
12850
12851 2004-08-23 16:53  jordi
12852
12853         * ScrollBar.cs: small fix
12854
12855 2004-08-23 16:45  pbartok
12856
12857         * Application.cs:
12858           - Removed debug output
12859           - Simplifications
12860
12861 2004-08-23 16:43  jordi
12862
12863         * ScrollBar.cs: [no log message]
12864
12865 2004-08-23 16:10  pbartok
12866
12867         * Form.cs:
12868           - Fixed handling of WM_CLOSE message
12869           - Removed debug output
12870
12871 2004-08-23 16:09  pbartok
12872
12873         * Application.cs:
12874           - Added handling of Idle event
12875           - Added handling of form closing
12876           - Fixed reporting of MessageLoop property
12877           - Removed some unneeded code, should provide a bit of a speedup
12878
12879 2004-08-23 15:22  pbartok
12880
12881         * Control.cs:
12882           - Added InitLayout() method
12883           - Added code to properly perform layout when Anchor or Dock property
12884             is changed
12885           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12886             LAMESPEC, tried to do it in a way that makes sense
12887
12888 2004-08-23 14:10  jordi
12889
12890         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12891           properties and methods
12892
12893 2004-08-23 13:55  pbartok
12894
12895         * Control.cs:
12896           - Properly fixed Jordi's last fix
12897           - Now uses Cursor's Position property instead of calling XplatUI
12898           directly
12899
12900 2004-08-23 13:44  jordi
12901
12902         * PaintEventHandler.cs: Adding missing attribute
12903
12904 2004-08-23 13:39  pbartok
12905
12906         * Cursor.cs:
12907           - Implemented Position property
12908
12909 2004-08-23 13:39  pbartok
12910
12911         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12912           - Added method to move mouse cursor
12913
12914 2004-08-23 13:39  pbartok
12915
12916         * XplatUIX11.cs:
12917           - Fixed setting of background color
12918           - Added method to move mouse cursor
12919
12920 2004-08-23 13:16  jordi
12921
12922         * Control.cs: avoids null exception
12923
12924 2004-08-22 17:46  jackson
12925
12926         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12927           PictureBox
12928
12929 2004-08-22 17:40  jackson
12930
12931         * XplatUIX11.cs: Add some missing locks
12932
12933 2004-08-22 15:10  pbartok
12934
12935         * Control.cs, Form.cs:
12936           - Removed OverlappedWindow style from Control, instead it's default
12937             now is child
12938           - Made form windows OverlappedWindow by default
12939
12940 2004-08-22 13:34  jackson
12941
12942         * ScrollBar.cs: Update the position through the Value property so
12943           the OnValueChanged event is raised.
12944
12945 2004-08-22 12:04  pbartok
12946
12947         * SWF.csproj:
12948           - Added Cursor.cs and UserControl.cs
12949
12950 2004-08-22 12:03  pbartok
12951
12952         * Cursor.cs:
12953           - Started implementation, not usable yet
12954
12955 2004-08-22 12:00  pbartok
12956
12957         * UserControl.cs:
12958           - Implemented UserControl (complete)
12959
12960 2004-08-21 19:20  ravindra
12961
12962         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12963
12964 2004-08-21 18:49  ravindra
12965
12966         * ToolBar.cs: Probably this completes the missing attributes in
12967           toolbar control.
12968
12969 2004-08-21 18:03  ravindra
12970
12971         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12972           Fixed toolbar control signatures.
12973
12974 2004-08-21 16:32  pbartok
12975
12976         * LinkLabel.cs:
12977           - Signature Fixes
12978
12979 2004-08-21 16:30  pbartok
12980
12981         * Label.cs:
12982           - Signature fixes
12983
12984 2004-08-21 16:19  pbartok
12985
12986         * Control.cs, Label.cs:
12987           - Signature fixes
12988
12989 2004-08-21 15:57  pbartok
12990
12991         * ButtonBase.cs:
12992           - Added loads of debug output for development
12993           - Fixed typo in method name
12994
12995 2004-08-21 15:52  pbartok
12996
12997         * ToolBarButtonClickEventArgs.cs:
12998           - Added missing base class
12999
13000 2004-08-21 14:53  pbartok
13001
13002         * Control.cs:
13003           - Updated to match new GrabWindow signature
13004
13005 2004-08-21 14:51  pbartok
13006
13007         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13008           - Added method to get default display size
13009
13010 2004-08-21 14:23  pbartok
13011
13012         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13013           - Added method to query current grab state
13014           - Added argument to allow confining a grab to a window
13015
13016 2004-08-21 14:22  pbartok
13017
13018         * Keys.cs:
13019           - Added [Flags] attribute so that modifiers can be used in bitwise
13020           ops
13021
13022 2004-08-21 14:21  pbartok
13023
13024         * TrackBar.cs, ScrollBar.cs:
13025           - Replaced direct XplatUI calls with their Control counterpart
13026
13027 2004-08-21 13:32  pbartok
13028
13029         * Control.cs:
13030           - Implemented Created property
13031
13032 2004-08-21 13:28  pbartok
13033
13034         * Control.cs:
13035           - Implemented ContainsFocus
13036
13037 2004-08-21 13:26  pbartok
13038
13039         * Control.cs:
13040           - Implemented CausesValidation
13041
13042 2004-08-21 13:21  pbartok
13043
13044         * Control.cs:
13045           - Implemented CanFocus
13046           - Implemented CanSelect
13047           - Implemented Capture
13048
13049 2004-08-21 12:35  pbartok
13050
13051         * XplatUIWin32.cs:
13052           - Fixed bug with Async message handling
13053           - Implemented getting the ModifierKeys
13054
13055 2004-08-21 12:32  jackson
13056
13057         * AsyncMethodResult.cs: Make sure we have the mutex before we
13058           release it. Fixes BeginInvoke on windows
13059
13060 2004-08-21 11:31  pbartok
13061
13062         * XplatUIWin32.cs, XplatUIX11.cs:
13063           - Drivers now return proper mouse state
13064
13065 2004-08-21 10:54  jackson
13066
13067         * Control.cs: Implement EndInvoke
13068
13069 2004-08-21 10:48  jackson
13070
13071         * Timer.cs: Remove unneeded finalizer
13072
13073 2004-08-20 19:52  ravindra
13074
13075         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
13076           in mouse event handling in the ToolBar control.
13077
13078 2004-08-20 19:50  ravindra
13079
13080         * ImageList.cs: Changed draw method to use the arguments passed in
13081           to draw the image.
13082
13083 2004-08-20 18:58  pbartok
13084
13085         * XplatUIStructs.cs:
13086           - Added private message for async communication
13087
13088 2004-08-20 17:38  ravindra
13089
13090         * Control.cs: Made RightToLeft property virtual and removed a
13091           Console.WriteLine.
13092
13093 2004-08-20 14:39  jordi
13094
13095         * ThemeGtk.cs: use style_attach
13096
13097 2004-08-20 14:39  pbartok
13098
13099         * XplatUIWin32.cs:
13100           - Added jackson's Async code from X11 to Win32
13101
13102 2004-08-20 14:09  pbartok
13103
13104         * SWF.csproj:
13105           - Added all new files
13106
13107 2004-08-20 14:09  pbartok
13108
13109         * Control.cs:
13110           - Added call to set window background color
13111
13112 2004-08-20 14:03  pbartok
13113
13114         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13115           - Added method for setting the window background
13116
13117 2004-08-20 14:02  pbartok
13118
13119         * XplatUIWin32.cs:
13120           - Added method for setting the background color
13121           - Added handling for erasing the window background
13122
13123 2004-08-20 13:45  jordi
13124
13125         * TrackBar.cs: fixes timer, new properties and methods
13126
13127 2004-08-20 13:34  jackson
13128
13129         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
13130           correct thread
13131
13132 2004-08-20 13:22  jackson
13133
13134         * Timer.cs: Timer Tick events are now handed through Controls Async
13135           mechanism so the callbacks are executed in the same thread as X
13136
13137 2004-08-20 13:19  jackson
13138
13139         * XplatUIDriver.cs: Expose functionality to send async messages
13140           through the driver
13141
13142 2004-08-20 13:18  jackson
13143
13144         * Control.cs: Implement Begininvoke
13145
13146 2004-08-20 13:14  jackson
13147
13148         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13149           messages through the driver
13150
13151 2004-08-20 13:12  jackson
13152
13153         * XplatUIX11.cs: Lock before all X operations. Also added Async
13154           method functionality through XSendEvent
13155
13156 2004-08-20 13:11  jackson
13157
13158         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13159           This will screw up on 64 bit systems)
13160
13161 2004-08-20 13:10  jackson
13162
13163         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13164           Async messages through X/Win32
13165
13166 2004-08-19 19:39  pbartok
13167
13168         * XplatUIX11.cs:
13169           - Updated code to match new HandleData.DeviceContext type
13170
13171 2004-08-19 19:38  pbartok
13172
13173         * HandleData.cs:
13174           - Made DeviceContext a generic object to allow usage from various
13175           drivers
13176           - Added support for queueing Windows messages
13177
13178 2004-08-19 19:37  pbartok
13179
13180         * XplatUIWin32.cs:
13181           - Added generation of MouseEnter, MouseLeave and MouseHover events
13182           - Added cleanup on EndPaint
13183
13184 2004-08-19 19:17  pbartok
13185
13186         * Control.cs:
13187           - Added handling of WM_MOUSEHOVER
13188           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
13189           code
13190
13191 2004-08-19 18:55  jordi
13192
13193         * ThemeGtk.cs: fixes button order
13194
13195 2004-08-19 18:12  jordi
13196
13197         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
13198
13199 2004-08-19 17:09  pbartok
13200
13201         * Control.cs:
13202           - Added Right property
13203           - Added RightToLeft property
13204
13205 2004-08-19 16:27  jordi
13206
13207         * ThemeGtk.cs: experimental GTK theme support
13208
13209 2004-08-19 16:26  jordi
13210
13211         * ITheme.cs, Theme.cs: move themes from an interface to a class
13212
13213 2004-08-19 16:25  jordi
13214
13215         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
13216           theme enhancaments
13217
13218 2004-08-19 16:04  pbartok
13219
13220         * XplatUIX11.cs:
13221           - Added colormap basics
13222           - Added a way to re-initialize with a different display handle
13223           - Fixed setting of the window background color
13224           - Added various X11 imports related to colors and colormaps
13225
13226 2004-08-19 15:51  pbartok
13227
13228         * X11Structs.cs:
13229           - Removed packing hints (Paolo suggested this a while back)
13230           - fixed colormap type
13231           - Added default Atom types
13232           - Added Screen and color structs and enums
13233
13234 2004-08-19 15:39  pbartok
13235
13236         * ImageList.cs:
13237           - Added missing Draw() method
13238           - Added missing RecreateHandle event
13239
13240 2004-08-19 15:30  pbartok
13241
13242         * Form.cs:
13243           - Added handling of WM_CLOSE
13244
13245 2004-08-18 13:16  jordi
13246
13247         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13248           a table
13249
13250 2004-08-18 09:56  jordi
13251
13252         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13253
13254 2004-08-17 15:31  ravindra
13255
13256         * SWF.csproj: Updated project.
13257
13258 2004-08-17 15:25  pbartok
13259
13260         * Control.cs:
13261           - Drawing improvement; don't call UpdateBounds if we are not visible
13262             (or have been minimized)
13263
13264 2004-08-17 15:24  pbartok
13265
13266         * XplatUIWin32.cs:
13267           - Finished IsVisible
13268           - Added Win32GetWindowPlacement
13269
13270 2004-08-17 15:08  jackson
13271
13272         * Panel.cs: Initial checkin of the Panel
13273
13274 2004-08-17 14:25  pbartok
13275
13276         * Control.cs:
13277           - Fixed broken handling of default window sizes
13278
13279 2004-08-17 13:29  jackson
13280
13281         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13282           has a large startup time.
13283
13284 2004-08-17 10:25  jackson
13285
13286         * HandleData.cs: union areas properly
13287
13288 2004-08-17 10:12  jackson
13289
13290         * HandleData.cs: union areas properly
13291
13292 2004-08-16 20:00  ravindra
13293
13294         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13295
13296 2004-08-16 18:48  ravindra
13297
13298         * ToolBar.cs: Added attributes.
13299
13300 2004-08-16 17:17  ravindra
13301
13302         * SWF.csproj: Updated project.
13303
13304 2004-08-16 17:16  jackson
13305
13306         * XplatUIX11.cs: Check for more expose events before sending a
13307           WM_PAINT so they can all be grouped together. This makes dragging a
13308           window across another window redraw in a sane way.
13309
13310 2004-08-16 15:47  pbartok
13311
13312         * Control.cs:
13313           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13314             support OnMouseEnter/Leave()
13315           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13316             exposure handling
13317
13318 2004-08-16 15:46  pbartok
13319
13320         * XplatUIStructs.cs, XplatUIX11.cs:
13321           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13322           OnMouseEnter/Leave()
13323
13324 2004-08-16 15:34  jackson
13325
13326         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13327           sure messages get the message field set to WM_NULL if they are not
13328           handled.
13329
13330 2004-08-16 15:24  jackson
13331
13332         * HandleData.cs: HandleData is used for storing message information
13333           for window handles
13334
13335 2004-08-15 17:23  ravindra
13336
13337         * ColorDepth.cs: Added attribute.
13338
13339 2004-08-15 17:23  ravindra
13340
13341         * SWF.csproj: Updated project for ToolBar Control.
13342
13343 2004-08-15 17:20  ravindra
13344
13345         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13346           control and also dos2unix format.
13347
13348 2004-08-15 17:13  ravindra
13349
13350         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13351           ToolBarButtonClickEventArgs.cs,
13352           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13353           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13354
13355 2004-08-15 15:31  pbartok
13356
13357         * ButtonBase.cs:
13358           - First (mostly) working version
13359
13360 2004-08-13 16:15  pbartok
13361
13362         * Control.cs:
13363           - Fixed Anchor default
13364
13365 2004-08-13 15:43  pbartok
13366
13367         * Control.cs:
13368           - Changed GetCursorPos signature
13369
13370 2004-08-13 15:42  pbartok
13371
13372         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13373           - Changed signature for GetCursorPos
13374
13375 2004-08-13 15:25  pbartok
13376
13377         * XplatUIX11.cs:
13378           - Cleanup
13379           - Fixed resizing/exposure handling
13380
13381 2004-08-13 15:22  jordi
13382
13383         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13384           with tickposition
13385
13386 2004-08-13 14:55  jordi
13387
13388         * TrackBar.cs: change from wndproc to events
13389
13390 2004-08-13 13:00  jordi
13391
13392         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13393           XplatUIX11.cs: implements PointToClient (ScreenToClient)
13394
13395 2004-08-13 12:53  pbartok
13396
13397         * XplatUIWin32.cs:
13398           - Changed GetWindowPos to also provide client area size
13399           - Fixed broken prototypes for several win32 functions
13400
13401 2004-08-13 12:53  pbartok
13402
13403         * XplatUI.cs, XplatUIDriver.cs:
13404           - Changed GetWindowPos to also provide client area size
13405
13406 2004-08-13 12:52  pbartok
13407
13408         * XplatUIX11.cs:
13409           - Added generation of WM_POSCHANGED
13410           - Changed GetWindowPos to also provide client area size
13411
13412 2004-08-13 12:52  pbartok
13413
13414         * Control.cs:
13415           - Added Dispose() and destructor
13416           - Fixed resizing and bounds calculation
13417           - Fixed Layout
13418           - Added memory savings for invisible windows
13419
13420 2004-08-13 12:46  jordi
13421
13422         * TrackBar.cs: adds timer and grap window
13423
13424 2004-08-13 10:25  jackson
13425
13426         * Timer.cs: SWF Timer
13427
13428 2004-08-12 16:59  pbartok
13429
13430         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13431           - Implemented method to get current mouse position
13432
13433 2004-08-12 14:29  jordi
13434
13435         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13436           enhancement, fix mouse problems, highli thumb, etc
13437
13438 2004-08-12 13:31  pbartok
13439
13440         * Control.cs:
13441           - Fixed Anchoring bugs
13442
13443 2004-08-12 13:01  jackson
13444
13445         * StatusBar.cs: Don't forget things
13446
13447 2004-08-12 12:54  jackson
13448
13449         * ThemeWin32Classic.cs: Handle owner draw status bars
13450
13451 2004-08-12 12:54  jackson
13452
13453         * StatusBar.cs: Implement missing properties, events, and methods.
13454           Handle mouse clicking
13455
13456 2004-08-12 10:19  jackson
13457
13458         * StatusBarPanelClickEventArgs.cs,
13459           StatusBarPanelClickEventHandler.cs: Classes for handling status
13460           bar panel click events
13461
13462 2004-08-12 10:10  jackson
13463
13464         * Control.cs: Add missing properties
13465
13466 2004-08-12 09:46  pbartok
13467
13468         * BindingsManagerBase.cs:
13469           - Name changed to BindingManagerBase.cs
13470
13471 2004-08-12 09:25  jordi
13472
13473         * ScrollableControl.cs: calls ctrlbase instead of exeception
13474
13475 2004-08-11 16:28  pbartok
13476
13477         * InputLanguageChangingEventArgs.cs:
13478           - Never check in before compiling. Fixes the last check-in
13479
13480 2004-08-11 16:26  pbartok
13481
13482         * InputLanguageChangingEventArgs.cs:
13483           - More signature fixes
13484
13485 2004-08-11 16:20  pbartok
13486
13487         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13488           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13489           ImageListStreamer.cs, InputLanguage.cs,
13490           InputLanguageChangedEventArgs.cs,
13491           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13492           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13493           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13494           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13495           - Signature fixes
13496
13497 2004-08-11 16:16  pbartok
13498
13499         * Application.cs:
13500           - Fixed Signature
13501           - Added .Net 1.1 method
13502
13503 2004-08-11 15:25  pbartok
13504
13505         * SWF.csproj:
13506           - Fixed BindingManagerBase.cs filename
13507
13508 2004-08-11 15:22  pbartok
13509
13510         * BindingManagerBase.cs:
13511           - Was checked in with wrong filename
13512
13513 2004-08-11 14:50  pbartok
13514
13515         * SWF.csproj:
13516           - Updated
13517
13518 2004-08-11 13:41  jordi
13519
13520         * XplatUIWin32.cs: Fixes ClientRect
13521
13522 2004-08-11 13:19  pbartok
13523
13524         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13525           XplatUIX11.cs:
13526           - We had SetWindowPos and MoveWindow to set window positions and
13527             size, removed MoveWindow. We have GetWindowPos, so it made sense to
13528             keep SetWindowPos as matching counterpart
13529           - Added some X11 sanity checking
13530
13531 2004-08-11 12:59  pbartok
13532
13533         * Control.cs:
13534           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13535             (It seems that SetBounds is just a front for SetBoundsCore and
13536              SetBoundsCore updates the underlying window system and
13537              UpdateBounds is responsible for updating the variables associated
13538              with the Control and sending the events)
13539           - Major cleanup of Size handling; we now have two sizes, client_size
13540             and bounds. Bounds defines the window with decorations, client_size
13541             without them.
13542
13543 2004-08-11 12:55  pbartok
13544
13545         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13546           - Added method to calculate difference between decorated window and
13547             raw client area
13548
13549 2004-08-11 12:54  pbartok
13550
13551         * Label.cs:
13552           - Forcing redraw on resize
13553
13554 2004-08-11 11:43  pbartok
13555
13556         * ImageList.cs:
13557           - Removed disposing of the actual images when the list is disposed
13558
13559 2004-08-11 09:13  pbartok
13560
13561         * Control.cs:
13562           - Now properly reparents windows
13563
13564 2004-08-11 08:37  pbartok
13565
13566         * Control.cs:
13567           - Duh!
13568
13569 2004-08-11 07:47  pbartok
13570
13571         * Control.cs:
13572           - Rewrote the collection stuff. Might not be as fast now, not
13573             keeping the number of children around and accessible directly, but
13574             it's more straightforward
13575
13576 2004-08-11 07:44  pbartok
13577
13578         * AccessibleObject.cs:
13579           - Fixed to match ControlCollection rewrite
13580
13581 2004-08-11 07:43  pbartok
13582
13583         * ImageList.cs:
13584           - Added missing creation of the collection list
13585
13586 2004-08-10 20:08  jackson
13587
13588         * StatusBar.cs: Get the paint message from WndProc
13589
13590 2004-08-10 19:31  jackson
13591
13592         * ThemeWin32Classic.cs: Create Brushes as little as possible
13593
13594 2004-08-10 19:20  jackson
13595
13596         * UICues.cs: Add Flags attribute
13597
13598 2004-08-10 19:19  jackson
13599
13600         * StatusBarPanel.cs: Signature cleanup
13601
13602 2004-08-10 19:10  jackson
13603
13604         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13605           Initial implementation of status bar item drawing
13606
13607 2004-08-10 17:27  jordi
13608
13609         * TrackBar.cs: add missing methods, properties, and restructure to
13610           hide extra ones
13611
13612 2004-08-10 16:24  jackson
13613
13614         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13615           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13616           attribute
13617
13618 2004-08-10 13:21  jordi
13619
13620         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13621           enhancements and standarize on win colors defaults
13622
13623 2004-08-10 12:52  jackson
13624
13625         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13626           ThemeWin32Classic.cs: Implement DrawItem functionality
13627
13628 2004-08-10 12:47  jordi
13629
13630         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13631
13632 2004-08-10 12:32  jordi
13633
13634         * Control.cs: throw ontextchange event
13635
13636 2004-08-10 11:43  pbartok
13637
13638         * Control.cs:
13639           - Added more to the still unfinished Dock/Anchor layout code
13640
13641 2004-08-10 11:39  pbartok
13642
13643         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13644           - Added GetWindowPos method
13645
13646 2004-08-10 11:36  pbartok
13647
13648         * XplatUIWin32.cs:
13649           - Implemented several methods
13650
13651 2004-08-10 09:47  jackson
13652
13653         * TrackBar.cs: Allow control to handle buffering
13654
13655 2004-08-10 09:41  jackson
13656
13657         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13658
13659 2004-08-10 09:24  jackson
13660
13661         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13662
13663 2004-08-10 09:09  jackson
13664
13665         * StatusBar.cs: Let Control handle all the buffering.
13666
13667 2004-08-10 09:08  jackson
13668
13669         * Control.cs: Control will now handle the buffering code, so each
13670           control does not have to implement this.
13671
13672 2004-08-10 08:34  jackson
13673
13674         * XplatUIDriver.cs: Use default colors from the theme
13675
13676 2004-08-09 17:12  pbartok
13677
13678         * ImageList.cs:
13679           - Fixed several bugs Ravindra pointed out
13680
13681 2004-08-09 16:11  pbartok
13682
13683         * Control.cs:
13684           - Added incomplete dock layout code
13685           - Added support for mouse wheel
13686
13687 2004-08-09 16:09  pbartok
13688
13689         * XplatUIX11.cs:
13690           - Added handling for middle and right mousebutton
13691           - Added handling for mouse wheel
13692           - Added handling for key state and mouse state and position
13693           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13694           messages
13695
13696 2004-08-09 15:40  jackson
13697
13698         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13699           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13700           checkin
13701
13702 2004-08-09 15:37  jackson
13703
13704         * StatusBar.cs: Initial implementation of StatusBar
13705
13706 2004-08-09 15:36  jackson
13707
13708         * ITheme.cs: Add support for drawing status bar and getting status
13709           bar item sizes
13710
13711 2004-08-09 15:35  pbartok
13712
13713         * MouseButtons.cs:
13714           - Fixed values
13715
13716 2004-08-09 15:34  jackson
13717
13718         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13719           status bar item sizes
13720
13721 2004-08-09 15:21  jackson
13722
13723         * ThemeWin32Classic.cs: Use known colors for default control
13724           colours
13725
13726 2004-08-09 15:12  jackson
13727
13728         * ThemeWin32Classic.cs: Make the default font static, it is static
13729           in control so this doesn't change functionality and creating fonts
13730           is sloooooow.
13731
13732 2004-08-09 14:56  pbartok
13733
13734         * X11Structs.cs:
13735           - Added GrabMode enum
13736
13737 2004-08-09 14:55  pbartok
13738
13739         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13740           - Removed Run method, was only required for initial development
13741
13742 2004-08-09 14:51  pbartok
13743
13744         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13745           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13746           capture
13747
13748 2004-08-09 13:48  pbartok
13749
13750         * XplatUIX11.cs:
13751           - Fixed default sizing for child windows
13752
13753 2004-08-09 12:56  pbartok
13754
13755         * XplatUIX11.cs:
13756           - Added generation of WM_DESTROY message
13757           - Added handling of window manager induced shutdown
13758
13759 2004-08-09 11:31  jackson
13760
13761         * ThemeWin32Classic.cs: New names for control properties
13762
13763 2004-08-09 11:25  jackson
13764
13765         * Control.cs: Use new color names
13766
13767 2004-08-09 11:02  jackson
13768
13769         * XplatUI.cs: Get default window properties from the theme
13770
13771 2004-08-09 11:01  jackson
13772
13773         * ITheme.cs: The theme engine now controls default window
13774           properties
13775
13776 2004-08-09 11:00  jackson
13777
13778         * ThemeWin32Classic.cs: Add default window color properties
13779
13780 2004-08-09 10:17  jackson
13781
13782         * ThemeWin32Classic.cs: Use correct default back color
13783
13784 2004-08-09 10:05  jackson
13785
13786         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13787           the theme now.
13788
13789 2004-08-09 09:56  jackson
13790
13791         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13792
13793 2004-08-09 09:54  jackson
13794
13795         * Control.cs: Get default properties from the theme.
13796
13797 2004-08-09 09:53  jackson
13798
13799         * ITheme.cs: Themes now handle default control properties
13800
13801 2004-08-09 09:53  jackson
13802
13803         * ThemeWin32Classic.cs: Themes now handle default control
13804           properties so coloring will be consistent
13805
13806 2004-08-08 16:54  jordi
13807
13808         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13809
13810 2004-08-08 15:08  jordi
13811
13812         * XplatUIX11.cs: fixes keyboard crash
13813
13814 2004-08-08 13:47  jordi
13815
13816         * Label.cs: add cvs header info
13817
13818 2004-08-08 12:09  jackson
13819
13820         * ThemeWin32Classic.cs: Add pen_buttonface
13821
13822 2004-08-08 11:52  jordi
13823
13824         * Label.cs, LinkLabel.cs: [no log message]
13825
13826 2004-08-08 11:34  jordi
13827
13828         * ThemeWin32Classic.cs: Use Windows Standard Colours
13829
13830 2004-08-07 17:32  jordi
13831
13832         * TrackBar.cs: throw exceptions of invalid enums values
13833
13834 2004-08-07 17:31  jordi
13835
13836         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13837           draw method name
13838
13839 2004-08-07 16:56  jackson
13840
13841         * HorizontalAlignment.cs: Initial checkin
13842
13843 2004-08-07 13:16  jordi
13844
13845         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13846           methods
13847
13848 2004-08-07 13:05  jordi
13849
13850         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13851           GetSysColor defines
13852
13853 2004-08-06 18:01  pbartok
13854
13855         * ThemeWin32Classic.cs:
13856           - Fixed some rounding issues with float/int
13857
13858 2004-08-06 18:00  jackson
13859
13860         * DockStyle.cs, AnchorStyles.cs:
13861
13862                   Add flags and serializable attributes.
13863
13864 2004-08-06 17:46  pbartok
13865
13866         * XplatUIX11.cs:
13867           - Implemented GetParent
13868
13869 2004-08-06 17:18  pbartok
13870
13871         * TrackBar.cs:
13872           - Fixed some rounding issues with float/int
13873
13874 2004-08-06 17:17  pbartok
13875
13876         * X11Structs.cs, XplatUIX11.cs:
13877           - Fixed Refresh and Invalidate
13878
13879 2004-08-06 15:30  pbartok
13880
13881         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13882           - Fixed recursive loop when resizing
13883           - Improved/fixed redrawing on expose messages
13884
13885 2004-08-06 09:53  jordi
13886
13887         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13888           keyboard navigation
13889
13890 2004-08-06 08:02  pbartok
13891
13892         * X11Structs.cs, XplatUIX11.cs:
13893           - Fixed reparenting
13894           - Fixed window border creation
13895
13896 2004-08-05 15:38  pbartok
13897
13898         * XplatUIX11.cs:
13899           - Attempted fix for reparenting problems
13900
13901 2004-08-04 15:14  pbartok
13902
13903         * Control.cs:
13904           - Fixed Invalidation bug (calculated wrong client area)
13905           - Added ClientSize setter
13906
13907 2004-08-04 15:13  pbartok
13908
13909         * Form.cs:
13910           - Added AutoScale properties
13911
13912 2004-08-04 15:13  pbartok
13913
13914         * SWF.csproj:
13915           - Added latest files
13916
13917 2004-08-04 14:11  pbartok
13918
13919         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13920           XplatUIX11.cs:
13921           - Added Invalidate handling
13922
13923 2004-08-03 17:09  jordi
13924
13925         * XplatUIDriver.cs: fixes spelling mistake
13926
13927 2004-07-27 09:53  jordi
13928
13929         * TrackBar.cs: fixes trackbar events, def classname, methods
13930           signature
13931
13932 2004-07-27 09:29  jordi
13933
13934         * ScrollBar.cs: fixes scrollbar events
13935
13936 2004-07-27 04:38  jordi
13937
13938         * Control.cs: changes to be able to run winforms samples
13939
13940 2004-07-26 11:42  jordi
13941
13942         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13943           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13944
13945 2004-07-26 05:41  jordi
13946
13947         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13948           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13949           implementation
13950
13951 2004-07-22 09:22  jordi
13952
13953         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13954           check link overlapping, implement events, and fixes
13955
13956 2004-07-21 10:28  jordi
13957
13958         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13959
13960 2004-07-21 10:19  jordi
13961
13962         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13963           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13964           LinkLabelLinkClickedEventArgs.cs,
13965           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13966           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13967           implementation
13968
13969 2004-07-19 13:09  jordi
13970
13971         * Control.cs, Label.cs: label control re-written: added missing
13972           functionlity, events, and properties
13973
13974 2004-07-19 10:49  jordi
13975
13976         * Control.cs: fixes SetBounds logic
13977
13978 2004-07-19 01:29  jordi
13979
13980         * Control.cs: Call RefreshWindow only if the window has created
13981
13982 2004-07-15 14:05  pbartok
13983
13984         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13985           - Implemented ImageList and ImageList.ImageCollection classes
13986           - Added ColorDepth enumeration
13987           - Updated SWF VS.Net project
13988
13989 2004-07-15 11:06  jordi
13990
13991         * XplatUIStructs.cs: added MsgButons enum
13992
13993 2004-07-15 11:03  jordi
13994
13995         * Control.cs: added basic mouse handeling events
13996
13997 2004-07-15 03:38  jordi
13998
13999         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
14000           Vertical TrackBar control implementation
14001
14002 2004-07-13 09:33  jordi
14003
14004         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
14005
14006 2004-07-13 09:31  jordi
14007
14008         * Control.cs, Form.cs: commit: new properties and fixes form size
14009           problems
14010
14011 2004-07-09 14:13  miguel
14012
14013         * ProgressBar.cs: Spelling
14014
14015 2004-07-09 11:25  pbartok
14016
14017         * ProgressBar.cs:
14018           - Removed usage of Rectangle for drawing. Miguel pointed out it's
14019           faster
14020
14021 2004-07-09 11:17  miguel
14022
14023         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
14024
14025                 * ProgressBar.cs: Fixed spelling for `block'
14026
14027                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
14028                 style guidelines.
14029
14030                 Avoid using the += on rect.X, that exposed a bug in the compiler.
14031
14032 2004-07-08 23:21  pbartok
14033
14034         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
14035           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
14036           BaseCollection.cs, Binding.cs, BindingContext.cs,
14037           BindingMemberInfo.cs, BindingsCollection.cs,
14038           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
14039           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
14040           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
14041           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
14042           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
14043           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
14044           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
14045           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
14046           FrameStyle.cs, GiveFeedbackEventArgs.cs,
14047           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
14048           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
14049           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
14050           InputLanguageChangedEventArgs.cs,
14051           InputLanguageChangedEventHandler.cs,
14052           InputLanguageChangingEventArgs.cs,
14053           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
14054           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
14055           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
14056           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
14057           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
14058           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
14059           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
14060           QueryAccessibilityHelpEventArgs.cs,
14061           QueryAccessibilityHelpEventHandler.cs,
14062           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
14063           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
14064           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
14065           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
14066           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
14067           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
14068           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
14069           XplatUIX11.cs, lang.cs:
14070           - Initial check-in
14071