57900dfc8c0e75ecfe444d160a470a79706ab2fb
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-05-26  Jackson Harper  <jackson@ximian.com>
2
3         * ControlPaint.cs:
4         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
5         values, it's faster and it's all we care about (we don't care if
6         the names aren't equal).
7
8 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
9
10         * XplatUIX11.cs: Once again, attempting to get layout just right.
11
12 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
13
14         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
15           the sizes of each link section, that will result in sizes that
16           match DrawString's layout (Fixes #78391)
17
18 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
19
20         * FileDialog.cs: If AddExtension property is true autocomplete the
21           extensions in SaveFileDialog correctly. Fixes bug #78453.
22           Set MyNetwork and MyComputer to "C:\" for windows. This should
23           fix part 8 of bug #78446 for now.
24
25 2006-05-26  Chris Toshok  <toshok@ximian.com>
26
27         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
28         invalidate the current row header if we need to, but presumably
29         we'll invalidate the row corrsponding to the bounds or
30         editingControl.
31         (GridHScrolled): switch back to this method, as it's part of the
32         public api.  *sigh*.
33         (GridVScrolled): same.
34         (OnMouseWheel): hack up something that more or less works.  Call
35         GridHScrolled/GridVScrolled directly, instead of duplicating much
36         of their code here.
37         (EnsureCellVisibility): reinstate a bunch of this code, since we
38         can't just set the scrollbar Value and expect to do all the work
39         in the ValueChanged handler.  Also, Call Update() after scrolling
40         in one direction so the other XplatX11.ScrollWindow call has the
41         proper stuff in the proper places.
42         (EditCell): set is_editing to true before calling .Edit.
43
44         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
45         don't bother comparing first.
46         (OnKeyPress): call grid.ColumnStartedEditing before calling
47         base.OnKeyPress.  this will set is_changing and invalidate the row
48         header if necessary.
49         (ProcessKeyMessage): for WM_CHAR messages, call
50         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
51         and WM_KEYDOWN.
52         
53         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
54         it's done in the DataGrid.
55         (NextState): call grid.ColumnStartedEditing, which takes care of
56         invalidating the row header (and setting is_changing).
57
58         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
59         here.  it's done in the DataGrid.
60
61 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
62
63         * Control.cs: allow changing the cursor when the mouse position is
64         out of bounds but Capture is set.
65         * LinkLabel.cs: handle the case when the mouse button is pressed on the
66         linklabel but released somewhere else.
67
68 2006-05-25  Jackson Harper  <jackson@ximian.com>
69
70         * TreeView.cs: When we get focus if there is no selected node make
71         it the top node
72         - Remove some uneeded setup code from Draw.
73         * TreeNodeCollection.cs: If the tree doesn't have a top node when
74         a new node is inserted make the new node the top.
75         * XplatUIX11.cs:
76         * Timer.cs: Use Utc time so that no local time zone stuff needs to
77         be used (should be faster).
78         
79 2006-05-25  Chris Toshok  <toshok@ximian.com>
80
81         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
82         problem with the last commit.
83
84 2006-05-25  Chris Toshok  <toshok@ximian.com>
85
86         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
87         need the invalidate call here, while scrolling right-to-left via
88         the left arrow key (i.e. moving the editing cell while scrolling).
89
90         * DataGrid.cs (.ctor): remove the initialization of
91         ctrl_pressed/shift_pressed.  We no longer track them using key
92         up/down handlers, but by using Control.ModifierKeys.  Also, switch
93         to using ValueChanged handlers on the scrollbars instead of
94         Scrolled event handlers.  This simplifies a bunch of the scrolling
95         code.
96         (GridHValueChanged): rename from GridHScrolled, and change it to
97         work with the new event args.
98         (GridVValueChanged): same.
99         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
100         (OnMouseWheel): actually scroll the datagrid.  Don't change the
101         selected cell.
102         (ProcessGridKey): correct all the keyboard navigation stuff I
103         could find.  Ctrl up/down/left/right/home/end work now.
104         (EnsureCellVisibility): correct method name spelling.  Also,
105         simplify this a touch by not explicitly calling the
106         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
107         scrollbar value.
108         (OnKeyUpDG): no need for this method now.
109         
110 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
111
112         * LinkLabel.cs: display the OverrideCursor when hovering the label.
113         Fixes bug #78392.
114
115 2006-05-25  Chris Toshok  <toshok@ximian.com>
116
117         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
118         r61019.
119
120 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
121
122         * Application.cs: Moved setting of is_modal and closing to before
123           we create the control, to allow the event handlers called as a
124           result of creation affect closing. Also removed Gonzalo's previous
125           change to setting DialogResult, the behaviour has been moved to 
126           Form.ShowDialog()
127         * Form.cs: 
128           - ShowDialog(): Removed explicit creation of the form, let RunLoop
129             handle it instead
130           - ShowDialog(): If no dialog result is set, we need to return Cancel
131           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
132             the close is cancelled
133
134 2006-05-25  Jackson Harper  <jackson@ximian.com>
135
136         * StatusBar.cs: We only need to update the sizes of the other
137         panels when we have auto size contents.  Also we are only updating
138         the contents of the panel, not the borders, so compensate for the
139         border width (TODO: get this width from the theme somehow).
140         * TreeView.cs: Scrollable is true by default
141         - Use invalidate instead of refresh where needed
142         - Factor the scrollable value into scrollbar updating
143         - Update the scrollbars if the Scrollable property is altered
144         - Update the selected node if its ImageIndex is changed
145         - Handle null nodes in UpdateNode (mainly so we don't have to
146         check if selected is null when updating it
147         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
148         are factored into the visible count
149         - Use VisibleCount for clarity in the code
150         - When the font is changed we need to recurse through all the
151         nodes and invalidate their sizes
152         
153 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
154
155         * Application.cs: set the DialogResult to fixed when the main form is
156         hidden or destroyed while being modal.
157
158 2006-05-25  Miguel de Icaza  <miguel@novell.com>
159
160         * Theme.cs: Use Tangoified messagebox icons. 
161
162         (GetSizedResourceImage): Also cope with width = 0 and do not
163         trigger a warning in that case (0 means "give me your icon from
164         the resouce, no special size needed).
165
166 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
167
168         * Application.cs: Leave runloop if the the main modal form is 
169           hidden (fixes #78484)
170
171 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
172
173         * BindingContext.cs : reject null datasource in Contains() and
174           Item[].
175         * CurrencyManager.cs : check data_member validity when data_source
176           is dataset. When it is late binding, the initial position is -1.
177
178 2006-05-24  Jackson Harper  <jackson@ximian.com>
179
180         * TreeNodeCollection.cs: Dont't recalculate the visible order on
181         inserted nodes that aren't visible.  This changes the
182         max_visible_order which confuses scrollbar settings.
183         - Use the enumerator to get the prev node instead of duplicating
184         code.
185         * TreeView.cs: Use new method for setting scrollbar values
186         - Don't set the bounds every time the scrollbar is updated
187         - When updating below the root node use an invalidate instead of a
188         refresh to prevent the child controls (scrollbars) from being
189         refreshed. (UpdateBelow still needs to be reworked anyways).
190         - Reenable SetBottom now that visible orders are set correctly,
191         added some debug code incase we ever get bad values there again.
192         - Set the scrollbar max to 2 less then the max value, this
193         compensates for the max value being one above the node count, and
194         for scrollbars adding one extra "notch".
195         - When drawing image nodes if there is an imagelist we draw the
196         first image in the list if the supplied image index is out of the
197         image list's bounds.
198         
199 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
200
201         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
202           we receive a size change from the WM (Fixes #78503)
203
204 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
205
206         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
207           rectangle (Fixes #78501)
208
209 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
210
211         * ButtonBase.cs: 
212           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
213             as a bitfield.
214           - Fixed MouseMove to no longer switch pressed state unless the left
215             mouse button is pressed. Atsushi provided the original patch (#78485)
216           
217 2006-05-24  Jackson Harper  <jackson@ximian.com>
218
219         * ScrollBar.cs: New internal methods that allow us to change a
220         couple values on the scrollbar (the most common case is maximum
221         and large change) without getting multiple invalidates.
222
223 2006-05-24  Chris Toshok  <toshok@ximian.com>
224
225         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
226         (Edit): save off the original state in oldState, and set
227         grid.is_editing to true.
228         (OnKeyDown): abort editing if escape is pressed.  also, call
229         NextState if space is pressed.
230         (OnMouseDown): call NextState.
231         (NextState): factor out shared code from OnKeyDown and OnMouseDown
232         here.  Also, only invalidate the row header once (on the initial
233         is_changing switch) to save on redraws.
234
235 2006-05-24  Chris Toshok  <toshok@ximian.com>
236
237         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
238         if the value in the cell is different than it was before.  This
239         keeps us from triggering a layout when we move around a datarid
240         with a highlighted cell.
241         (Edit): suspend layout when creating/positining the text box, and
242         resume passing false so we don't ever actually re-layout.
243         (ReleaseHostedControl): same.
244         (EnsureTextBox): reformat slightly, and set WordWrap to false.
245
246         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
247         control-key sequences should go to the datagrid - remove that
248         lock.  Also, modify the conditions under which we move between
249         cells when moving the cursor within a cell, and remove the "this"
250         and "base" from field accesses.  We weren't even consistent, given
251         they all were in the base class.
252
253 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
254
255         * Binding.cs : (.ctor)
256           An obvious NRE fix for BindingTest.CtorNullTest().
257
258 2006-05-23  Chris Toshok  <toshok@ximian.com>
259
260         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
261         them between lines.  This fixes some quirks editing cells in the
262         datagrid.
263
264 2006-05-23  Jackson Harper  <jackson@ximian.com>
265
266         * TreeView.cs: Use begin/end update when doing expand/collapse all
267         so that we don't get flicker on the scrollbar.
268
269 2006-05-23  Jackson Harper  <jackson@ximian.com>
270
271         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
272         treenode calculations to be independant of the painting code. To
273         do this nodes track a visible order which is calculated by the
274         treeview.
275         - Call new methods for expanding/collapsing nodes.  These methods
276         use scrollwindow so we don't have to update everything below the
277         node.
278         * TreeView.cs: Refactored drawing and scrolling code.  We don't
279         need to update nodes when drawing anymore or calculate scrollbar
280         stuff.
281         - Added new methods for expanding/collapsing nodes. These methods
282         use ScrollWindow so as to not have to redraw all the nodes below.
283         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
284         we add/remove nodes or sort.
285         - Handle removing the selected and the top node properly.
286
287 2006-05-23  Chris Toshok  <toshok@ximian.com>
288
289         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
290         maybe this should actually happen in the datagrid code?
291         (EndEdit): no need to invalidate anything, given that
292         ReleaseHostedControl causes the datagrid to relayout, which
293         invalidates everything anyway.
294
295         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
296         in SetCurrentCell).
297         (set_SelectionBackColor): call InvalidateSelection instead of
298         Refresh.
299         (set_SelectionForeColor): same.
300         (BeginEdit): Flesh this out a bit.
301         (CancelEditing): only do any of this if we're editing/adding.
302         (EndEdit): same.
303         (OnMouseDown): there's no need to cancel editing here, it's done
304         in SetCurrentCell.
305         (SetCurrentCell): only invalidate the current row header if it's a
306         different row than the new one.
307         (ShiftSelection): fix this to work like MS does.
308         (ResetSelection): factor out the invalidation of selected_rows to
309         InvalidateSelection.
310         (SetDataSource): cancel any editing that's going on.
311
312         * DataGridColumnStyle.cs
313         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
314         call the non-interface version.
315
316         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
317         header rectangle with the clip rectangle so we don't redraw the
318         entire header for just a small area.  Gets rid of the last flicker
319         when horizontally scrolling.
320         (DataGridPaintRow): same.
321
322 2006-05-23  Mike Kestner  <mkestner@novell.com>
323
324         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
325         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
326         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
327         Critical bug report.
328
329 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
330
331         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
332           and this fixes #78493
333
334 2006-05-23  Miguel de Icaza  <miguel@novell.com>
335
336         * Theme.cs (GetSizedResourceImage): Scale images if the proper
337         size is not found.  
338         
339         * FileDialog.cs: Do not change the background for the side bar as
340         it wont work nicely with the theme, and also reduces the artifacts
341         in rendering the icons (which I want to fix too).
342
343         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
344         resources, not resgen resources. 
345
346         (PlatformDefaultHandler): Pull images using the new API.
347
348 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
349
350         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
351           a reference to the hwnd and will not remove it unless there are
352           no pending exposures (fixes #78341)
353         * XplatUI.cs: Improved debug
354
355 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
356
357         * MenuAPI.cs : don't handle OnClick event when it was not the left
358           button. Fixed bug #78487.
359
360 2006-05-23  Mike Kestner  <mkestner@novell.com>
361
362         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
363         prefer submenus to the top menu for item lookup, to avoid popping down
364         top-row items.
365
366 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
367
368         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
369           Graphics.FillRectangle as the visual results are really bad (even
370           on win). We now draw perfect arrows (and perfect shadows when the
371           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
372           Pen.DashPattern to draw the dots of each line.
373
374 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
375
376         * FileDialog.cs: Update the filename combobox when navigating through
377           the ListView with the cursor keys. Fixes part 7 of bug #78446.
378
379 2006-05-22  Mike Kestner  <mkestner@novell.com>
380
381         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
382         Fixes #78463.
383
384 2006-05-22  Mike Kestner  <mkestner@novell.com>
385
386         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
387         requests. Fix a misspelled parameter and a copy paste exception error
388         in Select.
389
390 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
391
392         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
393           to get the same width/height (5/13) on X11 as the default font has on
394           win32. This means that our DefaultFont emSize is smaller than the 
395           the MS SWF equivalent (even thought the width/height stays the same)
396
397 2006-05-20  Jackson Harper  <jackson@ximian.com>
398
399         * MdiClient.cs:
400         * MdiWindowManager.cs:
401         * InternalWindowManager.cs: Make sure to use the border width from
402         the theme.
403
404 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
405
406         * PrintDialog.cs: Implements printer details
407
408 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
409
410         * FileDialog.cs: Added focus handling for PopupButtonPanel.
411           Fixes part 1 and 2 of bug #78446
412
413 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
414
415         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
416           instead of sticking to the first ever calculated value
417
418 2006-05-19  Mike Kestner  <mkestner@novell.com>
419
420         * ComboBox.cs: fix mouse motion selection to use MousePosition and
421         PointToClient, since Capture is set. Fixes #78344.
422
423 2006-05-19  Mike Kestner  <mkestner@novell.com>
424
425         * ListView.cs: match MS behavior in Details view where items are not
426         drawn if Columns.Count == 0. 
427         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
428         Use a separate pen to draw the check, since changing the width affects
429         the box as well.  Fixes #78454.
430
431 2006-05-18  Miguel de Icaza  <miguel@novell.com>
432
433         * ListView.cs: ArgumentOutOfRangeException, single versions of the
434         exception should throw the name of the invalid argument.
435
436         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
437         there are no files listed. 
438
439 2006-05-18  Jackson Harper  <jackson@ximian.com>
440
441         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
442         up.
443
444 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
445
446         * Control.cs: Brought back our old UpdateZOrder method as a private
447           function and switched our calls from UpdateZOrder to the new one.
448           This fixes the Paint.Net canvas disappearing bug.
449
450 2006-05-18  Jackson Harper  <jackson@ximian.com>
451
452         * Theme.cs:
453         * ThemeWin32Classic.cs:
454         * InternalWindowManager.cs: Move the drawing into the theme,
455         expose everything the theme should need from the window manager.
456
457 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
458
459         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
460           from the call to NativeWindow to avoid walking up the parent chain
461           further than needed (speeds up setting cursors and avoids setting
462           the wrong cursor if a parent has another cursor defined)
463         * Cursor.cs: When loading an icon as cursor, MS uses the center of
464           the icon as hotspot, not what's contained as hotspot in the icon
465           file. This fixes the perceived drawing offset seen with Paint.Net
466         
467 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
468
469         * XplatUIX11.cs: 
470           - Store the calculated rectangle in Hwnd object and use it when 
471             setting the client size
472           - Force Toolwindows to always be type Dock, to ensure they're on top
473
474 2006-05-18  Mike Kestner  <mkestner@novell.com>
475
476         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
477         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
478         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
479         Substantial refactoring to remove confusing nested classes. Coding
480         standard and Get+Set->property refactorings.  Shift to index based
481         highlighting in ComboListBox instead of constantly using IndexOf and
482         Items[]. Add invalidations on resize for DropDownList to fix ugliness
483         in FileDialog growth.  Draw borders manually since Simple mode needs
484         to look like two independent controls.  Make listbox border
485         conditional to DropDownStyle.  Improved OwnerDraw support.
486
487 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
488
489         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
490         Don't set the disposed graphics to null, so we can throw the "right"
491         exception if the graphics is reused later (added a flag to avoid 
492         double disposing). Some behaviours are different under 2.0 and are
493         filled under bug #78448.
494
495 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
496
497         * Control.cs: When double-buffering is enabled, we need to reset
498           our graphics context between paint calls. Otherwise, any 
499           transformations and other alterations on the context will 
500           become cumulative (#77734)
501
502 2006-05-18  Mike Kestner  <mkestner@novell.com>
503
504         * ListView.cs: do focused item selection like MS on clicks. 
505         Rework focus handling for ItemControl so LostFocus invalidates as
506         well.
507         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
508         the ListView ItemControl has focus.
509
510 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
511
512         * XplatUIX11.cs: If client_window ends up being width or height zero
513           due to border settings, move it off window inside whole_window (#78433)
514
515 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
516
517         * Mime.cs: Shrink the mime file cache correctly.
518
519 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
520
521         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
522
523 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
524
525         * XplatUIX11.cs (AddExpose): More sanity checks
526
527 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
528
529         * XplatUIX11.cs:
530           - AddExpose: Don't add expose ranges outside the size of our
531             window
532           - Cast opacity values to Int32 to avoid crashes with certain
533             values
534           - Added disabled code paths that protect against illegal cross-
535             thread painting (Developers.exe)
536
537 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
538
539         * ProgressBar.cs: Invalidate the control when it's resized
540           since block size is based on control size. (#78388)
541
542 2006-05-16  Miguel de Icaza  <miguel@novell.com>
543
544         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
545         of setting the incoming argument to the "reset" value, we set the
546         this.datamember to string.empty (before we were invalidating the
547         incoming data).   
548
549         Fixes 78420
550
551 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
552
553         * Form.cs: Only apply transparency settings after the form
554           is created. (Fixes #77800)
555
556 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
557
558         * ApplicationContext.cs: Grab the HandleDestroyed event so
559           we know when to fire OnMainFormClosed 
560
561 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
562
563         * Application.cs: Introduced sub-class to allow tracking of
564           threads and centralized triggering of the event mess for
565           ThreadExit, AppExit, etc..  (#76156)
566
567 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
568
569         * MimeIcon.cs:
570           - Do not return a null icon index value for a mime subclass.
571             Instead try the main mime type class too.
572           - Seems that some newer distributions don't have a link to some
573             gnome default icons anymore. So check the default gnome dir too.
574           
575
576 2006-05-16  Jackson Harper  <jackson@ximian.com>
577
578         * MdiClient.cs: Don't paint the parent background image if we have
579         our own background image.
580
581 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
582
583         * Control.cs:
584           - PerformLayout: Do not shrink space filled by DockStyle.Fill
585             controls, all filled controls are supposed to overlap (#78080)
586           - UpdateZOrder is supposed to update the control's z-order in the
587             parent's z-order chain. Fixed to behave like that
588           - BringToFront: Removed obsolete code
589           - SendToBack: Simplyfied
590           - SetChildIndex: Trigger layout calculations when Z-order changes
591             since layout is done by z-order
592
593 2006-05-16  Chris Toshok  <toshok@ximian.com>
594
595         [ fixes bug #78410 ]
596         * DataGrid.cs (set_AlternatingBackColor): use
597         grid_drawing.InvalidateCells instead of Refresh().
598         (set_BackColor): call grid_drawing.InvalidateCells.
599         (set_BackgroundColor): use Invalidate instead of Refresh.
600
601         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
602         invalidate the cell area.
603
604 2006-05-15  Chris Toshok  <toshok@ximian.com>
605
606         [ fixes bug #78011 ]
607         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
608         on to DataGridPaintRow.
609         (DataGridPaintRow): take a clip argument, and only draw the cells
610         which intersect it.  same with the not_usedarea.
611
612         * Theme.cs (DataGridPaintRow) add @clip parameter.
613
614         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
615         XplatUI.ScrollWindow.
616         (ScrollToRow): same.
617
618         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
619         with last column which was causing a gray swath to appear with the
620         XplatUI.ScrollWindow code.
621
622 2006-05-15  Chris Toshok  <toshok@ximian.com>
623
624         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
625         use XplatUI.ScrollWindow.
626         (VerticalScrollEvent): use XplatUI.ScrollWindow.
627
628 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
629
630         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
631
632 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
633
634         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
635           file since there are no equivalent X11 cursors
636
637 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
638
639         * MonthCalendar.cs : DateTimePicker should reflect selected date
640           on mouse*up*, not mouse*down*. Fixed originally reported part of
641           bug #76474.
642
643 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
644
645         * TabControl.cs : When argument index is equal or more than tab
646           count, just ignore. Fixed bug #78395.
647
648 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
649
650         * Control.cs: Dispose all child controls when control is diposed (#78394)
651
652 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
653
654         * ColorDialog.cs: Finally it is possible to select the color with
655           the text boxes
656
657 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
658
659         * PrintDialog.cs: Fix typo
660
661 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
662
663         * PrintDialog.cs: PrintDialog is not resizable
664         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
665           color. Made some ToolBar drawing methods protected virtual.
666
667 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
668
669         * PrintDialog.cs: Implementation of the PrintDialog
670
671 2006-05-12  Chris Toshok  <toshok@ximian.com>
672
673         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
674         thumb, instead use MoveThumb.  This has the side effect of making
675         most of the other thumb moving machinery use MoveThumb as well.
676         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
677         need to actually invalidate the rectangle where the new thumb will
678         go.
679         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
680         We force an Update() after, so it's not as fast as it could be,
681         but at least there's zero flicker and no droppings.
682         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
683         (UpdateThumbPos): add another argument (dirty), which says whether
684         or not to calculate/add dirty regions which we later invalidate.
685         For cases where we know we're going to use MoveThumb, we pass
686         false for this.  Otherwise, pass true.
687
688 2006-05-12  Jackson Harper  <jackson@ximian.com>
689
690         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
691         the status bar.
692         
693 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
694
695         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
696           and GetClipRegion methods and UserClipWontExposeParent property.
697         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
698           overriding UserClipWontExposeParent property, setting to false, since
699           Win32 handles the required expose messages to draw our clipped parent
700           areas internally
701         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
702           PaintEventStart to set the user clip region if set.
703         * Control.cs: 
704           - Now internally tracking the Region for the control since we need to
705             store it if the handle is not yet created and only set it when it
706             becomes created. Before setting the region forced handle creation
707           - Added code to draw the parents underneath a user-clipped region
708         * Hwnd.cs: Added UserClip property
709
710 2006-05-12  Chris Toshok  <toshok@ximian.com>
711
712         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
713         (set_Maximum): same.
714         (set_Minimum): same.
715         (set_SmallChange): same.
716         (OnMouseUpSB): remove the call to refresh when releasing the
717         thumb.  We shouldn't need it.
718         
719 2006-05-12  Miguel de Icaza  <miguel@novell.com>
720
721         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
722         AutoSize set to None, we do not need to relayout everything, we
723         just need to invalidate the current region.
724
725         (Draw): Do not draw the entire ClientArea, just redraw the
726         clip area being passed.
727
728         * MdiClient.cs: Make MdiClient constructor with the Form argument
729         internal. 
730
731 2006-05-12  Jackson Harper  <jackson@ximian.com>
732
733         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
734         parents background image,  but strangely not their own.
735         - (DrawStatusBarPanel): Take into account horizontal alignment
736         when drawing the strings and icons.
737
738 2006-05-12  Mike Kestner  <mkestner@novell.com>
739
740         * ListBox.cs: avoid invalidations for focus when the collection is
741         empty. 
742
743 2006-05-12  Chris Toshok  <toshok@ximian.com>
744
745         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
746         invalidate the entire thumb area.  Call InvalidateDirty which
747         limits the redraw to the thumb itself and surrounding pixels.
748
749         * XplatUIX11.cs (ScrollWindow): optimize copying.
750         
751 2006-05-12  Chris Toshok  <toshok@ximian.com>
752
753         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
754         Figure out the positioning/layout in a single pass instead of
755         multiple recursive invocations.  Speeds up the initial display of
756         the data grid.  Also, make many things private that were
757         originally public but unused outside this class.
758
759 2006-05-11  Jackson Harper  <jackson@ximian.com>
760
761         * MdiClient.cs: Improved layout code.
762
763 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
764
765         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
766           not SelectedObject.
767
768 2006-05-11  Chris Toshok  <toshok@ximian.com>
769
770         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
771         union of that will always be {0,0,width,height}.
772
773 2006-05-11  Jackson Harper  <jackson@ximian.com>
774
775         * Form.cs: Match MS's DefaultSize for forms (they must have
776         changed the size in sp2).
777
778 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
779
780         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
781
782 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
783
784         * TextControl.cs : Fixed bug #78109. This incorrect position
785           comparison caused crash on automatic line split.
786         * TextBoxBase.cs : reduce duplicate code.
787
788 2006-05-10  Jackson Harper  <jackson@ximian.com>
789
790         * MdiClient.cs: Active form is only sent to the back when using
791         the Next form functionality, when a form is clicked the current
792         active shouldn't be sent to the back.
793         - Layout the mdi windows when the container is first made visible.
794         * Form.cs: Give the MdiClient a ref to the containing form when we
795         create it.
796         
797 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
798
799         * LinkLabel.cs : link_font could be uninitialized, so populate one
800           before actual use. Fixed bug #78340.
801
802 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
803
804         * XplatUIX11.cs : clipboard format native value is IntPtr.
805           Fixed bug #78283.
806
807 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
808
809         * Control.cs: 
810           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
811             which is passed up the parent chain by DefWndProc
812           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
813             to DefWndProc (#77956)
814         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
815
816 2006-05-10  Jackson Harper  <jackson@ximian.com>
817
818         * MdiClient.cs: We need to remove the controls from the mdi
819         collection, when we close the window.
820         * MdiWindowManager.cs: Special handling of closing mdi windows.
821         * InternalWindowManager.cs: Make the close method virtual so the
822         mdi window manager can handle it specially.
823
824 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
825
826         * DataGrid.cs:
827           - Recalculate grid when the data source has changed
828           - Matches styles provided by user from all data sources types
829         * DataGridTableStyle.cs: For columns that provided by the user set the
830         with the preferred value is there was unassigned.
831         * CurrencyManager.cs: throw OnItemChanged event
832
833 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
834
835         * PictureBox.cs: Don't animate until handle is created. Start animation
836           when handle is created.
837
838 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
839
840         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
841           current codebase.
842         * XEventQueue.cs: We don't need to provide the extra info
843
844 2006-05-10  Jackson Harper  <jackson@ximian.com>
845
846         * MdiClient.cs: If the mdi clients parent form has a background
847         image set, we draw that background image for the mdi area's
848         background.
849
850 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
851
852         * TextBoxBase.cs: Set IBeam cursor (#78347)
853
854 2006-05-10  Mike Kestner  <mkestner@novell.com>
855
856         * ToolBar.cs: fix some text padding issues with ButtonSize
857         calculation. Update the default size to match MS documentation.
858         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
859         button size. Fixes #78296.
860
861 2006-05-10  Mike Kestner  <mkestner@novell.com>
862
863         * ListBox.cs: use is_visible for scrollbar positioning in case the
864         control isn't on screen yet.  Fix off by one with Right vs Width
865         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
866         
867 2006-05-10  Jackson Harper  <jackson@ximian.com>
868
869         * X11Dnd.cs: Drop to a control with another control on top of it.
870         * ToolBar.cs: Work on a copy of the buttons list, so that it can
871         be modified in click handlers. TODO: Look for similar problems in
872         other controls.
873
874 2006-05-09  Jackson Harper  <jackson@ximian.com>
875
876         * Form.cs: Window managers need the old window state when setting
877         window state now.
878         * InternalWindowManager.cs: Allow the base mdi window manager to
879         handle more of the MDI only stuff (like maximize buttons).
880         * MdiWindowManager.cs: Fix some snafus in changing the window
881         state.  Add all the menu functionality, for both popup and
882         maximized menus.
883         * MdiClient.cs: When a new form is selected the currently
884         activated form is sent to the back, this matches MS.
885         - Implement a new method to activate the next mdi child window.
886
887 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
888
889         * Control.cs: 
890           - Added new InternalCapture method to allow controls to prevent
891             the capture behaviour on the click handlers
892           - Switched to use InternalCapture
893         * ComboBox.cs:
894           - Using InternalCapture to prevent mouse captures from being released
895             on mouse button release (Fixes #78100)
896         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
897           returns Form borders if a caption is present. (Fixes #78310)
898
899 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
900
901         * TreeNode.cs: Changed serialization .ctor to not require every field
902           to be present. (#78265)
903         * OwnerDrawPropertyBag.cs: Added serialization .ctor
904
905 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
906
907         * MimeIcon.cs: for is faster than foreach for strings.
908
909 2006-05-05  Mike Kestner  <mkestner@novell.com>
910
911         * CheckedListBox.cs: update check handling code to not use selected.
912         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
913         behavior for visual feedback, motion response, shift/ctrl handling,
914         and properly deal with all 4 selection modes. Updates to bounds
915         handling logic.  Add scroll wheel support. [Fixes #77842]
916
917 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
918
919         * ListView.cs:
920           - Moved adding of Implicit controls into .ctor. That way, subsequent
921             creation of the controls will not cause them to think they are 
922             toplevel windows (fixes #78200 header problem)
923           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
924           - Switched visibility setting of header control to use internal field
925             to avoid triggering handle creation
926           - Now checking if handle is created before causing a refresh when items
927             are added (This makes us now match handle creation time with MS)
928         * Splitter.cs: Removed loading of private splitter cursor, switched to
929           Cursors version now that that is loading the right ones
930         * Cursors.cs: Load proper splitter cursors from resources
931         * Cursor.cs: Added second method of loading resource cursors for the 
932           VS.Net users amongst us
933
934 2006-05-05  Mike Kestner  <mkestner@novell.com>
935
936         * ListView.cs: give header_control a minimum size based on the
937         ListView size.
938
939 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
940
941         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
942           window seems to do that with metacity, so set that type. (#78120)
943
944 2006-05-05  Mike Kestner  <mkestner@novell.com>
945
946         * ListViewItem.cs: fix Details mode checkbox layout bug.
947         * ThemeWin32Classic.cs: draw a ListView column header for unused space
948         at the end of the header, if it exists. [Fixes for #78200]
949
950 2006-05-04  Jackson Harper  <jackson@ximian.com>
951
952         * MdiClient.cs: Add a helper property to get the container form.
953         * MdiWindowManager.cs: We have to make sure to use the menu origin
954         when drawing the icons and buttons, this fixes maximized window
955         icons/buttons on win32.
956         * InternalWindowManager.cs: Reset the restore captions when a
957         window goes from Maximized to Minimized and vice versa. Move the
958         DrawMaximizedButtons into the MdiWindowManager source, tool
959         windows can't be maximized. NOTE: This could use a little
960         refactoring if time ever permits.
961         
962 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
963
964         * TextBox.cs: Add MWFCategoryAttributes
965         * TextBoxBase.cs: Add MWFCategoryAttributes
966         * Form.cs: Add MWFCategoryAttributes
967
968 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
969
970         * Control.cs: Add MWFCategoryAttributes
971         * ScrollableControl.cs: Add MWFCategoryAttributes
972
973 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
974
975         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
976           Divider is true. Fix a little glitch in PropertyToolBar
977           drawing code
978
979 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
980
981         * Control.cs:
982           - Dispose: Call base.Dispose, this causes the disposed event
983             to be fired (and probably other, more important stuff)
984           - SetVisibleCore: Set is_visible to true after creating the
985             window so that the window still gets created invisible (if
986             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
987             to generate a WM_ACTIVE message
988         * Form.cs: Call Dispose when we want to destroy the window, instead of
989           just destroying the handle (Dispose will do that for us)
990         * XplatUIX11.cs:
991           - RootWindow also needs a queue, so we can properly process the
992             property change events from RootWindow (like Activate)
993           - Generatic synthetic WM_ACTIVE message when the active window is
994             being destroyed
995
996 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
997
998         * LinkLabel.cs: Trigger a recalc of our label dimensions when
999           bounds are changed
1000
1001 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1002
1003         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1004           for determining width and height (image might not be assigned if
1005           we're drawing an imagelist)
1006
1007 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1008
1009         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1010         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1011           height from system
1012         * Theme.cs: No longer returns hardcoded menu height, instead calls
1013           new driver method
1014         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1015           on MS (# 78257)
1016
1017 2006-05-01  Mike Kestner  <mkestner@novell.com>
1018
1019         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1020
1021 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1022
1023         * TextBoxBase.cs: Removed Fixme
1024         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
1025
1026 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1027
1028         * XplatUIX11.cs:
1029           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
1030             the rectangle relative to the parent, considering borders. We
1031             don't really want that.
1032           - ScrollWindow: Fixed warning to be more understandable
1033         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
1034           scrollbars and scroll only the visible area
1035         * RichTextBox.cs: Removed debug output
1036
1037 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1038
1039         * NumericUpDown.cs (Text): Just use base
1040         * UpDownBase.cs: Ensure txtView is created before using it
1041
1042 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1043
1044         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
1045           casting to IntPtr to avoid 64bit overflow errors
1046
1047 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1048
1049         * Control.cs:
1050           - AllowDrop: Don't force handle creation.
1051           - CreateHandle: Added call to tell driver if we're allowed to drop
1052
1053 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1054
1055         * FileDialog.cs: Remember the last directory not only for the
1056           current instance but also for new FileDialog instances.
1057
1058 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1059         
1060         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
1061           broke sending async messages
1062
1063 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1064
1065         * XplatUIX11.cs:
1066           - ScrollWindow: Fixed method. We finally generate expose events again
1067             for scrolled areas. This was causing 'garbage' when scrolling
1068             textbox and other controls that used ScrollWindow
1069           - Switched from using the regular queue for paint events to the MS 
1070             model of 'generating' paint events when the queue is empty.
1071             We use the new XQueueEvent.Paint subclass to store which windows
1072             need painting.
1073           - AddExpose now takes the x/y/width/height of the exposed area
1074             and inserts the window into the paint queue if not already there
1075           - InvalidateWholeWindow: Switched to use new AddExpose method
1076           - UpdateMessageQueue: Added which queue to monitor for paint events
1077           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
1078             the unlikely case nothing above handles it. We reset the expose
1079             pending states to get them off the queue.
1080           - GetMessage: Now pulls a paint event if no other events are in the
1081             queue
1082           - Invalidate: Switched to new AddExpose method
1083           - PeekMessage: Updated to understand pending paint events
1084           - UpdateWindow: Fixed logic bug. We were only updating if the window
1085             didn't need updating. Also switched to sending WM_PAINT directly,
1086             like MS does.
1087         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
1088           and random access Remove(). The random access is needed to handle
1089           UpdateWindow() where a WM_PAINT is sent directly without accessing
1090           the queue.
1091         * ScrollBar.cs: Added Update() calls to cause immediate updates to
1092           allow for better feedback when scrolling. Scrollbars are small and
1093           the immediate update should make it 'feel' more responsive without
1094           slowing things down. ScrollBar still needs it's invaliate logic
1095           updated to not always invalidate the whole bar on certain changes.
1096
1097 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1098
1099         * Control.cs:
1100         (BackColor): if the control does not support a transparent background,
1101         return the default backcolor when the parent backcolor is transparent.
1102
1103 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
1104
1105         * Application.cs: Updated to new StartLoop/GetMessage API
1106         * RichTextBox.cs: Provide some output on RTF parsing errors
1107         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
1108           new queue_id argument to GetMessage and PeekMessage to allow faster
1109           handling of per-thread queues in drivers.
1110         * Hwnd.cs: Added Queue tracking and property
1111         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1112         * XEventQueue.cs: Added thread trackingA
1113         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1114         * XplatUIX11.cs:
1115           - Implemented new per-thread queue
1116           - GetMessage: Fixed return/break behaviour on several cases. We were
1117             returning stale messages in some cases, instead of just processing
1118             the next message
1119
1120 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1121
1122         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1123
1124 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1125
1126         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1127           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1128
1129 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1130
1131         * PropertyGridView.cs: Fix drop down width.
1132
1133 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1134
1135         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1136           a mess in DrawToolBar, so I removed one of them.
1137
1138 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1139
1140         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1141           needed (clip). Otherwise we get artifacts.
1142
1143 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1144
1145         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1146           dimension is fixed
1147         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1148           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1149         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1150           if it matches the scale base font (avoids unneeded scaling)
1151
1152 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1153
1154         * X11DesktopColors.cs: One gtk_init_check should be enough
1155
1156 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1157
1158         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1159           match MS behaviour
1160
1161 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1162
1163         * TextBoxBase.cs: 
1164           - Generate OnTextChanged for Backspace even if we're only deleting
1165             the current selection
1166           - When setting the Text property, only select all text if the
1167             control does not have focus when it is being set. Otherwise
1168             just place the cursor at the beginning of the control
1169
1170 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1171
1172         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1173           Added a little helper to draw PropertyGrid ToolBar with a different
1174           border and a different BackColor.
1175         * PropertyGrid.cs: Some background parts didn't get painted with the
1176           correct background color. Added a class that helps us to draw the
1177           correct border for PropertyGridView and a class that helps us to
1178           draw ToolBars with a different backcolor
1179         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1180
1181 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1182
1183         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1184         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1185
1186 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1187
1188         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1189           into the palette entries. Also, since we're working on a copy
1190           we needed to copy the palette back onto the bitmap.
1191         * Cursor.cs: Same fix as XplatUIWin32.cs.
1192
1193 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1194
1195         * ImageListStreamer.cs: Need to read the var (or we're off)
1196
1197 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1198
1199         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1200           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1201           TextBoxBase.cs: Unused var fixes
1202         * AxHost.cs: Small 2.0 fix
1203         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1204           as it seems that is what at least Metacity expects. This will make
1205           icons show up on 64bit platforms. We still have some 64bit size
1206           issues, though, since the startup app window size still won't match.
1207
1208 2006-04-25  Mike Kestner  <mkestner@novell.com>
1209
1210         * *.cs: cleanup newly reported exception var unused warnings.
1211
1212 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1213
1214         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1215           ms
1216
1217 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1218
1219         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1220           image. The image position is always the same, no matter if the
1221           button is pressed or not.
1222
1223 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1224
1225         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1226           selection and set the correct filename for SaveFileDialog.
1227           Patch by Emery Conrad.
1228
1229 2006-04-24  Mike Kestner  <mkestner@novell.com>
1230
1231         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1232         check for item.X outside the ClientRect instead of item.Y. Fixes
1233         #78151.
1234
1235 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1236
1237         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1238         trust that value blindly and do some sanity check. Fixes bug #77814.
1239
1240 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1241
1242         * ImageListStreamer.cs: save the mask as a 1bpp image.
1243
1244 2006-04-21  Mike Kestner  <mkestner@novell.com>
1245
1246         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1247         pass Checked and Indeterminate to the Theme Engine. Improve
1248         encapsulation with ListBox.
1249         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1250         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1251         nested types.  Move all CheckState functionality to CheckedListBox.
1252         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
1253         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
1254         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1255         single base list. Fix scrollbar sizing and placement to mirror MS.
1256         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1257         used.
1258         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1259         for CheckedListBox by using new DrawItemState info.  Center the
1260         checkboxes on the items. Use new StringFormat property.
1261
1262 2006-04-18  Jackson Harper  <jackson@ximian.com>
1263
1264         * Form.cs: MdiChildren don't do default locations the same way as
1265         regular forms.  This prevents a crash when trying to position the
1266         mdi windows.
1267
1268 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
1269
1270         * PropertyGridTextBox.cs: Formatting, copyright
1271         * PropertiesTab.cs: Formatting
1272         * PropertyGrid.cs: Formatting
1273         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
1274           click toggling of values
1275           
1276 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
1277
1278         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1279         * Control.cs (.ctor): verify_thread_handle is static, don't reset
1280           every time a control is created
1281         * Application.cs: Removed obsolete EnableRTLMirroring method
1282
1283 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
1284
1285         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1286         SelectedIndex to -1. Fixes bug #78121.
1287
1288 2006-04-17  Jackson Harper  <jackson@ximian.com>
1289
1290         * Binding.cs: Handle null values for Current and BindingContext.
1291         This occurs when binding is a little delayed.
1292         * CurrencyManager.cs: return null for Current when there are no
1293         items in the list.
1294         - Hookup to the listchanged event on the DataView and update
1295         bindings when the list is changed.  This fixes late binding of
1296         controls.
1297
1298 2006-04-17  Jackson Harper  <jackson@ximian.com>
1299
1300         * X11Dnd.cs:
1301         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1302         Ringenbach.
1303
1304 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
1305
1306         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1307           place
1308         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1309           with the correct ButtonState
1310
1311 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
1312
1313         * XplatUIX11.cs: Improved distinguishing between window types to
1314           tell the WM a type closer to what the app wants (Fixes #78107)
1315
1316 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1317
1318         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1319           GrabHandle
1320
1321 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1322
1323         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1324           drawing code to reflect the size grip changes
1325
1326 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1327
1328         * ImageListStreamer.cs: fix handling of the mask that follows the main
1329         bitmap when deserializing and serialize it properly. The generated mask
1330         should better be a 1bpp image, but I'll do that later.
1331
1332 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1333
1334         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1335           path doesn't fit into some of our Current.Places
1336
1337 2006-04-13  Jackson Harper  <jackson@ximian.com>
1338
1339         * ComboBox.cs: Use borders instead of drawing our own decorations,
1340         try to obey correct rules for heights.
1341         * Theme.cs:
1342         * ThemeNice.cs:
1343         * ThemeClearLooks.cs:
1344         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1345         this is now handled by borders.
1346         - Remove unused DrawListBoxDecorationSize method.
1347         
1348 2006-04-13  Mike Kestner  <mkestner@novell.com>
1349
1350         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1351         reported by Alex.
1352
1353 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1354
1355         * ThemeWin32Classic.cs: 
1356           - Fixed CPDrawStringDisabled
1357           - Corrected drawing of disabled menu items
1358           - Fixed drawing of disabled radio buttons (bug #78095)
1359           - Draw check in a disabled CheckBox with color ControlDark 
1360
1361 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1362
1363         * Form.cs: Use the provided width when calculating the menu size;
1364           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1365           and ClientSize.Width won't be updated yet
1366         * Application.cs: Use Visible instead of Show() to make form visible,
1367           this way we create the handle later and menusize is considered
1368
1369 2006-04-12  Mike Kestner  <mkestner@novell.com>
1370
1371         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1372         reporting.
1373
1374 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1375
1376         * TextBox.cs: Implemented context menu
1377
1378 2006-04-12  Mike Kestner  <mkestner@novell.com>
1379
1380         * ListView.cs: implement box selection. fixes #77838.
1381         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1382
1383 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1384
1385         * XplatUIX11.cs: Added setting of window type when transient window
1386           is created (metacity would move it otherwise)
1387         * X11Structs.cs: Added WINDOW_TYPE atoms
1388         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1389           background (the control is Opaque but still wants transparent
1390           backgrounds)
1391
1392 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1393
1394         * Control.cs: Added OnPaintBackgroundInternal to allow controls
1395           that set Opaque but don't mean it (like all ButtonBase-derived
1396           controls) to still draw their background
1397         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1398           the background
1399
1400 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1401
1402         * Control.cs (PaintControlBackground): Set the graphics object
1403           on our PaintEvent to null to prevent it from being disposed
1404           when the PaintEvent gets disposed
1405
1406 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
1407
1408         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1409         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1410
1411 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1412
1413         * Control.cs: 
1414           - Added transparency check to BackColor property. Transparent
1415             backgrounds are only allowed if the control styles permit it
1416           - Added recursive painting of parent control background and
1417             foreground if a control with a transparent backcolor is drawn
1418             (Thanks to Tim Ringenback for providing his 'hack' as a base
1419              for this patch) Fixes #77985 and #78026.
1420           - Added Opaque style check before calling OnPaintBackground, no
1421             need to draw the background if the control is opaque
1422           - Removed ControlAccessibleObject owner variable (inherited from
1423             base, no need to define again)
1424           - Added some documentation links explaining the drawing events
1425             and styles
1426
1427 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1428
1429         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1430           that the affected control is the located at the left border of our
1431           parent (Fixes #77936)
1432
1433 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1434
1435         * TextBoxBase.cs: When rendering disabled or readonly controls,
1436           draw the background with 'Control' instead of 'Window' color as
1437           long as the user hasn't specifically set a color
1438
1439 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1440
1441         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1442           since that won't be updated if the user types text (only if it's
1443           programatically set)
1444
1445 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1446
1447         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1448           layout changes do to app-triggered resizes will have the proper
1449           display rectangle for layout
1450
1451 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1452
1453         * ThemeWin32Classic.cs:
1454           - Make use of the SystemBrushes and SystemPens wherever possible
1455           - Corrected some highlight colors
1456           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1457             drawing
1458         * Theme.cs: Added Empty field to CPColor struct
1459
1460 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1461
1462         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1463           is displayed when calculating the display rectangle. Thanks to Mike
1464           for teaching me the err of my ways.
1465
1466 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1467
1468         * ScrollableControl.cs:
1469           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1470             (instead of 0,0) and we now return the real width/height instead of
1471             just the clientrectangle, adjusted for padding. The rectangle is
1472             now cached and created by the new CalculateDisplayRectangle method.
1473           - Created new CalculateDisplayRectange method, which basically does
1474             what get_DisplayRectangle() did originally, but now using the 
1475             right edge instead of DisplayRectangle to determine the size of
1476             our scrollbars
1477           - get_Canvas(): Fixed it to properly calculate canvas for 
1478             right/bottom controls which seem to be placed to the right/bottom
1479             of any controls that have a fixed location
1480           - Removed TODO that's taken care of
1481           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1482             and SetDisplayRectLocation according to new MSDN2 docs
1483           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1484             event when that is called, this is added for compatibility
1485           - ScrollControlIntoView(): Implemented.
1486           - Switched scrollbars to be implicit, they shouldn't be selectable
1487         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1488           call it when the active control is set/changed
1489         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1490         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1491           implicit_control variable (used for native Win32 message generation)
1492         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1493           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1494         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1495         * XplatUIStructs.cs: Added ScrollBarCommands enum
1496
1497 2006-04-10  Jackson Harper  <jackson@ximian.com>
1498
1499         * ButtonBase.cs:
1500         * CheckedListBox.cs:
1501         * ComboBox.cs:
1502         * DataGrid.cs:
1503         * DataGridView.cs:
1504         * Form.cs:
1505         * GroupBox.cs:
1506         * ListBox.cs:
1507         * PrintPreviewControl.cs:
1508         * ProgressBar.cs:
1509         * PropertyGrid.cs:
1510         * Splitter.cs:
1511         * StatusBar.cs:
1512         * TrackBar.cs:
1513         * UpDownBase.cs: Fixup base event overrides.
1514         
1515 2006-04-06  Mike Kestner  <mkestner@novell.com>
1516
1517         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1518         all user-initiated value changes to min <= value <= max-thumbsz+1.
1519         (set_Value): check for vert/horiz when calculating new thumb position.
1520         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1521         like MS does.
1522         (OnMouseMoveSB): refactor the thumb dragging code and refine
1523         invalidation logic to reduce flicker.
1524         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1525         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1526         (UpdateThumbPosition): small code readability cleanup
1527
1528 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1529
1530         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1531           different
1532
1533 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1534
1535         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1536
1537 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1538
1539         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1540         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1541           This dramatically reduces the number of Pen.Dispose calls. 
1542           Where possible call ResPool methods only once instead of calling it
1543           over and over again (for example for the same color).
1544
1545 2006-04-06  Mike Kestner  <mkestner@novell.com>
1546
1547         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1548         Also remove an unused private field on the collection. Fixes #77972.
1549
1550 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1551
1552         * ThemeNice.cs: Added ToolBar drawing code
1553
1554 2006-04-06  Mike Kestner  <mkestner@novell.com>
1555
1556         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1557         I'm assuming that means we need to look up the toplevel for the
1558         provided control. Fixes the crash trace in #77911 but exposes another
1559         crash in some strange reflection usage in NDocGui.
1560
1561 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1562
1563         * ThemeNice.cs: Gave it a little silver touch and added Images
1564           method
1565         * FontDialog.cs: FontDialog is not resizable
1566         * FileDialg.cs: Added SizeGripStyle.Show
1567
1568 2006-04-05  Jackson Harper  <jackson@ximian.com>
1569
1570         * KeyboardLayouts.cs: Remove warning.
1571
1572 2006-04-05  Jackson Harper  <jackson@ximian.com>
1573
1574         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1575         all of our controls instead of Paint +=.
1576         * ListBox.cs:
1577         * ListView.cs:
1578         * MenuAPI.cs:
1579         * MessageBox.cs:
1580         * NotifyIcon.cs:
1581         * ProgressBar.cs:
1582         * ScrollBar.cs:
1583         * Splitter.cs:
1584         * StatusBar.cs:
1585         * TabControl.cs:
1586         * TextBoxBase.cs:
1587         * ToolBar.cs:
1588         * TrackBar.cs:
1589         * UpDownBase.cs:
1590         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1591         use OnPaintInternal. Remove Width/Height and Visible checks in
1592         paint handler, this is done at a higher level now.
1593         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1594         * PaintEventArgs.cs: Add a handled flag so controls that don't
1595         want anymore painting after OnPaintInternal can make sure OnPaint
1596         isn't called.
1597
1598 2006-04-05  Mike Kestner  <mkestner@novell.com>
1599
1600         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1601         state of the form, so that we don't process events when Modal dialogs
1602         are up. Fixes #77922.
1603
1604 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1605
1606         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1607           checking is done.
1608
1609 2006-04-05  Mike Kestner  <mkestner@novell.com>
1610
1611         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1612
1613 2006-04-05  Mike Kestner  <mkestner@novell.com>
1614
1615         * ListView.cs (HeaderMouseMove): null guarding for the over column
1616         when setting up the drag_to_index.  Fixes #78015.
1617
1618 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1619
1620         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1621           in the taskbar. Transient windows seem to accomplish that.
1622
1623 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1624
1625         * Form.cs:
1626           - Re-enabled CreateParams.X/Y code for FormStartPosition
1627           - Added code for manual placement when creating the Control
1628           - Incomplete patch to treat MDI forms differently when
1629             setting the ClientSizeCore. (Still need to figure out handling
1630             x/y coords there)
1631         * XplatUIX11.cs:
1632           - When we're explicitly setting the X/Y position of a non-Child
1633             window, let the WM know. Metacity really wants this.
1634
1635 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1636
1637         * ThemeNice.cs: Added CPDrawButton
1638
1639 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1640
1641         * ThemeNice.cs: Changed the color for focused buttons and activated
1642           the arrows for small scroll buttons.
1643
1644 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1645
1646         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1647           anymore. Changed some method modifiers to protected (virtual)
1648         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1649           changes
1650         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1651           Updated drawing of menus, buttons and progressbars; added
1652           CPDrawBorder3D 
1653
1654 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1655
1656         * ImageListStreamer.cs: implemented serialization/deserialization
1657         of the images.
1658
1659 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1660
1661         * ThemeWin32Classic.cs:
1662           - Removed all the DrawFrameControl stuff; CPDrawButton,
1663             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1664             inside the methods
1665           - Updated and corrected the drawing code of CPDrawButton,
1666             CPDrawCheckBox and CPDrawRadioButton to better match ms
1667           - Updated theme checkbox and radiobutton code to use the CP*
1668             methods
1669
1670 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1671
1672         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1673           bug is fixed
1674
1675 2006-03-31  Jackson Harper  <jackson@ximian.com>
1676
1677         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1678         sometimes.
1679         * UpDownBase.cs: Don't CreateGraphics manually, use a
1680         Refresh. Ideally we would invalidate the correct areas here.
1681
1682 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1683
1684         * XplatUIX11.cs: 
1685           - We now track the mapping state of windows. If a window (or 
1686             one of it's parents) is not mapped we no longer permit
1687             WM_PAINT messages to be generated since we'd otherwise get 
1688             lots of BadMatch X errors. Jackson did all the work figuring
1689             out the problem.
1690           - Destroying the caret if the window it's contained in is 
1691             destroyed. Can't use regular DestroyCaret method since it
1692             might fall into a drawing function (trying to remove the
1693             caret) and with that generate new BadMatch errors. Again,
1694             Jackson tracked this down.
1695           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1696             make sure we send the messages to all windows. (The old code
1697             would send the WM_DESTROY to the window, and then all child
1698             windows would be 'gone' because the WM_DESTROY handle lookup
1699             would no longer find the destroyed window)
1700         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1701         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1702
1703 2006-03-31  Jackson Harper  <jackson@ximian.com>
1704
1705         * ScrollableControl.cs: Dont recalc if we are not visible.
1706
1707 2006-03-31  Mike Kestner  <mkestner@novell.com>
1708
1709         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1710         the visibility branch.
1711
1712 2006-03-31  Jackson Harper  <jackson@ximian.com>
1713
1714         * ScrollBar.cs: Cap values when incrementing/decrementing.
1715
1716 2006-03-31  Mike Kestner  <mkestner@novell.com>
1717
1718         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1719         * ToolTip.cs: guard against timer expirations with no active control.
1720         Not sure why it happened.
1721
1722 2006-03-31  Mike Kestner  <mkestner@novell.com>
1723
1724         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1725         text.
1726         * ToolTip.cs: Position the tooltip based on where the cursor is at
1727         popup time, not at MouseEnter time.  Add a Down state so that we don't
1728         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1729         positioning offset. Lookup DisplaySize at positioning time, since it
1730         can theoretically change during invocation.
1731         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1732         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1733
1734 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1735
1736         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1737           Fixes behaviour when the Text property of the box is String.Empty
1738
1739 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1740
1741         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1742           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1743           a window)
1744
1745 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1746
1747         * FileDialog.cs: Visual enhancement for the popup buttons in 
1748           PopupButtonPanel
1749
1750 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1751
1752         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1753           code
1754
1755 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1756
1757         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1758           highlighted menu items to match ms
1759
1760 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1761
1762         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1763
1764 2006-03-30  Mike Kestner  <mkestner@novell.com>
1765
1766         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1767         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1768         go active to account for HotLight to Selected transition.
1769         * MenuItem.cs: add internal Selected prop. Fill out the Status
1770         property by calculating it from item info. Add HotLight,
1771         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1772
1773 2006-03-30  Mike Kestner  <mkestner@novell.com>
1774
1775         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1776
1777 2006-03-29  Jackson Harper  <jackson@ximian.com>
1778
1779         * Form.cs: Implement TODO.
1780
1781 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1782
1783         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1784           missing proper dialog setup in the constructor
1785
1786 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1787
1788         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1789         * Control.cs:
1790           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1791           - Fixed ResetBindings and removed TODO
1792           - Added check for cross-thread calls to get_Handle()
1793           - Added Marshaller attribute for set_Font to satisfy class status
1794         * FontDialog.cs: Removed TODOs that seemed implemented
1795         * UpDownBase.cs: Removed unneeded TODO and Fixme
1796         * MessageBox.cs: Implemented support for Default button and removed TODO
1797         * FileDialog.cs: Removed obsolete TODO
1798         * DomainUpDown.cs: Removed obsolete TODO
1799         * ButtonBase.cs: Removed obsolete TODO
1800         * XplatUIWin32.cs: Removed obsolete TODO
1801         * Form.cs:
1802           - Removed obsolete TODO
1803           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1804             internal status updates
1805           - Making sure the active control is selected when the control is created
1806         * CurrencyManager.cs: Removed obsolete TODO
1807
1808 2006-03-29  Mike Kestner  <mkestner@novell.com>
1809
1810         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1811         of PrintPreviewDialog and RichTextBox.
1812
1813 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1814
1815         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1816           DarkDark, Light and LightLight colors for a specific color
1817         * ThemeWin32Classic.cs:
1818           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1819             Appearance = Button 
1820           - Make use of the new ResPool helper CPColor
1821           - Draw ProgressBar and StatusBar with correct 3D borders
1822
1823 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1824
1825         * ColorDialog.cs: Return selected color. Fixes bug #77940.
1826
1827 2006-03-28  Mike Kestner  <mkestner@novell.com>
1828
1829         * ListView.cs: fix Icon layout to plan for scrollbar widths when
1830         calculating col/row counts.
1831
1832 2006-03-28  Mike Kestner  <mkestner@novell.com>
1833
1834         * ColumnHeader.cs:
1835         * ListView.cs:
1836         * ListViewItem.cs:
1837         * Menu.cs: 
1838         switch to explicit interface method implementation for some methods
1839         corcompare identifies as inconsistent with MS.
1840
1841 2006-03-28  Mike Kestner  <mkestner@novell.com>
1842
1843         * MainMenu.cs: 
1844         * Menu.cs:
1845         add a few missing methods from the class status output.
1846
1847 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
1848
1849         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1850           correct.
1851
1852 2006-03-28  Mike Kestner  <mkestner@novell.com>
1853
1854         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1855
1856 2006-03-27  Mike Kestner  <mkestner@novell.com>
1857
1858         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1859         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1860
1861 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
1862
1863         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1864
1865 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1866
1867         * ThemeWin32Classic.cs:
1868           - GroupBox: Inserted a little gap between the text and the lines
1869             on the right side
1870           - Made the code in CPDrawBorder3D more readable
1871           - Corrected the drawing location of the up and down arrows in 
1872             CPDrawScrollButton
1873
1874 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1875
1876         * ControlPaint.cs: Corrected line widths in DrawBorder for
1877           ButtonBorderStyle Inset and Outset
1878
1879 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1880
1881         * ThemeWin32Classic.cs:
1882           - Rewrote the totally broken CPDrawBorder3D method. That was
1883             one of the main problems for the terrific ThemeWin32Classic
1884             look
1885           - Updated and corrected Button drawing
1886           - Correct the dimensions of the SizeGrip to match ms ones
1887           - Removed a small drawing glitch in DrawComboBoxEditDecorations
1888         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1889           Border3DStyle.Sunken to match ms.
1890
1891 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1892
1893         * ThemeWin32Classic.cs: First small part of the "de-uglify
1894           ThemeWin32Classic" effort, SizeGrip
1895
1896 2006-03-24  Jackson Harper  <jackson@ximian.com>
1897
1898         * XplatUIX11.cs: Give a max idle time of one second, this matches
1899         MS and forces an Idle event every second when there are no other
1900         events in the queue.
1901
1902 2006-03-24  Mike Kestner  <mkestner@novell.com>
1903
1904         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1905         * ListView.Item.cs: fix layout issues with null image lists and images
1906         smaller than checkbox size.
1907         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1908         mode like MS does.  It's weird, but consistent.  ;-)
1909         Fixes #77890.
1910
1911 2006-03-24  Mike Kestner  <mkestner@novell.com>
1912
1913         * ListView.cs: Scroll wheel support for the item control.  Fixes
1914         #77839.
1915
1916 2006-03-23  Jackson Harper  <jackson@ximian.com>
1917
1918         * ScrollableControl.cs: Special case negative sized areas, not
1919         zero.
1920         * MonthCalendar.cs: Save the rect of the clicked date so we can
1921         use it for invalidation.
1922         - Try to cut down on the number of invalidates
1923         - Invalidate the rect the mouse is over and was over when moving
1924         the mouse, so we get the focus box following the cursor.
1925
1926 2006-03-23  Mike Kestner  <mkestner@novell.com>
1927
1928         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1929         focus rectangle drawing. Fixes #77835.
1930
1931 2006-03-23  Mike Kestner  <mkestner@novell.com>
1932
1933         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1934         the if and else if and reverting back to the original == check on the
1935         None conditional.
1936
1937 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1938
1939         * FontDialog.cs: Update the example panel if the selected index of
1940           the fontListBox changes.
1941
1942 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1943
1944         * FileDialog.cs: Make FileDialog remember which directory it was in
1945           last in the same execution.
1946
1947 2006-03-22  Mike Kestner  <mkestner@novell.com>
1948
1949         * FileDialog.cs: make the DropDownMenu on the toolbar display
1950         RadioChecks since they are mutually exclusive and that's what MS does.
1951
1952 2006-03-22  Mike Kestner  <mkestner@novell.com>
1953
1954         * Theme.cs: add Color param to CPDrawMenuGlyph.
1955         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1956         checks and radio marks and arrows are visible on highlighted items.
1957         * ControlPaint.cs: update to use new Theme signature.
1958
1959 2006-03-22  Mike Kestner  <mkestner@novell.com>
1960
1961         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1962         is active. Fixes #77870.
1963
1964 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1965
1966         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1967           to be focused/selected after startup
1968
1969 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1970
1971         * ColorDialog.cs: 
1972           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1973             CustomColors and ShowHelp properties
1974           - Some internal rewrites to get better results when using the
1975             ColorMatrix
1976
1977 2006-03-22  Mike Kestner  <mkestner@novell.com>
1978
1979         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1980         HoverSelection.  Fixes #77836.
1981
1982 2006-03-22  Mike Kestner  <mkestner@novell.com>
1983
1984         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
1985         ToggleButtons.  (De)Sensitize the Back button around a stack count of
1986         1, not 0.  Update ButtonSize based on a pixel count of the win32
1987         control.  Adjust the toolbar size/location for new button size.
1988
1989 2006-03-22  Jackson Harper  <jackson@ximian.com>
1990
1991         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1992         true.
1993         * ScrollBar.cs: When doing increments and decrements we need to
1994         set the Value property so that ValueChanged gets raised. A
1995         possible optimization here would be to make an internal SetValue
1996         that doesn't invalidate immediately.
1997         * ToolTip.cs: Tooltips get added to their container (when
1998         supplied) so they get disposed when the container is disposed.
1999         - Don't create tooltips for String.Empty. This prevents all these
2000         little 2-3 pixel windows from showing up when running nunit-gui
2001         and driving me mad.
2002         * Form.cs: Don't set topmost when setting the owner if the handles
2003         haven't been created yet.  The topmost set will happen when the
2004         handles are created.
2005
2006 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2007
2008         * XplatUIX11.cs:
2009           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2010           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2011             visible (to allow them to recalculate their sizes)
2012
2013 2006-03-21  Mike Kestner  <mkestner@novell.com>
2014
2015         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2016         methods. Removed a ton of redundant code.  Still not really happy with
2017         the border rendering, but I think that's mainly because of the
2018         ControlDarkDark being black instead of a dark grey. Depending on how 
2019         close we want to be, we might want to revisit those color choices.
2020         Among the new features added during the refactor were DropDownArrow
2021         pressed rendering, Disabled image rendering.  Proper flat appearance
2022         boundary rendering.  Removed the Divider and Wrapping dividers since I
2023         can't figure out any combination of themes and conditions to make the
2024         MS control draw a horizontal line on a toolbar despite what the
2025         Divider property docs indicate.
2026         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
2027         conditions and incorrect layout.  Updated to coding standard.
2028         * ToolBarButton.cs: refactored layout and positioning code from
2029         ToolBar to here.  Invalidate wherever possible instead of forcing
2030         redraws of the whole toolbar. 
2031         (Known remaining issues: explicit ButtonSize smaller than provided
2032         images.)
2033
2034 2006-03-21  Mike Kestner  <mkestner@novell.com>
2035
2036         * ContextMenu.cs (Show): use the position parameter instead of just
2037         showing at the MousePosition.
2038
2039 2006-03-21  Jackson Harper  <jackson@ximian.com>
2040
2041         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
2042         control handle this.
2043         * TreeNodeCollection.cs: If we are clearing the root node we need
2044         to reset top_node so calcs can still happen.
2045         * ThemeWin32Classic.cs: This is a Flags so we need to check
2046         properly.
2047         
2048 2006-03-21  Jackson Harper  <jackson@ximian.com>
2049
2050         * DataGrid.cs: Create columns when the binding context has been
2051         changed.
2052         * X11Structs.cs: Keysyms are uints.
2053         - Add size to fix build.
2054
2055 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
2056
2057         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2058           XplatUIOSX.cs: 
2059           - Added ResetMouseHover method to allow controls to retrigger
2060             hovering if they need it more than once
2061           - Implemented MouseHoverTime and MouseHoverSize properties
2062         * Timer.cs: Start() must reset the interval
2063         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
2064           properties
2065
2066 2006-03-21  Jackson Harper  <jackson@ximian.com>
2067
2068         * X11Keyboard.cs: improved layout detection. Move the nonchar
2069         tables into this file.
2070         * KeyboardLayouts.cs: Move the tables into resource files.
2071
2072 2006-03-21  Mike Kestner  <mkestner@novell.com>
2073
2074         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2075
2076 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
2077
2078         * Mime.cs: Various speed optimizations. Looking up mime types
2079           is now 2 times faster than before
2080
2081 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
2082
2083         * CreateParams.cs: Added internal menu field
2084         * Control.cs: 
2085           - Switched call order for UpdateBounds; now we always call
2086             the one that also takes ClientSize, and we're calculating the 
2087             client size via driver method in the others. The previous
2088             method of tracking client size by difference wasn't working
2089             for forms where even the starting client size wouldn't match
2090             the overall form size (due to borders) (Part of fix for #77729)
2091           - CreateParams(): Do not use parent.Handle unless the handle is
2092             already created. Causes havoc with Nexxia and throws off our
2093             creation of controls
2094         * XplatUIX11.cs:
2095           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
2096           - Switched handling of ConfigureNotify over to new PerformNCCalc 
2097             method (consolidates code)
2098           - Changed RequestNCRecalc to use new PerformNCCalc method
2099           - Added calls to RequestNCRecalc when menus and borders are changed
2100             to allow app to set NC size. (Part of fix for #77729) This matches
2101             when MS send a WM_NCRECALC on Win32 windows.
2102           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
2103             (Part of fix for #77729). This matches what MS does, they also
2104             send that message when the form is made visible.
2105           - XException.GetMessage: Improved usability of X errors by including
2106             a translation of the window into Hwnd and Control class
2107           - Improved debug info for window creation, reparenting and destruction
2108           - Created helper method WindowIsMapped() [Currently not used]
2109         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2110         * Form.cs:
2111           - CreateParams: Now setting our menu on the new internal menu field
2112           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2113             avoid calculating the same property twice
2114         * Hwnd.cs:
2115           - Improved usability of ToString() for debugging purposes
2116           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2117             determine the height of the menu, instead of just the font. This
2118             required to also create a graphics context and to keep a bmp 
2119             around (for performance reasons)
2120
2121 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2122
2123         * MenuAPI.cs: Added OnMouseUp method
2124         * Form.cs:
2125           - Now remembering the requested client size, avoids size errors
2126           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2127             instead of base if the menu is active. This is required due to
2128             control now capturing and releasing on down/up and it would
2129             prematurely release our menu capture
2130
2131 2006-03-17  Jackson Harper  <jackson@ximian.com>
2132
2133         * KeyboardLayouts.cs: Add the czech layouts.
2134
2135 2006-03-16  Jackson Harper  <jackson@ximian.com>
2136
2137         * Control.cs: Use the viewport space when sizing not the controls
2138         client size, so things like ScrollableControl that effect the
2139         viewport size (when scrollbars are added) are computed correctly.
2140         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2141         of ManagerEntrys.
2142         - Handle creating BindingManagers for null data sources.
2143         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2144         source, otherwise when rows are added they are added to the 'fake'
2145         datasource and we will crash when trying to set the position in
2146         those rows.
2147         - Use Implicit scrollbars on the datagrid so they arent
2148         selectable.
2149         
2150 2006-03-16  Jackson Harper  <jackson@ximian.com>
2151
2152         * Binding.cs:
2153         * InternalWindowManager.cs:
2154         * MdiWindowManager.cs:
2155         * X11Keyboard.cs: I really want Mike to love me again (fix
2156         compiler warnings).
2157
2158 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2159
2160         * DataGrid.cs:
2161           - OnMouseDown: Switch to editing mode when clicking on the cell
2162                          even if we're clicking on the cell that's currently 
2163                          selected
2164           - ProcessGridKey: Left/Right now wrap like MS.Net does
2165           - ProcessGridKey: Tab now knows to add a new row when tab is
2166                             pressed in the cell of the last column of the 
2167                             last row
2168           - ProcessGridKey: Enter now adds another row  if pressed in the last
2169                             row and selectes the new row, same column cell
2170           - ProcessGridKey: Home/End navigate columns, not rows, like 
2171                             originally implemented
2172           - Broke ProcessKeyPreview code out into an extra Internal method
2173             so it can be called from the edit code
2174         * DataGridTextBox.cs (ProcessKeyMessage):
2175           - Switched to accept Tab keypresses
2176           - Added F2 handling to allow jumping to the end of the edited cell
2177           - Added logic to allow moving caret left/right inside edited cell
2178             and making the edited cell jump when the caret hits cell borders
2179           - Tab and Enter are now passed to the datagrid after being handled
2180         * TextBoxBase.cs:
2181           - Removed capture code now that Control handles it
2182           - set_SelectionStart now ensures caret is visible
2183
2184 2006-03-16  Jackson Harper  <jackson@ximian.com>
2185
2186         * TrackBar.cs: Debackwards the increment/decrement for handling
2187         mouse clicks on the bar with vertical trackbars.
2188         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2189         bottom to match MS.
2190
2191 2006-03-16  Mike Kestner  <mkestner@novell.com>
2192
2193         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2194         consistent with the MS control. Fix a bug in
2195         SelectedListViewItemCollection.Clear that was pissing me off for the
2196         better part of a day because the collection was being altered
2197         underneath us as we walked the list.
2198
2199 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2200
2201         * Control.cs: Not sure how we could miss this so long, but it seems
2202           that MS.Net has Capture set all the way from before calling 
2203           OnMouseDown through sending the mouse events until after
2204           OnMouseUp. This will fix DataGrid's selection being set to end
2205           at the location of the MouseUp.
2206
2207 2006-03-15  Jackson Harper  <jackson@ximian.com>
2208
2209         * BindingContext.cs: Check the binding after its added so that it
2210           can initialize the binding managers and hookup to events.
2211         * Binding.cs: Data members seem to sometimes include rows/cols in
2212           the format Row.Column we now take this into account.
2213           - Hookup to the position changed event so we can update the
2214           control when the position has changed in the data set.
2215         * CurrencyManager.cs: Take into account the row/col naming
2216           convention when creating dataset tables.
2217         * BindingContext.cs: Using a newer better way of storing
2218           datasource/datamember pairs.  Hopefully this better matches MS for
2219           looking up binding managers.
2220
2221
2222 2006-03-15  Jackson Harper  <jackson@ximian.com>
2223
2224         * BindingContext.cs: The currency manager needs the data member
2225         name, if the member is a data set we use the name to find the
2226         correct table.
2227         * CurrencyManager.cs: When creating the list prefer an IList over
2228         an IListSource.
2229         - Attempt to create a DataTable from a DataSet (TODO: might need
2230         some better error checking here, although MS doesn't seem to have much)
2231         - If we have a DataTable create a view and use it as our list.
2232
2233 2006-03-15  Mike Kestner  <mkestner@novell.com>
2234
2235         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2236         keyboard navigation. Support Up/Down/Left/Right selection correctly
2237         for all 4 View modes.
2238         * ListViewItem.cs: add internal row/col fields for icon layouts.
2239
2240 2006-03-15  Jackson Harper  <jackson@ximian.com>
2241
2242         * TabControl.cs: Redraw the tabs when we resize so their newly
2243         calculated sizes are drawn on screen.
2244         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2245         composite characters.
2246         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2247         - filter events so that composite characters can be created
2248         patches by peter
2249         * X11Structs.cs: Add XIMProperties enum.
2250
2251 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2252
2253         * Control.cs (BringToFront, SendToBack): Don't use window or handle
2254           unless it's created
2255
2256 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2257
2258         * Control.cs (PerformLayout): We don't need to consider visiblity
2259           for anchoring, only for docking. This fixes 'whacky' alignment
2260           in listbox and other controls that use implicit scrollbars after
2261           the previous PerformLayout patch
2262         * ListBox.cs: Switched to use implicit scrollbars
2263           
2264 2006-03-14  Mike Kestner  <mkestner@novell.com>
2265
2266         * ToolBar.cs: 
2267         * VScrollBar.cs:
2268         - chain up the "new event" overrides to base and use
2269         OnEvent to raise them.  Part of fix for bug #76509.
2270
2271 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
2272
2273         * FileDialog.cs: Do not select an item in the parent directory
2274           on backspace
2275
2276 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2277
2278         * Control.cs (PerformLayout): It would seem that we considered
2279           invisible windows for our layout. Not quite the right thing
2280           to do. Now we don't any longer, thereby fixing bug #76889.
2281
2282 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2283
2284         * Control.cs (CanFocus): I goofed. A control can have focus 
2285           even though it's not selectable. Made it match MS docs.
2286
2287 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2288
2289         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2290           center by default (fixes #76895)
2291         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
2292           all uses of Border3DSides.All with the explicit ORd together
2293           Left|Right|Top|Bottom because I assume that nobody was aware 
2294           that All also implies a center fill. Most places I checked had
2295           a fill right above.
2296         * ProgressBarStyle.cs: Added
2297
2298 2006-03-13  Mike Kestner  <mkestner@novell.com>
2299
2300         * ListView.cs: fix breakage in drag shadow header positioning 
2301         from Peter's csc compilation fix.
2302
2303 2006-03-13  Mike Kestner  <mkestner@novell.com>
2304
2305         * ListView.cs: fix NRE produced by backspacing twice in a focused
2306         FileDialog.
2307
2308 2006-03-13  Mike Kestner  <mkestner@novell.com>
2309
2310         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2311
2312 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2313
2314         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2315           be changed
2316         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2317           the allowed size before making programmatic size changes
2318
2319 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
2320
2321         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
2322           set, metacity is broken and will still use the emty sizes in 
2323           the struct. (Fix for #77089)
2324
2325 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2326
2327         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2328           WindowExStyles and marked both enums as Flags
2329         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2330           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2331           to match WindowStyles split
2332         * XplatUIX11.cs:
2333           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2334           - Updated to match WindowStyles split
2335         * XplatUIWin32.cs:
2336           - Fixed FosterParent creation, was using ExStyle on the Style field
2337             (This should help with Popup focus issues)
2338           - Updated to match WindowStyles split
2339
2340 2006-03-13  Jackson Harper  <jackson@ximian.com>
2341
2342         * MdiWindowManager.cs: Use the system menu height. Fixes some
2343         strange sizing issues.
2344
2345 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2346
2347         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2348         * TextBoxBase.cs:
2349           - Scroll to caret after inserting text (#77672)
2350           - Make scroll range one pixel higher, fixes off-by-one error (and
2351             makes underlines visible on the last line)
2352
2353 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2354
2355         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2356           the keyboard state from being stuck with keys in 'pressed' state when
2357           focus is switched away via keyboard
2358         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2359           reset the keyboard if no X11 KeyUp events are expected to come
2360         * X11Structs.cs: Switched type of Visible to bool to match driver
2361
2362 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2363
2364         * TextControl.cs:
2365           - Switched caret to be just 1 pixel wide, matches MS and looks less
2366             clunky
2367           - Moved caret display 1 pixel down from the top of the control
2368             to improve view
2369           - InsertCharAtCharet: Update the selection start if moving the caret
2370             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2371           - No longer always creating the caret when the caret methods are
2372             called. Only the actual ShowCaret/HideCaret will do that now
2373           - Only setting caret visible if the owner control has focus
2374           - UpdateView: Added invalidation-shortcut logic for center and right 
2375             aligned text. Previously we'd update all according to the left
2376             logic which caused drawing errors. Also fixed height of invalidated
2377             areas, now properly invalidating the whole area (was off-by-one)
2378           - owner_HandleCreated: Always generate the document when the
2379             handle is created; this ensures that 
2380         * TextBoxBase.cs:
2381           - Fixed situation where caret would disappear under the right
2382             window border, also improved scrolling behaviour on left-
2383             aligned textboxes
2384           - Fixed right-aligned textboxes to have a border to the
2385             right instead of the caret being under the right border
2386         * XplatUIX11.cs:
2387           - Switched from 'nested' to simple visible/not visible tracking 
2388             for caret (part of fix for #77671)
2389           - No longer passing through translated FocusIn/FocusOut messages
2390             since we were notifying too often and the wrong windows. Instead
2391             we just notify our focussed window of receiving or loosing focus
2392         * XplatUIWin32.cs: Switched from 'nested' show/hide 
2393           counting for caret to simple visible yes/no behaviour (part of 
2394           fix for #77671)
2395
2396 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2397
2398         * Mime.cs: Remove debug code...
2399
2400 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2401
2402         * MimeGenerated.cs: Removed
2403         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2404           and subclasses) from /usr/(local/)share/mime and
2405           $HOME/.local/share/mime.
2406
2407 2006-03-10  Jackson Harper  <jackson@ximian.com>
2408
2409         * MdiWindowManager.cs: Recalc the NC area when a window is
2410         maximized/restored so that the menu area is drawn on forms that
2411         don't have a menu.
2412
2413 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2414
2415         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2416           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2417           us to force a WM_NCCALCRESIZE message being sent. This is needed
2418           for MDI maximizing.
2419
2420 2006-03-10  Jackson Harper  <jackson@ximian.com>
2421
2422         * Form.cs: We need to use the ActiveMenu when calculating menu
2423         height.
2424         - Fix nullref when the window manager hasn't been created yet.
2425         * Control.cs: Fix nullref when we try to bring a control to the
2426         front that has no parent.
2427         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2428         height.
2429         - Add a dummy item to the maximized menu so it always has the
2430         correct height. Otherwise when there are no menus we don't get our
2431         icon and buttons.
2432         
2433
2434 2006-03-10  Jackson Harper  <jackson@ximian.com>
2435
2436         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2437         stuff.
2438         * Form.cs: Make the window_state internal so the window managers
2439         can track it.
2440         - When an MDI child is maximized let its window manager create the
2441         main menu (so it can add its icon).
2442         - Notify the window managers of state changes
2443         - Let the window manager paint its buttons and handle button
2444         clicks on the menu when it is maximized.
2445         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2446         window manager, since tool windows don't use it, only mdi windows.
2447         - Tell the main form that we don't want it to handle NCPAINT
2448         itself to avoid extra painting.
2449         - Handle clicks on a maximized windows menu.
2450         - Handle window state changes
2451         - Handle minimize/maximize clicks correctly by setting the window state.
2452         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2453         when clicking on the forms icon).
2454         - New method to create a forms maximized menu. This is its normal
2455         menu + an icon.
2456         - Handle window state changes.
2457         - Handle sizing of maximized windows.  Maximized windows are just
2458         drawn bigger then the parent visible area. All controls are still
2459         there, they are just outside the visible area (this matches windows).
2460         * MdiClient.cs: No scrollbars when a child window is maximized.
2461         - Let the children windows figure out how big they should be when
2462         sizing maximized windows.
2463         - Implement a version of ArrangeIconicWindows somewhat similar to
2464         Windows version.  There are some little differences, but I don't
2465         think any app will rely on the layout of minimized mdi windows.
2466
2467 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2468
2469         * Padding.cs: Several fixes to allow compiling with csc 2.0
2470
2471 2006-03-09  Jackson Harper  <jackson@ximian.com>
2472
2473         * Menu.cs:
2474         * MenuItem.cs: Cheap hack so we can add items to the list without
2475         the events being raised.  This allows adding mdi items during
2476         drawing. TODO: Should probably find a better time to add the items.
2477
2478 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2479
2480         * ThemeWin32Classic.cs:
2481           - CheckBox_DrawText: Added logic to not wrap if not enough space
2482             is available (Fix for bug #77727)
2483           - RadioButton_DrawText: Added logic not to wrap if not enough
2484             space is available (Fix for bug #77727). Also removed some
2485             duplicate code, DrawString always drawing the regular text
2486             before hitting the if statement.
2487
2488 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2489
2490         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2491
2492 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2493
2494         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2495         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2496           methods. Moved the new 2.0 properties into alphabetical order with
2497           other properties and added MonoTODO tags
2498
2499 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2500
2501         * AutoScaleMode.cs: Added. Fix build.
2502
2503 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2504
2505         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2506           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2507           and was requiring premature handle creation for calls from above
2508         * Form.cs, Control.cs: Removed handle arguments from calls to
2509           CalculateClientRect()
2510
2511 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2512
2513         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2514           drag_column.column_rect is MarshalByRef and can't be used that way
2515
2516 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2517
2518         * AxHost.cs: Added deserialization constructor for 
2519           AxHost+State (fixes 77743)
2520
2521 2006-03-09  Mike Kestner  <mkestner@novell.com>
2522
2523         * ListView.cs: 
2524         - Added column drag reordering for details view.
2525         - fixed behavior when mouse is dragged off column and
2526         AllowColumnReorder is false.
2527         * ColumnHeader.cs: clone the format too in Clone.
2528         * Theme.cs: add DrawListViewHeaderDragDetails method.
2529         * ThemeWin32Classic.cs:
2530         - impl new method for drawing drag column shadows and targets.
2531         - support column offset for details mode in DrawListViewItem.
2532
2533 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2534
2535         * TextControl.cs: Reset the char_count when the document is cleared
2536           (Fixes bug reported on mono-winforms mailing list)
2537
2538 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2539
2540         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2541           of calling base we simply process the key ourselves, since both
2542           DefWindowProc and the handled method would set m.Result. 
2543           (Fixes #77732)
2544
2545 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2546
2547         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2548           method also moves the window; instead implemented a copy of
2549           Control.ScaleCore (Part of fix for #77456)
2550         * TextBoxBase.cs: 
2551           - Created new CreateGraphicsInternal method to allow providing
2552             a graphics context when no handle is created without triggering
2553             handle creation. (Part of fix for #77456)
2554           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2555         * TextControl.cs: 
2556           - Switched Constructor to require TextBoxBase instead of Control (to
2557             allow uncast access to CreateGraphicsInternal)
2558           - Safeguarded use of owner.Handle property. No longer accessing it
2559             unless the handle is already created.
2560           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2561           - Now triggering a recalc when owning control becomes visible
2562         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2563           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2564           premature handle creation (Part of fix for #77456)
2565         * Control.cs:
2566           - We now only destroy our double-buffering buffers when the
2567             control is resized or disposed, but not when visibility
2568             changes. (The code even re-created them twice every time)
2569           - Now requiring a redraw of the buffer on visibility changes
2570             (fixes bug 77654 part 2)
2571           - Not passing OnParentVisibleChanged up unless the control
2572             is visible
2573           - CanFocus: Fixed to match MS documentation
2574           - Focus: Fixed to return actual focus state and to check if
2575             setting focus is legal before setting it
2576
2577 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2578
2579         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2580           when to draw focus rectangle by looking at parent focus and
2581           selected state instead. This fixes TabPages on Linux sometimes
2582           having none or multiple focus rectangles.
2583         * XplatUIX11.cs (SetFocus): 
2584           - Don't set the focus if the same window already has focus
2585           - Use SendMessage instead of PostMessage (like it's Win32
2586             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2587             to match MS behaviour
2588         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2589           are not selectable.
2590
2591 2006-03-07  Jackson Harper  <jackson@ximian.com>
2592
2593         * PictureBox.cs: Revert line I accidently committed last week.
2594
2595 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2596
2597         * Control.cs: 
2598           - Added new IsRecreating and ParentIsRecreating properties to
2599             allow testing if RecreateHandle has been called on ourselves
2600             or one of our parents
2601           - WndProc(WM_DESTROY): If our control handle is being recreated
2602             we immediately need to create the handle when receiving the
2603             destroy, that way our child windows find a valid parent handle
2604             when they themselves are being recreated upon WM_DESTROY receipt
2605             (fix for bug #77654 part 1)
2606         * XplatUIX11.cs:
2607           - DestroyWindow: WM_DESTROY must be sent to our own window before
2608             notifying any child windows. MS documents that child windows
2609             are still valid when WM_DESTROY is received. (Control now relies on
2610             this behaviour)
2611           - Added some fine-grain debug options
2612
2613 2006-03-06  Jackson Harper  <jackson@ximian.com>
2614
2615         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2616         box and base calculations off this.
2617         * MdiChildContext.cs:
2618         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2619         anymore.
2620         
2621 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2622
2623         * Splitter.cs: In situations where the affected control is added
2624           to the parent's control list after the splitter, we would not
2625           populate affected. Now we try populating it on mousedown, if
2626           it's not already set, and force it to be re-set whenever our
2627           parent changes.
2628
2629 2006-03-03  Matt Hargett  <matt@use.net>
2630
2631         * Control.cs: implement Control.Padding
2632         * Padding.cs: -Padding.All returns -1 when constructing with the
2633         implicit default ctor
2634         -Padding.ToString() matches MS.NET
2635         * ContainerControl.cs: implement
2636         ContainerControl.AutoScaleDimensions
2637         * ListControl.cs: implement ListControl.FormattingEnabled
2638         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2639         * ButtonBase.cs:
2640         * TabPage.cs: Implement UseVisualStyleBackColor.
2641         * PictureBox.cs: Implement PictureBox.InitialImage.
2642
2643 2006-03-03  Mike Kestner  <mkestner@novell.com>
2644
2645         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2646         event declarations to proxy to base event.
2647         * ListViewItem.cs: update to use ItemControl.
2648         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2649         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2650         column header label rendering for 0 width columns.
2651
2652 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2653
2654         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2655           that causes the control to be created. Fixes #77476.
2656
2657 2006-03-02  Jackson Harper  <jackson@ximian.com>
2658
2659         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2660         expose_pending.
2661
2662 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2663
2664         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2665           passed in for the EventArgs (fixes #77690)
2666
2667 2006-03-01  Jackson Harper  <jackson@ximian.com>
2668
2669         * ScrollBar.cs: Refresh afterbeing resized.
2670
2671 2006-02-28  Mike Kestner  <mkestner@novell.com>
2672
2673         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2674         Clean up a tracker compile warning.
2675         * MenuItem.cs: add internal PerformPopup method.
2676         [Fixes #77457]
2677
2678 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2679
2680         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2681           implicit expose) when the text is set to null
2682
2683 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2684
2685         * RichTextBox.cs (FlushText): When newline is true, we always
2686           need to split the line, even if no text is on it and we may
2687           never eat newlines. (Fixes #77669)
2688
2689 2006-02-28  Mike Kestner  <mkestner@novell.com>
2690
2691         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2692         and set Selected instead.
2693         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2694         collections.
2695
2696 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2697
2698         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2699
2700 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2701
2702         * FontDialog.cs:
2703           - Got rid of the panel. All controls are now directly added to
2704             the dialog form
2705           - It is now possible to set a font with the Font property
2706           - MinSize and MaxSize property do now what they should
2707           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2708           - Searching and selecting a font with the font textbox works now,
2709             the same applies to the style and size textbox
2710           - Draw the correct 3D border in the example panel
2711           - Fixed a little mem leak (unused fonts didn't get disposed)
2712           - Many other internal updates/rewrites...
2713           - Fix typo
2714
2715 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2716
2717         * TextControl.cs: 
2718           - InsertRTFFromStream: Added 'number of characters inserted' argument
2719           - set_SelectedRTF: Now using the number of characters to calculate
2720             the new location for the selection and cursor (x/y cannot be used
2721             due to potentially already wrapped text)
2722
2723 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2724
2725         * TextControl.cs: Added property and implemented means to allow 
2726           disabling recalculation of a document (can be used to speed up
2727           multiple inserts and is needed to make RTF inserts predictable, see
2728           bug #77659)
2729         * RichTextBox.cs: Using the new NoRecalc property of Document to
2730           keep x/y insert locations predictable. Also makes it faster inserting
2731           large chunks of RTF
2732
2733 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2734
2735         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2736           it's easier for a child control to handle the other messages without
2737           having to duplicate the special functionality
2738         * TextBoxBase.cs
2739           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2740             code to handle processing the key ourselves, in order to get 
2741             access to the result of KeyEventArgs.Handled. We now only call 
2742             ProcessKey if they key hasn't been handled already. Fixes #77526.
2743           - set_Text: If null or empty string is given, just clear the 
2744             document. Fixes part of #77526
2745
2746 2006-02-27  Jackson Harper  <jackson@ximian.com>
2747
2748         * SizeGrip.cs: Paint the background color before painting the grip
2749         so things look right.
2750         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2751
2752 2006-02-27  Mike Kestner  <mkestner@novell.com>
2753
2754         * ListView.cs:
2755           - Restructure layout and invalidation model to remove a ton of
2756           flicker from the control and speed up performance in general.
2757           - Add manual column resize, flickers like crazy, but I already have
2758           some ideas on how I'll fix that. (#76822)
2759           - Merge the three Icon-based views into a single layout method.
2760           - Move item selection interaction logic from the item since 
2761           interaction with the collections is more appropriate to the view.
2762           - Deselection on non-item clicks.
2763         * ListViewItem.cs:
2764           - Encapsulate most of the layout. Add some internal props to trigger
2765           layout.  Move to a model where Items invalidate themselves instead
2766           of just invalidating the whole control every time something changes.
2767           - Invalidate on Text/Caption changes.
2768           - switch to an offset based layout model to avoid having to absolute
2769           position every element on item moves.
2770           - correct checkbox layout to conform to MS layout.
2771         * ThemeWin32Classic.cs:
2772           - refactor some column header drawing code.
2773           - fix string justification for column headers (#76821)
2774           - make SmallIcon labels top justified for compat with MS impl.
2775         * ThemeClearlooks.cs:
2776           - adjust to new ListViewItem internal checkbox bounds api.
2777
2778 2006-02-27  Jackson Harper  <jackson@ximian.com>
2779
2780         * Control.cs:  Change where implicit controls fall in the zorder.
2781         They are now on top of all children.
2782         - Synced AddImplicit code with Add
2783         - Removed unused enumerator.
2784         * SizeGrip.cs: Remove the TODO as its been TODONE.
2785
2786 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2787
2788         * TextControl.cs(Insert): Combine the last lines unless the insertion
2789           string ends with \n\n, otherwise we leave one line too many (Fixes
2790           something I noticed with the testapp for #77526; the bug itself was
2791           already fixed in the previous checkin)
2792
2793 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2794
2795         * RichTextBox.cs:
2796           - SelectionColor and SelectionFont methods no longer set absolute
2797             styles. Instead, the keep font or color respectively (This 
2798             resolves a long-standing FIXME in the code)
2799           - When flushing RTF text, the insert code now considers text trailing
2800             behind the insertion point (Fixes the bug where when replacing
2801             the selected text via SelectedRTF the remainder of the line behind 
2802             the selection would stay on the first insertion line)
2803         * TextBoxBase.cs:
2804           - AppendText now updates the selection points after inserting text
2805           - AppendText now ensures that the last tag (sometimes 0-length) of
2806             the document is used for the style information (Fixes part of 
2807             bug #77220)
2808         * TextControl.cs:
2809           - Created new FontDefiniton class to allow describing partial style
2810             changes
2811           - StreamLine() now takes a lines argument, to allow it to decide
2812             whether an encountered zero-length tag is the last in the document
2813             (which must be kept to not loose the font/color contained in it,
2814             for later appends)
2815           - Created Combine() and Split() methods for Marker structs, to 
2816             support marker updates due to reformatted documents (soft line
2817             wraps)
2818           - Implemented Document.CaretTag setter
2819           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2820             of the last line (Not the cause, but also exposed by bug #77220)
2821           - Added LineTag argument to InsertString method, to allow callers
2822             to force a certain tag to be used (required to force use of the
2823             trailing zero-length tag of a document)
2824           - Now updating markers in Combine(), to avoid stale tag markers
2825           - Added some method descriptions to aid maintenance
2826           - Implemented new FormatText concept, allowing additive/subtractive
2827             formatting by only specifying the components that are to be 
2828             changed. This was needed for resolving the RTB.SelectedColor/
2829             RTB.SelectedFont fixmes
2830           - Added Break() support method to allow breaking up linetags (used
2831             for partial formatting)
2832           - Added GenerateTextFormat() method. It is used for partial 
2833             formatting and allows to generate a full font/color from given
2834             attributes and an existing tag.
2835
2836 2006-02-26  Jackson Harper  <jackson@ximian.com>
2837
2838         * XplatUIX11.cs:  Use the correct caption height.
2839         - Translate hittest coordinates to screen coords to match MS.
2840         * XplatUIWin32.cs: When we create MDI windows we need to reset
2841         some of the style flags, so we get a nice blank window, and can
2842         draw all the decorations ourselves.
2843         - Set a clipping rectangle on the non client paint event, the
2844         window manager drawing code needs one.
2845         * Form.cs: The window manager needs to know when the window state
2846         has been updated.
2847         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2848         don't need to factor in border and title sizes in these
2849         methods. TODO: Remove the args and fix the call points.
2850         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2851         properly.
2852         - Let the driver set the cursors.
2853         - Improve active window handling
2854         - Correct sizes for title bars and buttons.
2855         - Match MS drawing better
2856         * MdiWindowManager.cs: We don't need to handle border style
2857         updates specially anymore.
2858         - Check for scrollbars when windows are done moving
2859         - Handle Active properly.
2860         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2861         correctly. I am spewing the exception though, so we don't hide the
2862         bugs.
2863         
2864 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
2865
2866         * DataGridViewRowPostPaintEventArgs.cs,
2867           DataGridViewCellPaintingEventArgs.cs,
2868           DataGridViewRowCollection.cs,
2869           DataGridViewRowPrePaintEventArgs.cs,
2870           DataGridViewCell.cs: Clear a few warnings and implement a few
2871           exceptions that should be thrown.
2872
2873 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2874
2875         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2876           'inheriting' our parent's (non-default) cursor. (Part of
2877            the fix for #77479)
2878
2879 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
2880
2881         * XplatUIX11.cs: Fixed cast to make csc happy
2882
2883 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2884
2885         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2886           it's for the client area (part of fix for #77479 and needed
2887           for MDI window cursor handling)
2888         * XplatUIX11.cs
2889           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2890             the appropriate default cursors and also passing the message
2891             up the parent chain 
2892           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2893             for non-client areas
2894
2895 2006-02-15  Jackson Harper  <jackson@ximian.com>
2896
2897         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2898         is a real MDI window
2899
2900 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
2901
2902         * X11DesktopColors.cs: Instead of checking the desktop session
2903           string for "KDE" check if it starts with "KDE"
2904
2905 2006-02-10  Jackson Harper  <jackson@ximian.com>
2906
2907         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2908         systems).
2909
2910 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2911
2912         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2913           errors
2914         * ColorDialog.cs:
2915           - Got rid of the panel. All controls are now directly added to
2916             the dialog form
2917           - Changed to mono coding style
2918
2919 2006-02-10  Jackson Harper  <jackson@ximian.com>
2920
2921         * InternalWindowManager.cs: We don't need the set visibility to
2922         false hack anymore now that peter has written beautiful shutdown
2923         code.
2924
2925 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
2926
2927         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2928           where already explicitly destroyed
2929
2930 2006-02-10  Jackson Harper  <jackson@ximian.com>
2931
2932         * MdiClient.cs: Handle the case where windows are too high or to
2933         the left and we need scrollbars.
2934
2935 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2936
2937         * MimeIcon.cs: Added some icons
2938         * FileDialog.cs:
2939           - Fixed bug #77477
2940           - Got rid of the panel. All controls are now directly added to
2941             the dialog form
2942           - Changed to mono coding style
2943           - On Linux "My Computer" and "My Network" will now show some
2944             more usefull information. A new class, MasterMount, gathers
2945             this information from /proc/mount. Updated MWFFileView to make
2946             use of this information
2947           - Fixed a bug that caused FileDialog to crash when
2948             ".recently_used" file had a zero size
2949           - FilterIndex does now what it should
2950           - Some Refactoring
2951         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2952             FileDialog changes
2953
2954 2006-02-09  Jackson Harper  <jackson@ximian.com>
2955
2956         * ComboBox.cs: Don't touch if null.
2957
2958 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
2959
2960         * Cursor.cs: 64bit safeness fix
2961         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2962
2963 2006-02-09  Jackson Harper  <jackson@ximian.com>
2964
2965         * Form.cs: If a form is made into an MDI form update the styles so
2966         all the props can get set correctly.
2967         - Kill the mdi_container when we dont need it anymore.
2968         * InternalWindowManager.cs: Add missing NOT
2969
2970 2006-02-08  Jackson Harper  <jackson@ximian.com>
2971
2972         * InternalWindowManager.cs: Respek clipping when drawing MDi
2973         decorations.
2974
2975 2006-02-08  Jackson Harper  <jackson@ximian.com>
2976
2977         * Hwnd.cs: Add bits to track non client expose events.
2978         * XplatUIX11.cs: Track non client expose events on the hwnd. This
2979         gives us a proper invalid rect and will allow for some nice
2980         optimizations with NC client drawing
2981         - MDI windows are children windows, so move their style handling
2982         into the child window block.
2983         * InternalWindowManager.cs: Remove a state reset that was
2984         getting invoked at the wrong time. Fixes managed windows getting
2985         into a 'stuck' captured state.
2986
2987 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2988
2989         * TextControl.cs (Document.ctor): Now initializing 
2990           selection_anchor. Fixes #77493
2991
2992 2006-02-07  Jackson Harper  <jackson@ximian.com>
2993
2994         * TrackBar.cs: The increment/decrements were backwards.
2995
2996 2006-02-07  Mike Kestner  <mkestner@novell.com>
2997
2998         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
2999         to the instance itself.
3000
3001 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3002
3003         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3004           on ulongs and pointers, the size differs between 32bit and 64bit
3005           systems. 
3006
3007 2006-02-07  Mike Kestner  <mkestner@novell.com>
3008
3009         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3010         for 64 bit platforms to work around a metacity bug. 
3011
3012 2006-02-07  Jackson Harper  <jackson@ximian.com>
3013
3014         * TrackBar.cs: Process the input keys we need, and hookup to
3015         KeyDown instead of using WndProc, so we get key messages.
3016
3017 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3018
3019         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3020           machine we're on. 
3021         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3022           we need to translate the XdndVersion atoms array before sending it
3023
3024 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
3025
3026         * XplatUIX11.cs: 
3027           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
3028             number of bits for the property, not the number of bytes. The
3029             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
3030             but would not crash since it specified 8 bits instead of 4 bits)
3031           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
3032             defined as XID -> long in the C headers)
3033           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
3034             references since those are now IntPtr to begin with
3035           - Switched all Atom.XXX 'int' casts to IntPtr casts
3036           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
3037           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
3038           - Added XChangeActivePointerGrab DllImport (for X11DnD)
3039         * X11Structs.cs:
3040           - Changed 'int' type for Atoms in XEvent structures to IntPtr
3041           - Changed atom in HoverStruct to be IntPtr
3042         * X11DnD.cs:
3043           - Removed local DllImports, switched code to use those from XplatUIX11
3044           - Removed/fixed casts related to the switch of Atom to be a IntPtr
3045
3046 2006-02-06  Mike Kestner  <mkestner@novell.com>
3047
3048         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
3049         method signatures in the import region.  There may still be some
3050         lingering struct marshaling issues, as I didn't drill down into those.
3051         Yet.
3052
3053 2006-02-06  Jackson Harper  <jackson@ximian.com>
3054
3055         * ComboBox.cs: Dont manually set the top_item, this is computed
3056         when the scrollbar position is set.
3057
3058 2006-02-06  Mike Kestner  <mkestner@novell.com>
3059
3060         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
3061         startup crashes on amd64.  There's other fixes needed.  All pinvoke
3062         usage of Atom needs to be mapped to IntPtr for example.  And there are
3063         likely other int/long issues to be addressed.
3064
3065 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
3066
3067         * FileDialog.cs: One more...
3068
3069 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3070
3071         * FileDialog.cs: Next try
3072
3073 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3074
3075         * FileDialog.cs: First part of fix for #77464
3076
3077 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3078
3079         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
3080           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
3081           AcceptButton border drawing.
3082
3083 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
3084
3085         * Form.cs: Moved positioning of form after auto scaling is applied,
3086           otherwise it would possibly use wrong form size.
3087
3088 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
3089
3090         * Control.cs (RecreateHandle): No need to re-create any child
3091           controls, the child windows will get destroyed automatically by
3092           the windowing system or driver, and re-created when the handle
3093           is being accessed the first time. Fixes #77456
3094         * Form.cs: No longer setting the form to closing if the handle is 
3095           being recreated. This seems like the right thing to do, don't
3096           have a bug or testcase for this, though.
3097
3098 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3099
3100         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
3101           controls to avoid unwanted side effects
3102
3103 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
3104
3105         * Control.cs: 
3106           - ScaleCore needs to scale the bounds, not the ClientSize of the 
3107             control. Fixes #77416.
3108           - DefaultSize is 0,0 for control
3109         * TextBoxBase.cs: 
3110           - DefaultSize is 100, 20
3111           - SetBoundsCore: Now enforcing the height, no matter if the provided
3112             height is more or less than the preferred one, as long as AutoSize
3113             is on
3114         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3115
3116 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3117
3118         * Control.cs:
3119           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3120             call unless both performLayout is true *and* we have a pending
3121             layout change
3122           - ResumeLayout: MS does not completely nest Suspend and Resume,
3123             they bottom out at 0, fixed our code to match that.
3124           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3125             SetBoundsCore, we were updating even when we shouldn't. This fixes
3126             swf-anchors mis-anchoring when resizing the app fast and lots.
3127           - UpdateDistances: Now only setting the left and top distance if 
3128             we have a parent and are not suspended, this is based on
3129             a suggestion by Don Edvaldson in bug #77355.
3130           - OnVisibleChanged: Fixed logic when to create the control. We may
3131             not create the control if we have no parent or if it's not visible;
3132             switched to using Visible property instead of is_visible field 
3133             since the property also considers parent states. This fixes a bug
3134             when starting Paint.Net
3135
3136 2006-02-02  Jackson Harper  <jackson@ximian.com>
3137
3138         * Form.cs: If the forms handle hasn't been created yet don't call
3139         into xplatui to make it top most, just set the topmost flag on the
3140         form in CreateParams
3141         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3142
3143 2006-02-01  Jackson Harper  <jackson@ximian.com>
3144
3145         * ScrollableControl.cs: Refactored the Recalculate method a
3146         little, this wasn't handling all the variants of bottom and right
3147         bars needed to be added and added/removed based on their
3148         counterparts being added/removed (which changes the drawable
3149         size). Also we special case client widths and heights of 0 and
3150         don't add the scrollbar for those.
3151
3152 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3153
3154         * XplatUIX11.cs: 
3155           - Added method to get AbsoluteGeometry(); currently unused, but might
3156             be used in the future, if we try again to figure out toplevel
3157             coordinates with some more crappy window managers
3158           - Added FrameExtents() method to retrieve the WM set decoration size
3159           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3160             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3161         * Hwnd.cs: 
3162           - Added whacky_wm tracking var for metacity
3163           - Added logic to have default menu height if the actual menu height
3164             has not yet been calculated (part of fix for #77426)
3165         * Form.cs: Keep track whether client size has been set and re-set 
3166           it if a menu is added/removed afterwards (Fixes #77426)
3167
3168 2006-01-31  Jackson Harper  <jackson@ximian.com>
3169
3170         * Control.cs: When a new Site is set on the component attempt to
3171         pull the AmbientProperties from it.
3172
3173 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3174
3175         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3176           in the background of the owning form. Fixes #77332
3177
3178 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3179
3180         * MimeIcon.cs: Fix for #77409
3181
3182 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3183
3184         * XplatUIX11GTK.cs: Initial import
3185
3186 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3187
3188         * FixedSizeTextBox: fixes class signature
3189
3190 2006-01-30  Jackson Harper  <jackson@ximian.com>
3191
3192         * FixedSizeTextBox.cs: New internal class that represents a
3193         textBox that will not be scaled.
3194         * TreeView.cs:
3195         * ComboBox.cs:
3196         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3197         standard TextBox.
3198                 
3199 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3200
3201         * XplatUIX11.cs: Retrieve default screen number instead of
3202           assuming 0. Attempted fix for #77318
3203
3204 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3205
3206         * XplatUIWin32.cs: 
3207           - GetWindowPos: When a window is parented by FosterParent, use 
3208             the desktop instead of FosterParent as the base to get coordinates
3209           - CreateWindow: Don't make FosterParent the parent window for Popups
3210             if we don't want a taskbar entry, Popups automatically don't get one
3211         * Hwnd.cs: Need to call remove to actually remove the key from the
3212           hash table
3213
3214 2006-01-30  Mike Kestner  <mkestner@novell.com>
3215
3216         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3217
3218 2006-01-30  Jackson Harper  <jackson@ximian.com>
3219
3220         * TreeView.cs:
3221         * TreeNode.cs: Raise events no matter how the treenode is
3222         checked. Patch by Don Edvalson.
3223
3224 2006-01-30  Jackson Harper  <jackson@ximian.com>
3225
3226         * TreeNode.cs: Signature fix.
3227
3228 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3229
3230         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3231
3232 2006-01-20  Mike Kestner  <mkestner@novell.com>
3233
3234         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3235         event forwarding when menus are active.
3236         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3237         Most of the patch is pdb's with a little rework.
3238
3239 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3240
3241         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3242           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3243           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3244         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3245         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3246           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3247           the PaintWindowDecorations method
3248         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3249         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3250         * MenuAPI.cs: Made tracker window invisible
3251         * XplatUIWin32.cs:
3252           - Removed GetMenuDC and ReleaseMenuDC methods
3253           - Implemented the client=false path for PaintEventStart and
3254             PaintEventEnd
3255
3256 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3257
3258         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3259         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3260           styles
3261         * Form.cs: 
3262           - MaximizeBox, MinimizeBox: Recreate the handle when setting
3263             the style
3264           - CreateParams: Reworked the styles to match MS look'n'feel,
3265             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3266             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3267
3268 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3269
3270         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
3271           window is not mapped, since otherwise every form that's being 
3272           created is considered minimized, which is wrong.
3273         * Form.cs: Catching the exception and returning our internal value
3274           instead
3275
3276 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3277
3278         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3279           SetWindowMinMax() to have means to tell the driver about the minimum,
3280           maximum and maximized state window sizes. (Part of the fix for #76485)
3281         * Form.cs:
3282           - Implemented tracking of minimum and maximum window size, now calling
3283             new SetWindowMinMax() driver method to tell the driver (Part of the
3284             fix for #76485)
3285           - Finished handling of WM_GETMINMAXINFO method, now setting all values
3286             (Completes fix for #76485)
3287           - Calling new SetWindowMinMax driver method when the handle for a 
3288             form is created, to make sure the driver knows about it even if
3289             the values have been set before the window was created
3290           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3291             to avoid messing up our anchoring calculations (partial fix
3292             for #77355)
3293         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3294         * XplatUIX11.cs:
3295           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3296           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
3297             (and presumably other freedesktop.org compliant WMs). Left the
3298             assumption unmapped=minimized, needed for SetVisible to work.
3299           - Now setting the window state when creating windows
3300           - Fixed SetVisible to consider/set the window state when mapping
3301             a Form. We cannot set the state before it's mapped, and we cannot
3302             use Form.WindowState once it's mapped (since it would ask the
3303             driver and get 'normal'. Therefore, we grab the state before
3304             mapping, map, and then set state.
3305           - Implmemented SetWindowMinMax method; Metacity does not seem to
3306             honor the ZoomHints, though.
3307         * XplatUIWin32.cs:
3308           - Removed MINMAXINFO (moved to XplatUIStructs)
3309           - Added SetWindowMinMax stub (on Win32 the only way to set that
3310             information is in response to the WM_GETMINMAXINFO message, which
3311             is handled in Form.cs)
3312           - Added logic to SetVisible to set the proper window state when a 
3313             form is made visible (fixes #75720)
3314
3315 2006-01-26  Jackson Harper  <jackson@ximian.com>
3316
3317         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3318         same way we handle them with Invoke.
3319
3320 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
3321
3322         * Form.cs:
3323           - Added tracking of window state so CreateParams can return
3324             the appropriate style
3325           - Moved setting of WS_CAPTION style in CreateParams to allow
3326             styles without caption
3327         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3328           control if the TextBox property is accessed. Fixes #77345
3329         * Control.cs:
3330           - get_Created: now uses is_disposed and is_created to determine
3331             return value (suggested by Jackson)
3332           - CreateHandle: No longer exits if the handle is being recreated
3333           - RecreateHandle: If the handle is not yet created call the 
3334             appropriate method to create either control or handle. If the
3335             control is already created CreateHandle will simply exit instead
3336             of just creating the handle
3337         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3338           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3339           is called.
3340         * XplatUIX11.cs: 
3341           - When DestroyWindow is called, instead of waiting for the 
3342             DestroyNotification from X11, we directly post it to the WndProc
3343             and immediately dispose the hwnd object.
3344             Same applies to DestroyChildWindows, and this obsoletes the
3345             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3346             child windows before our own, to avoid X11 errors.
3347           - Removed the direct sending of WM_PAINT on UpdateWindow
3348         * XplatUIWin32.cs:
3349           - Reworked DoEvents and GetMessage to allow access to internal queue
3350             even when trying non-blocking access to the queue.  Fixes #77335. 
3351             Based on a patch suggestion by Don Edvalson. The new private
3352             GetMessage can now also be used as a backend for a PeekMessage
3353             frontend version.
3354         * XplatUI.cs: Improved debug output for CreateWindow
3355
3356 2006-01-25  Jackson Harper  <jackson@ximian.com>
3357
3358         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3359
3360 2006-01-24  Jackson Harper  <jackson@ximian.com>
3361
3362         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3363         when we have a MaxDropItems lower then the selected index.
3364
3365 2006-01-24  Jackson Harper  <jackson@ximian.com>
3366
3367         * Control.cs: Don't allow selection of non visible controls, allow
3368         selection of controls without parents.
3369
3370 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3371
3372         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3373         * DataGridDrawingLogic.cs: Add editing row only when is necessary
3374
3375 2006-01-23  Jackson Harper  <jackson@ximian.com>
3376
3377         * UpDownBase.cs: Make the textbox handle all the selection and
3378         tabbing. This fixes tabing to updown controls.
3379
3380 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3381
3382         * TextBoxBase.cs: fixes exception thown the object was null
3383
3384 2006-01-23  Jackson Harper  <jackson@ximian.com>
3385
3386         * ButtonBase.cs: Just use the base CreateParams. They set
3387         visibility and enabled correctly.
3388         * ComboBox.cs:
3389         * TrackBar.cs:
3390         * MonthCalendar.cs: Lets let the base set as much of the
3391         createparams as possible so we don't have duplicate code all over
3392         the place.
3393
3394 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
3395
3396         * ThemeGtk.cs: Added TrackBar and some experimental code to
3397           get double buffering back
3398
3399 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3400
3401         * DataGrid.cs: Allows row number set internally higher than the last
3402         when creating a new row. Restores the editing functionality.
3403
3404 2006-01-20  Mike Kestner  <mkestner@novell.com>
3405
3406         * MimeIcon.cs: delay Image creation until the icons are accessed
3407         instead of creating 190 scaled images on GnomeHandler startup.
3408
3409 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
3410
3411         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3412           first call base before processing the event. Fixes #77279
3413
3414 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
3415
3416         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3417           that the stride for the GDI bitmap would match the stride of
3418           a DIB or a Cursor.
3419
3420 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
3421
3422         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3423
3424 2006-01-19  Jackson Harper  <jackson@ximian.com>
3425
3426         * ComboBox.cs: Hookup the text controls keydown event so we get
3427         those when the text control has the focus.
3428
3429 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3430
3431         * Label.cs: Now using the base events instead of defining new ones;
3432           this allows us to just call the base properties without having to
3433           duplicate all base property logic 
3434
3435 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3436
3437         * Label.cs: A label by default is not a tabstop (Fixes one of our
3438           failing nunit tests)
3439
3440 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3441
3442         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3443         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3444
3445 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3446
3447         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3448           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3449           This fixes #77218
3450         * XplatUIWin32.cs: 
3451           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3452             constructor creates images that can't be saved. Part of the fix
3453             for #76103
3454           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3455           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3456             bug fix for handling window state in forms properly)
3457
3458 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3459
3460         * ThemeGtk.cs: Simplify ScrollBar drawing
3461
3462 2006-01-18  Jackson Harper  <jackson@ximian.com>
3463
3464         * Splitter.cs: Set the default dock style for the splitter control
3465         in the constructor.
3466
3467 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3468
3469         * ThemeGtk.cs: Corrected StateType and ShadowType for
3470           gtk_paint_box
3471
3472 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3473
3474         * Control.cs: Make use of Theme.DoubleBufferingSupported
3475         * ThemeGtk.cs:
3476           - Added drawing for flat style buttons
3477           - Added ScrollBar drawing
3478
3479 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3480
3481         * ThemeClearlooks.cs: Removed some unneeded code.
3482         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3483
3484 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3485
3486         * LinkLabel.cs: We need to update the hover drawing when
3487           leaving the control as well.
3488
3489 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3490
3491         * DataGrid.cs: Clicking on non empty areas in the columns
3492            area was giving an exception
3493
3494 2006-01-17  Jackson Harper  <jackson@ximian.com>
3495
3496         * ThemeWin32Classic.cs:
3497         * ListView.cs: Do not draw/clip the headers when the header style
3498         is None.
3499
3500 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3501
3502         * DataGrid.cs: Fixes 77260
3503         
3504 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3505
3506         * DataGrid.cs: Clicking on a column on a empty grid was giving
3507           an exception
3508
3509 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3510
3511         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3512           or any keypress will crash the grid.
3513
3514 2006-01-17  Mike Kestner  <mkestner@novell.com>
3515
3516         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3517         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3518         invisible/previously-visible items.
3519         [Fixes #76909]
3520
3521 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3522
3523         * ThemeClearlooks.cs:
3524         - Added CL_Draw_Button method; now other theme controls that are 
3525           not derived from button or do not have a button can draw buttons
3526           too
3527         - Updated ComboBox drawing
3528         - Beautified RadioButton drawing
3529         - Corrected drawing of bottom and left tabs
3530         - Beautified DateTimePicker and MonthCalendar
3531         - Added CPDrawButton and CPDrawRadioButton
3532
3533 2006-01-16  Jackson Harper  <jackson@ximian.com>
3534
3535         * ComboBox.cs: Set the initial value of the scrollbar to the
3536         current index. Reduce the numbers of refreshs and IndexOfs called.
3537
3538 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3539
3540         * FileDialog.cs: When the file listview is focused hitting the
3541           backspace key moves the fileview to the parent directory
3542
3543 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3544
3545         * Form.cs: 
3546           - Added RecreateHandle call when changing taskbar visibility to 
3547             trigger reparenting in Win32 driver (Fixes #75719)
3548           - If a window has minimize or maximize buttons, it cannot have
3549             a help button
3550         * XplatUIWin32.cs:
3551           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3552             the toplevel form with FosterParent (A toolwindow not on the
3553             taskbar) (Fixes #75719)
3554           - Made FosterParent a toolwindow
3555
3556 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3557
3558         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3559
3560 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3561
3562         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3563           is currently over that control, make sure that tooltip_window.Text
3564           gets updated
3565
3566 2006-01-13  Mike Kestner  <mkestner@novell.com>
3567
3568         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3569
3570 2006-01-13  Jackson Harper  <jackson@ximian.com>
3571
3572         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3573         value passed.  Also redraw the selected node when we recieve
3574         focus, so tabbing between trees works correctly.
3575
3576 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3577
3578         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3579           ~/.gconf/%gconf-tree.xml, so use
3580           .gconf/desktop/gnome/interface/%gconf.xml
3581
3582 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3583
3584         * TextControl.cs: Draw text in gray if control is disabled
3585
3586 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3587
3588         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3589           make sure it's always visible. Fixes #76680.
3590
3591 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3592
3593         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3594
3595 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3596
3597         * PageSetupDialog.cs: Added.
3598         * PrintDialog.cs: Attributes.
3599         * PrintPreviewControl.cs: Updates.
3600         * PrintPreviewDialog.cs: Updates.
3601         
3602 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3603
3604         * Control.cs: Undid my selection check fix, since it's not needed
3605         * TextBoxBase.cs:
3606           - Now considering the presence of hscroll/vscroll when sizing
3607             vscroll/hscroll respectively. Fixed bug #77077
3608           - Added Left/Up/Down/Right to IsInputKey list to prevent
3609             ContainerControl from stealing them. This fixes what I broke
3610             with my last checkin.
3611
3612 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3613
3614         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3615           I finally understand how the property can be set without a setter :-)
3616
3617 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3618
3619         * Application.cs:
3620           - Switched RunLoop to use static Message.Create to create a 
3621             Message object
3622           - Added PreProcessMessage call in runloop for keyboard events; this
3623             is part of the fix for #77219, I overlooked this originally in the
3624             MSDN doc for PreProcessMessage
3625         * Control.cs:
3626           - Removed call to PreProcessMessage from handling of keyboard 
3627             messages; it's supposed to be done in the message pump
3628           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3629             per MSDN documentation.
3630           - IsInputChar: All chars are input chars by default; removed the 
3631             parent calling chain, MS does not document that
3632           - PreProcessMessage: If IsInputChar is true, we want to return false
3633             to allow dispatching of the message
3634           - When selecting the next control, now also check that we're not
3635             selecting ourselves again and therefore return a false positive.
3636         * TextBoxBase.cs:
3637           - Tried to match return values for IsInputKey and ProcessDialogKey
3638             to what MS returns; moved processing of our special keys outside
3639             ProcessDialogKey since MS does not seem to return true on those.
3640           - Moved code that previously was in ProcessDialogKey into new private
3641             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3642           - Reworked handling of WM_CHAR to not have to duplicate code from
3643             Control.cs anymore, instead we simply call down to base.
3644            
3645 2006-01-12  Jackson Harper  <jackson@ximian.com>
3646
3647         * ComboBox.cs: We always need to refresh the text area when
3648         EndUpdate is called. Fixes the combobox in the file dialog.
3649         * Control.cs: Don't create the creator_thread until the controls
3650         handle is created.  Also in InvokeRequired we check if the
3651         creator_thread is null. This gives the effect of InvokeRequired
3652         returning true if the controls handle is not created yet, and
3653         matches MS.
3654
3655 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3656
3657         * XplatUI.cs:
3658           - Added StartLoop() driver method. This is used to allow drivers to
3659             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3660             loop for a particular thread
3661           - Added EndLoop() driver method. This is called once the message
3662             pump for the thread is shut down
3663           - Added SupportsTransparency method to allow the driver to indicate
3664             opacity support for windows
3665         * Form.cs:
3666           - Removed TODO attribute, completed AllowTransparency property
3667           - Added documented logic to Opacity
3668         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3669           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3670           versions of CompatibleTextRendering
3671         * X11Structs.cs: Added opacity atom to our atom enumeration
3672         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3673           of a form might be set before it's reparented by the WM, and we need
3674           the opacity value without calling up to Form)
3675         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3676           SupportsTransparency() driver methods
3677         * Application.cs: Now calling StartLoop and EndLoop driver methods
3678         * XplatUIX11.cs:
3679           - Added opacity atom registration
3680           - Added StartLoop()/EndLoop() methods. They're empty right now but
3681             will need to get implemented when we switch to a per-thread queue
3682           - Implemented SupportsTransparency() method
3683           - Implemented SetWindowTransparency() method
3684           - Added support for setting the opacity value when a window is
3685             reparented (since the opacity needs to be set on the WM frame)
3686         * XplatUIOSX.cs, XplatUIWin32.cs:
3687           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3688
3689 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3690
3691         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3692
3693 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3694
3695         * FileDialog.cs: Added ToolTip for MWFFileView
3696         * MimeIcon.cs: Rewrote GnomeHandler.
3697           - Get currently used gnome icon theme from
3698             ($HOME)/.gconf/%gconf-tree.xml
3699           - Make use of inherited icon themes
3700           - Support SVG icon themes like Tango via librsvg
3701
3702 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3703
3704         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3705         builds. 
3706         
3707         * Application.cs: Move the use_compatible_text_rendering outside
3708         the NET_2_0 define.  If we ever need to use the
3709         use_compatible_text_rendering on the individual controls they will
3710         access the variable from the common shared code paths.
3711
3712 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3713
3714         * XplatUI.cs:
3715           - Added more granular debug options
3716           - Added method to print both window text and id
3717           - Switched debug output to use new Window() debug method
3718           - Added IsEnabled() driver method
3719           - Added EnableWindow() driver method
3720         * Form.cs:
3721           - Removed end_modal; no longer needed, new loop handles termination
3722             via 'closing' variable
3723           - If form is modal, setting DialogResult will now initiate loop
3724             termination via 'closing' variable
3725           - Added support for is_enabled/WS_DISABLED to CreateParams
3726           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3727             does all the work
3728           - Removed code that's now in RunLoop from ShowDialog()
3729           - Added various documented sanity checks to ShowDialog()
3730           - Added handling of WM_DESTROY message; we set 'closing' on getting
3731             the message to indicate the message pump to terminate
3732           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3733             send by the Application.ExitThread method. (We send the message
3734             to destroy the window after all other events have been
3735             processed through the queue, instead of destroying the handle 
3736             directly)
3737           - Moved code from Close() method to WM_CLOSE handler; added logic
3738             to only send close-related events if the form is not displayed
3739             modal
3740         * Splitter.cs (..ctor): Fixed typo in resource name
3741         * Control.cs:
3742           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3743             brush now
3744           - set_Cursor: Now only setting calling into XplatUI if the handle for
3745             the control is already created; this avoids implict handle creation
3746             or crashes if it's not created
3747           - set_Enabled: Now setting the enabled state via the new driver method
3748             instead of just tracking it
3749           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3750           - CreateControl: Reordered event firing and method calls to more
3751             closely fire events in the order MS does. Now setting the
3752             enabled state in the driver when creating the control.
3753           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3754             match MS order
3755         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3756           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3757         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3758         * Hwnd.cs:
3759           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3760           - Added EnabledHwnd property to easily allow a driver to find the
3761             handle of the first enabled window in the parent chain (this is
3762             used by drivers to pass up input events of disabled windows)
3763         * XplatUIDriver.cs: Added IsEnabled() method
3764         * Application.cs:
3765           - Removed crude and obsolete exiting tracking variable
3766           - Removed internal ModalRun(); replaced by RunLoop()
3767           - Implemented private CloseForms() method to allow closing all 
3768             windows owned by a particular (or all) threads
3769           - Exit() now properly closes all windows without forcing the message
3770             pump to quit
3771           - Removed obsolete InternalExit() method
3772           - Changed Run() methods to use new RunLoop() message pump
3773           - Implemented new RunLoop() method for both modal and non-modal forms
3774         * CommonDialog.cs:
3775           - get_CreateParams: Added setting of WS_DISABLED
3776           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3777             invoked via Form.ShowDialog()
3778         * NativeWindow.cs: We don't remove the window from the collection when
3779           the handle is destroyed; there might still be messages for it in the
3780           queue (mainly the resulting WM_DESTROY); instead it will be removed
3781           when Control calls InvalidateHandle in the WM_DESTROY handler
3782         * XplatUIX11.cs:
3783           - CreateWindow: Added logic to handle the WS_DISABLED window style
3784           - EnableWindow: Implemented based on Hwnd.Enabled
3785           - GetMessage: Reset PostQuitState so the method can be called again
3786           - Implemented support for disabled windows (passing messages to the
3787             first enabled parent) in handling all input messages
3788           - Added optimizations for handling Expose events
3789           - Implemeted new driver method IsEnabled()
3790           - Now always resetting paint pending tracking vars when we start paint
3791           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3792         * XplatUIOSX.cs: Added IsEnabled method stub
3793         * XplatUIWin32.cs: Implemented new IsEnabled() method
3794
3795 2006-01-11  Jackson Harper  <jackson@ximian.com>
3796
3797         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3798         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3799         variables a little.
3800         * ColorDialog.cs: Clear out the old form before adding the new
3801         panel.  
3802
3803 2006-01-11  Jackson Harper  <jackson@ximian.com>
3804
3805         * X11Dnd.cs: Make sure to add all the text formats when adding
3806         strings to the data object.
3807         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3808         do some redrawing too.  Also change the UpdateNode to an
3809         UpdateBelow so the newly added node gets painted.
3810         
3811 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3812
3813         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3814         LinkLabel.cs, PropertyGrid.cs: Implement the
3815         UseCompatibleTextRendering property for 2.x
3816
3817         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3818
3819 2006-01-11  Jackson Harper  <jackson@ximian.com>
3820
3821         * TreeView.cs: Use the property for setting the selected node so
3822         the correct events get raised.
3823         * TreeNode.cs: Update the tree when the fore/back colours of a
3824         node are set.
3825
3826 2006-01-10  Jackson Harper  <jackson@ximian.com>
3827
3828         * TreeView.cs: Allow setting SelectedNode to null.
3829
3830 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3831
3832         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3833
3834 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3835
3836         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3837
3838 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3839
3840         * PrintDialog.cs: Added attributes and set default property values.
3841
3842 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3843
3844         * PrintControllerWithStatusDialog.cs: 
3845         Added PrintControllerWithStatusDialog.
3846
3847 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3848
3849         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3850         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3851
3852 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3853
3854         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3855
3856 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
3857
3858         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3859         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3860
3861 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3862
3863         * MimeIcon.cs: Added internal class SVGUtil.
3864
3865 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3866
3867         * FileDialog.cs: Don't crash if there are two files with the
3868           same name but different locations.
3869
3870 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
3871
3872         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3873         dates across multiple month grids. Used to not highlight entire 
3874         month, but does now.
3875         
3876 2006-01-06  Jackson Harper  <jackson@ximian.com>
3877
3878         * MonthCalendar.cs: Removed DoEvents call to prevent a running
3879         message loop. Change timer intervals to numbers that seem more
3880         natural.
3881
3882 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
3883
3884         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3885           object for location info since screen object is now implemented.
3886
3887 2006-01-05  Jackson Harper  <jackson@ximian.com>
3888
3889         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3890         * AsyncMethodResult.cs: We no longer use a WeakReference for the
3891         AsyncMethodResult, this is because we ALWAYS want the
3892         ManualResetEvent to get set.
3893         * Control.cs: When disposing use an async invoke to call shutdown
3894         code, so that thigns don't block on the finalizer thread.  Also
3895         check if we even have a message loop before trying to send
3896         messages, if we don't then don't bother sending messages.
3897         - No more weak references for async methods
3898         * XplatUIDriver.cs: No more weak references for async methods.
3899
3900 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3901
3902         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3903           returns two FontFamily with the same name
3904
3905 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3906
3907         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
3908           drawing disabled text. Instead using the ColorGrayText color
3909
3910 2006-01-04  Jackson Harper  <jackson@ximian.com>
3911
3912         * TreeNode.cs: redraw the node when its image index is changed.
3913
3914 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3915
3916         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3917           time I checked there are no others like it.
3918
3919 2006-01-04  Jackson Harper  <jackson@ximian.com>
3920
3921         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3922         this gives the behavoir I was looking for.
3923         * Control.cs: Special case Invoking EventHandlers, this matches MS
3924         and fixes part of bug #76326.
3925
3926 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3927
3928         * ThemeClearlooks.cs, FileDialog.cs:
3929           - Reflect the latest Theme class changes
3930           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
3931             with DateTime
3932             
3933 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3934
3935         * Theme.cs: Cache UI resource images and resize them if needed
3936
3937 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3938
3939         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3940           is called. This fixes the crash in Nexxia when setting the font
3941           attributes in the chat. [However, RTF needs a look-over to make sure
3942           that all SelectionXXX methods handle the special case that selection
3943           is empty and therefore the change must be applied to all text starting
3944           at the cursor/selection start]
3945
3946 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
3947
3948         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3949           XplatUIOSX.cs: Added SendMessage and PostMessage methods
3950         * X11Keyboard.cs: Switched to new way of calling PostMessage
3951
3952 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3953
3954         * Theme.cs: Added theme interface for images to allow the theme to
3955           control what images are used for things like FileDialog, MessageBox
3956           icons, etc.
3957         * MessageBox.cs: Now uses the new Theme icon/image interfaces
3958
3959 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
3960
3961         * FileDialog.cs:
3962           - Removed some dead code
3963           - Opening a recently used file does work now
3964           - Small UI enhancements
3965           - Refactoring
3966
3967 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3968
3969         * FileDialog.cs: Forgot too add __MonoCS__
3970
3971 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3972
3973         * FileDialog.cs: We are able to read recently used files now let's
3974           go on and write them.
3975
3976 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
3977
3978         * FileDialog.cs: Breathe some life into "last open"/"recently used"
3979           button
3980         * MimeIcon.cs: Do a check for the top level media type also
3981
3982 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3983
3984         * ThemeClearlooks.cs:
3985           - Added CPDrawStringDisabled
3986           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3987             some chars if the text doesn't fit into text_rect
3988           - DrawListViewItem: If View = View.LargeIcon center the image;
3989             rewrote the drawing of ListViewItem.Text if View = 
3990             View.LargeIcon
3991
3992 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3993
3994         * MimeIcon.cs: Use default KDE icon theme if there is no
3995           "48x48" directory for the current icon theme, fixes #77114
3996         * Mime.cs: Disable not working and actually not used code. 
3997         * ThemeWin32Classic.cs:
3998           - Replace "new SolidBrush" in GetControlBackBrush and
3999             GetControlForeBrush with ResPool.GetSolidBrush
4000           - Changed DrawListViewItem from private to protected virtual
4001         * FileDialog.cs:
4002           - Added form.MaximizeBox = true
4003           - Don't throw an exception if there is a broken symbolic link
4004
4005 2005-12-23  Jackson Harper  <jackson@ximian.com>
4006
4007         * TabControl.cs: Give the panels focus, keyboard navigation is
4008         fixed so this works correctly now.
4009         - We need these key events also.
4010         * ToolBar.cs: Remove some of the poor mans double buffering.
4011         
4012 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4013
4014         * ComboBox.cs: The internal TextBox now returns the focus.
4015
4016 2005-12-23  Jackson Harper  <jackson@ximian.com>
4017
4018         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4019
4020 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4021
4022         * Control.cs: Removed debug code
4023         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
4024           implicit children
4025
4026 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
4027
4028         * Control.cs: When creating the control, update the Z-order after
4029           all it's children are created, too. (Fixes nexxia not showing
4030           picturebox bug)
4031
4032 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4033
4034         * Control.cs: Do not update the anchoring distances if layout is
4035           suspended, instead do it once layout is resumed
4036
4037 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
4038
4039         * Control.cs: 
4040           - After many hours of debugging, for both Jackson and
4041             myself, it turns out that it helps to set the parent of a control
4042             if you want to actually see it onscreen. In the spirit of that
4043             discovery, we're now setting the parent of the control and
4044             it's children when the control's handle is created. This fix
4045             will make Lutz Roeder's Reflector run happily. 
4046           - now just creating the handle instead of the whole control when
4047             getting a graphics context for the control.
4048
4049 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4050
4051         * ScrollableControl.cs: When calculating the canvas, don't consider
4052           the scrollbar widths. Instead, predict if horizontal scrollbar
4053           will affect canvas when deciding on vertical display and vice versa.
4054
4055 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4056
4057         * RichTextBox.cs: Set default RTF font for documents that don't
4058           have a font table (Fixes #77076)
4059
4060 2005-12-22  Jackson Harper  <jackson@ximian.com>
4061
4062         * TextBoxBase.cs: It's difficult to do, but you can have an empty
4063         clipboard. This prevents a NullRef in that case.
4064         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
4065         clipboard. PRIMARY is for the currently selected text only. (We
4066         should implement PRIMARY at some point.
4067
4068 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4069
4070         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
4071           a Unicode function with a structure that was defined in Ansi way.
4072           This fixes #76942.
4073
4074 2005-12-21  Jackson Harper  <jackson@ximian.com>
4075
4076         * StatusBar.cs: Statusbar handles its fore/back colours on it's
4077         on. Because thats how it rolls. (and this avoids it using ambient
4078         colours).
4079         * ThemeWin32Classic.cs: Use the proper back color for filling.
4080         * Menu.cs: Use the system menu bar color for drawing menu
4081         bars. Using the window back color will bring ambient colours into
4082         the picture.
4083
4084 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
4085
4086         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
4087           Bitmaps were created and not disposed.
4088
4089 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4090
4091         * Control.cs (CreateControl): Don't do anything if the control is
4092           already created, otherwise we'd fire the OnCreated event more than
4093           once
4094
4095 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4096
4097         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
4098           will always match. Instead return -1. Fixes #76464.
4099
4100 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4101
4102         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
4103           neither the beginning nor the end of the line (Fixes bug #76479)
4104
4105 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4106
4107         * Control.cs:
4108           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4109             where handle is invalid
4110           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4111             instead of slower linear search
4112         * NativeWindow.cs: Don't remove the window from the hashtable until
4113           after the driver has destroyed it (since the driver might use
4114           Control.FromHandle to lookup the control object
4115         * Hwnd.cs: Added DestroyPending property to track if a window is 
4116           already destroyed as far as the driver is concerned and only hasn't
4117           yet notified the control
4118         * XplatUIX11.cs:
4119           - Activate(): Check if the window is still valid before using the 
4120             handle
4121           - Implemented DestroyChildWindow() method to mark child windows as
4122             destroyed when a window is destroyed. This prevents situations 
4123             where we might call an X method based on queued events for a
4124             window that already has been destroyed but we haven't yet pulled
4125             the destroy method from the queue.
4126           - Added a call to the new DestroyChildWindow() method to the drivers
4127             DestroyWindow code. Also now marking the destroyed window itself
4128             as pending
4129
4130 2005-12-20  Jackson Harper  <jackson@ximian.com>
4131
4132         * StatusBar.cs:
4133         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4134         anymore. Just do them when needed, also track the rects of panels
4135         so that we can optimize refreshing more in the future.
4136
4137 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4138
4139         * ColorDialog.cs: Fixed focus drawing in small color controls
4140
4141 2005-12-19  Jackson Harper  <jackson@ximian.com>
4142
4143         * InternalWindowManager.cs:
4144         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4145         moving windows works properly.
4146
4147 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4148
4149         * Control.cs: 
4150           - Removed call to InitLayout() from SetBoundsCore(); doc says
4151             it's only called when a control is added to a container
4152           - Split InitLayout logic, moved to separate UpdateDistances() method
4153             since we need to perform those calculations more often than just
4154             when adding the control to a container. (Needed to fix #77022)
4155           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4156           - Reduced the OnBindingContextChanged events count, don't send them
4157             unless the control is created, we still aren't totally matching
4158             MS, but I can't quite figure out some of their rules
4159
4160 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4161
4162         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4163           stripes
4164
4165 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4166
4167         * ThemeClearlooks.cs:
4168           - Updated ProgressBar drawing
4169           - Corrected drawing of ScrollBars and scroll buttons
4170           - Some temporary fixes for minor pixel artefacts
4171
4172 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4173
4174         * Control.cs:
4175           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4176             cause events to be sent in the same order as MS does.
4177           - Added ChangeParent() method to trigger various OnXXXChanged events
4178             that need to be fired when a parent changes (This is a reworking
4179             of the patch from r54254, with the X11 errors fixed)
4180           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4181             since on MS we get OnLayoutChanged events when calling Clear()
4182           - Changed Enabled property to consider parent state as well, if a
4183             parent is not enabled, the control will not be either
4184           - Changed Parent property to simply call Controls.Add() since that
4185             now does all the work required, this way we avoid code duplication
4186           - Threw in a few OnBindingsContextChanged calls to try and match
4187             when MS sends them. We seem to send a few too many, though.
4188           - Added call to CreateControl when adding the control to a parent.
4189             We were never calling CreateControl. Still needs some work, in
4190             some places we treat HandleCreated and ControlCreated as equal, 
4191             which is wrong
4192           - Removed obsolete commented out code from UpdateZOrder()
4193
4194 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4195
4196         * ThemeClearlooks.cs: Updated TrackBar drawing.
4197
4198 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4199
4200         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4201
4202 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4203
4204         * FileDialog.cs: Add the Help button and the open readonly
4205           checkbox only if needed
4206
4207 2005-12-16  Jackson Harper  <jackson@ximian.com>
4208
4209         * Control.cs: Make sure we have an active menu before trying to
4210         process commands on it. Prevents menu-less forms from crashing
4211         when Alt is pressed.
4212         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4213         Dieter Bremes.
4214         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4215         2.0 build.
4216
4217 2005-12-16  Jackson Harper  <jackson@ximian.com>
4218
4219         * InternalWindowManager.cs: Don't translate tool windows screen
4220         coordinates. This fixes windows 'bouncing' around when being moved.
4221
4222 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4223
4224         * TextBoxBase.cs:
4225           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4226             not quite MS compatible, MS uses that number only for single line
4227             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4228             the limit at 2GB)
4229           - Now enforcing the MaxLength limit when entering characters
4230           - Added argument to internal Paste() method to track if it's called
4231             from programatically or via keyboard, since keyboard driven pastes
4232             need to enforce max-length
4233           - Added logic to Paste to only paste as many chars as MaxLength 
4234             allows
4235         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4236         * TextControl.cs:
4237           - Added Length property to return number of characters in document
4238           - Added private CharCount property which only tracks actual chars
4239             in the document (no linefeeds) and fires event when CharCount
4240             changes
4241           - Added tracking of character count to all methods that alter it
4242           - Added LengthChanged event to allow applications to subscribe
4243             to any changes to the document
4244
4245 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4246
4247         * TextBox.cs: 
4248           - Removed local password_char field (moved to TextBoxBase)
4249           - Now setting the document's password var when password is
4250             set
4251         * TextBoxBase.cs:
4252           - Added password_char field (needed here so MultiLine can
4253             access it)
4254           - Added logic to MultiLine property setter to set the document's
4255             variable when password display is allowed
4256           - Removed debug code and made some debug code conditional
4257         * TextControl.cs:
4258           - Added RecalculatePasswordLine() method to handle special password
4259             char only lines
4260           - Added PasswordChar property, also added related tracking vars
4261           - Draw() method now uses local text var for grabbing text to draw,
4262             this var is set to line.text unless we're doing password display,
4263             then it is set to the pre-generated all-password-chars line
4264           - Added calling RecalculatePasswordLine() method for password lines
4265
4266 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4267
4268         * Hwnd.cs: 
4269           - Added Reparented property to allow tracking of Window Manager
4270             reparenting actions (which affect X/Y calculations of toplevel 
4271             windows)
4272           - Made ToString() print window handles in hex
4273         * XplatUIX11.cs:
4274           - AddConfigureNotify(): Now uses reparented state off Hwnd to
4275             determine if X/Y needs offsetting
4276           - AddConfigureNotify(): Fixed offset calculations
4277           - Now adds ReparentNotify messages into the queue
4278           - Now processes ReparentNotify messages and causes a 
4279             WM_WINDOWPOSCHANGED message to be sent upstream if a window
4280             is reparented (as most likely it's X/Y coordinates are changed
4281             due to that)
4282
4283 2005-12-14  Jackson Harper  <jackson@ximian.com>
4284
4285         * XplatUIX11.cs: Tool windows still need to respek focus.
4286
4287 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4288
4289         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4290           have a working release
4291
4292 2005-12-13  Jackson Harper  <jackson@ximian.com>
4293
4294         * Form.cs: Update styles after setting the border style regardless
4295         of whether or not the window is using a window manager.
4296
4297 2005-12-13  Jackson Harper  <jackson@ximian.com>
4298
4299         * Form.cs: We now hook into an internal window manager instead of just an
4300         MDI subsystem, this is so we can have properly behaving tool windows.
4301         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4302         * InternalWindowManager.cs: New internal class that acts as a
4303         window manager for tool windows and as a base for mdi windows.
4304         * MdiWindowManager.cs: New class that acts as a window manager for
4305         mdi windows.
4306
4307 2005-12-12  Jackson Harper  <jackson@ximian.com>
4308
4309         * Control.cs: Updates so we match behavoir for for implicit
4310         controls. Fixes explosions in MDI.
4311
4312 2005-12-12  Jackson Harper  <jackson@ximian.com>
4313
4314         * Control.cs: Implement Invalidate (Region).
4315
4316 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
4317
4318         * Control.cs: 
4319           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
4320             the same events as MS does. MS fires events for each property 
4321             except, for unknown reasons, Cursor, when the control is reparented. 
4322             I can't seem to totally match add/remove since MS also fires some 
4323             VisibleChanged events, which makes no sense. Consolidated the
4324             parenting code into a separate method so it can be called from
4325             both Add and Remove. set_Parent no longer needs any special logic
4326             as it calls the parent's add method which implicitly fires
4327             all events
4328           - Removed some obsolete code and debug output
4329           - Enabled state is inherited from parents, if this is enabled
4330
4331 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4332
4333         * Form.cs: Removed commented out code
4334
4335 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4336
4337         * Control.cs:
4338           - Added internal version of Invoke, with additional argument 
4339             indicating if we're calling it from a Dispose() handler. That
4340             way we can avoid BeginInvoke throwing an exception if we're
4341             calling for an already destroyed window.
4342           - Added a dispose argument to BeginInvokeInternal, and made the
4343             check if a valid window handle chain exists conditional on
4344             it not being a dispose call
4345           - Removed code in DestroyHandle to destroy our children. Since we
4346             now handle the WM_DESTROY message we will catch all our children
4347             being destroyed.
4348           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4349         * Form.cs:
4350           - Added a field to track the application context of the form.
4351           - No need to set closing variable as response to WM_CLOSE, instead
4352             we destroy the window. We also call PostQuitMessage if the form
4353             has an application context (which makes it the main app form,
4354             which, when closed terminates the app)
4355         * XplatUI.cs:
4356           - Dropped Exit() method, it's naming was confusing
4357           - Added PostQuitMessage() which causes GetMessage to return false
4358             once the message queue is empty
4359         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4360           PostQuitMessage()
4361         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4362           no longer a valid XplatUI method, but left it in since it's used
4363           internally. Added empty PostQuitMessage() method.
4364         * MenuAPI.cs: Replaced call to Exit() with call to
4365           PostQuitMessage, even though this is probably no longer needed.
4366         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4367         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4368         * Application.cs:
4369           - Replaced call to XplatUI.Exit() with PostQuitMessage()
4370           - Removed old debug code that would call XplatUI for exception
4371             display, enabled standard exception handling (Still not enabled
4372             though, until NativeWindow's ExternalExceptionHandler define
4373             is removed
4374         * NativeWindow.cs:
4375           - Added internal method to allow control to update NativeWindow
4376             after a window has been destroyed
4377           - Added handling of already destroyed windows when calling i
4378             DestroyWindow
4379           - Added removal of handle from list on ReleaseHandle
4380         * XplatUIX11.cs:
4381           - Dropped GetMessageResult var and related code
4382           - Added PostQuitState to field to track if PostQuitMessage has been
4383             called
4384           - Dropped Exit() method
4385           - Added PostQuitMessage() method
4386           - GetMessage now will return false if PostQuitState is set and no
4387             more messages are in the queue.
4388           - Expose handler will no longer generate WM_PAINT messages if we are
4389             in PostQuitState since it's very likely any windows have already
4390             been destroyed, and since Hwnd won't get updated until we have
4391             processed the DestroyNotify we'd be causing X errors.
4392         
4393 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4394
4395         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4396           Thanks to Mike for pointing out the err of my ways.
4397
4398 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4399
4400         * Control.cs(PreProcessMessage): Moved menu handling back, but
4401           after all other key handling, to match MS (who handles Menu in
4402           DefWndProc)
4403         * Menu.cs (WndProc): Removed my brainfart
4404
4405 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4406
4407         * Control.cs(PreProcessMessage): Removed special menu handling 
4408         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4409
4410 2005-12-07  Mike Kestner  <mkestner@novell.com>
4411
4412         * Control.cs : special case SYSKEYUP so that we can adjust keynav
4413         state according in tracker.
4414         * Menu.cs : promote tracker field to base class and provide a tracker
4415         lookup capability.  Add/Remove shortcuts dynamically if the top menu
4416         has a tracker. Unparent items that are removed from the collection.
4417         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4418         * Theme*.cs: add always_show_hotkeys field to support configurability
4419         of mnemonic display.  win32 doesn't show mnemonics until Alt is
4420         pressed.
4421
4422 2005-12-07  Jackson Harper  <jackson@ximian.com>
4423
4424         * MdiChildContext.cs: Use Control.ResetCursor.
4425         * Control.cs: ResetCursor needs to set the property so that the
4426         correct XplatUI call gets made.
4427
4428 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4429
4430         * Control.cs: More fixes to make our key events match MS. We
4431           were not setting the modifier state on KeyData, and we were
4432           not generating any events when Alt was pressed with a key
4433           since handling of WM_SYSxxx was missing for the OnKey methods.
4434
4435 2005-12-07  Jackson Harper  <jackson@ximian.com>
4436
4437         * MdiChildContext.cs: reenable the sizing code.
4438         - When the mouse leaves a window reset its cursor.
4439
4440 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4441
4442         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4443
4444 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4445
4446         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4447           widths of Fixed3D borders
4448
4449 2005-12-07  Jackson Harper  <jackson@ximian.com>
4450
4451         * MdiClient.cs: Fix warnings. Earn Mike's love.
4452
4453 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4454
4455         * ThemeClearlooks.cs:
4456           - Adjusted mouse over button color
4457           - Added first parts of CheckBox drawing
4458           - Added correct color for selected text background
4459           - Fixed ComboBox drawing
4460           - Added CPDrawBorder3D and CPDrawBorder
4461
4462 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4463
4464         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4465
4466 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4467
4468         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4469           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4470           alert users via sound. We could add an enum arg with different
4471           types of alerts in the future
4472
4473 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4474
4475         * Control.cs: Fix behaviour problems pointed out by Mike
4476
4477 2005-12-05  Mike Kestner  <mkestner@novell.com>
4478
4479         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4480         prop setters.  Calls parent.Refresh for now, but could be maybe be
4481         optimized with an internal method on StatusBar at some point.
4482         [Fixes #76513]
4483
4484 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4485
4486         * RichTextBox.cs: Implemented get_SelectionColor
4487
4488 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4489
4490         * ThemeClearlooks.cs:
4491           - Removed dead code
4492           - Draw black button border only if button is Form.AcceptButton
4493           - Draw correct button color for pressed RadioButton if the mouse 
4494             has entered the button
4495           - Updated ProgressBar drawing!
4496           - Updated CPDrawSizeGrip drawing
4497           - Updated StatusBarPanel drawing
4498
4499 2005-12-05  Mike Kestner  <mkestner@novell.com>
4500
4501         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4502         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4503
4504 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4505
4506         * ThemeClearlooks.cs: Initial check-in, activate with
4507           export MONO_THEME=clearlooks
4508         * ThemeEngine.cs: Added ThemeClearlooks
4509
4510 2005-12-03  Mike Kestner  <mkestner@novell.com>
4511
4512         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4513         [Fixes #76897]
4514
4515 2005-12-02  Jackson Harper  <jackson@ximian.com>
4516
4517         * Form.cs: If the child form has no menu the default main menu is
4518         used as the active menu.
4519
4520 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4521
4522         * ListBox.cs: Check if any items exist before trying to resolve 
4523           coordinates into items
4524
4525 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4526
4527         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4528           as the second color for the background hatch
4529
4530 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4531
4532         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4533         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4534           sure that what we pass to FormatText is always 1-based. Fixes #76885
4535
4536 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4537
4538         * NumericUpDown.cs (EndInit): When we are done initializing,
4539         reflect any updates on the UI.
4540
4541 2005-12-02  Jackson Harper  <jackson@ximian.com>
4542
4543         * ImplicitHScrollBar.cs:
4544         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4545         their container controls.
4546         * TreeView.cs: Use the new implicit scrollbars.
4547
4548 2005-12-02  Jackson Harper  <jackson@ximian.com>
4549
4550         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4551         can play with it.
4552         * TreeNodeCollection.cs: If we remove the topnode we need to
4553         update topnode to the next node in line.
4554         - When clearing nodes go through the same process as removing
4555         them, so they get depareneted and checked if they are top node.
4556
4557 2005-12-01  Jackson Harper  <jackson@ximian.com>
4558
4559         * TreeView.cs: When imagelists are used the image area is
4560         selectable as well as the text.
4561         - If there are no selected nodes select the first one.
4562         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4563         so don't do it more then we need to.
4564
4565 2005-12-01  Jackson Harper  <jackson@ximian.com>
4566
4567         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4568         that arrows can be scaled.
4569
4570 2005-12-01  Jackson Harper  <jackson@ximian.com>
4571
4572         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4573         fail. Patch by Dieter Bremes
4574
4575 2005-11-30  Jackson Harper  <jackson@ximian.com>
4576
4577         * Form.cs: Property is 2.0 only
4578         * PrintDialog.cs: Signature fix.
4579
4580 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4581
4582         * TextControl.cs: 
4583           - No longer artificially moves text 2 pixels down (now that we have
4584             borders this is no longer needed)
4585           - Added calcs for left, hanging and right indent
4586
4587 2005-11-23  Mike Kestner  <mkestner@novell.com>
4588
4589         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4590
4591 2005-11-30  Jackson Harper  <jackson@ximian.com>
4592
4593         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4594         get cloned as part of CloneMenu ().
4595         * Menu.cs: Make sure the parent of the items get set correctly
4596         when they are added.  And the owners are notified of the changes.
4597         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4598         we can change the menu being displayed/handled by the form without
4599         changing the menu assosciated with the form.
4600         - Don't let Mdi children draw/handle menus.
4601         
4602 2005-11-30  Jackson Harper  <jackson@ximian.com>
4603
4604         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4605         a MenuChanged event. Just to make the API a little more
4606         consistent.
4607         * MainMenu.cs:
4608         * MenuItem.cs: Use the new OnMenuChanged
4609         * MdiChildContext.cs: Handle menu merging.
4610         * Form.cs: Implement MergedMenu.
4611         
4612 2005-11-30  Jackson Harper  <jackson@ximian.com>
4613
4614         * Menu.cs: We were misusing Add. Add goes behind the specified
4615         index according to the docs, and does not replace the specified
4616         index. So I added an Insert method.
4617
4618 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4619
4620         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4621           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4622           is for Jackson
4623         * RichTextBox.cs: Added calls to base for DnD events
4624
4625 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4626
4627         * TextControl.cs:
4628           - Fixed drag-selection related crash; style fixes
4629           - Implemented undo class
4630             o Implemented method to capture document state for specified
4631               range in document tree
4632             o Implemented method to restore captured document state
4633             o Implemented cursor tracking
4634             o Implemented basic undo stack
4635           - Added undo cursor tracking to methods altering cursor location
4636           - Added undo tracking to selection deletion (still missing
4637             other text-altering hookups)
4638         * RichTextBox.cs:
4639           - Added SelectionLength property
4640           - Implemented CanPaste()
4641           - Implemented Paste()
4642           - Added missing protected methods
4643           - Fixed RTF->Document conversion; now uses font index 0 and color 
4644             index 0 as the default font for the parsed text
4645           - Fixed RTF<->Document font size translation
4646           - Fixed RTF generation, now properly handles cross-tag boundaries
4647             for single line selection
4648           - No longer always appends blank line to generated RTF
4649           - Removed TODOs
4650           - Added missing attributes
4651           - Hooked up undo-related methods
4652         * TextBoxBase.cs:
4653           - Implemented Copy()
4654           - Implemented Paste()
4655           - Implemented Cut()
4656           - Fixed caret mis-behaviour on backspace across line-boundaries
4657
4658 2005-11-29  Jackson Harper  <jackson@ximian.com>
4659
4660         * MdiClient.cs: Add a method for activating mdi children. Very
4661         basic right now. I imagine someday it might need more girth.
4662         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4663         children windows names are added to the menu item.
4664         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4665         mdilist. This happens regardless of whether or not there are any
4666         mdi windows to see in the list, and according to my tests happens
4667         before the items are even added. Also happens if there isn't even
4668         an mdi client to get windows from.
4669
4670 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4671
4672         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4673         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4674
4675 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4676
4677         * DataGridTableStyle.cs:
4678           - Create always the styles for the missing columns even if they are
4679             provided by the user (not default table style)
4680         * DataGrid.cs:
4681           - Fixes bug 76770
4682           - Fixes SetDataBinding (always re-attach source)
4683           - Fixes SetNewDataSource (only clear styles if they are not for 
4684             this source)
4685          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4686             and remove properly
4687
4688 2005-11-29  Jackson Harper  <jackson@ximian.com>
4689
4690         * FileDialog.cs: Implement missing bits, remove some dead
4691         code.
4692         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4693         creation of the panel so that the options set on the dialog are
4694         seen when the panel is created.
4695         * TreeView.cs: raise a click when items are clicked.
4696         
4697 2005-11-29  Jackson Harper  <jackson@ximian.com>
4698
4699         * MdiClient.cs: Pass some signature methods through to base.
4700
4701 2005-11-28  Jackson Harper  <jackson@ximian.com>
4702
4703         * ListView.cs: Raise the click event when items are clicked.
4704
4705 2005-11-28  Jackson Harper  <jackson@ximian.com>
4706
4707         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4708         a nullref.
4709
4710 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4711
4712         * ThemeNice.cs: - Removed 1 pixel bitmaps
4713           - Use SmoothingMode.AntiAlias where it makes sense
4714             (ScrollButton arrow for example)
4715           - Enhanced Button focus drawing
4716           - Fixed ComboBox drawing (no artefacts anymore, focus
4717             rectangle is back again, reduced size of ComboButton, etc.)
4718           - Fixed RadioButton focus drawing for Appearence.Button
4719           - Slight ScrollButton redesign
4720           - Some LinearGradientBrush size fixes
4721           - GroupBoxes have now rounded edges
4722           - Fixed StatusBar drawing
4723
4724 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4725
4726         * ThemeNice.cs: - Remove dead code
4727           - use correct background colors for menus, etc.
4728           - Fake pixel drawing with 1 pixel bitmaps
4729
4730 2005-11-24  Jackson Harper  <jackson@ximian.com>
4731
4732         * MdiClient.cs: Size the scrollbars when resizing the window.
4733         - Resize the maximized windows when the client is resized
4734         * Form.cs: Make the child context available
4735         
4736 2005-11-23  Jackson Harper  <jackson@ximian.com>
4737
4738         * MdiChildContext.cs: Don't size windows if they are maximized.
4739
4740 2005-11-23  Mike Kestner  <mkestner@novell.com>
4741
4742         * ContextMenu.cs: use MenuTracker.
4743         * Control.cs: remove menu handle usage.
4744         * Form.cs: remove menu handle usage.
4745         * Hwnd.cs: remove menu handle usage.
4746         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4747         motion and clicks to the new Tracker handlers.
4748         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4749         and handle usage.
4750         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4751         Killed the MENU and MENUITEM data types and associated collections
4752         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4753         MenuTracker class that exposes the leftovers from the old MenuAPI
4754         static methods. Restructured Capture handling so that only one grab is
4755         done for the entire menu hierarchy instead of handing off grabs to
4756         submenus. Tracker now has an invisible control to Capture when active.
4757         * MenuItem.cs: add sizing accessors, kill Create
4758         and handle usage.
4759         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4760         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4761         MENU(ITEM). remove menu handle usage, use Menu directly.
4762         * XplatUIDriver.cs: remove menu handle usage.
4763         * XplatUIOSX.cs: remove menu handle usage.
4764         * XplatUIWin32.cs: remove menu handle usage.
4765         * XplatUIX11.cs: remove menu handle usage.
4766
4767 2005-11-22  Jackson Harper  <jackson@ximian.com>
4768
4769         * Hwnd.cs: Don't compute the menu size for
4770         DefaultClientRectangle.
4771         - Reenable menu sizes being computed for GetClienRectangle.
4772         * Form.cs: Remove comment of trechery
4773         
4774 2005-11-22  Jackson Harper  <jackson@ximian.com>
4775
4776         * Hwnd.cs: The adjustments for the menu bar are made when it is
4777         attached to the form.
4778
4779 2005-11-19  Jackson Harper  <jackson@ximian.com>
4780
4781         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4782         (just like on windows).
4783
4784 2005-11-19  Jackson Harper  <jackson@ximian.com>
4785
4786         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4787         use real buttons anymore because they are in non client area. The
4788         one TODO here is that I need to somehow invalidate a section of
4789         the non client area.
4790
4791 2005-11-18  Jackson Harper  <jackson@ximian.com>
4792
4793         * Control.cs: Put the enum check back in now that MDI doesnt have
4794         to use this to set border styles.
4795         * Form.cs: Only set mdi child windows borders if the handle has
4796         been created.
4797         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4798         this directly on to the driver.
4799         - Get the move start position before adjusting for the titlebar
4800         height, this fixes the windows "skipping" when they are first
4801         moved.
4802
4803 2005-11-18  Jackson Harper  <jackson@ximian.com>
4804
4805         * XplatUIX11.cs: Just compute the mdi borders separately as they
4806         don't totally match up with normal form borders.
4807
4808 2005-11-18  Jackson Harper  <jackson@ximian.com>
4809
4810         * Control.cs: Set WS_ styles for borders, so that the driver does
4811         not have to retrieve the control instance to figure out what kind
4812         of borders it should have.
4813         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4814         driver can know its an mdi child easily.
4815         * XplatUIX11.cs: Get the border styles and whether the window is
4816         MDI from the Styles and ExStyles params instead of having to get a
4817         control. This prevents a chicken and egg problem.       
4818
4819 2005-11-18  Jackson Harper  <jackson@ximian.com>
4820
4821         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4822
4823 2005-11-18  Jackson Harper  <jackson@ximian.com>
4824
4825         * MdiClient.cs: Calculate when to add and remove scrollbars
4826         correctly.
4827         * MdiChildContext.cs: Adjust the y position to take the titlebar
4828         into account.
4829         - No height for FormBorderStyle.None
4830
4831 2005-11-18  Jackson Harper  <jackson@ximian.com>
4832
4833         * Control.cs: Allow non enum values to be used for
4834         InternalBorderStyle.  MDI does this to set a special border style.
4835         - New utility methods for converting points to/from client coords
4836         - Add the newly created control to the Controls collection before
4837         updating its style. This way UpdateStyle can walk the control
4838         heirarchy to find the control if needed.
4839         so I don't need to create a new Point object all the time.
4840         * Form.cs: Let MDI windows handle their border styles.
4841         - Set styles on MDI windows so the correct title style is derived.
4842         * MdiChildContext.cs: Move all the painting and window handling
4843         into the non client area.
4844         - Use correct sizing and put correct buttons on frames based on
4845         the FormBorderStyle.
4846         - Notify the mdi client about scrolling
4847         - Need to handle the buttons ourselves now, because they are all
4848         in non client areas and we can't add controls there.
4849         * MdiClient.cs: Halfway to scrolling, this implementation is
4850         somewhat broken though, we need to check to make sure other
4851         windows aren't causing scrolling before removing the bars. Also
4852         the bars need to be drawn on top, maybe I can switch implicit
4853         controls to be on top.
4854         * Hwnd.cs: caption_height and tool_caption_height are now
4855         properties of an hwnd, this way they can be set by the driver
4856         based on the type of window they are.  In X11 the window manager
4857         handles the decorations so caption_height is zero unless its an
4858         MDI window.
4859         - Add 3 pixel borders for MDI windows (0xFFFF).
4860         - Get rid of some code duplication, have DefaultClientRectanle
4861         just call GetClientRectangle.
4862         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4863         Hwnd now.
4864         - Set border styles differently for mdi windows.
4865         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4866         Hwnd now.
4867         
4868 2005-11-15  Mike Kestner  <mkestner@novell.com>
4869
4870         * Menu.cs: when adding an item to the collection, if item is already 
4871         parented, remove it from the parent.
4872
4873 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
4874
4875         * X11DesktopColors.cs: Added KDE support
4876
4877 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
4878
4879         * XplatUIWin32.cs: 
4880           - Clipboard methods now can translate Rtf format
4881           - No longer removes clipboard contents whenever a new format is added
4882             to allow placing multiple formats on the clipboard
4883         * Clipboard.cs: Clipboard now supports getting a IDataObject and
4884           will place all formats contained in it onto the clipboard. Also
4885           now cleans the clipboard before placing a new object onto it
4886         * RichTextBox.cs:
4887           - Implemented set_Rtf
4888           - Implemented set_SelectedRtf
4889           - Created InsertRTFFromStream() method to allow single code base
4890             for all properties and methods that insert RTF into document
4891           - Removed debug output
4892         * TextControl.cs:
4893           - Fixed Delete(int) to fix up line numbers
4894           - Fixed ReplaceSelection to combine start and end line
4895           - Fixed serious DeleteChars bug that would leave the document tree
4896             broken
4897           - Improved DumpTree with several logic checks to detect broken
4898             document trees
4899           - Removed debug lines
4900           - Fixed Caret.WordForward/WordBack moving code, now always also 
4901             updates caret.tag (fixes crash when word-selecting across tag
4902             boundaries via keyboard)
4903           - Added Insert() method for inserting multiline text into documents
4904           - Fixed DeleteChars() calculation errors that would cause a broken
4905             tag chain with multiple tag lines
4906           - DeleteChars() no longer crashes on multi-tag lines if not all tags
4907           - Split() no longer moves caret if split is at caret location
4908           - ReplaceSelection() now updates the cursor and re-displays it
4909           - ReplaceSelection() now uses new Insert() method to avoid code
4910             duplication
4911           - FormatText() can now handle formatting partial lines
4912         * TextBoxBase.cs:
4913           - Append now uses new TextControl.Insert() method (this avoids 
4914             duplicate code)
4915           - Implemented Ctrl-X (Cut) (
4916           - Implemented Ctrl-C (Copy)
4917           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
4918             regeneration when pasting text; roundtripping Copy&Paste within
4919             edit control still fails due to some calculation bugs in GenerateRTF)
4920           - The Delete key will now remove the current selection if it is visible
4921         * TextBox.cs: Removed debug lines
4922         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4923           driver to be initialized and can't therefore be done via a static ctor)
4924
4925 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
4926
4927         * TextControl.cs: Added backend code for finding char arrays and strings
4928         * TextBoxBase.cs:
4929           - Added mouse wheel scroll support
4930           - Added support for VScroll and HScroll events
4931         * RichTextBox.cs:
4932           - Implemented all seven Find() variants
4933           - Implemented GetCharFromPosition()
4934           - Implemented GetCharIndexFromPosition()
4935           - Implemented GetLineFromIndex()
4936           - Implemented GetPositionFromCharIndex();
4937           - Implemented SaveFile for PlainText and UnicodeText
4938           - Fixed set_Font, now setting a new font applies that font to
4939             the whole document
4940           - Implemented generic Document to RTF converter
4941           - Implemented SaveFile for RichText format (still missing unicode
4942             conversion for non-ansi chars)
4943           - Implemented get_Rtf
4944           - Implemented get_SelectedRtf
4945
4946 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
4947
4948         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4949           to allow any captures to be released before triggering OnClick. This
4950           way a click handler may capture the mouse without interference.
4951         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4952           This way we send them even though X may not allow a grab (if the window
4953           isn't visible, for example)
4954
4955 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
4956
4957         * DataGridViewRowEventArgs.cs: DataGridView implementation
4958         * DataGridViewElement.cs: DataGridView implementation
4959         * DataGridViewComboBoxCell.cs: DataGridView implementation
4960         * DataGridViewDataErrorContexts.cs: DataGridView implementation
4961         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4962         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4963         * ImageLayout.cs: DataGridView implementation
4964         * DataGridViewComboBoxColumn.cs: DataGridView implementation
4965         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4966         * DataGridViewSelectionMode.cs: DataGridView implementation
4967         * IDataGridViewEditingControl.cs: DataGridView implementation
4968         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4969         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4970         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4971         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4972         * DataGridViewColumnSortMode.cs: DataGridView implementation
4973         * DataGridView.cs: DataGridView implementation
4974         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4975         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4976         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4977         * Padding.cs: DataGridView implementation
4978         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4979         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4980         * DataGridViewRowEventHandler.cs: DataGridView implementation
4981         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4982         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4983         * DataGridViewButtonCell.cs: DataGridView implementation
4984         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4985         * DataGridViewEditMode.cs: DataGridView implementation
4986         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4987         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4988         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4989         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4990         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4991         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4992         * DataGridViewCellEventHandler.cs: DataGridView implementation
4993         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
4994         * DataGridViewCellStyleConverter.cs: DataGridView implementation
4995         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
4996         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
4997         * DataGridViewColumnEventArgs.cs: DataGridView implementation
4998         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
4999         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5000         * QuestionEventArgs.cs: DataGridView implementation
5001         * IDataGridViewEditingCell.cs: DataGridView implementation
5002         * DataGridViewTriState.cs: DataGridView implementation
5003         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5004         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5005         * DataGridViewColumnCollection.cs: DataGridView implementation
5006         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5007         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5008         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5009         * DataGridViewColumn.cs: DataGridView implementation
5010         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5011         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5012         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5013         * DataGridViewRow.cs: DataGridView implementation
5014         * DataGridViewImageCellLayout.cs: DataGridView implementation
5015         * DataGridViewImageCell.cs: DataGridView implementation
5016         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5017         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5018         * DataGridViewHeaderCell.cs: DataGridView implementation
5019         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5020         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5021         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5022         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5023         * QuestionEventHandler.cs: DataGridView implementation
5024         * DataGridViewCellStyleScopes.cs: DataGridView implementation
5025         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
5026         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
5027         * DataGridViewCell.cs: DataGridView implementation
5028         * DataGridViewCellEventArgs.cs: DataGridView implementation
5029         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
5030         * DataGridViewCellStyle.cs: DataGridView implementation
5031         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
5032         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
5033         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
5034         * TextFormatFlags.cs: DataGridView implementation
5035         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
5036         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
5037         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
5038         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
5039         * DataGridViewButtonColumn.cs: DataGridView implementation
5040         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
5041         * HandledMouseEventArgs.cs: DataGridView implementation
5042         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
5043         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
5044         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
5045         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
5046         * DataGridViewRowCollection.cs: DataGridView implementation
5047         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
5048         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
5049         * DataGridViewHitTestType.cs: DataGridView implementation
5050         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
5051         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
5052         * DataGridViewColumnEventHandler.cs: DataGridView implementation
5053         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
5054         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
5055         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
5056         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
5057         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
5058         * DataGridViewContentAlignment.cs: DataGridView implementation
5059         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
5060         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
5061         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
5062         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
5063         * DataGridViewPaintParts.cs: DataGridView implementation
5064         * DataGridViewCellCollection.cs: DataGridView implementation
5065         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
5066         * DataGridViewImageColumn.cs: DataGridView implementation
5067         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
5068         * DataGridViewElementStates.cs: DataGridView implementation
5069         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
5070         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
5071         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
5072         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
5073         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
5074         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
5075         * DataGridViewRowHeaderCell.cs: DataGridView implementation
5076         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
5077         * DataGridViewTextBoxCell.cs: DataGridView implementation
5078         * DataGridViewBand.cs: DataGridView implementation
5079         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
5080         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
5081         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
5082         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
5083         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
5084         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
5085         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
5086         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
5087         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
5088         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
5089         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
5090
5091 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
5092
5093         * ThemeWin32Classic.cs: 
5094           - Draw the outside focus rectangle around buttons
5095           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
5096             doesn't use end caps for every dash of a line anymore. This
5097             workaround ignores the forecolor.
5098
5099 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
5100
5101         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
5102           endian safe.
5103
5104 2005-11-07  Jackson Harper  <jackson@ximian.com>
5105
5106         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
5107
5108 2005-11-07  Jackson Harper  <jackson@ximian.com>
5109
5110         * ScrollableControl.cs: Calculate the maximum and change vars
5111         (more) correctly so that scrollbars appear as a sensible size.
5112
5113 2005-11-04  Jackson Harper  <jackson@ximian.com>
5114
5115         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5116         collection.
5117         * TreeView.cs: When the tree is sorted null out the top_node so
5118         that it is recalculated.
5119         - Use dotted lines instead of dashed lines to match MS better.
5120
5121 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5122
5123         * ListView.cs: 
5124           - Implements key search for items. Useful when browsing files with FileDialog
5125           - When changing view mode or when clear the items reset scrollbar positions
5126
5127 2005-11-04  Jackson Harper  <jackson@ximian.com>
5128
5129         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5130         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5131         as to what the method may do as there is no real way of creating a
5132         derived CurrencyManager and calling the method. 
5133
5134 2005-11-03  Jackson Harper  <jackson@ximian.com>
5135
5136         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5137         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5138         method which seems to just be used internally to refresh the tabs.
5139
5140 2005-11-03  Jackson Harper  <jackson@ximian.com>
5141
5142         * TabControl.cs: Implement the remove method. Fix some broken
5143         comments.
5144
5145 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5146
5147         * DateTimePicker.cs:
5148           - Added missing DateTimePickerAccessibleObject class
5149           - Added missing events
5150           - Added OnFontChanged method
5151         * Form.cs: Added missing attributes
5152         * TreeView.cs: Added missing attributes
5153
5154 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5155
5156         * GridItemCollection.cs: Fix signatures
5157
5158 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5159
5160         * XplatUI.cs: Updated build rev/date
5161         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5162           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5163         * Application.cs: Trigger context-specific ExitThread events
5164
5165 2005-11-03  Jackson Harper  <jackson@ximian.com>
5166
5167         * Menu.cs:
5168         * MainMenu.cs:
5169         * GridTableStylesCollection.cs:
5170         * Timer.cs:
5171         * TabPage.cs:
5172         * HelpProvider.cs:
5173         * StatusBar.cs:
5174         * MonthCalendar.cs: Signature fixes
5175
5176 2005-11-03  Jackson Harper  <jackson@ximian.com>
5177
5178         * TreeNodeCollection.cs: Remove should not be virtual.
5179         * TreeView.cs: Implement the last of the missing methods.
5180
5181 2005-11-03  Jackson Harper  <jackson@ximian.com>
5182
5183         * TreeNodeConverter.cs: Implement to get off my class-status back.
5184
5185 2005-11-03  Jackson Harper  <jackson@ximian.com>
5186
5187         * TreeView.cs: Hookup the bits for drag and drop.
5188         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5189         that nodes can be moved from tree to tree easily this just causes
5190         all sorts of problems.
5191         * TreeNodeCollection: Don't need to give treenodes an index and
5192         treeview anymore when they are added, these are computed on the
5193         fly. Also make sure to remove a node before its added.
5194
5195 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5196
5197         * TextControl.cs:
5198           - Added CaretSelection enum
5199           - Added comparison methods to Marker struct, makes selection code
5200             more readable
5201           - Added SelectionStart and SelectionEnd as 'moveable' location for
5202             the CaretDirection enum and handler
5203           - Added selection_prev variable to track optimized invalidation for
5204             word and line selection
5205           - Added SelectionVisible property (returns true if there is a valid 
5206             selection)
5207           - Switched CaretHasFocus to only display the caret if there is no
5208             visible selection
5209           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5210             using the direct character index; should be much faster
5211           - Added various conditional debug statements
5212           - Fixed invalidation calculation for selection ranges
5213           - Added ExpandSelection() method to support word and line selection
5214           - Switched SetSelectionToCaret to use new Marker compare overloads
5215           - Added central IsWordSeparator() method to determine word 
5216             separators/whitespace and FindWordSeparator() to streamline common
5217             usage of IsWordSeparator()
5218         * TextBoxBase.cs:
5219           - Removed unneeded grabbed variable, it was just mirroring
5220             Control.Capture
5221           - No longer firing OnTextChanged event when Text setter is called,
5222             since the base will fire the event for us
5223           - Added handling of Ctrl-Up/Down selection
5224           - Added handling of Shift-Cursorkey selection
5225           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5226             words
5227           - Added handling of Shift and Ctrl-Shift-Home/End selection
5228           - Removed some debug output
5229           - Added handling for single/double/tripple-click to place caret/
5230             select word/select line respectively (Fixes bug #76031)
5231           - Added support for drag expansion of word/line selection
5232         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5233           current selection
5234
5235 2005-11-02  Jackson Harper  <jackson@ximian.com>
5236
5237         * X11Dnd.cs: If the drag is going to and from a MWF window just
5238         copy the data instead of sending it out through the X Selection
5239         mechanism.
5240
5241 2005-11-02  Jackson Harper  <jackson@ximian.com>
5242
5243         * X11Dnd.cs:
5244         * XplatUIX11.cs: When in a drag we don't want motion notify
5245         messages to get passed on to the other controls. This prevents
5246         mouse move messages from showing up in the drag source.
5247
5248 2005-11-02  Jackson Harper  <jackson@ximian.com>
5249
5250         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5251         the correct button is release to end a drag.
5252         * XplatUIX11.cs: Make the button state internal so the drag system
5253         can access it.  Dragging needs to know about all button releases,
5254         not just left button.
5255
5256 2005-11-02  Miguel de Icaza  <miguel@novell.com>
5257
5258         * Form.cs (Icon): If the icon is null, reset the icon to the
5259         default value. 
5260
5261         * Cursor.cs: When writing the AND-mask bitmap do not include the
5262         number of colors, but hardcode those to two (black and white),
5263         fixes the loading of color cursors (Paint Dot Net).
5264
5265         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5266         turn off autoscaling.
5267
5268         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5269
5270 2005-11-02  Jackson Harper  <jackson@ximian.com>
5271
5272         * X11Dnd.cs: Make sure to send a status message if the pointer
5273         enters a control that can not accept a drop, otherwise the cursor
5274         isn't updated correctly. Also tried to compress the lines of code
5275         a bit.
5276
5277 2005-11-02  Jackson Harper  <jackson@ximian.com>
5278
5279         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5280         set actions correctly.  This isn't perfect as XDND and win32 have
5281         some differences on how you allow actions. I'll clear this up by
5282         adding a path for drag from MWF to MWF windows.
5283         * XplatUIX11.cs: Hook into the dnd system.
5284
5285 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
5286
5287         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5288         previously shown but they are no longer need it. Very obvious when 
5289         browsing files with FileDialog.
5290
5291 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
5292
5293         * Control.cs: We always need to call OnPaintBackground. We pretty much
5294           ignore AllPaintingInWmPaint and always do the painting there, whether 
5295           it's set or not, since we always ignore the WM_ERASEBKGND message 
5296           (which we don't generate on X11). This fixes #76616.
5297         * Panel.cs: Removed unneeded background painting. This happens properly
5298           in Control.cs already
5299
5300 2005-10-31  Mike Kestner  <mkestner@novell.com>
5301
5302         * Menu.cs: Add items to collection before setting their index.
5303         * MenuItem.cs : add range checking with ArgumentException like MS.
5304         [Fixes #76510]
5305
5306 2005-10-31  Jackson Harper  <jackson@ximian.com>
5307
5308         * ListBox.cs: Invalidate if the area is visible at all not just
5309         contained in the visible rect. Fixes unselection of semi visible
5310         items.
5311
5312 2005-10-31  Jackson Harper  <jackson@ximian.com>
5313
5314         * Control.cs: Consistently name the dnd methods. Make them
5315         internal so we can override them to match some MS behavoir
5316         internally.
5317         * Win32DnD.cs: Use the new consistent names.
5318
5319 2005-10-31  Jackson Harper  <jackson@ximian.com>
5320
5321         * TreeView.cs: Don't draw the selected node when we lose focus.
5322
5323 2005-10-31  Jackson Harper  <jackson@ximian.com>
5324
5325         * X11Dnd.cs: We still need to reset the state even though a full
5326         reset isn't being done, otherwise status's still get sent all over
5327         the place.
5328
5329 2005-10-31  Jackson Harper  <jackson@ximian.com>
5330
5331         * Control.cs: Make the dnd_aware flag internal so the dnd
5332         subsystem can check it. Catch exceptions thrown in dnd handlers to
5333         match MS behavoir.
5334         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5335         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5336         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5337         flags to reduce the number of dnd enters/status's sent.
5338
5339 2005-10-31  Jackson Harper  <jackson@ximian.com>
5340
5341         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5342
5343 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5344
5345         * PictureBox.cs: Fixes 76512
5346
5347 2005-10-28  Jackson Harper  <jackson@ximian.com>
5348
5349         * X11Dnd.cs: Early implementation to support winforms being a drag
5350         source for data on X11. Also restructured the converters so they
5351         can go both ways now.
5352         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5353         
5354 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5355
5356         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5357           clipboard requests
5358
5359 2005-10-27  Jackson Harper  <jackson@ximian.com>
5360
5361         * TreeNode.cs: Implement serialization so my DnD examples will work.
5362
5363 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
5364
5365         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5366           TreeView.cs: Don't dispose objects that are not owned.
5367           
5368 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
5369
5370         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5371           should retrieve the current cursor and report that, but XplatUI
5372           doesn't (yet) have an interface for that (and I'm not sure I even
5373           can, on X11)
5374         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5375           until any message loop processing is done (and the WM_SETCURSOR
5376           replaces the cursor to the proper one)
5377         * XplatUIX11.cs: 
5378           - Fixed override behaviour, we can't set the cursor globally on X11, 
5379             just for our windows.
5380           - Invalidating the System.Drawing X11 display handle when we are
5381             shutting down
5382         * Control.cs: Fix to make csc happy
5383
5384 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
5385
5386         * TextBoxBase.cs: 
5387           - get_Text: Add last line (without trailing newline) to returned
5388             value (Fixes 76212)
5389           - get_TextLength: Count last line in returned length
5390           - ToString: Call Text property instead of duplicating code
5391
5392 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
5393
5394         * ImageList.cs: Dispose ImageAttributes objects.
5395
5396 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5397
5398         * ImageList.cs: Use attribute constructors with less arguments where
5399           possible.
5400
5401 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5402
5403         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5404           Use typeof instead of strings when assembly is referenced. Added
5405           some more comments.
5406
5407 2005-10-21  Jackson Harper  <jackson@ximian.com>
5408
5409         * ListView.cs: Raise a double click event. Also tried to somewhat
5410         fix when the selectedindexchanged event is raised. Its still
5411         broken though.
5412
5413 2005-10-21  Jackson Harper  <jackson@ximian.com>
5414
5415         * TreeView.cs: New method to invalidate the plus minus area of a
5416         node without invalidating the whole node (maybe this can be used
5417         in some more places).
5418         * TreeNodeCollection.cs: When adding to an empty node we need to
5419         invalidate its plus minus area so the little block shows up.
5420         
5421 2005-10-21  Jackson Harper  <jackson@ximian.com>
5422
5423         * TreeView.cs: Make sure that when we invalidate a node the bounds
5424         are big enough to cover the selected box and the focus
5425         rectangle. Use a different colour for the lines connecting nodes
5426         so they show up with all themes.
5427
5428 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5429
5430         * NativeWindow.cs: Don't call anything that could call into the driver,
5431           we might be on a different thread.
5432
5433 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
5434
5435         * Control.cs(Dispose): Since Dispose might run on a different thread,
5436           make sure that we call methods that could call into the driver via
5437           invoke, to avoid thread issues
5438
5439 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5440
5441         * XplatUI.cs: Removed finalizer
5442         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5443           not allowing to be called on the finalizer thread.
5444
5445 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5446
5447         * ImageList.cs:
5448           - Reverted r51889 and r51891.
5449           - Added ImageListItem class that stores unmodified image items and image
5450             properties required to create list images until handle is created.
5451           - Added AddItem and moved image creation logic to AddItemInternal.
5452           - Added CreateHandle method that creates images based on unmodified items.
5453           - Added DestroyHandle that changes state to store unmodified items.
5454           - Add and AddStrip methods no more create handle.
5455           - ReduceColorDepth has no return value.
5456           - Dispose destroys handle.
5457           - Modified other methods to reflect the above changes.
5458           - Implemented key support.
5459           - Added profile 2.0 members and attributes.
5460           - Added private Reset and ShouldSerialize methods that provide the same
5461             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5462             them as they are private.
5463           - Added some more comments about implementation details.
5464
5465 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5466
5467         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5468
5469 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5470
5471         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5472
5473 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5474
5475         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5476         * DataGridColumnStyle.cs: Remove debug message
5477
5478 2005-10-20  Jackson Harper  <jackson@ximian.com>
5479
5480         * TreeView.cs: We can always get input keys regardless of whether
5481         or not editing is enabled. They are used for navigation.
5482
5483 2005-10-20  Jackson Harper  <jackson@ximian.com>
5484
5485         * TreeNode.cs: Use the viewport rect for determining if a node
5486         needs to be moved for visibility. Don't use Begin/End edit. This
5487         calls a full refresh when its done.
5488         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5489         rect property internal so the treenodes can see it. When clicking
5490         on a node we need to ensure that its visible because it might just
5491         be partly visible when clicked.
5492
5493 2005-10-20  Jackson Harper  <jackson@ximian.com>
5494
5495         * TreeNodeCollection.cs: Remove debug code.
5496
5497 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5498
5499         * Datagrid.cs: Implements column sorting in Datagrid
5500         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5501
5502 2005-10-20  Jackson Harper  <jackson@ximian.com>
5503
5504         * TreeNodeCollection.cs: Remove items properly. Update the correct
5505         area after removing them.
5506
5507 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5508
5509         * Datagrid.cs: Should not call base.OnPaintBackground
5510
5511 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5512
5513         * XplatUIX11.cs (GetMessage):
5514           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5515             window instead of client window
5516           - Now properly calculates NC_xBUTTONUP message coordinates
5517           - ScreenToMenu now properly calculates it's coordinates of whole 
5518             window, since menus are in the whole window, not in the client
5519             window
5520           - Added WholeToScreen coordinate translation method
5521
5522 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5523
5524         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5525           want to return a message, loop back to the beginning of the function
5526           and grab the next real message to process instead.
5527
5528 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5529
5530         * Splitter.cs: Properly set limits if no filler control is used
5531
5532 2005-10-19  Jackson Harper  <jackson@ximian.com>
5533
5534         * ColorDialog.cs: Don't show the help button if it is not enabled
5535         instead of disabling it (this is what MS does). Don't create the
5536         panel until the dialog is run, otherwise the vars (such as
5537         ShowHelp) are not set yet.
5538
5539 2005-10-19  Jackson Harper  <jackson@ximian.com>
5540
5541         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5542         are reduced when adding nodes.
5543         * TreeNode.cs:
5544         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5545         tree.
5546         
5547 2005-10-19  Jackson Harper  <jackson@ximian.com>
5548
5549         * FolderBrowserDialog.cs: End editing our treeview so the window
5550         actually gets refreshed.
5551
5552 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5553
5554         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5555           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5556           inside of WM_PAINT
5557
5558 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5559
5560         * MenuAPI.cs: Returns after Hidding window
5561         * XplatUIX11.cs: Added TODO found while debugging menu issues
5562
5563 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5564
5565         * XplatUIX11.cs: Do not re-map the whole window when it's size
5566           becomes non-zero unless it's supposed to be actually visible
5567
5568 2005-10-18  Jackson Harper  <jackson@ximian.com>
5569
5570         * TreeView.cs: We don't need to keep a count anymore.
5571         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5572         use the Grow method.
5573
5574 2005-10-18  Jackson Harper  <jackson@ximian.com>
5575
5576         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5577         implement it manually here.
5578
5579 2005-10-18  Jackson Harper  <jackson@ximian.com>
5580
5581         * ImageList.cs: Dont kill the list when the colour depth is
5582         changed, just change the colour depth of all the images.
5583         - Same goes for setting the image size. Just resize them all
5584         instead of killing the list softly.
5585
5586 2005-10-18  Jackson Harper  <jackson@ximian.com>
5587
5588         * Control.cs: Don't invalidate empty rectangles.
5589
5590 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5591
5592         * ListViewItem.cs:
5593           - Adds checked item to the Checked/Item lists (where empty before)
5594           - Do not add items to the Selected lists if they are already present
5595         * ListView.cs:
5596           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5597           - When deleting items make sure that we delete them for the Selected
5598           and Checked list also.
5599
5600 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5601
5602         * Label.cs: Dispose objects no longer used
5603         * ThemeWin32Classic.cs: Dispose objects no longer used
5604
5605 2005-10-18  Jackson Harper  <jackson@ximian.com>
5606
5607         * TabControl.cs: Don't refresh the whole control when the tabs are
5608         scrolled, we just need to refresh the tab area.
5609
5610 2005-10-17  Jackson Harper  <jackson@ximian.com>
5611
5612         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5613         after handle when we need it.
5614
5615 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5616
5617         * Control.cs: When the parent size changes, recalculate anchor 
5618           positions. Partial fix for #76462
5619
5620 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5621
5622         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5623           drawn. Fixes #76462
5624
5625 2005-10-17  Jackson Harper  <jackson@ximian.com>
5626
5627         * MonthCalendar.cs: Don't create the numeric up down until our
5628         handle is created. Otherwise our handle is created in the
5629         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5630         yet.
5631
5632 2005-10-17  Jackson Harper  <jackson@ximian.com>
5633
5634         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5635         correctly.
5636
5637 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5638         * TreeNode.cs : small logical fix (was using local var instead of field)
5639         
5640 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5641
5642         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5643
5644 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5645
5646         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5647
5648 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5649
5650         * Control.cs: 
5651           - Re-implemented anchoring code. My first version was really broken.
5652             This fixes bug #76033. Unlike the previous implementation we will
5653             no longer have round errors since all numbers are calculated from
5654             scratch every time. Removed various anchor-related obsolete vars.
5655           - InitLayout no longer causes layout event firing and layout to be 
5656             performed
5657
5658 2005-10-16  Jackson Harper  <jackson@ximian.com>
5659
5660         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5661         which was broken).
5662
5663 2005-10-16  Jackson Harper  <jackson@ximian.com>
5664
5665         * TabControl.cs: Remove debug code.
5666
5667 2005-10-16  Jackson Harper  <jackson@ximian.com>
5668
5669         * XEventQueue.cs: Increase the default queue size (very simple
5670         apps needed to grow the queue).
5671         * Hwnd.cs: No finalizer so we don't need to suppress
5672         finalization. Compute the invalid area manually so a new rectangle
5673         does not newto be created.
5674         * ScrollableControl.cs: Don't set any params (otherwise visibility
5675         isn't set correctly).
5676         * MdiChildContext.cs: New constructor takes the mdi parent so it
5677         doesn't have to be computed and avoids a crash on windows. Draw
5678         the window icon properly, and allow the text to be seen.
5679         * Form.cs: Use new MdiChildContext constructor. Make sure the
5680         child context isn't null in wndproc.
5681         * TabControl.cs: Don't set focus, this is muddling keyboard
5682         behavoir. Expand the tab rows when a window size increase will
5683         allow extra tabs to be seen. Don't allow tabs smaller than the
5684         width of a window to be scrolled out of view.
5685         * TreeNode.cs:
5686         * TreeView.cs: Use measure string to calculate a nodes width, the
5687         width is cached and only updated when the text or the font is
5688         changed. Don't check for expand/collapse clicks on the first level
5689         nodes if root lines are disabled.
5690         
5691 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5692
5693         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5694
5695 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5696
5697         * DataGridBoolColumn.cs: fixes warning
5698
5699 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5700
5701         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5702         to match more to match more precisely the MS Net behavior
5703
5704 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5705
5706         * Hwnd.cs: Added field to track if window is mapped
5707         * XplatUIX11.cs: 
5708           - Unmap windows if they become 0-size, re-map when 
5709             they are >0 again; fixes #76035
5710           - Re-set our error handler after initializing X11Desktop
5711             to override any error handlers Gtk or whatever was called
5712             may have set.
5713
5714 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5715
5716         * CheckedListBox.cs: Removed unused vars
5717         * ListView.cs: Fixed signatures
5718         * RichTextBox.cs: Removed unused vars
5719         * TextBoxBase.cs: Removed unused vars
5720         * XplatUIWin32.cs: Removed unused vars
5721         * XplatUIX11.cs: Removed unused vars
5722         * XplatUI.cs: Updated version and date to latest published
5723
5724 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5725
5726         * Cursor.cs: Added private .ctor to work around a bug in
5727           resourceset (Thanks to Geoff Norton for the help on this)
5728         * SplitterEventArgs.cs: Made fields accessible so we don't
5729           waste boatloads of objects and can reuse the same one
5730           in Splitter
5731         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5732           any captions and borders when generating screen coordinates
5733         * Splitter.cs: Reimplemented control, now fully complete, uses
5734           rubberband drawing, supports and obeys all properties, has
5735           proper cursors
5736
5737 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5738
5739         * Form.cs (Form): Setup default values for autoscale and
5740         autoscale_base_size;  Make these instance variables, not static
5741         variables. 
5742
5743         (OnLoad): on the first load, adjust the size of the form.
5744
5745 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5746
5747         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5748           width argument to DrawReversibleRectangle()
5749         * XplatUIWin32.cs, XplatUIX11.cs: 
5750           - Implemented width for DrawReversibleRectangle()
5751           - Added logic to DrawReversibleRectangle that recognizes a zero
5752             width or height and only draws a line in that situation
5753         
5754 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5755
5756         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5757         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5758         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5759           method (it uses our FosterParent window to get a graphics context)
5760
5761 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5762
5763         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5764           and SetWindowBackground methods
5765         * Control.cs:
5766           - Setting proper ControlStyles
5767           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5768             EraseWindowBackground, instead we draw the window background
5769             ourselves in PaintControlBackground. This behaviour is
5770             required to match MS, where, when OnPaintBackground is not
5771             called, the background is not drawn.
5772           - Removed unneeded Refresh() in set_Text
5773         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5774         * XplatUIX11.cs:
5775           - Created DeriveStyles method to translate from CreateParams to
5776             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5777             matches FormBorderStyle enum values)
5778           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5779             style calculations into single DeriveStyles method
5780           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5781             from redrawing the whole window on any resize or expose.
5782           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5783             all styles were applied to our whole/client window appropriately
5784           - Removed EraseWindowBackground() and SetWindowBackground() methods
5785           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5786             no longer clear/redraw the background through X
5787           - Removed handling of erase_pending bit, we have no use for it (or
5788             so it seems)
5789         * XplatUIOSX.cs:
5790           - Removed generation and handling of WM_ERASEBKGND message
5791           - Removed EraseWindowBackground() and SetWindowBackground() methods
5792           - Removed handling of hwnd.ErasePending flag
5793         * XplatUIWin32.cs:
5794           - Removed EraseWindowBackground() and SetWindowBackground() methods
5795           - We no longer call EraseWindowBackground on PaintEventStart, we 
5796             ignore the fErase flag, erasing is handled in Control in the
5797             background handler
5798         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5799           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5800           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5801           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5802           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5803           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5804           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5805
5806 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5807
5808         * PropertyGrids.cs: Get sub properties
5809         * PropertyGridView.cs: Fix drawing code
5810
5811 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5812
5813         * ListBox.cs: Fixes 76383
5814
5815 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5816
5817         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5818         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5819         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5820
5821
5822 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5823
5824         * ComboBox.cs: Fixes border drawing
5825
5826 2005-10-10  Miguel de Icaza  <miguel@novell.com>
5827
5828         * MimeIcon.cs: Ignore errors if the file can not be read.
5829
5830 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5831
5832         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5833          - Fixed border calculations
5834          - Fixed horizontal scrolling in single column listboxes
5835          - Fixed drawing issues
5836
5837 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
5838
5839         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
5840           FormBorderStyle enum
5841         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
5842           code to determine FormBorderStyles from CreateParams
5843         * Form.cs:
5844           - Fixed bug where we'd set the wrong window styles if we were
5845             not creating an MDI window
5846           - Added call to XplatUI.SetBorderStyle when form borders are set
5847         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5848         * Hwnd.cs:
5849           - Removed obsolete edge style
5850           - Switched from BorderStyle to FormBorderStyle
5851         
5852 2005-10-10  Jackson Harper  <jackson@ximian.com>
5853
5854         * Form.cs: Use the property to get the window handle instead of
5855         accessing it directly. Prevents a null reference exception.
5856
5857 2005-10-10  Jackson Harper  <jackson@ximian.com>
5858
5859         * TreeView.cs: Don't adjust the rect given to DrawString now that
5860         our libgdiplus draws correctly.
5861
5862 2005-10-08  Jackson Harper  <jackson@ximian.com>
5863
5864         * TreeView.cs: Don't try to find the clicked on node if there are
5865         no nodes in the tree.
5866
5867 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5868
5869         * RichTextBox.cs:
5870
5871           restore
5872
5873 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5874
5875         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5876           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5877           ErrorProvider.cs:
5878           Use ResPool for brushes and dispose System.Drawing objects that
5879           are not used anymore.
5880
5881 2005-10-07  Jackson Harper  <jackson@ximian.com>
5882
5883         * MdiChildContext.cs: Use the new borders instead of drawing them
5884         ourselves.
5885
5886 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5887
5888         * Calling UpdateBounds after changing the window's BorderStyle 
5889         since the style can change the ClientSize
5890
5891 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5892
5893         * Control.cs: Made PaintControlBackground virtual
5894         * Panel.cs: Overriding PaintControlBackground instead of using paint
5895           event; paint event method was interfering with 'real' users of the
5896           event.
5897
5898 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5899
5900         * ThemeWin32Classic.cs: remove border drawing since it is handled
5901         by the base control class now and was causing double border drawing.
5902
5903 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5904
5905         * Panel.cs: Redraw our background on paint. Not a pretty solution,
5906           but it does seem to match MS behaviour. This fixes bug #75324
5907
5908 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5909
5910         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5911           somewhat hackish looking
5912
5913 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5914
5915         * TextBoxBase.cs:
5916           - We now accept Enter even if AcceptEnter is false, if the containing
5917             form does not have an AcceptButton configured (fixes bug #76355)
5918           - Calculations are now fixed to no longer use Width/Height, but
5919             ClientSize.Width/Height, since we now support borders (this was
5920             a result of fixing borders and therefore bug #76166)
5921           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
5922             true (fixes bug #76354)
5923         
5924 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5925
5926         * Control.cs: 
5927           - Defaulting BorderStyle and setting it in XplatUI when our window 
5928             is created
5929           - Added enum check to InternalBorderStyle setter
5930         * XplatUIX11.cs: 
5931           - Added drawing of window borders
5932           - Now properly calculates WM decorations offset for toplevel 
5933             windows (fixes bug #74763)
5934         * XplatUIWin32.cs: 
5935           - Implemented BorderStyles for windows (we're letting win32 draw 
5936             the border for us)
5937           - Fixed the signature for SetWindowLong
5938         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5939           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
5940           setting borders
5941         * UpDownBase.cs: Remove drawing of borders, this is handled by
5942           the driver, outside the client area
5943         * ListView.cs: Removed bogus border calculations. The control should
5944           be oblivious to borders, since those are not part of the client
5945           area. 
5946         * X11DesktopColors.cs: Commented out (currently) unneeded variables
5947         * ThemeWin32Classic.cs: Removed border calculations from ListView 
5948           drawing code
5949
5950 2005-10-06  Jackson Harper  <jackson@ximian.com>
5951
5952         * MdiChildContext.cs: Clear out the old virtual position remove
5953         all the unneeded calls to CreateGraphics.
5954
5955 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5956
5957         * TextControl.cs: Use proper color for highlighted text; fixes #76350
5958
5959 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5960
5961         * Form.cs: 
5962           - Added loading and setting of our new default icon
5963           - Only set icon if window is already created
5964
5965 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5966
5967         * Label.cs:
5968           - Do not explicitly set the foreground and background colors, to
5969             allow inheriting from parents (fixes #76302)
5970           - Use Control's InternalBorderStyle property to deal with borders
5971
5972 2005-10-06  Jackson Harper  <jackson@ximian.com>
5973
5974         * MdiChildContext.cs: Use the new xplatui function to draw a
5975         reversible rect.
5976
5977 2005-10-06  Jackson Harper  <jackson@ximian.com>
5978
5979         * Form.cs: Add the parent before creating the child context cause
5980         we need the parent when setting up the child.
5981
5982 2005-10-06  Jackson Harper  <jackson@ximian.com>
5983
5984         * FolderBrowserDialog.cs: redo the tree population code so a
5985         second thread isn't used. Should be a lot faster and more stable
5986         now.
5987
5988 2005-10-05  Jackson Harper  <jackson@ximian.com>
5989
5990         * TreeView.cs: There are no expand/collapse boxes if the node has
5991         no children.
5992
5993 2005-10-05  Jackson Harper  <jackson@ximian.com>
5994
5995         * X11DesktopColors.cs: Get menu colours for the gtk theme.
5996
5997 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
5998
5999         * FileDialog.cs: Fix InitialDirectory
6000
6001 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6002
6003         * ComboBox.cs:
6004                 - Fixes changing between styles
6005                 - Fixes simple mode
6006                 - Fixes last item crashing when navigating with keyboard
6007
6008 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6009
6010         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6011
6012 2005-10-05  Jackson Harper  <jackson@ximian.com>
6013
6014         * TreeView.cs: If updating the root node do a full refresh.
6015         * TreeNode.cs: The root node should be expanded by default. Also
6016         added a utility prop to tell if we are the root node.
6017         * TreeNodeCollection.cs: Only refresh if the node we are being
6018         added to is expanded. Also added a comment on a potential
6019         optimization.
6020         
6021 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6022
6023         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
6024           in dispose method. Fixes #76330
6025
6026 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
6027
6028         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
6029
6030                 - Implements vertical and horizontal scrolling using XplatUI
6031                 - Fixes keyboard navagation
6032                 - Fixes EnsureVisible
6033                 - Drawing fixes
6034                 - Handles and draws focus properly
6035
6036
6037 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
6038
6039         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
6040           Create handle. NET_2_0: Destroy handle when value is null.
6041
6042 2005-10-03  Jackson Harper  <jackson@ximian.com>
6043
6044         * ScrollBar.cs: My last scrollbar patch was broken. This is a
6045         revert and a new patch to prevent the thumb from refreshing so
6046         much.
6047
6048 2005-10-02  Jackson Harper  <jackson@ximian.com>
6049
6050         * ScrollBar.cs: Don't update position if it hasn't actually
6051         changed. This occurs when you hold down the increment/decrement
6052         buttons and the thumb gets to the max/min.
6053
6054 2005-10-01  Jackson Harper  <jackson@ximian.com>
6055
6056         * Form.cs:
6057         * MdiChildContext.cs:
6058         * MdiClient.cs: Implement ActiveMdiChild in Form.
6059
6060 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
6061
6062         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
6063
6064 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
6065
6066         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
6067           be found
6068
6069 2005-09-30  Jackson Harper  <jackson@ximian.com>
6070
6071         * ListBox.cs: Don't do a full refresh unless some data has
6072         actually changed.
6073
6074 2005-09-30  Jackson Harper  <jackson@ximian.com>
6075
6076         * TreeView.cs: Make sure that the checkboxes size is factored in
6077         even when not visible.
6078
6079 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6080
6081         * FileDialog.cs: Fix Jordi's build break
6082
6083 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6084
6085         * FileDialog.cs: 
6086                 - Use standard the Windows colours for the combobox as espected
6087                 - Dispose objects that use resouces when no longer need them
6088
6089 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6090
6091         * X11DesktopColors.cs: Initial incomplete implementation
6092         * XplatUIX11.cs: Added call to initialize X11DesktopColors
6093
6094 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
6095
6096         * Theme.cs: 
6097           - Switched Theme color names to match the names defined in 
6098             System.Drawing.KnownColors. Life's hard enough, no need to make 
6099             it harder.
6100           - Added setters to all theme color properties so themes can set
6101             their color schemes. The setters also propagate the color changes
6102             to System.Drawing.KnownColors via reflection
6103         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
6104           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
6105           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
6106           use the new, more logical theme color names
6107         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6108           post-NT colors
6109         * ThemeWin32Classic.cs:
6110           - Removed code to set the old classic Windows colors. Instead it
6111             now relies on the colors returned by System.Drawing.KnownColors
6112             which will be either modern static colors (Unix) or colors
6113             read from the user's configuration (Win32)
6114           - Updated to use the new, more logical theme color names
6115           - Switched DataGrid drawing code to use only Theme colors instead of
6116             a mix of System.Drawing.KnownColors and Theme colors
6117           - DrawFrameControl(): Removed code that fills the button area, the
6118             fill would overwrite any previous fill done by a control. This
6119             fixes bug #75338 
6120           - Added DrawReversibleRectangle() stub
6121         * ScrollableControl.cs: Set visible state to false when scrollbars
6122           are removed (pdn fix)
6123         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6124           DrawReversibleRectangle() method to allow drawing primitive 
6125           'rubber bands'
6126         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6127
6128 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6129
6130         * ImageList.cs: Add(Icon): Create handle.
6131
6132 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6133
6134         * ListView.cs:
6135         * ThemeWin32Classic.cs:
6136                 - Fixes detail mode
6137                 - Sets clippings
6138                 - Issues with drawing
6139
6140 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6141
6142         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6143           source has to be the ImageList.
6144
6145 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6146
6147         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6148
6149 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6150
6151         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6152
6153 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6154
6155         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6156
6157 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6158         * GridItem.cs: Fixed TODOs
6159         * GridItemCollection.cs: Added ICollection interface
6160
6161 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6162
6163         * ImageList.cs: Resize icons when needed.
6164
6165 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6166
6167         * ListViewItem.cs
6168                 - Fixes GetBounds and returns on screen rects
6169         * ListView.cs:
6170                 - Fixes vertical and horzintal scrolling of items
6171         * ThemeWin32Classic.cs:
6172                 - Fixes drawing
6173                 
6174 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6175
6176         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6177
6178 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6179
6180         * ImageList.cs: Added comments about handle creation. Moved Handle,
6181           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6182           Handle is created in Add methods.
6183
6184 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6185          
6186         * DataGridDrawingLogic.cs: 
6187                 - Takes rows into account on Colum calculations
6188                 - Returns the column when clickig
6189         * DataGrid.cs:
6190                 - Fixes default HitTestInfo values
6191                 - Fixes HitTestInfo.ToString
6192                 - Fixes ResetBackColor          
6193         
6194 2005-09-28  Jackson Harper  <jackson@ximian.com>
6195
6196         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6197         sizing or cursor changes). Also added some temp code to draw the
6198         titlebars text (Makes dev a little easier).
6199
6200 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6201
6202         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6203
6204 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6205          
6206         * ListBox.cs: Fixes bug 76253
6207
6208 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6209
6210         * ImageList.cs: Added comments about the current implementation. Added
6211           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6212           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6213           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6214           with Bitmap.LockBits for better performance. Revised the whole file to
6215           match MS.NET behaviour and provide better performance. Non-public
6216           interface members are calling public members even when they throw
6217           NotSupportedException for better maintainability. Moved ColorDepth,
6218           ImageSize, ImageStream and TransparentColor implementations to
6219           ImageCollection for better performance as these properties are not used
6220           by ImageList.
6221         * ImageListStreamer.cs: Added a new internal constructor that takes an
6222           ImageList.ImageCollection and serializes Images based on
6223           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6224           match ImageList property name.
6225
6226 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6227
6228         * ListBox.cs: Fixes IndexFromPoint for last item
6229
6230 2005-09-27  Jackson Harper  <jackson@ximian.com>
6231
6232         * Form.cs: Set the position of new mdi children correctly.
6233
6234 2005-09-27  Jackson Harper  <jackson@ximian.com>
6235
6236         * MdiClient.cs: New mdi children need to be added to the back of
6237         the controls collection so the zorder is set correctly. Also add a
6238         count of all the child windows that have been created.
6239
6240 2005-09-27  Jackson Harper  <jackson@ximian.com>
6241
6242         * Form.cs (CreateParams): Setup MDI forms correctly.
6243
6244 2005-09-27  Jackson Harper  <jackson@ximian.com>
6245
6246         * MdiChildContext.cs:
6247         * MonthCalendar.cs:
6248         * UpDownBase.cs:
6249         * ListBox.cs:
6250         * ListView.cs:
6251         * TextBoxBase.cs:
6252         * TreeView.cs:
6253         * ScrollableControl.cs:
6254         * ComboBox.cs: Add implicit controls using the new implict control
6255         functionality in ControlCollection. Also try to block multiple
6256         control add in a suspend/resume layout to save some cycles.
6257         
6258 2005-09-27  Jackson Harper  <jackson@ximian.com>
6259
6260         * Control.cs: Add functionality to the controls collection to add
6261         'implicit controls' these are controls that are created by the
6262         containing control but should not be exposed to the user. Such as
6263         scrollbars in the treeview.
6264         * Form.cs: The list var of the ControlsCollection is no longer
6265         available because of the potential of implicit controls getting
6266         ignored by someone accessing the list directly.
6267
6268 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
6269
6270         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6271           loose it's parent. (Fixed bug introduced in r49103 when we added
6272           setting the child parent to null on Remove)
6273
6274 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
6275
6276         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6277         * Splitter.cs: Added missing attributes for BorderStyle property.
6278         * TextBoxBase.cs: Marked Calculate* methods internal.
6279         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6280         MS.NET.
6281
6282 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
6283          
6284         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6285
6286 2005-09-25  Jackson Harper  <jackson@ximian.com>
6287
6288         * TreeView.cs: Update the node bounds correctly regardless of
6289         whether the node is visible.
6290
6291 2005-09-25  Jackson Harper  <jackson@ximian.com>
6292
6293         * ImageList.cs: Don't dispose the image after it is added to the
6294         image list. Only reformat images that need to be resized.
6295
6296 2005-09-25  Jackson Harper  <jackson@ximian.com>
6297
6298         * ImageList.cs: Don't set the format when changing the image.
6299
6300 2005-09-25  Jackson Harper  <jackson@ximian.com>
6301
6302         * TreeView.cs: We can't just assume the node has a font. Use the
6303         treeviews font if no node font is available.
6304
6305 2005-09-25  Jackson Harper  <jackson@ximian.com>
6306
6307         * TreeView.cs: Allow the scrollbars to be reset with negative
6308         values.
6309         - Don't add scrollbars to negative sized windows.
6310
6311 2005-09-23  Jackson Harper  <jackson@ximian.com>
6312
6313         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6314         old Mono.Posix. Also remove some stray code that shouldn't have
6315         been committed.
6316
6317 2005-09-23  Jackson Harper  <jackson@ximian.com>
6318
6319         * TreeView.cs: Attempt at proper sizing of the horizontal
6320         scrollbar. Also don't resize the scrollbars unless they are
6321         visible.
6322
6323 2005-09-23  Jackson Harper  <jackson@ximian.com>
6324
6325         * TreeView.cs: We don't need to expand the invalid area when the
6326         selection changes, as this is all drawn in the node's bounding
6327         box. The area needs to be expanded (previous typo was contracting
6328         it) when the focus rect moves.
6329
6330 2005-09-23  Jackson Harper  <jackson@ximian.com>
6331
6332         * TreeView.cs: Display the selection box under the correct
6333         circumstances. We were rendering white text with no selection box
6334         before.
6335
6336 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6337
6338         * TextControl.cs(Split): Now updates selection start/end if it points 
6339           into a line that's being split. Fixes a FIXME and bug #75258
6340
6341 2005-09-23  Jackson Harper  <jackson@ximian.com>
6342
6343         * Binding.cs:
6344         * ListControl.cs: Don't use the path when retrieving binding
6345         managers from the binding context. My bat sense tells me that the
6346         path is only used on insertion.
6347
6348 2005-09-22  Jackson Harper  <jackson@ximian.com>
6349
6350         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6351
6352 2005-09-22  Jackson Harper  <jackson@ximian.com>
6353
6354         * Splitter.cs: There are special cursors used for splitting.
6355         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6356
6357 2005-09-22  Jackson Harper  <jackson@ximian.com>
6358
6359         * Splitter.cs: Change the cursor appropriately when the splitter
6360         is moused over, so the user actually knows there is a splitter
6361         there.
6362
6363 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6364
6365        * Label.cs : Fix ToString method to give same output as MS.NET
6366
6367 2005-09-22  Jackson Harper  <jackson@ximian.com>
6368
6369         * TreeView.cs: Create the scrollbars when the handle is created
6370         and add them right away, just make them invisble. Also account for
6371         the window being shrunk vertically to the point that the vert
6372         scrollbar needs to be added.
6373         - Remove some 0.5 adjustments to get around anti aliasing issues.
6374         
6375 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
6376          
6377         * MainMenu.cs: Fixes default value
6378         * MenuItem.cs: Fixes default value
6379
6380 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
6381
6382         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6383
6384 2005-09-21  Jackson Harper  <jackson@ximian.com>
6385
6386         * Control.cs: Don't try to set the border style on the window if
6387         it hasn't been created. When the window is created the border
6388         style will be used.
6389
6390 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6391
6392         * Control.cs (Update): Don't call XplatUI if we don't have a
6393           window handle yet
6394
6395 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6396
6397         * ContainerControl.cs: Instead of throwing an exception, print
6398           a one-time warning about Validate not being implemented
6399         * XplatUIWin32.cs: Removed debug output
6400
6401 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6402
6403         * Control.cs: Only set XplatUI background if we expect the windowing
6404           system to handle the background. This stops controls that draw their
6405           own background from flickering
6406
6407         * XplatUIX11.cs: Support custom visuals and colormaps for window 
6408           creation. This allows, amongst other things, using MWF X11 windows 
6409           with OpenGL.
6410
6411 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6412
6413         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6414           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6415           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6416           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6417           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6418           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6419           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6420           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6421           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6422           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6423           GridColumnStylesCollection.cs, 
6424           IDataGridColumnStyleEditingNotificationService.cs,
6425           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6426           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6427           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
6428           TreeNodeCollection.cs, AmbientProperties.cs, 
6429           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6430           DataObject.cs, ErrorProvider.cs, Splitter.cs,
6431           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6432           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6433           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6434           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6435           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6436           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6437           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6438           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6439           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6440           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6441           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6442           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6443           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6444           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6445           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6446           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6447           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6448           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6449           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6450           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6451           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6452           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6453           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6454           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6455           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6456           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6457           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6458           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6459           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6460           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6461           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6462           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6463           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6464           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6465           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6466
6467 2005-09-21  Jackson Harper  <jackson@ximian.com>
6468
6469         * TreeNode.cs: Call Before/After Expand not Collapse when
6470         expanding.
6471
6472 2005-09-20  Jackson Harper  <jackson@ximian.com>
6473         
6474         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6475
6476 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6477          
6478         * ListViewItem.cs:
6479                 - Fixes bug 76120
6480                 - Fixes proper storing of subitems
6481                 - Fixes not updated items
6482
6483 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6484
6485         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6486           things if our window handle isn't created yet. Also disabled 
6487           debug for TextBoxBase
6488
6489 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6490
6491         * MenuAPI.cs: Remove filtering of events to allow menu usage
6492
6493 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6494
6495         * Cursor.cs: Allow null to be passed to Cursor.Current.
6496
6497 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6498
6499         * ThemeWin32Classic.cs:
6500           - Change some private methods/fields to protected virtual so that 
6501             they can be accessed and overriden in derived classes
6502           - First refactoring of some methods. Derived themes now don't 
6503             need to duplicate the complete code from ThemeWin32Classic
6504         * ThemeNice.cs:
6505           - Added nice StatusBar
6506           - Derive from ThemeWin32Classic and not Theme
6507           - Removed duplicate ThemeWin32Classic code
6508
6509 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6510
6511         * Control.cs (ControlCollection.Add): If the value null is passed
6512         the control is ignored. 
6513
6514         Optimize this loop.
6515
6516 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6517
6518         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6519           PostQuitMessage state.
6520         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6521
6522 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6523
6524         * Application.cs: Our constructor will never get called, move 
6525           initialization to fields; fixes bug #75933
6526
6527 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6528
6529         * FileDialog.cs :
6530                 - Allow files to be selected properly using file name
6531                 combo box.
6532                 - Add ability to change diretory (absolute / relative)
6533                 using file name combo box.
6534
6535 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6536          
6537         * ListBox.cs: 
6538                 - Fixes Multicolumn listboxes item wrong calculations
6539                 - Allows to click when only one item is in the listbox
6540                 - Fixes crash when no items using keyboard navigation
6541
6542 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6543
6544         * ComboBox.cs: Reverted almost everything from the latest patch which
6545           broke ComboBox
6546
6547 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6548         
6549         * ToolTip.cs:
6550                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6551         * ComboBox.cs:
6552                 - When DropDownStyle is Simple, it does not show scrollbar 
6553                 to the last item of the list.
6554                 - When DropDownStyle is Simple, it crashed when the list was 
6555                 scrolled down with the down cursor key.
6556                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6557                 selected item was not shown.
6558                 - The position of the selected item was not preserved when 
6559                 the next dropdown happened.
6560         * ThemeWin32Classic.cs:
6561                 - Items were wrapped at the right end.
6562         * CheckedListBox.cs:
6563                 - Fixed Add method
6564         * ListBox.cs:
6565                 - Items should be fully shown.
6566                 - When resizing and vertical scrollbar disappeared, the item 
6567                 of index 0 should be on the top of the list.
6568                 - GetItemRectangle should consider the size of ver. scrollbar
6569         * StatusBar.cs:
6570                 - SizingGrip area should not be allocated when it is not 
6571                 displayed.
6572                 - Now it reflects MinWidth of the containing panel and 
6573                 fixed a crash that happens when its width becomes so small.
6574
6575 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6576
6577         * CheckedListBox.cs: Fixes bug 76028
6578         * ListBox.cs: Fixes bug 76028
6579
6580 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6581
6582         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6583         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6584
6585 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6586
6587         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6588
6589 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6590
6591         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6592
6593 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6594
6595         * IRootGridEntry.cs: Added
6596         * PropertyGridCommands.cs: Added
6597         * PropertiesTab.cs: Added missing methods and property
6598         * PropertyGridView.cs: Made class internal
6599         * PropertyGridTextBox.cs: Made class internal
6600
6601 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6602
6603         * MimeIcon.cs: Try to check some other environment variables
6604           if "DESKTOP_SESSION" returns "default"
6605
6606 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6607
6608         * ThemeNice.cs: Corrected background colors (e.g. menus)
6609         * ColorDialog.cs: Use correct background colors for controls
6610
6611 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6612
6613         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6614
6615 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6616
6617         * RichTextBox.cs: Added initial implementation
6618         * lang.cs: Removed. Was accidentally checked in long time ago
6619         * TODO: Removed. Contents were obsolete
6620
6621 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6622                                                                                 
6623         * PropertiesTab.cs : Added
6624
6625 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6626                                                                                 
6627         * PropertyGrid.cs : Update
6628         * PropertyGridView.cs : Update
6629         * System.Windows.Forms.resx : Added images and strings
6630
6631 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6632
6633         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6634  
6635 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6636
6637         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6638           a busy loop right after the Ungrab the X11 display is otherwise 
6639           blocked
6640
6641 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6642
6643         * ThemeWin32Classic.cs: Optimise the use of clipping
6644
6645 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6646
6647         * DataGrid.cs: fixes recursion bug
6648
6649 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6650
6651         * ThemeNice.cs: 
6652           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6653           - Cleanup
6654
6655 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6656
6657         * ThemeNice.cs: Draw nice ProgressBars
6658
6659 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6660
6661         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6662
6663         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6664         bug finder.
6665
6666 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6667
6668         * ThemeNice.cs:
6669           - Added nicer menu drawing
6670           - Updated DrawTab
6671           - some refactoring
6672
6673 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6674
6675         * CreateParams.cs (ToString): Made output match MS
6676         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6677             handle is already created (to avoid forcing window creation)
6678         * XplatUIX11.cs: Set window text to caption after creating window,
6679           in case Text was set before window was created
6680         * Form.cs: Use this.Text instead of a static string as caption
6681
6682 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6683
6684         * NotifyIcon.cs: Don't set the window to visible; this screws
6685           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6686           OnPaint without a bitmap)
6687         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6688           happen very often anyway; we could add the check to the WM_PAINT 
6689           event generation code
6690
6691 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6692
6693         * NotifyIcon.cs: Fill the icon area with a background color, to 
6694           avoid 'residue' when transparent icons are drawn
6695         * XplatUIX11.cs:
6696           - Handle whole_window == client_window when destroying windows
6697           - SystrayAdd(): Set client_window to whole_window value to
6698             get mouse and other events passed to NotifyIcon
6699
6700 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6701
6702         * Form.cs: Set proper default for Opacity property
6703         * NotifyIcon.cs:
6704           - ShowSystray(): Don't bother creating telling the OS
6705             about the systray item if no icon is provided
6706           - Now handles WM_NCPAINT message to deal with whole/client window
6707             split
6708           - Create window as visible to not get caught by Expose optimization
6709         * Hwnd.cs: Removed debug message
6710         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6711           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6712             PaintEventStart/End to use new client argument
6713         * TextBoxBase.cs:
6714           - Commented out debug messages
6715           - Switched PaintEventStart/End to use new client argument
6716         * XplatUI.cs: Added client window bool to PaintEventStart()/
6717           PaintEventEnd() calls, to support drawing in non-client areas
6718         * XplatUIDriver.cs: 
6719           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6720             calls, to support drawing in non-client areas
6721           - Added conditional compile to allow using MWF BeginInvoke 
6722             on MS runtime
6723         * XplatUIX11.cs:
6724           - Added some conditional debug output
6725           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6726             whole/client window split
6727           - Implemented handling of client argument to PaintEventStart()/End()
6728         * Control.cs:
6729           - Throw exception if BeginInvoke() is called and the window handle
6730             or one of the window's parent handles is not created
6731           - Added conditional compile to allow using MWF BeginInvoke on
6732             MS runtime
6733           - get_Parent(): Only sets parent if handle is created. This avoids
6734             forcing window handle creation when parent is set.
6735           - Now fires Layout and Parent changed events in proper order
6736           - Switched to use Handle instead of window.Handle for Z-Order setting,
6737             the get_Parent() patch above causes us to possibly get null for 'window'
6738           - Implemented handling of client argument to PaintEventStart()/End()
6739           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6740             default handling)
6741           - Now sends a Refresh() to all child windows when Refresh() is called
6742
6743 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6744
6745         * Form.cs: Added (non-functional) Opacity property
6746         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6747
6748 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6749         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6750           use export MONO_THEME=nice to activate it.
6751           Currently supported controls:
6752           - Button
6753           - ComboBox
6754           - ScrollBar
6755           - TabControl (TabAlignment.Top only, other will follow)
6756         * ThemeEngine.cs: Add theme nice
6757         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6758           if enabled
6759
6760 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6761
6762         * Splitter.cs: Resize docked control and its neighbor.
6763
6764 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6765         -- Making Windows with Menus layout correctly --
6766         * Form.cs : The first leg of the fix
6767                 Menu setter - adjust Client Size as needed to make space for the menu
6768                 SetClientSizeCore - doesn't call base version to be able to pass the 
6769                         menu handle to XplatUI.CalculateWindowRect
6770         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6771         * XplatUIX11.cs: The critical second leg of the fix
6772                 GetWindowPos needs to use a recalculated client_rect
6773                 so that resizing the window doesn't break layout of child controls. 
6774                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6775                 Lots of \t\n killed
6776
6777 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6778
6779         * Label.cs: Now properly recalculates width and height on Font and Text
6780           changes if AutoSize is set
6781
6782 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6783         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6784
6785 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6786
6787         * ImageList.cs: Makes ToString method compatible with MS
6788
6789 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6790
6791         * MenuAPI.cs: fixes bug 75716
6792
6793 2005-08-11 Umadevi S <sumadevi@novell.com>
6794         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6795
6796 2005-08-11 Umadevi S <sumadevi@novell.com>
6797         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6798
6799 2005-08-10  Umadevi S <sumadevi@novell.com>
6800         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6801
6802 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6803
6804         * Menu.cs: fixes bug 75700
6805         * MenuAPI.cs: fixes navigation issues
6806
6807 2005-08-09  Umadevi S <sumadevi@novell.com>
6808         * CheckedListBox.cs - simple fix for GetItemChecked.
6809
6810 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6811
6812         * ComboBox.cs: Serveral fixes
6813         * ListBox.cs: Serveral fixes
6814
6815 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6816
6817         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6818         * ListBox.cs: Fixes FindString methods
6819
6820 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6821
6822         * DataGrid.cs: fixes bugs exposed by new tests
6823
6824 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
6825
6826         * Mime.cs: Compile Mono assembly references only if compiling
6827           with Mono (Allows to build with VS.Net again)
6828
6829 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
6830
6831         * Control.cs (PaintControlBackground): Draw background image
6832         corrrectly.
6833         (CheckForIllegalCrossThreadCalls): Stubbed.
6834         
6835         * Form.cs (OnCreateControl): Center when should be centered.
6836         
6837         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6838
6839 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
6840
6841         * Binding.cs: Binding to properties should be case unsensitive
6842
6843 2005-07-18 vlindos@nucleusys.com
6844
6845         * DataGrid.cs: fixes setmember order
6846
6847 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
6848
6849         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6850         * FileDialog.cs: FileDialog is now resizable and uses the new
6851           MimeIconEngine
6852
6853 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
6854
6855         * DataGridTextBoxColumn.cs: default value
6856         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6857         * GridTableStylesCollection.cs: fixes checking MappingName
6858         * DataGridDrawingLogic.cs: fixes drawing logic issues
6859         * DataSourceHelper.cs: rewritten to make compatible with more data sources
6860         * DataGrid.cs: fixes    
6861
6862 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
6863
6864         * MimeGenerated.cs: Use case sensitive comparer for
6865           NameValueCollections
6866
6867 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
6868
6869         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
6870         * ThemeWin32Classic.cs: bug fixes, code refactoring
6871         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
6872         * DataGrid.cs: bug fixes, code refactoring
6873         * DataGridTextBox.cs: bug fixes, code refactoring
6874         * DataGridColumnStyle.cs:  bug fixes, code refactoring
6875         * Theme.cs:  bug fixes, code refactoring
6876
6877 2005-07-01  Peter Bartok  <pbartok@novell.com> 
6878
6879         * TextControl.cs: Quick fix for the reported crash on ColorDialog
6880           and other text box usage
6881
6882 2005-07-01  Jackson Harper  <jackson@ximian.com>
6883
6884         * TabControl.cs: Make sure the bottom of the tab covers the pages
6885         border.
6886
6887 2005-06-30  Peter Bartok  <pbartok@novell.com> 
6888
6889         * Form.cs (ShowDialog): Assign owner of the dialog
6890         * TextBoxBase.cs: Always refresh caret size when deleting, caret
6891           might have been moved to a tag with different height
6892
6893 2005-06-30  Jackson Harper  <jackson@ximian.com>
6894
6895         * Form.cs: Don't create an infinite loop when setting focus
6896         * MenuItem.cs: Don't dirty the parents if we don't have any
6897
6898 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
6899
6900         * LibSupport.cs: Rename
6901
6902 2005-06-29  Peter Bartok  <pbartok@novell.com>
6903
6904         * TextBoxBase.cs: Re-align caret after deleting a character
6905         * TextControl.cs:
6906           - DeleteChars(): Ensure that tag covers the provided position
6907           - StreamLine(): Drop reference for dropped tag
6908
6909 2005-06-29  Peter Bartok  <pbartok@novell.com> 
6910
6911         * TextControl.cs: 
6912           - Selections now work properly, anchoring at the initial location
6913             and properly extending in either direction (SetSelectionToCaret(),
6914             SetSelectionStart() and SetSelectionEnd())
6915           - No longer redraws the whole control on selection change, now
6916             calculates delta between previous and new selection and only
6917             invalidates/redraws that area
6918           - Fixed FindPos() math off-by-one errors
6919           - Changed DeleteChars() to verify the provided tag covers the
6920             provided position, selections may have a tag that doesn't cover
6921             the position if the selection is at a tag border
6922           - Fixed off-by-one errors in DeleteChars()
6923           - Added missing streamlining check in DeleteChars() to remove
6924             zero-length tags
6925           - Implemented Invalidate() method, now properly calculates exposures
6926             between two given lines/positions
6927           - Implemented SetSelection()
6928           - Obsoleted and removed FixupSelection()
6929           - Improved RecalculateDocument() logic, removing code duplication
6930
6931 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6932
6933         * LibSupport.cs: changes to match different input/output arguments.
6934
6935 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6936
6937         * LibSupport.cs: added libsupport.so init routine.
6938
6939 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
6940         
6941         * ControlBindingsCollection.cs
6942                 - Throws an exception on null datasource when adding
6943                 - Checks for duplicated bindings when adding
6944
6945 2005-06-28  Jackson Harper  <jackson@ximian.com>
6946
6947         * TreeView.cs (OnKeyDown): Support left and right properly
6948         (navigates as well as expanding and collapsing.
6949         - Add support for Multiply, this expands all the selected nodes
6950         children.
6951         - Fix some tabbing.
6952
6953 2005-06-28  Jackson Harper  <jackson@ximian.com>
6954
6955         * TreeView.cs: Implement keyboard navigation, currently supports,
6956         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6957         support for toggling checkboxes with the space bar.
6958
6959 2005-06-28  Jackson Harper  <jackson@ximian.com>
6960
6961         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6962         tree.
6963
6964 2005-06-28  Jackson Harper  <jackson@ximian.com>
6965
6966         * TreeView.cs: Add missing event.
6967
6968 2005-06-27  Peter Bartok  <pbartok@novell.com> 
6969
6970         * TextControl.cs:
6971           - Made line ending size configurable (now allows for counting 
6972             lineendings as \n or \r\n)
6973           - Added margin to viewport to keep caret visible on right side
6974           - Fixed translation routines for line/pos to documentpos to consider
6975             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6976           - Fixed some line-endings to be unix style
6977           - Fixed Document.FormatText to perform it's calculations 1-based
6978           - Added descriptions for a few methods that might otherwise get 
6979             used wrong
6980           - Added NOTE section with some basic conventions to remember at 
6981             the top of the file
6982           - Major fixup for RichTextBox selection drawing:
6983             * Fixed crashes when multiple tags on a single line were selected
6984             * fixed selection box drawing not overlaying text
6985             * fixed bogus offset calculation for tags not starting at index 1
6986             * Switched behaviour from using multiple Substrings of a 
6987               StringBuilder.ToString() to using multiple 
6988               StringBuilder.ToString(start, length) statements, hoping this is
6989               faster (kept original version commented out in the code, in case
6990               original version was faster)
6991         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
6992           alignment != Left
6993         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
6994           call it as well
6995
6996 2005-06-27  Jackson Harper  <jackson@ximian.com>
6997
6998         * TabControl.cs: Move to the left and right with the arrow
6999         keys. These keys don't cycle beyond first and last like
7000         tab. Refresh all the tabs when scrolling them to the left or
7001         right.
7002
7003 2005-06-27  Jackson Harper  <jackson@ximian.com>
7004
7005         * TabControl.cs:
7006           - ToString: Added method
7007           - CreateParams: Remove TODO and comment
7008           - OnKeyDown: Cycle through bounds properly.
7009           - SelectedIndex: Scroll to the right or left if we need to
7010           display the newly selected tab.
7011
7012 2005-06-23  Jackson Harper  <jackson@ximian.com>
7013
7014         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7015         set.
7016
7017 2005-06-23  Jackson Harper  <jackson@ximian.com>
7018
7019         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7020         CTRL-SHIFT-TAB, and HOME, END are there any others?
7021
7022 2005-06-23  Jackson Harper  <jackson@ximian.com>
7023
7024         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
7025
7026 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7027         
7028         * DataGridTextBoxColumn.cs: fixes and enhancements
7029         * ThemeWin32Classic.cs: fixes and enhancements
7030         * DataGridBoolColumn.cs:  fixes and enhancements
7031         * DataGridDrawingLogic.cs:  fixes and enhancements
7032         * CurrencyManager.cs: fixes and enhancements
7033         * DataGrid.cs: fixes and enhancements
7034         * DataGridColumnStyle.cs:  fixes and enhancements
7035
7036 2005-06-22  Jackson Harper  <jackson@ximian.com>
7037
7038         * TabControl.cs: Add some missing methods that just call into the
7039         base. Make the TabPageCollection's IList interface behave in the
7040         same manner as the MS implementation.
7041
7042 2005-06-22  Peter Bartok  <pbartok@novell.com> 
7043
7044         * TextControl.cs: Added sanity check
7045         * TextBoxBase.cs: 
7046           - Fixed wrapping behaviour, don't set wrap on single line controls
7047             (this fixes the breakage of colordialog introduced in an earlier
7048              checkin)
7049           - Added rudimentary support for autoscrolling right-aligned controls
7050             (still needs fixing, also, center alignment scroll is missing)
7051
7052 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7053         
7054         * ScrollBar.cs: Fixes thumbpos on Maximum values
7055
7056 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
7057         
7058         * PropertyGridView.cs: Pass context information to UITypeEditors 
7059
7060 2005-06-21  Peter Bartok  <pbartok@novell.com> 
7061
7062         * TextBoxBase.cs:
7063           - Now calling PositionCaret with absolute space coordinates
7064           - Enabled vertical scrolling
7065           - Better tracking of scrollbar changes, tied into WidthChange
7066             event
7067           - Improved cursor tracking
7068           - Removed debug output
7069         * TextControl.cs:
7070           - PositionCaret coordinates are now works in absolute space, not 
7071             the canvas
7072           - Improved tracking of document size
7073           - Added events for width and height changes
7074
7075 2005-06-21  Peter Bartok  <pbartok@novell.com>
7076
7077         * Form.cs: Set focus to active control when form is activated
7078         * TextControl.cs: 
7079           - Added word-wrap functionality to RecalculateLine() 
7080           - Added some short function descriptions for VS.Net to aid in
7081             writing dependent controls
7082           - Added Caret property, returning the current coords of the caret
7083           - Added ViewPortWidth and ViewPortHeight properties
7084           - Added Wrap property
7085           - Added CaretMoved event
7086           - Removed some old debug code
7087           - Split() can now create soft splits
7088           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
7089           - Added method to format existing text
7090           - Fixed size/alignment calculations to use viewport
7091           - RecalculateDocument now can handle changing line-numbers while
7092             calculating lines
7093
7094         * TextBox.cs:
7095           - Added some wrap logic, we don't wrap if alignment is not left
7096           - Added casts for scrollbar var, base class switched types to
7097             also support RichTextBoxA
7098           - Implemented handling of scrollbar visibility flags
7099
7100         * TextBoxBase.cs:
7101           - Switched scrollbars type to RichTextBoxScrollBars to support
7102             RichTextBox
7103           - Added tracking of canvas width/height
7104           - Switched scrollbars to be not selectable (to keep focus on text)
7105           - Added central CalculateDocument() method to handle all redraw
7106             requirements
7107           - Added ReadOnly support
7108           - Added WordWrap support
7109           - Fixed handling of Enter key (we now treat it as a DialogKey)
7110           - Fixed caret positioning when h or v scroll is not zero
7111           - Fixed placing/generation of vertical scrollbar
7112           - Added CalculateScrollBars() method to allow updating scrollbar
7113             limits and visibility
7114           - Fixed handling of horizontal scroll
7115           - Added handling of vertical scroll
7116           - Implemented auto-'jump' when caret moves to close to a left or
7117             right border and there is text to be scrolled into view (currently
7118             there's the potential for a stack overflow, until a bug in
7119             scrollbar is fixed)
7120
7121 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7122         
7123         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7124
7125 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7126
7127         * Mime.cs:
7128         - added inodes.
7129         - return application/x-zerosize for files with size zero
7130           (if no extension pattern matches).
7131         - check matches collection for strings too.
7132         - return only the first mime type if the name value
7133           collection has more than one mime type.
7134
7135 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7136         
7137         * PropertyGrid.cs: Cleaned up some TODOs
7138         * PropertyGridView.cs: Added support for UITypeEditors
7139
7140 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7141         
7142         * DataGrid.cs: clears cached value
7143
7144 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7145
7146         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7147         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7148         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7149         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7150         
7151 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7152
7153         * ThemeWin32Classic.cs: fixes colour
7154
7155 2005-06-15  Peter Bartok  <pbartok@novell.com>
7156
7157         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7158         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7159         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7160         * Control.cs: Added some MWFCategory and MWFDescription attributes
7161         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7162
7163 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7164
7165         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7166         usage
7167
7168 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7169
7170         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7171         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7172         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7173         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7174         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7175         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7176
7177 2005-06-13  Jackson Harper  <jackson@ximian.com>
7178
7179         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7180         isn't printed when the user enables dropping. (X11 does accept
7181         drops).
7182         
7183 2005-06-13  Jackson Harper  <jackson@ximian.com>
7184
7185         * TreeView.cs: Remove some TODOS.
7186
7187 2005-06-13  Jackson Harper  <jackson@ximian.com>
7188
7189         * Form.cs: Hook into the mdi framework.
7190         * MdiClient.cs: Use the base control collections add method so
7191         parents get setup correctly. Set the default back colour and dock
7192         style.
7193         * MdiChildContext.cs: New class, this bad actor handles an
7194         instance of an MDI window. Right now there is only basic
7195         support. You can drag, close, and resize windows. Minimize and
7196         Maximize are partially implemented.
7197
7198 2005-06-13  Jackson Harper  <jackson@ximian.com>
7199
7200         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7201         freaky when both vals are negative. NOTE: There are probably other
7202         places in XplatUIX11 that this needs to be done.
7203
7204 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7205
7206         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7207         * DataGridColumnStyle.cs: fixes signature
7208
7209 2005-06-12  Jackson Harper  <jackson@ximian.com>
7210
7211         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7212         windows.
7213
7214 2005-06-11  Jackson Harper  <jackson@ximian.com>
7215
7216         * StatusBarPanel.cs: Signature cleanups. Implement
7217         BeginInit/EndInit.
7218
7219 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7220
7221         * DataGridTextBoxColumn.cs: Honors aligment
7222         * GridColumnStylesCollection.cs: Contains is case unsensitive
7223         * GridTableStylesCollection.cs: several fixes
7224         * DataGridTableStyle.cs: default column creation
7225         * DataGridDrawingLogic.cs: fixes
7226         * CurrencyManager.cs: ListName property
7227         * DataGrid.cs: multiple styles support
7228         * DataGridColumnStyle.cs: fixes
7229         
7230
7231 2005-06-10  Peter Bartok  <pbartok@novell.com>
7232
7233         * Control.cs(Select): Moved SetFocus call to avoid potential
7234           loops if controls change the active control when getting focus
7235         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7236           the up/down buttons
7237
7238 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7239
7240         * ImageListConverter.cs: Implemented
7241
7242 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7243
7244         * MonthCalendar.cs: Wired in NumericUpDown control for year
7245
7246 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7247
7248         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7249           DoubleClick events, since they are not meant to be fired.
7250
7251 2005-06-09  Peter Bartok  <pbartok@novell.com>
7252
7253         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7254           Jonathan's standalone controls into MWF, implemented missing
7255           events, attributes and methods; added xxxAccessible classes
7256         * AccessibleObject.cs: Made fields internal so other classes
7257           can change them if needed
7258
7259 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
7260
7261         * UpDownBase.cs: Complete implementation
7262         * NumericUpDown.cs: Complete implementation
7263         * DomainUpDown.cs: Complete implementation
7264
7265 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
7266
7267         * DataGridTextBoxColumn.cs: drawing fixes
7268         * DataGridCell.cs: fixes ToString method to match MSNet
7269         * DataGridTableStyle.cs: fixes
7270         * DataGridBoolColumn.cs: fixes, drawing
7271         * DataGridDrawingLogic.cs: fixes, new methods
7272         * DataGridTextBox.cs: Keyboard and fixes
7273         * DataGrid.cs:
7274                 - Keyboard navigation
7275                 - Scrolling fixes
7276                 - Row selection (single, multiple, deletion, etc)
7277                 - Lots of fixes
7278         
7279 2005-06-07  Jackson Harper  <jackson@ximian.com>
7280
7281         * ThemeWin32Classic.cs: Clear the background area when drawing
7282         buttons.
7283
7284 2005-06-06  Peter Bartok  <pbartok@novell.com>
7285
7286         * ImageListStreamer.cs: Fixed signature for GetData
7287         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7288         * ComboBox.cs:
7289           - Added missing ChildAccessibleObject class
7290           - Added missing OnXXXFocus overrides, switched to using those
7291             instead of the event handler
7292         * Control.cs:
7293           - Added Parent property for ControlAccessibleObject
7294           - Fixed signatures
7295           - Fixed attributes
7296           - Added ResetBindings()
7297         * ListBindingConverter.cs: Implemented some methods
7298         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7299         * ImageList.cs: Implemented basic handle scheme, removed TODOs
7300         * ContainerControl.cs: Fixed signature, now subscribing to the
7301           ControlRemoved event instead of overriding the handler, LAMESPEC
7302         * CurrencyManager.cs: Added missing attribute
7303         * MonthCalendar.cs: Added missing properties
7304
7305 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7306
7307         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7308         
7309 2005-06-06  Gaurav Vaish and Ankit Jain
7310
7311         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7312         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7313         
7314 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7315
7316         * Control.cs: fixes CreateParams Width / Height.
7317
7318 2005-06-05  Peter Bartok  <pbartok@novell.com>
7319
7320         * Win32DnD.cs: Removed compilation warnings
7321
7322 2005-06-05  Peter Bartok  <pbartok@novell.com>
7323
7324         * Control.cs (CreateParams): Since we don't know if one of the
7325           properties we use is overridden, lets make sure if we fail accessing
7326           we continue with a backup plan
7327
7328 2005-06-05  Peter Bartok  <pbartok@novell.com>
7329
7330         * Win32DnD.cs:
7331           - Removed debug output
7332           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7333             struct
7334           - Plugged resource leak
7335         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7336           MS size
7337
7338 2005-06-05  Peter Bartok  <pbartok@novell.com>
7339
7340         * XplatUIWin32.cs: Removed DnD code
7341         * Win32DnD.cs: Implemented drop source and drop target functionality
7342
7343 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7344
7345         * UpDownBase.cs: remove duplicate addition of event, enable some code
7346         that was commented out.
7347         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7348         Validate input when a key is pressed. It works fine now for every
7349         combination of Hexadecimal. Only missing some drawing love when sharing
7350         space with other controls.
7351
7352 2005-06-04  Peter Bartok  <pbartok@novell.com>
7353
7354         * Control.cs:
7355           - We need to pass a window for DragDrop, so enable callback events
7356           - Added DnD callback events when being a DragSource
7357         * XplatUI.cs (StartDrag): Added window handle argument
7358         * XplatUIDriver.cs (StartDrag): Added window handle argument
7359         * QueryContinueDragEventArgs: Made fields internally accessible so
7360           drivers can set them
7361         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7362           can set them
7363
7364 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
7365
7366         * DataGridTextBoxColumn.cs: column text editing
7367         * DataGridTableStyle.cs: Respect columns styles created by the user
7368         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7369         * DataGridBoolColumn.cs: bool column editing
7370         * DataGrid.cs: fixes to scrolling, properties, etc
7371         * DataGridTextBox.cs: handle keyboard
7372         * DataGridColumnStyle.cs: fixes
7373
7374 2005-06-02  Jackson Harper  <jackson@ximian.com>
7375
7376         * ImageListStreamer.cs: Somewhat broken implementation of
7377         GetObjectData. The RLE needs some work to match MS properly.
7378
7379 2005-06-02  Jackson Harper  <jackson@ximian.com>
7380
7381         * X11Dnd.cs: Attempting to keep at least one file in MWF
7382         monostyled.
7383
7384 2005-06-02  Peter Bartok  <pbartok@novell.com>
7385
7386         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7387           that way
7388
7389 2005-06-02  Peter Bartok  <pbartok@novell.com>
7390
7391         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7392         * XplatUI.cs: Added DoDragDrop() method
7393         * XplatUIDriver.cs: Added DoDragDrop() method
7394
7395 2005-06-02  Jackson Harper  <jackson@ximian.com>
7396
7397         * Splitter.cs: Implement BorderStyle.
7398
7399 2005-06-02  Jackson Harper  <jackson@ximian.com>
7400
7401         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7402         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7403         X11 using XDND.
7404
7405 2005-06-02  Peter Bartok  <pbartok@novell.com>
7406
7407         * DataObject.cs:
7408           - Added Data setter
7409           - Fixed broken insertion code for SetData, now also
7410             overwrites any existing entry of the same format name
7411         * Hwnd.cs: Added list of pointers that automatically gets
7412           freed when the window is disposed
7413         * XplatUI.cs: Call driver initialization method when loading
7414           a driver
7415         * Control.cs:
7416           - OnDragLeave takes EventArgs, not DragEventArgs
7417           - Added setting of WS_EX_ACCEPTFILES style when dropping is
7418             supported
7419           - Forces style update when drop state changes
7420         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7421           not perfect since we cannot (yet) call the IDataObject.GetData()
7422           method, we keep getting 0x80004005 error, dunno why)
7423
7424 2005-06-02  Peter Bartok  <pbartok@novell.com>
7425
7426         * DragEventArgs.cs: Make fields internal so we can cache the
7427           object and re-set the fields from XplatUI
7428
7429 2005-06-02  Jackson Harper  <jackson@ximian.com>
7430
7431         * Control.cs: Add some internal methods so the DnD subsystem can
7432         raise DnD events. Also call into the driver when AllowDrop is set.
7433         * XplatUI.cs:
7434         * XplatUIDriver.cs: New method for setting whether or not a window
7435         is allowed to accept drag and drop messages.
7436                 
7437 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7438         
7439         * ScrollBar.cs: Make sure that values sent in Scroll events
7440         are always between Maximum and Minimum.
7441
7442 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7443
7444         * Menu.cs: Call MenuChanged when menuitem visibility has been
7445         changed.
7446         * MenuItem.cs: Rebuild menu when item is (not) visible.
7447         * MainMenu.cs: MainMenu has special MenuChanged.
7448         * Theme.cs: Caption and FrameBorderSize are not fixed.
7449         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7450         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7451         * XplatUIX11.cs,
7452         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7453         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7454
7455 2005-05-30  Jackson Harper  <jackson@ximian.com>
7456
7457         * DataFormat.cs: We can't statically initialize this stuff because
7458         it calls into the xplatui and could create a loop. So we lazy init
7459         it.
7460
7461 2005-05-28  Jackson Harper  <jackson@ximian.com>
7462
7463         * Control.cs: Proper implementation of Product(Name/Version).
7464
7465 2005-05-27  Jackson Harper  <jackson@ximian.com>
7466
7467         * DataObject.cs: Dont crash if no data is found.
7468
7469 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7470         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7471                 as per status page, guessing it should be set to true
7472
7473 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7474
7475         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7476         * DataGridTableStyle.cs: set proper formatting text, def header text
7477         * ThemeWin32Classic.cs: new themable paramaters
7478         * DataGridBoolColumn.cs: paint check box, get data, fixes
7479         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7480         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7481         * DataGridColumnStyle.cs: fixes
7482         * Theme.cs: new themable paramaters
7483                 
7484 2005-05-26  Peter Bartok  <pbartok@novell.com>
7485
7486         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7487
7488 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7489         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7490
7491 2005-05-24  Peter Bartok  <pbartok@novell.com>
7492
7493         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7494           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7495           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7496           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7497           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7498           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7499           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7500           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7501           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7502           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7503           missing attributes, etc
7504         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7505
7506 2005-05-24  Peter Bartok  <pbartok@novell.com>
7507
7508         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7509           when user tries to get help
7510         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7511           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7512           to suppress warnings
7513         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7514           avoid unreachable code warning
7515
7516 2005-05-20  Peter Bartok  <pbartok@novell.com>
7517
7518         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7519
7520 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7521
7522         * DataGridTextBoxColumn.cs: Basic painting methods
7523         * DataGridTableStyle.cs: Set table style in the column
7524         * ThemeWin32Classic.cs: Use Theme for colors
7525         * DataGridDrawingLogic.cs: Implement more drawing
7526         * DataGrid.cs: drawing, theming, enhacements, fixes
7527         * DataGridColumnStyle.cs: fixes, drawing
7528         * Theme.cs: theming for Datagrid
7529
7530 2005-05-20  Peter Bartok  <pbartok@novell.com>
7531
7532         * Cursor.cs: Implemented GetObjectData() method
7533
7534 2005-05-20  Peter Bartok  <pbartok@novell.com>
7535
7536         * Cursors.cs: Added setting of cursor name
7537         * Cursor.cs:
7538           - Implemented constructors
7539           - Implemented Draw and DrawStretched
7540           - Implemented Current property
7541           - Implemented == and != operators
7542           - Implemented Dispose()
7543           - Implemented ToString
7544           - Added missing attributes
7545         * XplatUIX11.cs:
7546           - Added missing reset for OverrideCursor when DoEvents is called
7547           - Fixed creation of cursor, logic was wrong
7548         * XplatUIWin32.cs:
7549           - Added missing reset for OverrideCursor when DoEvents is called
7550           - Fixed creation of cursor, bit arrays were swapped
7551         * Clipboard.cs: Removed obsolete MonoTODO attribute
7552
7553 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7554
7555         * ComboBox.cs: fixes OnSelectedItemChanged
7556         * ControlBindingsCollection.cs: fixes item range check
7557
7558 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7559
7560         * UpDownBase.cs:
7561                 - Calc preferred height properly
7562                 - Implement missing properties
7563                 
7564         * NumericUpDown.cs: Implement missing events
7565
7566 2005-05-19  Jackson Harper  <jackson@ximian.com>
7567
7568         * TabControl.cs: New method that resizes the tab pages before
7569         redrawing them. This as needed as the control is double buffered
7570         and sizing will not be recalculated unless ResizeTabPages is
7571         called.
7572         * TabPage.cs: Set base.Text instead of Text in the constructor so
7573         that UpdateOwner does not get called. Use the new Redraw method of
7574         TabControl instead of Refresh so the sizing is recalculated.
7575         * ThemeWin32Classic.cs: Draw the text for button tabs.
7576
7577 2005-05-19  Jackson Harper  <jackson@ximian.com>
7578
7579         * Control.cs: Paint control background images. Fix typo where
7580         PaintControlBackground was not getting called correctly.
7581
7582 2005-05-19  Peter Bartok  <pbartok@novell.com>
7583
7584         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7585           I can investigate, apparently I broke FileDialog
7586
7587 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7588
7589         * AxHost.cs: Some simple properties.
7590         * Control.cs: window must be accessible after ctor.
7591         * Form.cs: Added TransparencyKey property.
7592         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7593         * XplatUIWin32.cs: SetBorderStyle implemented.
7594
7595 2005-05-18  Peter Bartok  <pbartok@novell.com>
7596
7597         * DataObject.cs: Entries are not global but particular to the
7598           DataObject, now it behaves that way
7599         * XplatUIWin32.cs: Implemented Clipboard methods
7600         * Clipboard.cs: Implemented
7601         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7602         * XplatUIOSX.cs: Updated to final clipboard prototypes
7603         * XplatUIX11.cs: Implemented Clipboard methods
7604         * XplatUIDriver.cs: Updated to final clipboard prototypes
7605         * XplatUIStructs.cs:
7606           - Added BITMAPINFOHEADER struct
7607           - Added ClipboardFormats enum
7608         * X11Structs.cs:
7609           - Added ClipboardStruct
7610           - Added Atom enum items for clipboard types
7611           - Fixed atom types for Selection event structures
7612         * DataFormats.cs:
7613           - Added internal properties and methods for drivers to enumerate
7614             all known formats
7615           - Switched initialization method to allow drivers to assign their
7616             own IDs even for the MS predefined clipboard IDs
7617         * XplatUI.cs: Updated to final clipboard interface
7618
7619 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7620         * PropertyGridView.cs: Fixed compiler warnings.
7621
7622 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7623         * PropertyGrid.cs: Added some event calls
7624         * PropertyGridView.cs: Change drawing code to use double buffering
7625         * PropertyGridTextBox.cs: Changed Text property name
7626         * GridItem.cs: Added Bounds property.
7627         * GridEntry.cs: Added Bounds property.
7628
7629 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7630
7631         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7632         since GetType() may not return the correct type if the object is
7633         a remoting proxy.
7634
7635 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7636
7637         * TreeNodeCollection.cs: fixes get/set item ranges
7638         
7639 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7640
7641         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7642                 
7643 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7644
7645         * ComboBox.cs: Fix item range comparation
7646         * ListView.cs: Fix item range comparation
7647
7648 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7649
7650         * FontDialog.cs:
7651           - Clear example panel when OnPaint is called
7652           - Better solution for displaying the example panel text
7653           - Select default indexes in the ListBoxes
7654
7655 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7656
7657         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7658
7659 2005-05-11  Peter Bartok  <pbartok@novell.com>
7660
7661         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7662         * SelectionRangeConverter.cs: Implemented
7663         * PropertyGrid.cs: Fixed attribute value
7664         * Control.cs:
7665           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7666           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7667         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7668           that's common to all drivers. First methods to go there are
7669           Sebastien Pouliot's CAS Stack Propagation helper methods
7670         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7671           Sebastien Pouliot for CAS Stack Propagation
7672
7673 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7674
7675         * OSXStructs.cs:
7676           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7677
7678 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7679
7680         * DataGridTextBoxColumn.cs: fixed some members
7681         * GridColumnStylesCollection.cs: indexed column is case insensitive
7682         * DataGridTableStyle.cs: fixes
7683         * ThemeWin32Classic.cs: add new theme parameter
7684         * Theme.cs: add new theme parameter
7685         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7686         * DataGrid.cs: fixes, new internal properties, etc.
7687         * DataGridColumnStyle.cs: allows to set grid value
7688         *
7689
7690 2005-05-10  Peter Bartok  <pbartok@novell.com>
7691
7692         * AccessibleObject.cs:
7693           - Removed MonoTODO attribute on help, method is correct
7694           - Fixed Bounds property
7695         * AxHost.cs: Moved MonoTODO
7696         * ButtonBase.cs: Now setting AccessibleObject properties
7697         * RadioButton.cs: Setting proper AccessibleObject role
7698         * CheckBox.cs: Setting proper AccessibleObject role
7699         * ControlBindingsCollection.cs: Added properties, methods and attributes
7700         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7701           userdefined DataFormats.Format items as well
7702         * ListControl.cs: Removed data_member from the public eye
7703         * OpenFileDialog.cs:
7704           - Made class sealed
7705           - Added missing attributes
7706         * SaveFileDialog.cs: Added missing attributes
7707         * ImageListStreamer.cs: Fixed code that caused warnings
7708         * LinkLabel.cs: Removed unreachable code
7709         * TreeView.cs: Fixed code that caused warnings
7710         * PropertyGridView.cs: Fixed code that caused warnings
7711         * GridColumnStylesCollection.cs: Added missing attributes
7712         * GridTableStylesCollection: Added missing attribute
7713         * PropertyManager: Added .ctor
7714         * SecurityIDType: Added
7715         * DataObject.cs: Implemented class
7716         * LinkArea.cs: Added missing attribute
7717
7718 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7719
7720         * RadioButton.cs: call base method to allow to fire OnClick event
7721         * UpDownBase.cs: OnMouseUp call base method
7722         * CheckedListBox.cs: call base method before returning
7723         * TrackBar.cs: call base method before returning
7724         
7725
7726 2005-05-10  Peter Bartok  <pbartok@novell.com>
7727
7728         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7729           for messages
7730
7731 2005-05-10  Peter Bartok  <pbartok@novell.com>
7732
7733         * DataFormats.cs: Implemented
7734         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7735           XplatUIX11.cs: Added Clipboard APIs
7736         * XplatUIWin32.cs: Implemented Clipboard APIs
7737         * FolderBrowserDialog.cs: Added missing event, attributes
7738
7739 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7740
7741         * CheckBox.cs: call base method to allow to fire OnClick event
7742
7743 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7744
7745         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7746
7747 2005-05-06  Peter Bartok  <pbartok@novell.com>
7748
7749         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7750         * Screen.cs: Implemented
7751         * HelpNavigator.cs: Added
7752         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7753           property
7754         * HelpProvider.cs: Implemented all we can do until we have a CHM
7755           help library (which means that "What's This" does work now)
7756
7757 2005-05-06  Jackson Harper  <jackson@ximian.com>
7758
7759         * XplatUIX11.cs: Fix waking up the main loop.
7760                 
7761 2005-05-05  Peter Bartok  <pbartok@novell.com>
7762
7763         * XplatUI.cs: Updated revision
7764         * Form.cs: Removed enless loop
7765         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7766         * Label.cs (OnPaint): Added call to base.OnPaint()
7767         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7768         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7769         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7770         * AxHost.cs: Added
7771         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7772         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7773           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7774           reuse of ToolTipWindow by other controls
7775         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7776         * XplatUIX11.cs: Now clipping drawing area (experimental)
7777         * PictureBox.cs: Moved base.OnPaint() call to end of method
7778         * Theme.cs: Fixed ToolTip abstracts to match new format
7779         * ErrorProvider.cs: Implemented
7780
7781 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7782
7783         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7784         * LinkLabel.cs:
7785                 - Adds cursors
7786                 - Handles focus
7787                 - Implements LinkBehavior
7788                 - Fixes many issues
7789
7790 2005-05-03  Jackson Harper  <jackson@ximian.com>
7791
7792         * ListView.cs: Calculate the scrollbar positioning on resize and
7793         paint, so they get put in the correct place.
7794
7795 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7796
7797         * ColorDialogs.cs: The small color panels are now handled by
7798           SmallColorControl. This fixes drawing of the focus rectangle
7799           and adds a 3D border.
7800
7801 2005-05-03  Peter Bartok  <pbartok@novell.com>
7802
7803         * Control.cs: Modified version of Jonathan Chamber's fix for
7804           double-buffering
7805
7806 2005-05-03  Jackson Harper  <jackson@ximian.com>
7807
7808         * ListView.cs: Remove redraw variable. Control now handles whether
7809         or not a redraw needs to be done, and will only raise the paint
7810         event if redrawing is needed.
7811
7812 2005-05-03  Jackson Harper  <jackson@ximian.com>
7813
7814         * Splitter.cs: No decorations for the splitter form. Cache the
7815         hatch brush.
7816
7817 2005-05-03  Jackson Harper  <jackson@ximian.com>
7818
7819         * TreeView.cs: Use dashed lines to connect nodes. Use the
7820         ControlPaint method for drawing the focus rect instead of doing
7821         that in treeview.
7822
7823 2005-05-02  Peter Bartok  <pbartok@novell.com>
7824
7825         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7826
7827 2005-04-29  Jackson Harper  <jackson@ximian.com>
7828
7829         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7830         entire image buffer. Just clear the clipping rectangle.
7831
7832 2005-04-29  Jackson Harper  <jackson@ximian.com>
7833
7834         * ThemeWin32Classic.cs: Don't draw list view items that are
7835         outside the clipping rectangle.
7836
7837 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
7838
7839         * ListBox.cs: added horizontal item scroll
7840
7841 2005-04-29  Jackson Harper  <jackson@ximian.com>
7842
7843         * ThemeWin32Classic.cs: Remove some old debug code that was
7844         causing flicker with the new double buffering code.
7845
7846 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
7847
7848         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7849         behave like combobox and comboboxlist (still not sure if this is
7850         correct though).
7851
7852 2005-04-28  Jackson Harper  <jackson@ximian.com>
7853
7854         * ThemeWin32Classic.cs: Don't fill the middle of progress
7855         bars. This fills areas outside of the clip bounds that don't need
7856         to be filled.
7857
7858 2005-04-28  Jackson Harper  <jackson@ximian.com>
7859
7860         * Control.cs: Don't expose functionality to touch the image buffers.
7861         * ProgressBar.cs:
7862         * ListView.cs: We do not need to (and no longer can) manipulate
7863         the image buffers directly. All of this is handled by Control.
7864
7865 2005-04-28  Peter Bartok  <pbartok@novell.com>
7866
7867         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7868           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7869           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7870
7871 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7872
7873         * Combobox:
7874                 - Adjust control's height for non-simple comboboxes (bug fix)
7875                 - Remove dead code
7876         * MenuAPI.cs: remove unused var
7877         * ScrollBar.cs: remove unsed var
7878                  
7879         * ListBox.cs: unselect items when clearing
7880
7881 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7882
7883         * ListControl.cs: honors OnPositionChanged and default Selected Item
7884         * ListBox.cs: unselect items when clearing
7885
7886 2005-04-27  Jackson Harper  <jackson@ximian.com>
7887
7888         * X11Keyboard.cs: Initialize a default keyboard and give a warning
7889         if a "correct" keyboard is not found. This will make us not crash,
7890         but might give some users bad keyboard layouts...seems to be the
7891         same thing rewind does.
7892
7893 2005-04-27  Jackson Harper  <jackson@ximian.com>
7894
7895         * BindingManagerBase.cs: Attach the current/position changed
7896         handlers to their respective events.
7897
7898 2005-04-27  Jackson Harper  <jackson@ximian.com>
7899
7900         * Control.cs: Make sure that the first WM_PAINT does a full draw,
7901         not just a blit.
7902         * ThemeWin32Classic.cs: Don't fill the background for picture
7903         boxes. This could overright user drawing.
7904         * ComboBox.cs: Just fill the clipping rect not the entire client
7905         rect when drawing the background. This prevents pieces of the
7906         image buffer from getting overwritten and is theoretically faster.
7907
7908 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
7909
7910         * ComboBox.cs: Databinding support fixes, fire missing events
7911         * ListControl.cs: implement missing methods and properties, fixes
7912         * ThemeWin32Classic.cs: Databiding support on Drawing
7913         * CheckedListBox.cs: Databinding support fixes, fire missing events
7914         * ListBox.cs: Databinding support fixes, fire missing events
7915         
7916 2005-04-25  Peter Bartok  <pbartok@novell.com>
7917
7918         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7919
7920 2005-04-25  Jackson Harper  <jackson@ximian.com>
7921
7922         * TreeView.cs: Use the horizontal scrollbars height not width when
7923         determining how much of the client area is available.
7924
7925 2005-04-25  Jackson Harper  <jackson@ximian.com>
7926
7927         * Control.cs: Double buffering is handled differently now. As per
7928         the spec, the extra buffer is created in the WM_PAINT message and
7929         passed down to the control's drawing code.
7930         * GroupBox.cs:
7931         * Label.cs:
7932         * CheckBox.cs:
7933         * ProgressBar.cs:
7934         * RadioButton.cs:
7935         * ColorDialog.cs:
7936         * ComboBox.cs:
7937         * PropertyGridView.cs:
7938         * UpDownBase.cs:
7939         * MessageBox.cs:
7940         * MenuAPI.cs:
7941         * ListView.cs:
7942         * ButtonBase.cs:
7943         * SizeGrip.cs:
7944         * ScrollBar.cs:
7945         * ListBox.cs:
7946         * TrackBar.cs:
7947         * ToolBar.cs:
7948         * PictureBox.cs:
7949         * DateTimePicker.cs:
7950         * StatusBar.cs:
7951         * TreeView.cs: Update to new double buffering system.
7952         * MonthCalendar.cs: Uncomment block, as Capture is now
7953         working. Update to new double buffering
7954         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7955         * PaintEventArgs.cs: New internal method allows us to set the
7956         graphics object. This is used for double buffering.
7957         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7958         rectangle. The internal paint_area var has been removed from
7959         StatusBar. The clipping rect should be used instead.
7960         * Theme.cs: Give the PictureBox drawing method a clipping rect.
7961         * TabPage.cs: The RefreshTabs method was removed, so just call the
7962         tab controls Refresh method now.
7963         * TabControl.cs: Update to new double buffering. Make sure the
7964         handle is created before sizing the tab pages, otherwise we will
7965         get stuck in a loop.
7966
7967 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
7968
7969         * LinkLabel.cs: Fix typo, bug #74719; patch
7970           from Borja Sanchez Zamorano
7971
7972 2005-04-22  Jackson Harper  <jackson@ximian.com>
7973
7974         * TreeNode.cs: Implement Handle stuff.
7975         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7976
7977 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
7978
7979         * DataGridTextBoxColumn.cs: call base constructors, fixes
7980         * GridColumnStylesCollection.cs: missing events, methods, and functionality
7981         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7982         * DataGridTableStyle.cs: implements create default column styles
7983         * DataGridBoolColumn.cs: which types can handle
7984         * DataGrid.cs: missing methods, fixes, new functionality
7985         * DataGridColumnStyle.cs: fixes
7986
7987 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
7988         * FolderBrowserDialog.cs:
7989         - Use a thread to fill the TreeView
7990         - Adjusted some sizes
7991
7992 2005-04-19  Peter Bartok  <pbartok@novell.com>
7993
7994         * LinkLabel.cs: (Re-)create the pieces when setting the Text
7995           property. Fixes #74360.
7996
7997 2005-04-19  Jackson Harper  <jackson@ximian.com>
7998
7999         * XEventQueue.cs: Lock when getting the lockqueue size.
8000         * PictureBox.cs: Call base OnPaint
8001         
8002 2005-04-19  Peter Bartok  <pbartok@novell.com>
8003
8004         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8005           messages were no longer being processed (this broke BeginInvoke)
8006
8007           
8008 2005-04-18  Jackson Harper  <jackson@ximian.com>
8009
8010         * TreeView.cs: buglet that caused node images to get drawn
8011         regardless of whether or not they were in the clipping rectangle.
8012
8013 2005-04-18  Jackson Harper  <jackson@ximian.com>
8014
8015         * CurrencyManager.cs: There are four rules for GetItemProperties:
8016         - If the type is an array use the element type of the array
8017         - If the type is a typed list, use the type
8018         - If the list contains an Item property that is not an object, use
8019         that property
8020         - use the first element of the list if there are any elements in
8021         the list.
8022         
8023 2005-04-17  Jackson Harper  <jackson@ximian.oom>
8024
8025         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
8026         click. This handles offsets for scrolling properly and reduces
8027         memory. Also fixed GetNode to not offset now that TopNode works
8028         properly.
8029         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
8030         
8031 2005-04-17  Jackson Harper  <jackson@ximian.com>
8032
8033         * CursorConverter.cs: Initial implementation.
8034
8035 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8036
8037         * ListControl.cs: work towards complex data binding support on ListControl
8038         * CurrencyManager.cs: work towards complex data binding support on ListControl
8039         * ListBox.cs: work towards complex data binding support on ListControl
8040
8041
8042 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8043
8044         * GridTableStylesCollection.cs: fixes name and constructor
8045         * DataGridTableStyle.cs: fixes
8046         * DataGridBoolColumn.cs: fixes names and constructors
8047         * DataGrid.cs: define methods and properties. Some init implementations
8048         * DataGridCell.cs: define methods and properties. Some init implementations
8049         * GridTablesFactory.cs: Define methods and properties
8050
8051 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
8052
8053         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
8054         graphics port changes.  We still want the coordinates in global screen
8055         coordinates.
8056
8057 2005-04-14  Jackson Harper  <jackson@ximian.com>
8058
8059         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
8060         check plus minus or checkbox clicks unless those features are enabled.
8061
8062 2005-04-14  Jackson Harper  <jackson@ximian.com>
8063
8064         * TreeView.cs: Add methods for setting the top and bottom visible
8065         nodes. TreeNode::EnsureVisible uses these methods.
8066         * TreeNode.cs: Implement EnsureVisible
8067
8068 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
8069
8070         * Form.cs: Pospone menu assignation if the window has not been created yet
8071         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
8072         size and position
8073
8074 2005-04-12  Jackson Harper  <jackson@ximian.com>
8075
8076         * TreeView.cs: Set the TopNode properly when scrolling
8077         occurs. This has the added benifit of reducing the amount of
8078         walking that needs to be done when drawing. Also removed an old
8079         misleading TODO.
8080         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
8081         
8082 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
8083
8084         * Timer.cs: fixes interval setting when the timer is already enabled
8085         
8086 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
8087
8088         * FolderBrowserDialog.cs: First approach
8089
8090 2005-04-09  Peter Bartok  <pbartok@novell.com>
8091
8092         * FolderBrowserDialog: Added
8093
8094 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
8095
8096         * LinkLabel.cs: move drawing code into the theme
8097         * ThemeWin32Classic.cs: drawing code and painting background bugfix
8098         * Theme.cs: define DrawLinkLabel method
8099
8100 2005-04-05  Jackson Harper  <jackson@ximian.com>
8101
8102         * BindingContext.cs: Use weak references so these bad actors don't
8103         stay alive longer then they need to.
8104
8105 2005-04-05  Jackson Harper  <jackson@ximian.com>
8106
8107         * ListControl.cs: Basic implementation of complex databinding.
8108         * ComboBox.cs:
8109         * ListBox.cs: Add calls to ListControl databinding methods.
8110
8111 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8112
8113         * FileDialog.cs:
8114           - Don't change PopupButtonState to Normal when the
8115             PopupButton gets pressed several times.
8116           - Renamed ButtonPanel to PopupButtonPanel
8117
8118 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8119
8120         * ColorDialog.cs: Use cached objects instead of creating them
8121         * LinkLabel.cs: Use cached objects instead of creating them
8122         * Splitter.cs: Use cached objects instead of creating them
8123         * FontDialog.cs: Use cached objects instead of creating them
8124         * PropertyGridView.cs: Use cached objects instead of creating them
8125         * MessageBox.cs: Use cached objects instead of creating them
8126         * FileDialog.cs: Use cached objects instead of creating them
8127         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8128         * TreeView.cs: Use cached objects instead of creating them
8129         
8130 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8131
8132         * Control.cs: use Equals to compare the font since no == op
8133         * ScrollBar.cs: use Equals to compare the font since no == op
8134
8135 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8136
8137         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8138
8139 2005-04-01  Jackson Harper  <jackson@ximian.com>
8140
8141         * Binding.cs: Implement IsBinding.
8142         * BindingManagerBase.cs:
8143         * PropertyManager.cs:
8144         * CurrencyManager.cs: Add IsSuspended property.
8145
8146 2005-04-01  Jackson Harper  <jackson@ximian.com>
8147
8148         * Binding.cs: Had some IsAssignableFrom calls backwards.
8149
8150 2005-04-01  Jackson Harper  <jackson@ximian.com>
8151
8152         * Binding.cs: Handle null data members when pulling data.
8153         * PropertyManager.cs: Handle the data member being a property that
8154         does not exist.
8155
8156 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8157
8158         * DataGridTextBoxColumn.cs: fixes signature
8159         * DataGrid.cs: calls right constructor
8160
8161 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8162
8163         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8164         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8165         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8166         * DataGridTableStyle.cs: implements DataGridTableStyle
8167         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8168         * DataGridTextBox.cs: implements DataGridTextBox
8169         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8170
8171 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8172
8173         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8174
8175 2005-03-29  Peter Bartok  <pbartok@novell.com>
8176
8177         * Application.cs:
8178           - Properly implemented CompanyName property
8179           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8180             returns a path that includes CompanyName, ProductName and
8181             Version (fixes bug #70330)
8182
8183 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8184
8185         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8186           fixes bug #72588.
8187
8188 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8189
8190         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8191         
8192           - Added ReadOnly CheckBox
8193           - Further refactoring: moved some code from Open-/SaveFileDialog
8194             to FileDialog
8195
8196 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8197
8198         * OpenFileDialog.cs: Fixed CheckFileExists
8199         * FileDialog.cs:
8200           Moved FileView and DirComboBox outside FileDialog class.
8201           They can now be used outside FileDialog
8202
8203 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8204
8205         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8206         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8207
8208 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8209
8210         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8211           - Added missing CreatePrompt property in SaveDialog
8212           - Overall SaveDialog handling should be better now
8213           - Added non standard ShowHiddenFiles property
8214           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8215           - Added InitialDirectory and RestoreDirectory support
8216
8217 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8218
8219         * FileDialog.cs: Made dirComboBox usable
8220
8221 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8222
8223         * FileDialog.cs: Added Filter support (case sensitiv)
8224
8225 2005-03-24  Jackson Harper  <jackson@ximian.com>
8226
8227         * TabControl.cs: Need a couple more pixels for the lines.
8228
8229 2005-03-23  Jackson Harper  <jackson@ximian.com>
8230
8231         * TabControl.cs: Give the tab page focus when it is selected.
8232
8233 2005-03-23  Jackson Harper  <jackson@ximian.com>
8234
8235         * TabControl.cs: Account for the drawing of tabs borders when
8236         invalidating. If the slider was clicked dont do click detection on
8237         the tabs.
8238
8239 2005-03-23  Jackson Harper  <jackson@ximian.com>
8240
8241         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8242
8243 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8244
8245         * CategoryGridEntry.cs: Added
8246         * GridItem.cs: Added helper properties
8247         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8248         * GridEntry.cs: Updated code for collection
8249         * PropertyGrid.cs: Cleaned up some formatting
8250         * PropertyGridView.cs: Added drop down functionality for enums.
8251         * GridItemCollection.cs: Added enumerator logic
8252         * PropertyGridEntry.cs: Added
8253
8254 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8255
8256         * FileDialog.cs:
8257           - Removed unnecessary commented code
8258           - Fixed handling for entering the filename manually in the combobox
8259
8260 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8261
8262         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8263
8264 2005-03-18  Peter Bartok  <pbartok@novell.com>
8265
8266         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8267           them being touching the border
8268
8269 2005-03-18  Peter Bartok  <pbartok@novell.com>
8270
8271         * TextControl.cs: Quick hack to center text better
8272
8273 2005-03-18  Peter Bartok  <pbartok@novell.com>
8274
8275         * ControlPaint.cs:
8276           - Don't throw NotImplemented exceptions, just print a notice once
8277             instead (requested by Miguel). This makes running existing SWF
8278             apps a bit easier
8279         * Control.cs:
8280           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8281           - Added context menu trigger on right click
8282         * Panel.cs: Trigger invalidate on resize
8283         * StatusBar.cs:
8284           - Removed old double-buffer drawing
8285           - Added ResizeRedraw style to force proper update of statusbar
8286         * ListView.cs:
8287           - Removed debug output
8288         * ThemeWin32Classic.cs:
8289           - Fixed drawing of status bar, now draws Text property if there
8290             are no defined panels
8291
8292 2005-03-18  Jackson Harper  <jackson@ximian.com>
8293
8294         * ImageList.cs: When the image stream is set pull all the images
8295         from it.
8296         * ImageListStreamer.cs: Implement reading image list streams.
8297
8298 2005-03-18  Peter Bartok  <pbartok@novell.com>
8299
8300         * ThemeWin32Classic.cs (DrawPictureBox):
8301           - Fixed calculations for centered drawing
8302           - Fixed drawing for normal mode, not scaling the image on normal
8303
8304 2005-03-18  Peter Bartok  <pbartok@novell.com>
8305
8306         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8307           textbox
8308         * FileDialog.cs:
8309           - Made Open/Save button the accept button for FileDialog
8310           - Tied the cancel button to the IButtonControl cancel button
8311           - Save/Open now properly builds the pathname
8312           - Now handles user-entered text
8313           - Preventing crash on right-click if no item is selected
8314           - Fixed Text property, now uses contents of textbox
8315           - Fixed SelectedText property, now just returns the text part that
8316             is selected in the text box
8317
8318 2005-03-18  Jackson Harper  <jackson@ximian.com>
8319
8320         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8321         rect, make sure to de-adjust the interior rect after drawing the
8322         tab text.
8323
8324 2005-03-18  Peter Bartok  <pbartok@novell.com>
8325
8326         * MenuAPI.cs: Remove menu *before* executing selected action to
8327           prevent the menu from 'hanging around'
8328           
8329 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8330
8331         * XplatUIOSX.cs: Implemented WorkingArea property
8332
8333 2005-03-17  Peter Bartok  <pbartok@novell.com>
8334
8335         * XplatUIX11.cs: Fixed menu coord calculations
8336         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8337           for calculating offsets
8338
8339 2005-03-17  Peter Bartok  <pbartok@novell.com>
8340
8341         * Hwnd.cs: Do not consider menu presence for default client
8342           rectangle location/size
8343         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8344           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8345           translation functions
8346         * FileDialog.cs: Fixed (what I presume is a) typo
8347
8348 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8349
8350         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8351           X access (avoids X-Async errors)
8352
8353 2005-03-16  Jackson Harper  <jackson@ximian.com>
8354
8355         * TabControl.cs: Raise the SelectedIndexChanged event.
8356
8357 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8358
8359         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8360           - Removed vertical ToolBar and replaced it with a custom panel
8361             (desktop and home button already work)
8362           - Added Help button (some controls get resized or relocated then)
8363           - Draw correct text depending on Open or Save.
8364           - Fixed some typos...
8365
8366 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
8367
8368         * ScrollBar.cs:
8369           - Only change Maximum and Minimum when need it (bug fix)
8370
8371 2005-03-15  Peter Bartok  <pbartok@novell.com>
8372
8373         * Form.cs: Use Handle for icon, to trigger creation if
8374           the window does not yet exist
8375         * Control.cs:
8376           - CanSelect: Slight performance improvement
8377           - Focus(): Preventing possible recursion
8378           - Invalidate(): Removed ControlStyle based clear flag setting
8379           - WM_PAINT: fixed logic for calling OnPaintBackground
8380           - WM_ERASEBKGND: Fixed logic, added call to new driver method
8381             EraseWindowBackground if the control doesn't paint background
8382         * XplatUIWin32.cs:
8383           - Moved EraseWindowBackground() method to internal methods
8384           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8385             is sent via SendMessage on BeginPaint call on Win32
8386         * XplatUIX11.cs:
8387           - Added EraseWindowBackground() method
8388           - No longer sends WM_ERASEBKGND on .Expose, but on call to
8389             PaintEventStart, which more closely matches Win32 behaviour
8390           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8391           - Fixed SetFocus() to properly deal with client and whole windows
8392         * Hwnd.cs: Added ErasePending property
8393         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8394         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8395
8396 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
8397
8398         * XplatUIOSX.cs:
8399           - Fix hard loop when timers exist.
8400           - Fix bugs with middle and right click for 3 button mice.
8401
8402 2005-03-11  Peter Bartok  <pbartok@novell.com>
8403
8404         * XplatUIX11.cs:
8405           - get_WorkingArea: Need to call X directly, GetWindowPos only
8406             returns cached data now
8407           - Added sanity check to GetWindowPos hwnd usage
8408
8409 2005-03-11  Jackson Harper  <jackson@ximian.com>
8410
8411         * BindingManagerBase.cs: This method isn't used anymore as
8412         PullData now updates the data in the control.
8413
8414 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
8415
8416         * Form.cs: fixes menu drawing on X11
8417         * MenuAPI.cs:  fixes menu drawing on X11
8418
8419 2005-03-11  Peter Bartok  <pbartok@novell.com>
8420
8421         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8422           from Jonathan Gilbert; should fix bug #73606
8423         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8424           in Screen coordinates. Thanks, Jordi.
8425         * Form.cs: Added missing attribute
8426
8427 2005-03-11  Peter Bartok  <pbartok@novell.com>
8428
8429         * Form.cs:
8430           - Rudimentary Mdi support
8431           - Removed outdated FormParent code
8432           - Implemented lots of missing properties and methods, still missing
8433             transparency support
8434           - Added missing attributes
8435           - Implemented support for MaximumBounds
8436           - Added firing of various events
8437         * XplatUI.cs: Added SetIcon() method
8438         * XplatUIDriver.cs: Added SetIcon() abstract
8439         * XplatUIOSX.cs: Stubbed out SetIcon() method
8440         * XplatUIX11.cs:
8441           - Implemented SetIcon() support
8442           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8443           - Switched to unix line endings
8444         * XplatUIWin32.cs:
8445           - Made POINT internal so for can access it as part of MINMAX
8446           - Implemented SetIcon() support
8447           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8448             native Mdi support again, might have to go managed)
8449         * Control.cs: Now fires the StyleChanged event
8450         * MdiClient.cs: Added; still mostly empty
8451
8452 2005-03-10  Peter Bartok  <pbartok@novell.com>
8453
8454         * SaveFileDialog.cs: Added emtpy file
8455
8456 2005-03-08  Peter Bartok  <pbartok@novell.com>
8457
8458         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8459           in turn triggers OnCreateContro) when creating a handle for the
8460           first time.
8461         * TextControl.cs: Fixed endless loop in certain cases when
8462           replacing the current selection
8463
8464 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8465
8466         * ScrollBar.cs:
8467           - Honors NewValue changes in Scroll events allowing apps to change it
8468           - Adds First and Last Scroll events
8469           - Fixes Thumb events
8470
8471 2005-03-07  Peter Bartok  <pbartok@novell.com>
8472
8473         * Hwnd.cs: Added DefaultClientRectangle property
8474         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8475           more detailed debug information
8476         * XplatUIX11.cs:
8477           - Fixed size-change feedback loop, where we would pull an old size
8478             off the queue and mistakenly change our window's size to an
8479             earlier value
8480           - Now compressing ConfigureNotify events, to reduce looping and
8481             redraw issues
8482         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8483           is called
8484
8485 2005-03-07  Jackson Harper  <jackson@ximian.com>
8486
8487         * Binding.cs: Push data pushes from data -> property. Check if the
8488         property is readonly when attempting to set it.
8489
8490 2005-03-07  Jackson Harper  <jackson@ximian.com>
8491
8492         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8493         instead of IsSubclassOf. Pulling data now sets the value on the
8494         control.
8495         * PropertyManager.cs:
8496         * CurrencyManager.cs: Just need to pull data when updating now,
8497         because PullData will set the value on the control.
8498
8499 2005-03-04  Jackson Harper  <jackson@ximian.com>
8500
8501         * Binding.cs: Implement data type parsing and converting on pulled
8502         data. TODO: Are there more ways the data can be converted?
8503
8504 2005-03-04  Jackson Harper  <jackson@ximian.com>
8505
8506         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8507         controls Validating method so we can repull the data when the
8508         control loses focus.
8509
8510 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8511
8512         * ColumnHeader.cs:
8513           - Fixes null string format
8514           
8515         * ListView.cs:
8516           - Adds enum type checks
8517           - Fixes redrawing and recalc need after changing some properties
8518           - Fixes on focus_item set after the event
8519           - Fixes adding columns after the control has been created
8520           
8521         * ThemeWin32Classic.cs:
8522           - Fixes CheckBox focus rectangle
8523           - Fixes ColumnHeader drawing
8524
8525
8526 2005-03-03  Jackson Harper  <jackson@ximian.com>
8527
8528         * Binding.cs: Bind to <Property>Changed events so we can detect
8529         when properties are changed and update the data.
8530
8531 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8532
8533         * ImageList.cs:
8534           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8535           - Fixes ImageList constructor with ImageList container
8536           - Fixes image scaling (wrong parameters at DrawImage)
8537
8538 2005-02-02  Jackson Harper  <jackson@ximian.com>
8539
8540         * Binding.cs: Make property searches case-insensitive. Eliminate
8541         some duplicated code.
8542
8543 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8544
8545         * ComboBox.cs:
8546                 - Handle focus event
8547                 - Fix scrollbar events
8548                 - Discard highlighted item if remove it
8549                 - Fixes SelectedItem with strings
8550
8551 2005-03-01  Peter Bartok  <pbartok@novell.com>
8552
8553         * Control.cs:
8554           - Fixed Visible property, now follows (once again) parent chain
8555             to return false if any control in the chain is visible=false
8556           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8557           - Fixed several places where is_visible instead of Visible was used
8558           - Implemented FIXME related to focus selection when setting focused
8559             control to be invisible
8560
8561         * XplatUIWin32.cs: Now using proper method to find out if window is
8562           visible. Thanks to Jordi for pointing it out
8563
8564 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8565
8566         * ComboBox.cs: show/hide scrollbar instead of creating it
8567
8568 2005-02-27  Jackson Harper  <jackson@ximian.com>
8569
8570         * CurrencyManager.cs: Add PositionChanged stuff.
8571
8572 2005-02-27  Peter Bartok  <pbartok@novell.com>
8573
8574         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8575         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8576         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8577         * XplatUIX11.cs:
8578           - Implemented GetMenuDC()
8579           - Implemented GetMenuOrigin()
8580           - Implemented ReleaseMenuDC()
8581           - Implemented generation of WM_NCPAINT message
8582           - Implemented generation and handling of WM_NCCALCSIZE message
8583         * Form.cs: Added debug helper message for Jordi's menu work
8584         * Hwnd.cs:
8585           - Modified ClientRect property; added setter, fixed getter to handle
8586             setting of ClientRect
8587           - Added MenuOrigin property
8588
8589 2005-02-26  Peter Bartok  <pbartok@novell.com>
8590
8591         * XplatUIX11.cs:
8592           - Destroys the caret if a window that's being destroyed contains it
8593           - Ignores expose events coming from the X11 queue for windows that
8594             already are destroyed
8595           - Now uses the proper variable for handling DestroyNotify, before we
8596             marked the wrong window as destroyed
8597           - Improved/added some debug output
8598
8599 2005-02-26  Peter Bartok  <pbartok@novell.com>
8600
8601         * X11Keyboard.cs: Fixes to work on 64bit systems
8602
8603 2005-02-26  Peter Bartok  <pbartok@novell.com>
8604
8605         * Control.cs:
8606           - Now calling OnHandleDestroyed from DestroyHandle()
8607             instead of Dispose()
8608           - Removed bogus call to controls.Remove() from DestroyHandle()
8609
8610 2005-02-26  Peter Bartok  <pbartok@novell.com>
8611
8612         * Control.cs: Properly destroy child windows when our handle is
8613           destroyed
8614
8615 2005-02-25  Peter Bartok  <pbartok@novell.com>
8616
8617         * XplatUI.cs:
8618           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8619           - Alphabetized Static Methods and Subclasses
8620
8621         * XplatUIX11.cs:
8622           - Added XException class to allow custom handling of X11 exceptions
8623           - Created custom X11 error handler, tied into XException class
8624           - Added support for MONO_XEXCEPTIONS env var to allow the user
8625             to either throw an exception on X errors or continue running
8626             after displaying the error
8627           - Added handling of DestroyNotify message
8628           - Added handler for CreateNotify message (still disabled)
8629           - Improved (tried to at least) Where method to provide file and lineno
8630         * X11Structs.cs:
8631           - Added XErrorHandler delegate
8632           - Added XRequest enumeration (to suppor translation of errors)
8633
8634 2005-02-25  Jackson Harper  <jackson@ximian.com>
8635
8636         * PropertyManager.cs: Implement editing features
8637         * CurrencyManager.cs:
8638         * Binding.cs: First attempt at UpdateIsBinding
8639         * BindingManagerBase.cs: Call UpdateIsBinding before
8640         pushing/pulling data.
8641
8642 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8643
8644         * MenuAPI.cs: Respect disabled items
8645         * ThemeWin32Classic.cs
8646                 - Caches ImageAttributes creation for DrawImageDisabled
8647                 - Fixes vertical menu line drawing
8648                 - Draws disabled arrows in disable menu items
8649
8650 2005-02-24  Peter Bartok  <pbartok@novell.com>
8651
8652         * Hwnd.cs:
8653           - Added UserData property to allow associating arbitrary objects
8654             with the handle
8655           - Fixed leak; now removing Hwnd references from static windows array
8656         * XplatUIWin32.cs:
8657           - Fixed Graphics leak in PaintEventEnd
8658           - Removed usage of HandleData, switched over to Hwnd class
8659         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8660
8661 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8662
8663         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8664         * ScrollBar.cs: Fixes bug
8665         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8666          keyboard navigation enhancements
8667
8668 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8669
8670         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8671         * GroupBox.cs: Add control styles
8672         * Label.cs: Add control styles
8673         * UpDownBase.cs: Add control styles
8674         * ListBox.cs: Add control styles
8675         * XplatUIWin32.cs: Fixes wrong parameter order
8676
8677
8678 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8679
8680         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8681
8682 2005-02-23  Jackson Harper  <jackson@ximian.com>
8683
8684         * PropertyManager.cs: Implement property binding. This doesn't
8685         seem to work yet though as (I think) there are some bugs in
8686         System.ComponentModel.PropertyDescriptor.
8687         * BindingContext.cs: Use new PropertyManager constructor.
8688
8689 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8690
8691         * ProgressBar.cs: use clip region in ProgressBar
8692         * ThemeWin32Classic.cs: use clip region in ProgressBar
8693
8694 2004-02-22  Jackson Harper  <jackson@ximian.com>
8695
8696         * BindingsCollection.cs: Remove some debug code.
8697
8698 2005-02-22  Jackson Harper  <jackson@ximian.com>
8699
8700         * BindingContext.cs:
8701         * ControlBindingsCollection.cs:
8702         * CurrencyManager.cs:
8703         * Binding.cs:
8704         * BindingManagerBase.cs: Initial implementation
8705         * BindingsCollection.cs: Add an internal contains method that the
8706         BindingManagerBase uses to ensure bindings aren't added twice to
8707         the collection.
8708         * PropertyManager.cs: Stubbed out.
8709         * Control.cs:
8710         * ContainerControl.cs: Hook up databinding
8711         
8712 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8713
8714         * XplatUIOSX.cs:
8715           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8716           Fixed Invalidate/Update chain.
8717           Fixed tons of other minor bugs (this is almost a complete rewrite).
8718
8719 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8720
8721         * ComboBox.cs: do subcontrol creation when the control is created
8722
8723 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8724
8725         * Label.cs: fixes image drawing (image and imagelist)
8726         * ThemeWin32Classic.cs: cache brushes
8727         
8728 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8729
8730         * Form.cs: Move menu drawing code to Theme class
8731         * ComboBox.cs: Move ComboBox drawing code to Theme class
8732         * MenuItem.cs: Move menu drawing code to Theme class
8733         * MenuAPI.cs: Move menu drawing code to Theme class
8734         * ThemeWin32Classic.cs: New methods
8735         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8736         * ListBox.cs: Move Listbox drawing code to Theme class
8737         * Theme.cs: New methods
8738
8739 2005-02-20  Peter Bartok  <pbartok@novell.com>
8740
8741         * Control.cs:
8742           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8743             only process mnemonics on those)
8744           - Fixed event sequence for key handling; first calling
8745             ProcessKeyEventArgs now
8746         * TextBoxBase.cs:
8747           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8748             for processing non-character keys
8749           - Fixed WM_CHAR to generate proper event sequence before processing
8750         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8751           generation
8752
8753 2005-02-19  Peter Bartok  <pbartok@novell.com>
8754
8755         * UserControl.cs: Added TextChanged event; added attributes
8756         * SizeGrip.cs: Implemented resizing and optional display of grip
8757         * Form.cs: Fixed attribute
8758         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8759           Changed meaning of ScrollWindow bool argument; instead of the
8760           clear attribute (which will be true usually anyway), it gives the
8761           option of moving child controls as well.
8762         * XplatUIX11.cs:
8763           - Changed to match new ScrollWindow argument
8764           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8765             now handles the implicit parent window a WM puts around us
8766         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8767           to work)
8768         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8769         * TreeView.cs: Adjusted to new ScrollWindow arguments
8770
8771 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8772
8773         * Form.cs: Menu integration with non-client area
8774         * MenuItem.cs: Menu integration with non-client area
8775         * MenuAPI.cs: Menu integration with non-client area
8776
8777 2005-02-18  Peter Bartok  <pbartok@novell.com>
8778
8779         * MethodInvoker.cs: Added
8780         * MdiLayout.cs: Added
8781         * SendKeys.cs: Started implementation
8782         * ErrorIconAlignment.cs: Added
8783
8784 2005-02-18  Peter Bartok  <pbartok@novell.com>
8785
8786         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8787         * Form.cs: Added handling for Menu-related Non-client messages
8788
8789 2005-02-17  Peter Bartok  <pbartok@novell.com>
8790
8791         * UpDownBase.cs: Fixed typo, compilation errors
8792         * DomainUpDown.cs: Fixed attribute value
8793
8794 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8795
8796         * UpDownBase.cs: Attach entry events.
8797         Propagate events.
8798         Add ForeColor property, Focused, InterceptArrowKeys (interception
8799         does not work yet).
8800
8801 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8802
8803         * Form.cs:
8804                 - Redraw non client are on Setmenu
8805                 - Calc proper menu starting point
8806
8807 2005-02-17  Peter Bartok  <pbartok@novell.com>
8808
8809         * Application.cs: Fixed message_filter check
8810
8811 2005-02-17  Peter Bartok  <pbartok@novell.com>
8812
8813         * Application.cs: Now calls registered message filters
8814         * DockStyle.cs: Fixed attribute
8815         * Form.cs: Fixed attribute
8816         * Menu.cs: Fixed attribute
8817         * ToolTip.cs: Fixed attribute
8818         * TreeNode.cs: Added missing attributes and arranged in regions
8819         * PropertyGrid.cs: Fixed signatures
8820         * TreeNodeCollection.cs: Added attributes
8821         * Splitter.cs: Added missing attributes; arranged into regions
8822         * TabPage.cs: Added missing attributes; arranged into regions
8823         * TextBoxBase.cs: Added missing attributes
8824         * TextBox.cs: Added missing attributes
8825         * ArrangeDirection.cs: Added missing attributes
8826         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8827         * ToolBarButton.cs: Fixed attributes
8828         * AnchorStyles.cs: Fixed attribute
8829         * TrackBar.cs: Fixed attributes
8830         * TabControl.cs: Added missing attributes and arranged into regions
8831         * ToolBar.cs: Fixed attribute
8832         * StatusBar.cs: Fixed signature, organized into regions and added
8833           attributes
8834         * StatusBarPanel.cs: Fixed attributes
8835         * ContentsResizedEventArgs.cs: Implemented
8836         * ContentsResizedEventHandler.cs: Implemented
8837         * DateBoldEventArgs.cs: Implemented
8838         * DateBoldEventHandler.cs: Implemented
8839         * UpDownEventArgs.cs: Implemented
8840         * UpDownEventHandler.cs: Implemented
8841         
8842 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
8843
8844         * Form.cs: first Menu NC refactoring
8845         * MenuAPI.cs: first Menu NC refactoring
8846         
8847 2005-02-16  Peter Bartok  <pbartok@novell.com>
8848
8849         * ImeMode.cs: Added missing attributes
8850         * Menu.cs: Fixed attribute
8851         * GroupBox.cs: Fixed attribute
8852         * Label.cs: Fixed attribute
8853         * ColorDialog.cs (RunDialog): Removed TODO attribute
8854         * ComboBox.cs: Fixed attributes
8855         * ListControl.cs: Added missing attributes
8856         * PropertyGrid.cs: Fixed attributes
8857         * Control.cs: Fixed attributes
8858         * ListViewItem.cs: Added TypeConverter attribute
8859         * NotifyIcon.cs: Fixed attributes
8860         * ListView.cs: Fixed attributes
8861         * ButtonBase.cs: Fixed attribute
8862         * ImageList.cs: Added missing attributes
8863         * ContainerControl.cs: Fixed signature
8864         * CheckedListBox.cs: Fixed attribute; added missing attributes
8865         * Panel.cs: Fixed attributes
8866         * PropertyTabChangedEventArgs.cs: Added missing attribute
8867         * PropertyValueChangedEventArgs.cs: Added missing attribute
8868         * Binding.cs: Fixed attribute
8869         * ListViewItemConverter: Implemented ListViewSubItemConverter class
8870         * ListBox.cs: Fixed attribute; added missing attributes;
8871         * ScrollableControl.cs: Added missing attributes
8872         * PictureBox.cs: Added missing attributes; implemented missing property
8873         * DateTimePicker.cs: Added missing attributes
8874         * Theme.cs (ToolWindowCaptionHeight): Fixed type
8875         * MonthCalendar.cs: Fixed attributes
8876         * StatusBarPanel.cs: Added missing attributes
8877         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8878
8879 2005-02-16  Peter Bartok  <pbartok@novell.com>
8880
8881         * TextBoxBase.cs: The previous method to enforce height yet remember
8882           the requested high was less than ideal, this is an attempt to do
8883           it better.
8884         * Control.cs: Added comment about possible problem
8885         * Copyright: Updated format
8886         * GridItemType.cs: Fixed swapped values
8887
8888 2005-02-15  Jackson Harper  <jackson@ximian.com>
8889
8890         * BaseCollection.cs: Use property so we never access an
8891         uninitialized list. Also initialize the list in the property.
8892
8893 2005-02-15  Peter Bartok  <pbartok@novell.com>
8894
8895         * GroupBox.cs (ProcessMnemonic): Implemented
8896         * Label.cs (ProcessMnemonic): Implemented
8897         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8898           hotkeys
8899
8900 2005-02-15  Peter Bartok  <pbartok@novell.com>
8901
8902         * RadioButton.cs (ProcessMnemonic): Implemented
8903         * CheckBox.cs (ProcessMnemonic): Implemented
8904         * Control.cs:
8905           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8906             handling
8907           - Added internal method to allow calling ProcessMnemonic from other
8908             controls
8909         * ContainerControl.cs:
8910           - Started support for handling validation chain handling
8911           - Implemented ProcessMnemonic support
8912           - Added Select() call to Active, to make sure the active control
8913             receives focus
8914         * Form.cs: Setting toplevel flag for Forms (this was lost in the
8915           FormParent rewrite)
8916         * ThemeWin32Classic.cs:
8917           - DrawCheckBox(): Fixed stringformat to show hotkeys
8918           - DrawRadioButton(): Fixed stringformat to show hotkeys
8919         * CommonDialog.cs: Removed WndProc override, not needed
8920
8921 2005-02-14  Peter Bartok  <pbartok@novell.com>
8922
8923         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8924           missed those in the rewrite
8925
8926 2005-02-14  Miguel de Icaza  <miguel@novell.com>
8927
8928         * NumericUpDown.cs (Increment, ToString): Add.
8929         (DecimalPlaces): implement.
8930         
8931         Add attributes.
8932         
8933         * UpDownBase.cs: Add the designer attributes.
8934
8935 2005-02-13  Peter Bartok  <pbartok@novell.com>
8936
8937         * Panel.cs: Removed border_style, now in Control
8938         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8939           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8940
8941 2005-02-13  Peter Bartok  <pbartok@novell.com>
8942
8943         * MouseButtons.cs: Added missing attributes
8944         * XplatUIStructs.cs: Added enumeration for title styles
8945         * LeftRightAlignment.cs: Added missing attributes
8946         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8947           it compatible with Graphics.FromHwnd()
8948         * SelectedGridItemChangedEventArgs.cs: Fixed property type
8949         * Keys.cs: Added missing attributes
8950         * SelectionRange.cs: Added missing attributes
8951         * SelectionRangeConverter.cs: Added
8952         * XplatUI.cs:
8953           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8954             ReleaseMenuDC methods
8955           - Renamed ReleaseWindow to UngrabWindow
8956           - Added proper startup notice to allow version identification
8957         * Form.cs:
8958           - Added missing attributes
8959           - Removed FormParent concept
8960         * Label.cs: Removed border_style field, now in Control
8961         * RadioButton.cs: Now properly selects RadioButton when focus is
8962           received
8963         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8964         * Control.cs:
8965           - Added missing attributes
8966           - Added borderstyle handling
8967           - Removed FormParent concept support
8968           - Fixed calls to XplatUI to match changed APIs
8969           - Fixed bug that would case us to use disposed Graphics objects
8970           - Removed unneeded internal methods
8971           - PerformLayout(): Fixed to handle DockStyle.Fill properly
8972           - SelectNextControl(): Fixed to properly check common parents
8973         * TextBoxBase.cs: Removed border_style field (now in Control)
8974         * MessageBox.cs:
8975           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8976             fixed calculations for form size
8977           - Added support for localized strings and icons
8978           - Improved form size calculations, added border
8979         * ListView.cs: Removed border_style field (now in Control)
8980         * X11Structs.cs: Moved several structs from X11 driver here
8981         * X11Keyboard.cs: Changed debug message
8982         * Application.cs: Removed FormParent concept support
8983         * CommonDialog.cs:
8984           - Resetting end_modal flag
8985           - Removed FormParent concept support
8986         * NativeWindow.cs: Removed FormParent concept support
8987         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8988           Client area and Non-Client whole window to allow support for WM_NC
8989           messages
8990         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8991           prevent using it until it supports Hwnd as per Geoff Norton's request
8992         * ToolBar.cs: Fixed drawing, was not doing proper drawing
8993         * PictureBox.cs: Removed border_style field, now in Control
8994         * XplatUIWin32.cs: Added new driver methods
8995
8996 2005-02-12  Peter Bartok  <pbartok@novell.com>
8997
8998         * OpacityConverter.cs: Implemented
8999         * Hwnd.cs: Internal class to support drivers that need to emulate
9000           client area/non-client area window behaviour
9001
9002 2005-02-11  Peter Bartok  <pbartok@novell.com>
9003
9004         * KeysConverter.cs: Implemented
9005
9006 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9007
9008         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9009         * LinkLabel: Added missing attributes
9010         * MainMenu.cs: fixes ToString
9011         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9012         * ListBox.cs: fixes event position
9013         * TrackBar.cs: adds missing attributes and events
9014         
9015 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9016
9017         * MenuItem.cs: Use SystemInformation and bug fixes
9018         * MenuAPI.cs: Use SystemInformation and bug fixes
9019
9020 2005-02-09  Jackson Harper  <jackson@ximian.com>
9021
9022         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9023         their keystate otherwise things like VK_MENU get stuck "on".
9024
9025 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
9026
9027         * ListBox.cs: Fixes AddRange bug
9028         
9029 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
9030
9031         * ProgressBar.cs
9032                 - Add missing attributes
9033                 - Add missing method
9034                 
9035         * CheckedListBox.cs: Added missing attributes
9036                 - Add missing attributes
9037                 - Remove extra method
9038         
9039         * ComboBox.cs: Added missing attributes
9040         * VScrollBar.cs: Added missing attributes
9041         * ScrollBar.cs:  Added missing attributes
9042         * ListBox.cs: Fixes signature, add missing consts
9043         * LinkArea.cs:   Added missing attributes
9044         
9045
9046 2005-02-08  Peter Bartok  <pbartok@novell.com>
9047
9048         * Menu.cs: Added missing attributes
9049         * MainMenu.cs: Added missing attributes
9050         * GroupBox.cs: Added missing attributes
9051         * Label.cs: Added missing attributes
9052         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
9053         * ColorDialog.cs:
9054           - Added Instance and Options properties
9055           - Added missing attributes
9056         * Cursor.cs: Made Serializable
9057         * NotifyIcon: Added missing attributes
9058         * MenuItem.cs: Added missing attributes
9059         * TextBoxBase.cs: Implemented AppendText() and Select() methods
9060         * Panel.cs: Added Missing attributes
9061         * MonthCalendar.cs: Fixed CreateParams
9062
9063 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9064         
9065         * LinkLabel.cs:
9066                 - Fixes signature
9067                 - Fixes issues with links
9068                 - Adds the class attributes
9069
9070 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9071         
9072         * ComboBox.cs:
9073                 - Fixes button when no items available in dropdown
9074                 - Fixes repainting problems
9075                 - Adds the class attributes
9076                 
9077 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9078
9079         * XplatUIOSX.cs: Detect the menu bar and title bar height from
9080         the current theme.  Cache these on startup.
9081
9082 2005-02-07  Jackson Harper  <jackson@ximian.com>
9083
9084         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
9085         the scrollbar buttons when they are depressed.
9086
9087 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9088
9089         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
9090         Get the display size from the main displayid.  We currently dont
9091         support multiple display configurations.
9092
9093 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9094
9095         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
9096
9097 2005-02-07  Miguel de Icaza  <miguel@novell.com>
9098
9099         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
9100
9101 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
9102
9103         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
9104
9105 2005-02-04  Jackson Harper  <jackson@ximian.com>
9106
9107         * ThemeWin32Classic.cs: Respect the clipping rect when
9108         drawing. Only fill the intersection of clips and rects so there
9109         isn't a lot of large fills.
9110         * ScrollBar.cs: Pass the correct clipping rect to the theme
9111         engine. Remove some debug code.
9112
9113 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9114         
9115         * DateTimePicker.cs:
9116                 - Fixed crash on DateTime.Parse, use Constructor instead
9117
9118 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9119         
9120         * MenuItem.cs:
9121         * MenuAPI.cs:
9122                 - Owner draw support (MeasureItem and DrawItem)
9123
9124 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9125         
9126         *  Menu.cs:
9127                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9128                 - Fixes MenuItems.Add range
9129         * MenuItem.cs:
9130                 - MergeMenu and Clone and CloneMenu functions
9131
9132 2005-02-03  Jackson Harper  <jackson@ximian.com>
9133
9134         * ScrollBar.cs: Make abstract
9135         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9136         is abstract.
9137
9138 2005-02-03  Jackson Harper  <jackson@ximian.com>
9139
9140         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9141         all the unneeded refreshes and uses invalidates with properly
9142         computed rects.
9143
9144 2005-02-03  Peter Bartok  <pbartok@novell.com>
9145
9146         * ComponentModel.cs: Added
9147         * IDataGridEditingService.cs: Added
9148         * Timer.cs: Added missing attributes
9149         * ToolTip.cs: Added missing attributes
9150
9151 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9152
9153         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9154
9155 2005-02-03  Peter Bartok  <pbartok@novell.com>
9156
9157         * ListBox.cs: Added missing attributes
9158
9159 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9160         
9161         * ListBox.cs:
9162                 - Fixes font height after font change
9163                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9164                 
9165 2005-02-02  Peter Bartok  <pbartok@novell.com>
9166
9167         * HandleData.cs: Introduced static methods to allow class
9168           to be more self-contained and track it's own HandleData objects
9169         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9170           HandleData to use new static methods
9171
9172 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9173
9174         * Combobox.cs:
9175                 - Fixes default size and PreferredHeight
9176                 - Missing events
9177                 - ObjectCollection.Insert implementation
9178                 
9179         * ListControl.cs
9180                 - Fixes signature
9181         * ListBox.cs:
9182                 - Several fixes
9183                 - ObjectCollection.Insert implementation
9184                 - No selection after clean
9185                 - Small fixes
9186
9187 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9188
9189         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9190
9191 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9192
9193         * Combobox.cs:
9194                 - Caches ItemHeight calculation for OwnerDrawVariable
9195                 - Handles dropdown properly
9196                 - Fixes several minor bugs
9197
9198 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9199
9200         * ListBox.cs:
9201                 - Fixes 71946 and 71950
9202                 - Fixes changing Multicolumn on the fly
9203                 - Fixes keyboard navigation on Multicolumn listboxes
9204
9205 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9206         
9207         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9208         crash reporter log.
9209
9210 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9211
9212         * XplatUIOSX.cs: Allow applications to actually exit.
9213
9214 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9215
9216         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9217         their parent at creation time rather than lazily later.  Fixes a major
9218         regression we were experiencing.
9219
9220 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9221
9222         * ThemeWin32Classic.cs: more date time picker painting fixes
9223         * DateTimePicker.cs: more monthcalendar drop down fixes
9224         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9225
9226 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9227
9228         * ScrollBar.cs:
9229                 - When moving the thumb going outside the control should stop the moving
9230                 - Adds the firing of missing events
9231                 - Fixes no button show if Size is not specified
9232                 - End / Home keys for keyboard navigation
9233
9234 2005-01-30  Peter Bartok  <pbartok@novell.com>
9235
9236         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9237           sanity check to prevent theoretical loop
9238         * XplatUIWin32.cs (SetVisible): Removed debug output
9239         * XplatUIX11.cs (SystrayChange): Added sanity check
9240         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9241         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9242           behaviour, valid until the X11 client window rewrite is done
9243         * TextBox.cs (ctor): Setting proper default foreground and background
9244           colors
9245
9246 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9247
9248         * Theme: Added DrawDateTimePicker to interface
9249         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9250         * DateTimePicker.cs: Created (still needs keys and painting code)
9251         * DateTimePickerFormat.cs: added
9252         * MonthCalendar.cs: fixed CreateParams for popup window mode
9253           
9254 2005-01-29  Peter Bartok  <pbartok@novell.com>
9255
9256         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9257           this should also the calculations for ligher/darker
9258         * Theme.cs: Fixed defaults for ScrollBar widths/heights
9259
9260 2005-01-29  Peter Bartok  <pbartok@novell.com>
9261
9262         * ArrangeDirection.cs: Added
9263         * ArrangeStartingPositon.cs: Added
9264         * SystemInformation.cs: Implemented
9265         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9266           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9267           used by SystemInformation class
9268         * X11Strucs.cs: Added XSizeHints structure
9269         * MenuAPI.cs:
9270           - Fixed CreateParams to make sure the menu window is always visible
9271           - TrackPopupMenu: Added check to make sure we don't draw the
9272             menu offscreen
9273
9274 2005-01-29  Peter Bartok  <pbartok@novell.com>
9275
9276         * HandleData.cs: Added method for altering invalid area
9277         * TextBoxBase.cs: Implemented TextLength
9278
9279 2005-01-28  Peter Bartok  <pbartok@novell.com>
9280
9281         * XplatUIX11.cs: Improvement over last patch, not sending
9282           the WM_PAINT directly anymore, instead we scroll any pending
9283           exposed areas and let the system pick out the WM_PAINT later
9284
9285 2005-01-28  Peter Bartok  <pbartok@novell.com>
9286
9287         * SWF.csproj: Deleted, no longer used. Instead,
9288           Managed.Windows.Forms/SWF.csproj should be used
9289         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9290           directly, to avoid a potential race condition with the next
9291           scroll
9292
9293 2005-01-28  Peter Bartok  <pbartok@novell.com>
9294
9295         * XplatUI.cs: Made class internal
9296
9297 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
9298
9299         * CheckedListBox.cs:
9300                 - Draw focus
9301                 - Fixed Drawing
9302                 - Missing methods and events
9303
9304 2005-01-27  Peter Bartok  <pbartok@novell.com>
9305
9306         * Application.cs (Run): Don't use form if we don't have one
9307
9308 2005-01-27  Peter Bartok  <pbartok@novell.com>
9309
9310         * TextBoxBase.cs (get_Lines): Fixed index off by one error
9311
9312 2005-01-27  Peter Bartok  <pbartok@novell.com>
9313
9314         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9315         * GridItem.cs: Added; Patch by Jonathan S. Chambers
9316         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9317         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9318         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9319         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9320         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9321         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9322         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9323         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9324         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9325         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9326
9327 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9328
9329         * Combobox.cs:
9330                 - Draw focus on Simple Combobox
9331                 - Fixes drawing issues
9332                 - fixes 71834
9333
9334 2005-01-27  Peter Bartok  <pbartok@novell.com>
9335
9336         * Form.cs:
9337           - Place window in default location, instead of hardcoded 0/0
9338           - Send initial LocationChanged event
9339         * Control.cs:
9340           - UpdateBounds after creation to find out where the WM placed us
9341           - Make sure that if the ParentForm changes location the Form
9342             is notified
9343         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9344             to the root, but to whatever the WM placed around us.
9345             Translate to root coordinates before returning toplevel
9346             coordinates
9347         * XplatUIWin32.cs: Removed debug output
9348         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9349           flag to GetWindowPos, to allow translation of coordinates on X11
9350
9351 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9352
9353         * ListBox.cs: connect LostFocus Event
9354
9355 2005-01-27  Peter Bartok  <pbartok@novell.com>
9356
9357         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9358           XplatUIX11.cs: Extended the Systray API
9359         * Form.cs: Removed debug output
9360         * Application.cs: Fixed focus assignment, always need to call
9361           XplatUI.Activate() since Form.Activate() has rules that may
9362           prevent activation
9363         * NotifyIcon.cs: Should be complete now
9364         * ToolTip.cs: Worked around possible timer bug
9365
9366 2005-01-27  Jackson Harper  <jackson@ximian.com>
9367
9368         * TabControl.cs:
9369         - Only invalidate the effected tabs when the
9370         selected index changes. This reduces drawing and gets rid of some
9371         flicker.
9372         - Only refresh if the tabs need to be shifted, otherwise only
9373         invalidate the slider button.
9374         - On windows the tabs are not filled to right if the slider is
9375         visible.
9376         
9377 2005-01-27  Jackson Harper  <jackson@ximian.com>
9378
9379         * TabControl.cs: Only refresh on mouseup if we are showing the
9380         slider. Also only invalidate the button whose state has changed.
9381
9382 2005-01-26  Peter Bartok  <pbartok@novell.com>
9383
9384         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9385         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9386           and SystrayRemove() methods
9387         * XplatUIOSX.cs: Stubbed Systray methods
9388         * XplatUIX11.cs:
9389           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9390             methods
9391           - Fixed broken XChangeProperty calls (marshalling messed up things)
9392         * X11Structs.cs: Added enums and structs required for Size hinting
9393         * NotifyIcon.cs: Added & implemented
9394
9395 2005-01-26  Jackson Harper  <jackson@ximian.com>
9396
9397         * TabControl.cs: Space vertically layed out tabs properly.
9398
9399 2005-01-26  Peter Bartok  <pbartok@novell.com>
9400
9401         * Form.cs (CreateClientParams): Always set the location to 0,0
9402           since we're a child window.
9403
9404         * Control.cs (SetVisibleCore): Always explicitly setting the location
9405           of a toplevel window, apparently X11 doesn't like to move windows
9406           while they're not mapped.
9407
9408 2005-01-26  Jackson Harper  <jackson@ximian.com>
9409
9410         * TabControl.cs: Implement FillToRight size mode with vertically
9411         rendered tabs.
9412
9413 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9414
9415         * ControlPaint.cs, ThemeWin32Classic.cs
9416                 - Fixes DrawFocusRectangle
9417
9418 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9419
9420         * MenuAPI.cs:
9421                 - MenuBar tracking only starts when item is first clicked
9422                 - Fixes menu hidding for multiple subitems
9423                 - Unselect item in MenuBar when item Executed
9424                 - Fixes bug 71495
9425
9426 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
9427
9428         * ListControl.cs:
9429                 - IsInputKey for ListBox
9430         * ListBox.cs:
9431                 - Focus item
9432                 - Shift and Control item selection
9433                 - Implement SelectionMode.MultiExtended
9434                 - Fixes RightToLeft
9435         * ComboBox.cs:
9436                 - IsInputKey implemented
9437                 - Do not generate OnTextChangedEdit on internal txt changes
9438                 
9439 2005-01-23  Peter Bartok  <pbartok@novell.com>
9440
9441         * AccessibleObject.cs: Partially implemented Select()
9442         * MonthCalendar.cs: Added missing attributes and events
9443         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9444           form can properly override CreateParams.
9445         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9446           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9447           Control performs Invalidate & Update
9448         * NativeWindow (CreateHandle): Added special handling for Form
9449           and Form.FormParent classes to allow overriding of From.CreateParams
9450         * Control.cs:
9451           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9452             name 'owner'
9453           - ControlNativeWindow: Added Owner property
9454           - Removed usage of Refresh() on property changes, changed into
9455             Invalidate(), we need to wait until the queue is processed for
9456             updates, direct calls might cause problems if not all vars for
9457             Paint are initialized
9458           - Added call to UpdateStyles() when creating the window, to set any
9459             styles that CreateWindow might have ignored.
9460           - Added support for Form CreateParent overrides to UpdateStyles()
9461         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9462           CreateParams are now properly overridable
9463         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9464           CreateParams are now properly overridable
9465
9466 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9467
9468         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9469         OnTextBoxChanged.
9470
9471         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9472         recursive invocation that I have not figured out yet.
9473
9474         Reset the timer when not using (it was accumulating).
9475
9476
9477         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9478         user has made changes that require validation.
9479
9480         Reset changing to avoid loops.
9481
9482 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9483
9484         * NumericUpDown.cs: Display value at startup.
9485
9486         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9487         ValidateEditText.
9488
9489         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9490         filled in.  Added some basic parsing of text.
9491
9492         Still missing the OnXXX method overrides, and figuring out the
9493         events that must be emitted.
9494
9495         * UpDownBase.cs: Handle UserEdit on the Text property.
9496         
9497 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9498
9499         * ComboBox.cs:
9500           - Fixes IntegralHeight
9501           - ToString method
9502
9503 2005-01-21  Jackson Harper  <jackson@ximian.com>
9504
9505         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9506         is set so that the page visibility is updated and the tabs are
9507         sized correctly.
9508
9509 2005-01-21  Jackson Harper  <jackson@ximian.com>
9510
9511         * TabControl.cs: Use cliping rectangle for blitting. Give the
9512         theme the clipping rect so we can do clipping while
9513         drawing. Remove some debug code.
9514
9515 2005-01-21  Jackson Harper  <jackson@ximian.com>
9516
9517         * TabPage.cs: Add a new method so tab pages can force the tab
9518         control to recalculate the tab page sizes.
9519         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9520         sizes.
9521
9522 2005-01-20  Jackson Harper  <jackson@ximian.com>
9523
9524         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9525
9526 2005-01-20  Jackson Harper  <jackson@ximian.com>
9527
9528         * TreeView.cs: Set the bounds for nodes properly. They were
9529         getting screwed up when checkboxes were not enabled, but images
9530         were.
9531
9532 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9533
9534         * ListBox.cs:
9535                 - Owner draw support
9536                 - Fixes
9537                 
9538 2005-01-20  Jackson Harper  <jackson@ximian.com>
9539
9540         * XplatUIStructs.cs: More misc keys
9541         * X11Keyboard.cs: Ignore some control keys.
9542
9543 2005-01-20  Jackson Harper  <jackson@ximian.com>
9544
9545         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9546         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9547
9548 2005-01-19  Peter Bartok  <pbartok@novell.com>
9549
9550         * Control.cs: Un-selecting the control when it is loosing focus
9551
9552 2005-01-19  Jackson Harper  <jackson@ximian.com>
9553
9554         * TreeView.cs: Hook up to the text controls leave event so we can
9555         end editing when the users clicks outside the text box.
9556         
9557 2005-01-19  Jackson Harper  <jackson@ximian.com>
9558
9559         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9560         get set in the conversion array.
9561
9562 2005-01-19  Peter Bartok  <pbartok@novell.com>
9563
9564         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9565           focus is properly set
9566         * Button.cs:
9567           - Added missing attributes
9568           - removed styles, those are already set in the base class
9569         * ButtonBase.cs:
9570           - Added missing attributes
9571           - Added clip window styles
9572         * CheckBox.cs: Added missing attributes
9573         * CommonDialog.cs:
9574           - FormParentWindow.CreateParams: Added required clip styles
9575         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9576           also filters modifier keys
9577         * MessageBox.cs:
9578           - Added assignment of Accept and Cancel button to enable Enter
9579             and Esc keys in MessageBox dialogs
9580           - FormParentWindow.CreateParams: Added required clip styles
9581         * RadioButton.cs: Added missing attributes
9582         * TextControl.cs: No longer draws selection if control does not
9583           have focus
9584         * TextBoxBase.cs:
9585           - Now draws simple rectangle around test area to make it obvious
9586             there's a control. This is a hack until we properly support borders
9587           - A few simple fixes to support selections better, now erases selected
9588             text when typing, and resets selection when using movement keys
9589
9590 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9591
9592         * UpDownBase.cs: Added some new properties.
9593
9594         * DomainUpDown.cs: Implement a lot to get my test working.
9595
9596 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9597
9598         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9599
9600 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9601
9602         * OSXStructs (WindowAttributes): Fixed csc complaints
9603
9604 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9605
9606         * XplayUIOSX.cs:
9607           OSXStructs.cs: Initial refactor to move enums and consts into
9608           OSXStructs and use them in the driver for greater readability.
9609
9610 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9611
9612         * XplatUIOSX.cs: Initial support for Standard Cursors.
9613         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9614
9615 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9616
9617         * ComboBox.cs: ability to change style when the ctrl is already
9618         created, missing methods and events, bug fixes, signature fixes
9619
9620 2005-01-19  Peter Bartok  <pbartok@novell.com>
9621
9622         * Cursors.cs (ctor): Added ctor to fix signature
9623
9624 2005-01-18  Peter Bartok  <pbartok@novell.com>
9625
9626         * Button.cs: Implemented DoubleClick event
9627         * ButtonBase.cs:
9628           - Fixed keyboard handling to behave like MS, where the press of
9629             Spacebar is equivalent to a mousedown, and the key release is
9630             equivalent to mouseup. Now a spacebar push will give the same
9631             visual feedback like a mouse click.
9632           - Added missing attributes
9633           - Added ImeModeChanged event
9634           - Added support for generating DoubleClick event for derived classes
9635         * CheckBox.cs:
9636           - Implemented DoubleClick event
9637           - Added missing attributes
9638         * CommonDialog.cs: Added missing attribute
9639         * ContextMenu.cs: Added missing attributes
9640         * RadioButton.cs:
9641           - AutoChecked buttons do not allow to be unselected when clicked
9642             (otherwise we might end up with no selected buttons in a group)
9643           - Added missing attributes
9644           - Implemented DoubleClickEvent
9645         * ThreadExceptionDialog.cs: Enabled TextBox code
9646
9647 2005-01-18  Peter Bartok  <pbartok@novell.com>
9648
9649         * Form.cs: Removed debug output
9650         * Button.cs: Added support for DoubleClick method
9651
9652 2005-01-18  Peter Bartok  <pbartok@novell.com>
9653
9654         * Form.cs:
9655           - Added method to parent window that allows triggering size
9656             calculations when a menu is added/removed
9657           - set_Menu: Cleaned up mess from early days of Form and Control,
9658             now properly triggers a recalc when a menu is added/removed
9659           - Added case to select form itself as focused form if no child
9660             controls exist
9661           - Added PerformLayout call when showing dialog, to ensure properly
9662             placed controls
9663         * Control.cs:
9664           - Select(): Made internal so Form can access it
9665           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9666             status
9667         * Application.cs (Run): Removed hack and calls PerformLayout instead
9668           to trigger calculation when Form becomes visible
9669
9670 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9671
9672         * ComboBox.cs: fixes for ownerdraw
9673
9674 2005-01-18  Peter Bartok  <pbartok@novell.com>
9675
9676         * TextControl.cs:
9677           - Sentinel is no longer static, each Document gets it's own, this
9678             avoids locking or alternatively overwrite problems when more
9679             than one text control is used simultaneously.
9680           - Switched to use Hilight and HilightText brushes for text selection
9681
9682         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9683
9684 2005-01-18  Peter Bartok  <pbartok@novell.com>
9685
9686         * Control.cs:
9687           - Hooked up the following events:
9688                 o ControlAdded
9689                 o ControlRemoved
9690                 o HandleDestroyed
9691                 o ImeModeChanged
9692                 o ParentChanged
9693                 o TabStopChanged
9694                 o Invalidated
9695                 o SystemColorsChanged
9696                 o ParentFontChanged
9697                 o Move
9698           - Removed debug output
9699           - Added a call to the current theme's ResetDefaults when a color change
9700             is detected
9701         * Form.cs: Now setting the proper ImeMode
9702         * Theme.cs: Defined a method to force recreation of cached resources
9703           and rereading of system defaults (ResetDefaults())
9704         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9705
9706 2005-01-17  Peter Bartok  <pbartok@novell.com>
9707
9708         * Control.cs: Added missing attributes
9709
9710 2005-01-17  Jackson Harper  <jackson@ximian.com>
9711
9712         * TreeNode.cs: Implement editing. Add missing properties selected
9713         and visible.
9714         * TreeView.cs: Implement node editing. Also some fixes to use
9715         Invalidate (invalid area) instead of Refresh when selecting.
9716
9717 2005-01-17  Peter Bartok  <pbartok@novell.com>
9718
9719         * Control.cs:
9720           - Implemented InvokeGotFocus() method
9721           - Implemented InvokeLostFocus() method
9722           - Implemented InvokePaint() method
9723           - Implemented InvokePaintBackground() method
9724           - Implemented InvokeClick() method
9725           - Implemented FindForm() method
9726           - Implemented RectangleToClient() method
9727           - Implemented ClientToRectangle() method
9728           - Implemented ResetBackColor() method
9729           - Implemented ResetCursor() method
9730           - Implemented ResetFont() method
9731           - Implemented ResteForeColor() method
9732           - Implemented ResetImeMode() method
9733           - Implemented ResetLeftToRight() method
9734           - Implemented ResetText() method
9735           - Implemented Scale() methods
9736           - Implemented ScaleCore() method
9737           - Implemented Update() method
9738           - Removed unused variables
9739           - Stubbed AccessibilityNotifyClients and
9740             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9741             with those yet)
9742           - Now setting proper default for RightToLeft property
9743           - Fixed bug in SetClientSizeCore that would cause windows to get
9744             really big
9745           - Now sending Click/DoubleClick events
9746           - Now selecting controls when left mouse button is clicked on
9747             selectable control
9748         * AccessibleEvents.cs: Added
9749         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9750         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9751         * XplatUIWin32.cs: Implemented UpdateWindow() method
9752         * XplatUIX11.cs: Implemented UpdateWindow() method
9753         * Form.cs: Removed stray semicolon causing CS0162 warning
9754         * ThemeWin32Classic.cs: Fixed unused variable warnings
9755         * ScrollableControl.cs: Now calls base method for ScaleCore
9756         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9757           style to avoid interference with internal click handler (which is
9758           different than standard Control click handling)
9759         * RadioButton.cs:
9760           - Now unchecks all sibling radio buttons when control is
9761             selected (Fixes #68756)
9762           - Removed internal tabstop variable, using the one inherited from
9763             Control
9764
9765 2005-01-17  Jackson Harper  <jackson@ximian.com>
9766
9767         * NavigateEventArgs.cs: Fix base type.
9768         * LinkLabel.cs: Sig fix
9769         
9770 2005-01-17  Jackson Harper  <jackson@ximian.com>
9771
9772         * TreeView.cs: Only invalidate the effected nodes bounds when
9773         selecting nodes.
9774
9775 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9776
9777         * XplatUIWin32.cs: fixes Win32 marshaling
9778         * XplatUIX11.cs: fixes method signature
9779
9780 2005-01-17  Peter Bartok  <pbartok@novell.com>
9781
9782         * XplatUIX11.cs: Clean up resources when we no longer need them
9783
9784 2005-01-17  Peter Bartok  <pbartok@novell.com>
9785
9786         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9787           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9788           and DestroyCursor() methods.
9789         * Cursor.cs: Partially implemented, now supports standard cursors;
9790           still contains some debug code
9791         * Cursors.cs: Implemented class
9792         * Control.cs:
9793           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9794             appropriate cursor
9795           - Implemented Cursor property
9796           - Replaced break; with return; more straightforwar and possibly
9797             faster
9798           - Now properly setting the result for WM_HELP
9799         * X11Structs.cs: Added CursorFontShape enum
9800         * XplatUIStructs.cs:
9801           - Added StdCursor enum (to support DefineStdCursor() method)
9802           - Added HitTest enum (to support sending WM_SETCURSOR message)
9803         * XplatUIX11.cs:
9804           - Now sends the WM_SETCURSOR message
9805           - Implemented new cursor methods
9806         * XplatUIOSX.cs: Stubbed new cursor methods
9807         * XplatUIWin32.cs:
9808           - Implemented new cursor methods
9809           - Added GetSystemMetrics function and associated enumeration
9810
9811 2005-01-15  Peter Bartok  <pbartok@novell.com>
9812
9813         * Control.cs:
9814           - WndProc(): Now handles EnableNotifyMessage
9815           - SelectNextControl(): Fixed bug where if no child or sibling
9816             controls exist we looped endlessly
9817
9818 2005-01-14  Jackson Harper  <jackson@ximian.com>
9819
9820         * TreeView.cs: Recalculate the tab pages when a new one is added
9821         so that the proper bounding rects are created.
9822
9823 2005-01-14  Jackson Harper  <jackson@ximian.com>
9824
9825         * TreeView.cs: Draw a gray box instead of a grip in the lower
9826         right hand corner when there are both horizontal and vertical
9827         scroll bars.
9828
9829 2005-01-14  Jackson Harper  <jackson@ximian.com>
9830
9831         * Control.cs: When erasing backgrounds use FromHwnd instead of
9832         FromHdc when there is a NULL wparam. This occurs on the X driver.
9833         * XplatUIX11.cs: Set the wparam to NULL.
9834
9835 2005-01-13  Jackson Harper  <jackson@ximian.com>
9836
9837         * PictureBox.cs: Implement missing methods (except ToString, need
9838         to test that on windows) and events. When visibility is changed we
9839         need to redraw the image because the buffers are killed. When size
9840         is changed refresh if the sizemode needs it.
9841
9842 2005-01-13  Peter Bartok  <pbartok@novell.com>
9843
9844         * Control.cs (SelectNextControl): Was using wrong method to select
9845           a control
9846
9847 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9848
9849         * ComboBox.cs: fixes dropstyle
9850
9851 2005-01-13  Peter Bartok  <pbartok@novell.com>
9852
9853         * Form.cs:
9854           - Implemented Select() override
9855           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9856           - Now sets keyboard focus on startup
9857         * Control.cs (SelectNextControl): Now properly handles directed=true
9858         * TextBoxBase.cs:
9859           - WndProc: Now passes tab key on to base if AcceptTabChar=false
9860           - Added (really bad) focus rectangle (mostly for testing)
9861         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9862           to enforce redraw on focus changes
9863         * ContainerControl.cs:
9864           - Fixed detection of Shift-Tab key presses
9865           - Fixed traversal with arrow keys
9866         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9867           gonna keep this or if it's complete yet
9868         
9869 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9870
9871         * ComboBox.cs: missing properties, fixes
9872
9873 2005-01-13  Peter Bartok  <pbartok@novell.com>
9874
9875         * Panel.cs (ctor): Setting Selectable window style to off
9876         * Splitter.cs (ctor): Setting Selectable window style to off
9877         * GroupBox.cs (ctor): Setting Selectable window style to off
9878         * Label.cs (ctor): Setting Selectable window style to off
9879
9880 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
9881
9882         * UpDownBase.cs (InitTimer): If the timer has been already
9883         created, enable it.
9884
9885         Use a TextBox instead of a Label.
9886
9887 2005-01-12  Jackson Harper  <jackson@ximian.com>
9888
9889         * TreeView.cs: Refresh the tree after sorting the nodes. Always
9890         draw the connecting node lines (when ShowLines is true).
9891         * TreeNode.cs: The nodes index can now be updated. This is used
9892         when a node collection is sorted.
9893         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9894         insert or an existing unsorted node collection can be sorted.
9895         
9896 2005-01-12  Peter Bartok  <pbartok@novell.com>
9897
9898         * ContainerControl.cs: Implemented ProcessDialogKeys()
9899
9900 2005-01-12  Peter Bartok  <pbartok@novell.com>
9901
9902         * Control.cs:
9903           - Implemented SelectNextControl() method
9904           - Several focus related bug fixes
9905           - Fixed Docking calculations to match MS documentation and
9906             behaviour
9907
9908 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
9909
9910         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9911         bug fixes
9912
9913 2005-01-12  Peter Bartok  <pbartok@novell.com>
9914
9915         * Control.cs:
9916           - Fixed broken Contains() method
9917           - Implemented GetNextControl() method. Finally. This is the pre-
9918             requisite for focus handling.
9919
9920 2005-01-12  Peter Bartok  <pbartok@novell.com>
9921
9922         * OSXStrucs.cs: Added
9923
9924 2005-01-12  Peter Bartok  <pbartok@novell.com>
9925
9926         * XplatUIWin32.cs:
9927           - Removed PeekMessageFlags
9928           - Implemented SetWindowStyle() method
9929         * XplatUIStructs.cs: Added PeekMessageFlags
9930         * X11Structs: Added missing border_width field to XWindowChanges struct
9931         * XplatUIX11.cs:
9932           - PeekMessage: Now throws exception if flags which are not yet
9933             supported are passed
9934           - Implemented SetWindowStyle() method
9935           - Fixed SetZOrder to handle AfterHwnd properly
9936         * XplatUI.cs: Added SetWindowStyle() method
9937         * XplatUIDriver.cs: Added SetWindowStyle() abstract
9938         * Control.cs:
9939           - Implemented UpdateStyles() method
9940           - Implemented UpdateZOrder() method
9941         * XplatUIOSX.cs: Added SetWindowStyle() stub
9942
9943 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
9944
9945         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9946         button mouse).
9947
9948
9949 2005-01-11  Jackson Harper  <jackson@ximian.com>
9950
9951         * TreeView.cs: Still need to draw lines to siblings even if out of
9952         the current node is out of the clip.
9953
9954 2005-01-11  Jackson Harper  <jackson@ximian.com>
9955
9956         * TreeView.cs: When setting the hbar/vbar/grip position use
9957         SetBounds so that perform layout is only called once. Also suspend
9958         and resume layout so layout is only done once for all controls.
9959         - Removed some debug fluff
9960         * SizeGrip.cs: Call base implmentation in overriding methods.
9961         - When visibility is changed the drawing buffers are killed so we
9962         need to redraw.
9963
9964 2005-01-11  Jackson Harper  <jackson@ximian.com>
9965
9966         * TreeView.cs: Calculate the open node count while drawing. This
9967         saves us an entire tree traversal for every paint operation. Use
9968         a member var for the open node count so less vars are passed around.
9969
9970 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
9971
9972         * MonthCalendar.cs:
9973         - fixed selection to use mousemove, not mouse polling on timer
9974         * ThemeWin32Classic.cs
9975         - removed redundant unused variable "no_more_content"
9976         
9977 2005-01-11  Peter Bartok  <pbartok@novell.com>
9978
9979         * XplatUIX11.cs (DoEvents): Needs to return when no more events
9980           are pending, so it now calls PeekMessage instead of GetMessage;
9981           implemented a incomplete version of PeekMessage
9982         
9983 2005-01-11  Peter Bartok  <pbartok@novell.com>
9984
9985         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9986           I18n issues
9987         * TextBoxBase.cs: Added sending of TextChanged event
9988
9989 2005-01-10  Jackson Harper  <jackson@ximian.com>
9990
9991         * TreeView.cs: Try not to draw outside the clipping rectangle on
9992         each node element.
9993
9994 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
9995
9996         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
9997
9998 2005-01-10  Jackson Harper  <jackson@ximian.com>
9999
10000         * TreeView.cs:
10001         - Implement fast scrolling. Now only the newly
10002         exposed nodes are drawn and the old image is moved using the
10003         XplatUI::ScrollWindow method.
10004         - Factor in height of nodes when calculating whether or not the
10005         node is in the clipping rect.
10006
10007 2005-01-10  Jackson Harper  <jackson@ximian.com>
10008
10009         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10010
10011 2005-01-10  Peter Bartok  <pbartok@novell.com>
10012
10013         * Application.cs: Added temporary hack to resolve all our resize
10014           required issues on startup. This will get fixed properly at
10015           some point in the future
10016
10017 2005-01-10  Jackson Harper  <jackson@ximian.com>
10018
10019         * SizeGrip.cs: New internal class that is used as a sizing
10020         grip control...hence the name.
10021
10022 2005-01-10  Peter Bartok  <pbartok@novell.com>
10023
10024         * Control.cs: Implemented proper TabIndex handling, now assigning
10025           a tabindex when a control is added to a container
10026         * GroupBox.cs (ctor): Now sets the Container style bit, required
10027           for Control.GetNextControl()
10028
10029 2005-01-09  Jackson Harper  <jackson@ximian.com>
10030
10031         * TextBoxBase.cs: Clear window when scrolling (fixes build).
10032
10033 2005-01-09  Peter Bartok <pbartok@novell.com>
10034
10035         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10036           XplatUIX11.cs: Added ability to control ScrollWindow expose and
10037           an overload for ScrollWindow to allow only scrolling a rectangle
10038
10039 2005-01-09  Peter Bartok <pbartok@novell.com>
10040
10041         * Form.cs:
10042           - Implemented SetDesktopBounds method
10043           - Implemented SetDesktopLocation method
10044
10045 2005-01-08  Jackson Harper  <jackson@ximian.com>
10046
10047         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
10048         the node count has changed, this removes to VScroll::Refresh calls
10049         when drawing.
10050
10051 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
10052
10053         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
10054
10055 2005-01-07  Jackson Harper  <jackson@ximian.com>
10056
10057         * TreeNode.cs: Just update the single node when it is
10058         checked. Don't refresh after toggling, the Expand/Collapse already
10059         handles this.
10060         * TreeView.cs: Respect clipping a little more when drawing. Try
10061         not to redraw things that don't need to be redrawn. Just hide the
10062         scrollbars when they are no longer needed instead of removing
10063         them, so they don't have to be created again and again.
10064         
10065 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
10066
10067         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
10068         coordinates to window space to place the caret properly, FIXED.
10069         Implement GetWindowState & SetWindowState
10070
10071 2005-01-06  Peter Bartok <pbartok@novell.com>
10072
10073         * Form.cs:
10074           - Implemented ClientSize property
10075           - Implemented DesktopBounds property
10076           - Implemented DesktopLocation property
10077           - Implemented IsRestrictedWindow property
10078           - Implemented Size property
10079           - Implemented TopLevel property
10080           - Implemented FormWindowState property
10081         * Control.cs:
10082           - Implemented GetTopLevel() method
10083           - Implemented SetTopLevel() method
10084         * X11Structs.cs (Atom):
10085           - Added AnyPropertyType definition
10086           - Added MapState definiton and updated XWindowAttribute struct
10087         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
10088         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
10089         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
10090         * XplatUIWin32.cs:
10091           - Implemented GetWindowState() and SetWindowState() methods
10092           - Fixed Win32GetWindowLong return type
10093         * XplatUIX11.cs:
10094           - Introduced central function for sending NET_WM messages
10095           - Implemented GetWindowState() and SetWindowState() methods
10096         * TextBoxBase.cs (set_Lines):
10097           - Now uses Foreground color for text added via Text property (Duh!)
10098           - Added code to remember programmatically requested size (fixes
10099             behaviour when Multiline is set after Size)
10100           - Added AutoSize logic
10101
10102 2005-01-06  Jackson Harper  <jackson@ximian.com>
10103
10104         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
10105
10106 2005-01-06  Jackson Harper  <jackson@ximian.com>
10107
10108         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10109         set to less then 0.
10110
10111 2005-01-06  Jackson Harper  <jackson@ximian.com>
10112
10113         * ScrollableControl.cs: Lazy init the scrollbars.
10114         
10115 2005-01-06  Jackson Harper  <jackson@ximian.com>
10116
10117         * Theme.cs: Speed up getting pens and solid brushes, by using
10118         their ARGB as a hash instead of tostring and not calling Contains.
10119
10120 2005-01-06  Peter Bartok <pbartok@novell.com>
10121
10122         * Form.cs:
10123           - Implemented OnActivated and OnDeactivate event trigger
10124           - Implemented Activate() method
10125           - Fixed ShowDialog() to activate the form that was active before
10126             the dialog was shown
10127         * XplatUIX11.cs:
10128           - Added global active_window var that tracks the currently active
10129             X11 window
10130           - Now always grabs Property changes from the root window to always
10131             catch changes on the active window property
10132           - Added code to PropertyNotify handler to send Active/Inactive
10133             messages when state changes. This puts X11 and Win32 en par on
10134             WM_ACTIVATE notifications (except for double notifications when
10135             the user clicks away from our modal window to another one of our
10136             windows)
10137
10138 2005-01-05  Jackson Harper  <jackson@ximian.com>
10139
10140         * ImageList.cs: Implment ctor
10141
10142 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10143
10144         * XplatUIOSX.cs: Implement Activate/SetTopmost
10145
10146 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10147
10148         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10149
10150 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10151
10152         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10153
10154 2005-01-05  Peter Bartok <pbartok@novell.com>
10155
10156         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10157           XplatUIOSX.cs: Added GetActive method to return the currently
10158           active window for the application (or null, if none is active)
10159         * Form.cs:
10160           - Implemented ActiveForm
10161           - Commented out owner assignment for modal dialogs (causes problems
10162             on Win32, since the owner will be disabled)
10163           - Reworked some Active/Focus handling (still incomplete)
10164         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10165           (causes problems on Win32, since the owner will be disabled)
10166         * IWin32Window: Added ComVisible attribute
10167
10168 2005-01-05  Peter Bartok <pbartok@novell.com>
10169
10170         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10171           required XplatUI functions.
10172
10173 2005-01-05  Peter Bartok <pbartok@novell.com>
10174
10175         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10176           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10177           to implement focus and activation handling; still incomplete and
10178           with debug output
10179
10180 2005-01-04  Peter Bartok <pbartok@novell.com>
10181
10182         * TextBoxBase.cs: Changed access level for Document property to
10183           match switch to internal for TextControl
10184
10185 2005-01-04  Peter Bartok <pbartok@novell.com>
10186
10187         * AccessibleObject: Added ComVisible attribute
10188
10189 2005-01-04  Jackson Harper  <jackson@ximian.com>
10190
10191         * X11Keyboard.cs: Remove unneeded var.
10192
10193 2005-01-04  Jackson Harper  <jackson@ximian.com>
10194
10195         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10196         but PAINT.
10197         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10198         ClientMessage. This makes apps exit cleanly (more often).
10199         
10200 2005-01-04  Jackson Harper  <jackson@ximian.com>
10201
10202         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10203         handling focus, return correct colors and fonts,
10204         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10205         handle selection, horizontal scrolling, and mouse interaction.
10206
10207 2005-01-04  Peter Bartok <pbartok@novell.com>
10208
10209         * ICommandExecutor.cs: Added
10210         * IDataGridColumnStyleEditingNotificationService.cs: Added
10211         * IFeatureSupport.cs: Added
10212         * IFileReaderService.cs: Added
10213         * IDataObject.cs: Added ComVisible attribute
10214         * AmbientProperties.cs: Added
10215         * BaseCollection.cs: Added missing attributes
10216         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10217         * BaseCollection.cs: Added missing attributes
10218         * Binding.cs: Added TypeConverter attribute
10219         * BindingContext.cs: Added DefaultEvent attribute
10220         * BindingsCollection.cs: Added DefaultEvent attribute
10221         * Button.cs: Added DefaultValue attribute
10222         * DragEventArgs.cs: Added ComVisible attribute
10223         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10224         * KeyEventArgs.cs: Added ComVisible attribute
10225         * KeyPressEventArgs.cs: Added ComVisible attribute
10226         * MouseEventArgs.cs: Added ComVisible attribute
10227         * NavigateEventArgs.cs: Added
10228         * NavigateEventHandler.cs: Added
10229         * FeatureSupport.cs: Added
10230         * OSFeature.cs: Added
10231         * Theme.cs: Added abstract Version property to support OSFeature
10232         * ThemeWin32Classic.cs: Added Version property to
10233           support OSFeature.Themes
10234         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10235           the proper styles to avoid background drawing are set, also doesn't
10236           match MS signature
10237         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10238         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10239         * ScrollEventArgs.cs: Added ComVisible attribute
10240         * SplitterEventArgs.cs: Added ComVisible attribute
10241         * AccessibleSelection.cs: Added Flags attribute
10242         * Appearance.cs: Added ComVisible attribute
10243         * Border3DSide.cs: Added ComVisible attribute
10244         * Border3DStyle.cs: Added ComVisible attribute
10245         * BorderStyle.cs: Added ComVisible attribute
10246         * DragAction.cs: Added ComVisible attribute
10247         * ErrorBlinkStyle.cs: Added
10248         * ScrollEventType.cs: Added ComVisible attribute
10249         * AnchorStyles.cs: Added Editor attribute
10250         * DockStyle.cs: Added Editor attribute
10251         * HorizontalAlignment.cs: Added ComVisible attribute
10252         * HelpEventArgs.cs: Added ComVisible attribute
10253         * PaintEventArgs.cs: Added IDisposable
10254
10255 2005-01-04  Peter Bartok <pbartok@novell.com>
10256
10257         * TextControl.cs: Switched Line, LineTag and Document classes to
10258           internal
10259
10260 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10261
10262         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10263         Simple mode, fixes, IntegralHeight, etc.
10264
10265 2005-01-04  Peter Bartok <pbartok@novell.com>
10266
10267         * TextBoxBase.cs: Using proper font variable now
10268
10269 2005-01-04  Peter Bartok <pbartok@novell.com>
10270
10271         * Form.cs (ShowDialog): Set parent to owner, if provided
10272         * GroupBox.cs: Removed unused vars
10273         * TextControl.cs:
10274           - Added GetHashCode() for Document and LineTag classes
10275           - Removed unused variables
10276           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10277             to allow translation between continuous char position and line/pos
10278         * CheckBox.cs: Removed vars that are provided by base class
10279         * RadioButton.cs: Removed vars that are provided by base class, added
10280           new keyword where required
10281         * LinkLabel.cs: Added new keyword where required
10282         * Control.cs (WndProc): Removed unused variable
10283         * TextBoxBase.cs:
10284           - Finished SelectionLength property
10285           - Implemented SelectionStart property
10286           - Implemented Text property
10287           - Removed unused vars
10288         * MessageBox.cs: Added new keyword where required
10289         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10290           WndProc signature
10291         * MenuAPI.cs: Added new keyword where required
10292         * ButtonBase.cs: Removed vars that are provided by base class, added
10293           new keyword where required
10294         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10295           argument to double, to allow compiling with csc 2.0 (Atsushi ran
10296           into this)
10297         * Application.cs (Run): Now triggers the ThreadExit event
10298         * CommonDialog.cs: Added new keyword where required; now properly sets
10299           parent (owner) for dialog
10300         * XplatUIX11.cs: Commented out unused vars
10301         * StatusBar.cs: Fixed signature for Text property
10302         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10303
10304 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10305
10306         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10307         TrackBar.cs, MonthCalendar.cs: remove unused vars
10308
10309 2005-01-03  Jackson Harper  <jackson@ximian.com>
10310
10311         * ThemeWin32Classic.cs:
10312         * X11Keyboard.cs: Remove unused vars.
10313
10314 2005-01-03  Peter Bartok  <pbartok@novell.com>
10315
10316         * TextBox.cs:
10317           - set_Text: Tied into TextControl
10318           - set_TextAlignment: Tied into TextControl
10319         * TextControl.cs:
10320           - Added alignment properties and implemented alignment handling
10321             and drawing (still has a bug, not generating proper expose events)
10322           - Added new Line() constructor to allow passing the line alignment
10323           - Fixed selection setting, properly handling end<start now
10324           - Added aligment considerations to RecalculateDocument()
10325         * TextBoxBase.cs:
10326           - Now properly enforces control height for single line controls
10327           - Added support for CharacterCasing
10328           - Added IsInputKey override
10329           - Fixed Keys.Enter logic
10330           - Added SetBoundsCore override
10331           - Fixed mouse selection handling
10332
10333 2005-01-03  Jackson Harper  <jackson@ximian.com>
10334
10335         * TreeView.cs:
10336           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10337           - Checkboxes are always aligned to the bottom of the node,
10338           regardless of item height.
10339           - Use the node bounds to draw the text so we can center it when
10340           the item height is greater then the font height.
10341           - Node::Bounds are only the text part of the node.
10342         * TreeNode.cs: New method to combine collapsing and unchecking all
10343           nodes recursively.
10344
10345 2005-01-02  Jackson Harper  <jackson@ximian.com>
10346
10347         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10348         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10349         tree when a check is changed. TODO: Only refresh the checked node.
10350
10351 2004-12-30  Jackson Harper  <jackson@ximian.com>
10352
10353         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10354         * TreeNode.cs: When collapsing make sure to never collapse the
10355         root node.
10356
10357 2004-12-29  Jackson Harper  <jackson@ximian.com>
10358
10359         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10360         
10361 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10362
10363         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10364
10365 2004-12-28  Peter Bartok  <pbartok@novell.com>
10366
10367         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10368           not yet assigned
10369
10370 2004-12-28  Peter Bartok  <pbartok@novell.com>
10371
10372         * Control.cs (WndProc): Added WM_HELP handler, now generates
10373           HelpRequested event
10374         * Form.cs: Added HelpButton property and required support code
10375         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10376
10377 2004-12-28  Peter Bartok  <pbartok@novell.com>
10378
10379         * CommonDialog.cs:
10380           - Made DialogForm.owner variable internal
10381           - Added check to ensure owner form is set before setting
10382             owner properties in CreateParams
10383
10384 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
10385
10386         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
10387           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
10388           GetCursorPos.  Fix major visibility issues.  Rework the windowing
10389           system to support borderless/titleless windows (implements menus).
10390           Fix GetWindowPos.  Implement initial background color support for
10391           views.
10392
10393 2004-12-28  Peter Bartok  <pbartok@novell.com>
10394
10395         * Form.cs (get_CreateParams): Make sure we have an owner before using
10396           the owner variable. Implement proper default if no owner exists
10397
10398 2004-12-28  Peter Bartok  <pbartok@novell.com>
10399
10400         * In preparation for making Managed.Windows.Forms the default build target
10401           for System.Windows.Forms, the following stubbed files were added.
10402           Dialogs are currently being implemented by contributors and are only
10403           short-term place holders.
10404         * ColorDialog.cs: Initial check-in (minmal stub)
10405         * DataGrid.cs: Initial check-in (minimal stub)
10406         * DataGridLineStyle.cs: Initial check-in (minimal stub)
10407         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10408         * DataGridTableStyle.cs: Initial check-in (minimal stub)
10409         * FontDialog.cs: Initial check-in (minimal stub)
10410         * FileDialog.cs: Initial check-in (minimal stub)
10411         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10412         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10413         * OpenFileDialog: Initial check-in (minimal stub)
10414         * IComponentEditorPageSite.cs: Initial check-in
10415         * Splitter.cs: Initial check-in (for Jackson)
10416         * SplitterEventArgs.cs: Initial check-in (for Jackson)
10417         * SplitterEventHandler.cs: Initial check-in (for Jackson)
10418         * TextBox.cs: Initial check-in; still needs some wiring to
10419           TextControl backend
10420         * Form.cs: Implemented ControlBox property
10421         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10422         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10423         * TextControl.cs: Added selection functionality; added todo header
10424         * TextBoxBase.cs:
10425           - Implemented Lines property
10426           - Implemented TextHeight property
10427           - Implemented SelectedText property
10428           - Implemented SelectionLength property
10429           - Implemented SelectAll method
10430           - Implemented ToString method
10431           - Removed and cleaned up some debug code
10432           - Implemented (still buggy) mouse text selection
10433
10434 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
10435
10436         * ComboBox.cs: Complete DropDownList implementation, fixes.
10437
10438 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10439
10440         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10441         * ComboBoxStyle.cs: ComboBoxStyle enum
10442         * ComboBox.cs: Initial work on ComboBox control
10443
10444 2004-12-21  Peter Bartok  <pbartok@novell.com>
10445
10446         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10447           forward so that anything that creates a window gets the default,
10448           also no longer uses Visible property in CreateParams to avoid
10449           walking up the parent chain and possibly get the wrong visible
10450           status. Fixed IsVisible to no longer walk up to the parent.
10451
10452 2004-12-21  Peter Bartok  <pbartok@novell.com>
10453
10454         * Form.cs (ShowDialog): Unset modality for the proper window
10455  
10456 2004-12-20  Peter Bartok  <pbartok@novell.com>
10457
10458         * CommonDialog.cs: Initial check-in
10459
10460 2004-12-20  Peter Bartok  <pbartok@novell.com>
10461
10462         * Control.cs (Visible): Now uses the parent window instead of the
10463           client area window for the property
10464
10465         * Form.cs
10466           - ShowDialog(): Now uses the proper window for modality
10467           - The default visibility state for the form parent is now false. This
10468             will prevent the user from seeing all the changes to the form and
10469             its controls before the application hits Application.Run()
10470           - Removed some stale commented out code
10471
10472         * NativeWindow.cs:
10473           - Added FindWindow() method to have a method to check for existence
10474             of a window handle
10475           - Added ability to override default exception handling (for example
10476             when debugging with VS.Net; to do this the ExternalExceptionHandler
10477             define must be set
10478           - Removed some useless debug output
10479
10480         * XplatUIX11.cs:
10481           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10482             not working as expected
10483           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10484             property to allow switching back to the modal window if focus is
10485             given to another one of our windows (Application Modal)
10486           - Now only sets override_redirect if we create a window
10487             without WS_CAPTION
10488           - Moved EventMask selection before mapping of newly created window
10489             so we can catch the map event as well
10490           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10491           - Added various Atom related DllImports
10492           - Implemented Exit() method
10493           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10494             in the CreateParams
10495
10496         * MessageBox.cs: Now properly deals with the FormParent window by
10497           providing an override the FormParent CreateParams property to
10498           set as POPUP instead of OVERLAPPED window.
10499
10500 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10501
10502         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10503         Minor code cleanup.
10504
10505 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10506         
10507         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10508
10509 2004-12-18  Peter Bartok  <pbartok@novell.com>
10510
10511         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10512           implementing SetModal() method
10513
10514 2004-12-18  Peter Bartok  <pbartok@novell.com>
10515
10516         * X11Structs.cs (XGCValues): Fixed type of function element
10517         * XplatUI.cs: Added ScrollWindow() method
10518         * XplatUIDriver.cs: Added ScrollWindow() abstract
10519         * XplatUIWin32.cs: Implemented ScrollWindow() method
10520         * XplatUIX11.cs: Implemented ScrollWindow() method
10521         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10522
10523 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10524
10525         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10526         Some more keyboard support (INCOMPLETE)
10527
10528 2004-12-17  Peter Bartok  <pbartok@novell.com>
10529
10530         * TextControl.cs:
10531         - Added color attribute to line tags.
10532         - Added color argument to all functions dealing with tags
10533         - Added color argument support to various functions
10534         - Fixed miss-calculation of baseline/shift in certain circumstances
10535
10536         * TextBoxBase.cs: Added new color option to test code
10537
10538 2004-12-17  Jackson Harper  <jackson@ximian.com>
10539
10540         * TreeNode.cs:
10541         * MonthCalendar.cs: Signature fixes
10542
10543 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10544
10545         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10546         keyboard event moved it.  Create a new graphics context for each paint resolves this
10547
10548 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10549
10550         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10551         Make caret exist and go blink blink.  Initial keyboard support.
10552         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10553         works.
10554
10555 2004-12-17  Jackson Harper  <jackson@ximian.com>
10556
10557         * XplatUIStructs.cs: Updated set of virtual keycodes.
10558         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10559
10560 2004-12-17  Jackson Harper  <jackson@ximian.com>
10561
10562         * XplatUIX11.cs: Prune old keyboard code.
10563
10564 2004-12-17  Jackson Harper  <jackson@ximian.com>
10565
10566         * XplatUIX11.cs: When generating mouse wparams get the modifier
10567         keys from the ModifierKeys property.
10568
10569 2004-12-17  Jackson Harper  <jackson@ximian.com>
10570
10571         * X11Keyboard.cs: Send up/down input when generating
10572         messages. Remove some unused vars.
10573
10574 2004-12-17  Jackson Harper  <jackson@ximian.com>
10575
10576         * TabControl.cs:
10577         * TreeView.cs: get rid of warnings.
10578
10579 2004-12-17  Jackson Harper  <jackson@ximian.com>
10580
10581         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10582
10583 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10584
10585         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10586           CheckedListBox.cs: Implementation
10587
10588 2004-12-17  Peter Bartok  <pbartok@novell.com>
10589
10590         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10591
10592 2004-12-16  Peter Bartok  <pbartok@novell.com>
10593
10594         * TextControl.cs:
10595           - InsertCharAtCaret(): Fixed start pos fixup
10596           - CaretLine_get: No longer derives the line from the tag, the tag
10597             could be stale if lines in the document have been added or deleted
10598           - RebalanceAfterDelete(): Fixed bug in balancing code
10599           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10600           - Line.Streamline(): Now can also elminate leading empty tags
10601           - DumpTree(): Added a few more tests and prevented exception on
10602             uninitialized data
10603           - Added Debug section for Combining lines
10604           - Delete(): Now copies all remaining properties of a line
10605           
10606         * TextBoxBase.cs:
10607           - Left mousebutton now sets the caret (and middle button still acts
10608             as formatting tester, which must go away soon)
10609           - Added Debug section for Deleting/Combining lines
10610           - Fixed calculations for UpdateView after Combining lines
10611
10612 2004-12-16  Peter Bartok  <pbartok@novell.com>
10613
10614         * TextControl.cs: Now properly aligns text on a baseline, using the
10615           new XplatUI.GetFontMetrics() method. Simplified several calculations
10616         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10617           defined
10618
10619 2004-12-16  Peter Bartok  <pbartok@novell.com>
10620
10621         * XplatUI.cs: Added GetFontMetrics() method
10622         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10623         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10624           into libgdiplus, our private GetFontMetrics function
10625         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10626         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10627
10628 2004-12-16  Jackson Harper  <jackson@ximain.com>
10629
10630         * XplatUIStruct.cs: Add enum for dead keys
10631         * X11Keyboard.cs: Map and unmap dead keys.
10632
10633 2004-12-16  Jackson Harper  <jackson@ximian.com>
10634
10635         * X11Keyboard.cs: Detect and use the num lock mask.
10636
10637 2004-12-16  Peter Bartok  <pbartok@novell.com>
10638
10639         * Control.cs (CreateGraphics): Added check to make sure the
10640           handle of the window exists before calling Graphics.FromHwnd()
10641
10642 2004-12-16  Peter Bartok  <pbartok@novell.com>
10643
10644         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10645           contains a lot of code that's not supposed to be there for the
10646           real thing, but required for developing/testing the textbox
10647           backend.
10648
10649 2004-12-16  Peter Bartok  <pbartok@novell.com>
10650
10651         * TextControl.cs:
10652         - Fixed Streamline method
10653         - Added FindTag method to Line
10654         - Added DumpTree method for debugging
10655         - Added DecrementLines() method for deleting lines
10656         - Fixed UpdateView to update the cursor to end-of-line on single-line
10657           updates
10658         - Added PositionCaret() method
10659         - Fixed MoveCaret(LineDown) to move into the last line, too
10660         - Added InsertChar overload
10661         - Fixed InsertChar tag offset calculations
10662         - Added DeleteChar() method
10663         - Added Combine() method for folding lines
10664         - Fixed Delete() method, no longer allocates wasted Line object and
10665           now copies all properties when swapping nodes
10666         - Delete() method now updates document line counter
10667
10668 2004-12-15  Jackson Harper  <jackson@ximian.com>
10669
10670         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10671         * X11Keyboard.cs: Expose the currently selected modifier keys
10672         through a property.
10673
10674 2004-12-15  Peter Bartok  <pbartok@novell.com>
10675
10676         * TextControl.cs: Initial check-in. Still incomplete
10677
10678 2004-12-15  Jackson Harper  <jackson@ximian.com>
10679
10680         * TreeNode.cs:
10681         * TreeView.cs: Fix build on csc (second time today ;-))
10682
10683 2004-12-15  Jackson Harper  <jackson@ximian.com>
10684
10685         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10686         is calculated and use this for click testing.
10687         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10688
10689 2004-12-15  Jackson Harper  <jackson@ximian.com>
10690
10691         * TreeView.cs: Pass the nodes image index to the image list when
10692         drawing that image.
10693
10694 2004-12-15  Jackson Harper  <jackson@ximian.com>
10695
10696         * X11Keyboard.cs: Set messages hwnd.
10697         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10698         post_message calls.
10699
10700 2004-12-15  Jackson Harper  <jackson@ximian.com>
10701
10702         * X11Keyboard.cs: Fix to compile with csc.
10703         
10704 2004-12-15  Jackson Harper  <jackson@ximian.com>
10705
10706         * X11Structs.cs: Add key mask values
10707         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10708         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10709         down/up foo into WM_CHAR foo
10710         * KeyboardLayouts.cs: Common keyboard layouts
10711         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10712         post messages into the main queue.
10713
10714 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10715
10716         * Button.cs: implement ProcessMnemonic
10717         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10718           brushes everytime
10719         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10720         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10721
10722 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10723         
10724         * MonthCalendar.cs: Implemented click-hold for next/previous month
10725           and date selection
10726           
10727 2004-12-11  Peter Bartok  <pbartok@novell.com>
10728
10729         * X11Structs.cs:
10730           - Added XKeyboardState (moved from XplatUIX11.cs)
10731           - Added XCreateGC related enums and structures
10732           - Added GXFunction for XSetFunction
10733
10734         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10735
10736         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10737           CaretVisible() calls
10738
10739         * ToolTip.cs: Added code to prevent stealing focus from app windows
10740
10741         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10742           DestroyCaret, SetCaretPos and CaretVisible)
10743
10744         * XplatUIX11.cs:
10745           - Added implementation for caret functions
10746           - Moved hover variables into a struct, to make it a bit easier
10747             on the eyes and to debug
10748           - Removed XKeyboardState (moved to XplatUIX11.cs)
10749           - Moved Keyboard properties into the properties region
10750
10751         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10752           call to get a graphics context for our control
10753
10754         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10755
10756         * TreeView.cs: Fixed bug. No matter what color was set it would always
10757           return SystemColors.Window
10758
10759         * XplatUIWin32.cs: Implemented caret overrides
10760
10761 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10762
10763         * ListBox.cs: fire events, implement missing methods and properties,
10764         sorting.
10765
10766 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10767
10768         * MonthCalendar.cs: invalidation bug fixing
10769         * ThemeWin32Classic.cs: paint fixing
10770
10771 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10772
10773         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10774         prepare the CGContextRef there now.
10775
10776 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10777
10778         * MonthCalendar.cs:
10779           - optimisationL only invalidate areas that have changed
10780         * ThemeWin32Classic.cs:
10781           - only paint parts that intersect with clip_area
10782
10783 2004-12-09  Peter Bartok  <pbartok@novell.com>
10784
10785         * Application.cs: Undid changes from r37004 which cause problems
10786         on X11
10787
10788 2004-12-09  Ravindra  <rkumar@novell.com>
10789
10790         * ToolBar.cs: Added support for displaying ContextMenu
10791         attached to a button on ToolBar.
10792         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10793         property.
10794
10795 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10796
10797         * Label.cs: autosize works in text change and removes unnecessary
10798         invalidate
10799
10800 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10801
10802         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10803         remove warnings
10804
10805 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10806
10807         * XplatUIOSX.cs: Added mouse move/click/grab support
10808         Remove some debugging WriteLines not needed anymore.
10809         Add window resizing/positioning.
10810         Fix visibility on reparenting.
10811
10812 2004-12-08  Peter Bartok  <pbartok@novell.com>
10813
10814         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10815
10816 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10817
10818         * XplatUIOSX.cs: Initial checkin
10819         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10820
10821 2004-12-03  Ravindra <rkumar@novell.com>
10822
10823         * ListView.cs: Added some keybindings and fixed scrolling.
10824         ScrollBars listen to ValueChanged event instead of Scroll
10825         Event. This would let us take care of all changes being
10826         done in the scrollbars' values programmatically or manually.
10827         * ListView.cs (CanMultiselect): Added a check for shift key.
10828         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10829         * ListViewItem.cs (Clone): Fixed. We need to make a copy
10830         of ListViewSubItemCollection as well.
10831
10832 2004-12-06  Peter Bartok <pbartok@novell.com>
10833
10834         * Control.cs (Parent): Added check and exception to prevent
10835         circular parenting
10836
10837 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
10838
10839         * ListBox.cs: implemented clipping, selection single and multiple,
10840         bug fixing
10841
10842 2004-12-03  Ravindra <rkumar@novell.com>
10843
10844         * ListView.cs (ListView_KeyDown):
10845         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10846         when CTRL key is pressed.
10847         * ListViewItem.cs (Selected): Fixed setting the property.
10848
10849 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10850
10851         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10852
10853         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10854         MinimizeBox, ShowInTaskbar, TopMost properties.
10855
10856         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10857         will be implemented).
10858
10859 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10860
10861         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10862
10863         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10864         tests.
10865         
10866         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10867         
10868         * TreeView.cs: BackColor is Colors.Window.
10869
10870 2004-12-01  Jackson Harper  <jackson@ximian.com>
10871
10872         * TreeView.cs: When resizing the tree if the user is making it
10873         smaller we don't get expose events, so we need to handle adding
10874         the horizontal scrollbar in the size changed handler as well as
10875         the expose handler.
10876
10877 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
10878
10879         * DrawItemState.cs: fixes wrong enum values
10880
10881 2004-12-01  Jackson Harper  <jackson@ximian.com>
10882
10883         * TreeView.cs: Resize the hbar as well as the vbar on resize.
10884
10885 2004-12-01  Jackson Harper  <jackson@ximian.com>
10886
10887         * NodeLabelEditEventArgs.cs:
10888         * NodeLabelEditEventHandler.cs:
10889         * OpenTreeNodeEnumerator.cs:
10890         * TreeNode.cs:
10891         * TreeNodeCollection.cs:
10892         * TreeView.cs:
10893         * TreeViewAction.cs:
10894         * TreeViewCancelEventArgs.cs:
10895         * TreeViewCancelEventHandler.cs:
10896         * TreeViewEventArgs.cs:
10897         * TreeViewEventHandler.cs: Initial implementation.
10898
10899 2004-12-01  Ravindra <rkumar@novell.com>
10900
10901         * ListView.cs (CalculateListView): Fixed scrolling related
10902         calculations. Also, removed some debug statements from other
10903         places.
10904         * ListViewItem.cs: Changed access to 'selected' instance variable
10905         from private to internal.
10906         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10907
10908 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
10909
10910         * ThemeWin32Classic.cs: remove cache of brush and pens for
10911         specific controls and use the global system, fixes scrollbutton
10912         bugs (for small sizes, disabled, etc)
10913         
10914         * ScrollBar.cs: does not show the thumb for very small controls
10915         (as MS) and allow smaller buttons that the regular size
10916
10917 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
10918
10919         * UpDownBase.cs: Add abstract methods for the interface.
10920         Add new virtual methods (need to be hooked up to TextEntry when it
10921         exists).
10922         Add override methods for most features.
10923         Computes the size, forces the height of the text entry.
10924
10925         * NumericUpDown.cs: Put here the current testing code.
10926
10927         * Set eol-style property on all files that do not have mixed line
10928         endings, to minimize the future problems.  There are still a few
10929         files with mixed endings, and someone should choose whether they
10930         want to move it or not.
10931
10932 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
10933
10934         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10935         System.Colors
10936         
10937 2004-11-30  Ravindra <rkumar@novell.com>
10938
10939         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10940         drawing and replaced use of SystemColors by theme colors.
10941         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10942         * ListView.cs (ListViewItemCollection.Add): Throw exception when
10943         same ListViewItem is being added more than once.
10944
10945 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
10946
10947         * MonthCalendar.cs:
10948           - ControlStyles love to make the control not flicker
10949           
10950 2004-11-30  Peter Bartok  <pbartok@novell.com>
10951
10952         * CharacterCasing.cs: Added
10953
10954 2004-11-29  Peter Bartok  <pbartok@novell.com>
10955
10956         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10957           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10958           I am removing these files as they conflict with already completed
10959           work. While it is fantastic to get contributions to MWF, I
10960           respectfully ask that everyone please coordinate their contributions
10961           through mono-winforms-list or #mono-winforms at this time. We're
10962           explicitly avoiding stubbing and don't want controls that don't have
10963           their basic functionality implemented in svn. Please also see
10964           http://www.mono-project.com/contributing/winforms.html
10965
10966
10967 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
10968
10969         * Application.cs (ModalRun): Don't hang after exit.
10970
10971         * Theme.cs: New TreeViewDefaultSize property.
10972
10973         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10974         with less hardcoded SystemColors constant.
10975         Implemented TreeViewDefaultSize.
10976
10977         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10978         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10979
10980
10981 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
10982
10983         * MonthCalendar.cs:
10984           - Fix NextMonthDate and PrevMonthDate click moving calendar
10985
10986 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10987
10988         * MonthCalendar.cs:
10989           - Fix usage of ScrollChange Property when scrolling months
10990
10991 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
10992
10993         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
10994          - Fixes menu destroying
10995          - Support adding and removing items on already created menus
10996
10997 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10998
10999         * MonthCalendar.cs:
11000           - Re-worked all bolded dates handling to match win32
11001         * ThemeWin32Classic.cs:
11002           - Fixed rendering with bolded dates
11003
11004 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11005
11006         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11007         - Horizontal scroolbar
11008         - Multicolumn
11009         - Fixes
11010
11011
11012 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11013
11014         * MonthCalendar.cs:
11015           - Fix Usage of MaxSelectionCount from SelectionRange
11016           - Fixed Shift + Cursor Selection
11017           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11018           - Fixed normal cursor selection to be compat with win32
11019           - Fixed Shift + Mouse Click selection
11020
11021 2004-11-24  Peter Bartok <pbartok@novell.com>
11022
11023         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
11024         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
11025         * XplatUIX11.cs:
11026           - CreatedKeyBoardMsg now updates keystate with Alt key
11027           - Added workaround for timer crash to CheckTimers, Jackson will
11028             develop a proper fix and check in later
11029           - Implemented DispatchMessage
11030           - Removed calling the native window proc from GetMessage (call
11031             now moved to DispatchMessage)
11032
11033         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
11034           the keydata (Fixes bug #69831)
11035
11036         * XplatUIWin32.cs:
11037           - (DispatchMessage): Switched to return IntPtr
11038           - Added DllImport for SetFocus
11039
11040 2004-11-24  Ravindra <rkumar@novell.com>
11041
11042         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
11043         background drawing.
11044         * ListViewItem.cs: Fixed various properties, calculations
11045         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
11046         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
11047         and some internal properties. Fixed MouseDown handler and Paint
11048         method.
11049
11050 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11051
11052         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
11053
11054 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11055
11056         * ContainerControl.cs: correct accidental check in of local changes
11057
11058 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11059
11060         * ThemeWin32Classic.cs:
11061                 - Fixed Drawing Last month in grid (sometimes not showing)
11062         * MonthCalendar.cs:
11063                 - Fixed title width calculation bug (makeing title small)
11064
11065 2004-11-23  Peter Bartok <pbartok@novell.com>
11066
11067         * XplatUIX11.cs:
11068           - Added generation of WM_MOUSEHOVER event
11069           - Added missing assignment of async_method atom
11070           - Fixed WM_ERASEBKGND; now only redraws the exposed area
11071
11072 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11073
11074         * ThemeWin32Classic.cs:
11075                 - Fixed Drawing of today circle when showtodaycircle not set
11076                 - fixed drawing of first and last month in the grid (gay dates)
11077         * MonthCalendar.cs:
11078                 - Fixed Drawing of today circle
11079                 - Fixed drawing of grady dates
11080                 - Fixed HitTest for today link when ShowToday set to false
11081                 - Fixed DefaultSize to obey ShowToday
11082
11083 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11084
11085         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
11086         * System.Windows.Forms/Theme.cs
11087         * MonthCalendar.cs: added for MonthCalendar
11088         * SelectionRange.cs: added for MonthCalendar
11089         * Day.cs: added for MonthCalendar: added for MonthCalendar
11090         * DateRangeEventArgs.cs: added for MonthCalendar
11091         * DateRangeEventHandler.cs: added for MonthCalendar
11092
11093 2004-11-22  Ravindra <rkumar@novell.com>
11094
11095         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
11096         property.
11097
11098 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
11099
11100         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
11101         event handler.
11102         
11103         * NumericUpDown.cs: Added new implementation.
11104         * UpDownBase.cs: Added new implementation.
11105
11106         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11107         implementations.
11108         
11109         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11110         implementations.
11111
11112         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11113         methods.
11114
11115 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11116
11117         * Timer.cs  (Dispose): Should call the base dispose when
11118         overriding.
11119
11120 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11121
11122         * ScrollBar.cs: updates thumb position when max, min or increment
11123         is changed
11124
11125 2004-11-21  Ravindra <rkumar@novell.com>
11126
11127         * ListView.cs: Implemented item selection, activation and
11128         column header style. Fixed properties to do a redraw, if
11129         required. Added support for MouseHover, DoubleClick, KeyDown
11130         and KeyUp event handling and some minor fixes.
11131         * ListViewItem.cs: Fixed constructor.
11132         * ThemeWin32Classic.cs: Improved drawing for ListView.
11133
11134 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11135
11136         * ThemeWin32Classic.cs: initial listbox drawing code
11137         * DrawMode.cs: new enumerator
11138         * ListControl.cs: stubbed class
11139         * ListBox.cs: initial implementation
11140         * Theme.cs: new methods definitions
11141         * SelectionMode.cs: new enumerator
11142
11143 2004-11-17  Peter Bartok  <pbartok@novell.com>
11144
11145         * XplatUIWin32.cs: Added double-click events to the class style
11146         * Control.cs (WndProc):
11147           - Added handling of click-count to MouseDown/ MouseUp events.
11148           - Added handling of middle and right mouse buttons
11149           - Removed old debug code
11150
11151 2004-11-17  Jackson Harper  <jackson@ximian.com>
11152
11153         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11154
11155 2004-11-17  Ravindra <rkumar@novell.com>
11156
11157         * ListView.cs: Added event handling for MouseMove/Up/Down.
11158         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11159         * ThemeWin32Classic.cs: We need to clear the graphics context and
11160         draw column header in a proper state.
11161
11162
11163 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11164
11165         *  Menu.cs: fixes signature
11166
11167 2004-11-16  Peter Bartok  <pbartok@novell.com>
11168
11169         * XplatUIX11.cs (GetMessage): Implemented generation of
11170           double click mouse messages
11171
11172 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11173
11174         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11175         not by menu
11176
11177 2004-11-11  Peter Bartok  <pbartok@novell.com>
11178
11179         * HandleData.cs: Added Visible property
11180         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11181           HandleData
11182         * XplatUIX11.cs: Removed old debug leftovers
11183         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11184         * Control.cs (WndProc): Removed old debug leftovers,
11185           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11186           needed WM_SIZE handling
11187
11188 2004-11-11  Jackson Harper  <jackson@ximian.com>
11189
11190         * OwnerDrawPropertyBag.cs:
11191         * TreeViewImageIndexConverter.cs: Initial implementation
11192
11193 2004-11-10  Jackson Harper  <jackson@ximian.com>
11194
11195         * ThemeWin32Classic.cs:
11196         * TabControl.cs: instead of moving tabs by the slider pos just
11197         start drawing at the tab that is offset by the slider. This way
11198         scrolling always moves by exactly one tab.
11199
11200 2004-11-10  Jackson Harper  <jackson@ximian.com>
11201
11202         * TabControl.cs: You can only scroll left when the slider has
11203         already ben moved right.
11204         
11205 2004-11-10  Jackson Harper  <jackson@ximian.com>
11206
11207         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11208         the clip area.
11209         
11210 2004-11-10  Jackson Harper  <jackson@ximian.com>
11211
11212         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11213         clip area.
11214         
11215 2004-11-09  Jackson Harper  <jackson@ximian.com>
11216
11217         * TabControl.cs (CalcXPos): New helper method so we can determine
11218         the proper place to start drawing vertical tabs.
11219         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11220         
11221 2004-11-09  Jackson Harper  <jackson@ximian.com>
11222
11223         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11224         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11225         and Bottom, left and right are illegal values for this and
11226         multiline is enabled when the alignment is set to left or right.
11227         (DrawTab): Each alignment block should draw the text itself now
11228         because Left requires special love. Also add rendering for Left
11229         aligned tabs.
11230         
11231 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11232
11233         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11234         does not destroy the windows, removes debugging messages
11235
11236 2004-11-09  jba  <jba-mono@optusnet.com.au>
11237
11238         * ThemeWin32Classic.cs
11239         (DrawButtonBase): Fix verticle text rect clipping in windows
11240         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11241         rendering and incorrect text rect clipping
11242         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11243         rendering and incorrect text rect clipping
11244         
11245 2004-11-08  Jackson Harper  <jackson@ximian.com>
11246
11247         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11248         bottom when they are bottom aligned so the bottoms of the tabs get
11249         displayed.
11250         * TabControl.cs (DropRow): Move rows up instead of down when the
11251         tab control is bottom aligned.
11252
11253 2004-11-08 13:59  pbartok
11254
11255         * XplatUIX11.cs:
11256           - Added handling for various window styles
11257           - Added handling for popup windows
11258           - Added SetTopmost handling
11259
11260 2004-11-08 13:55  pbartok
11261
11262         * XplatUIWin32.cs:
11263           - Added argument to SetTopmost method
11264           - Fixed broken ClientToScreen function
11265
11266 2004-11-08 13:53  pbartok
11267
11268         * XplatUIStructs.cs:
11269           - Added missing WS_EX styles
11270
11271 2004-11-08 13:53  pbartok
11272
11273         * XplatUI.cs, XplatUIDriver.cs:
11274           - Added argument to SetTopmost
11275
11276 2004-11-08 13:52  pbartok
11277
11278         * X11Structs.cs:
11279           - Added XSetWindowAttributes structure
11280           - Improved XWindowAttributes structure
11281           - Added SetWindowValuemask enum
11282           - Added window creation arguments enum
11283           - Added gravity enum
11284           - Added Motif hints structure
11285           - Added various Motif flags and enums
11286           - Added PropertyMode enum for property functions
11287
11288 2004-11-08 13:50  pbartok
11289
11290         * Form.cs:
11291           - Fixed arguments for updated SetTopmost method
11292
11293 2004-11-08 13:49  pbartok
11294
11295         * ToolTip.cs:
11296           - Fixed arguments for updated SetTopmost function
11297           - Fixed usage of PointToClient
11298
11299 2004-11-08 13:44  pbartok
11300
11301         * MenuAPI.cs:
11302           - Added Clipping of children and siblings
11303
11304 2004-11-08 13:41  pbartok
11305
11306         * MainMenu.cs:
11307           - Removed SetMenuBarWindow call. We do this in Form.cs
11308
11309 2004-11-08 13:40  jackson
11310
11311         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11312           scrolling jimmi in the correct location with bottom aligned tabs
11313
11314 2004-11-08 13:36  pbartok
11315
11316         * ContainerControl.cs:
11317           - Implemented BindingContext
11318           - Implemented ParentForm
11319
11320 2004-11-08 12:46  jackson
11321
11322         * TabControl.cs: Put bottom rendered tabs in the right location
11323
11324 2004-11-08 07:15  jordi
11325
11326         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11327           removes dead code
11328
11329 2004-11-05 17:30  jackson
11330
11331         * TabControl.cs: When selected tabs are expanded make sure they
11332           don't go beyond the edges of the tab control
11333
11334 2004-11-05 14:57  jackson
11335
11336         * TabControl.cs: Reset show_slider so if the control is resized to
11337           a size where it is no longer needed it's not displayed anymore
11338
11339 2004-11-05 13:16  jackson
11340
11341         * TabControl.cs: Make tab pages non visible when added to the
11342           control
11343
11344 2004-11-05 12:42  jackson
11345
11346         * TabControl.cs: Implement SizeMode.FillToRight
11347
11348 2004-11-05 12:16  jackson
11349
11350         * Control.cs: Do not call CreateHandle if the handle is already
11351           created
11352
11353 2004-11-05 11:46  jackson
11354
11355         * TabControl.cs: Remove superflous call to CalcTabRows
11356
11357 2004-11-05 09:07  jackson
11358
11359         * XplatUIX11.cs: Update for Mono.Posix changes
11360
11361 2004-11-05 07:00  ravindra
11362
11363         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11364           scrolling.
11365
11366 2004-11-04 22:47  jba
11367
11368         * ThemeWin32Classic.cs:
11369           - Fix Button rendering for FlatStyle = Flat or Popup
11370           - Fix RadioButton and CheckBox rendering when Appearance = Button
11371             (normal and flatstyle).
11372           - Correct outer rectangle color when drawing focus rectangle
11373           - Adjust button bounds to be 1 px smaller when focused
11374           - Make button not draw sunken 3d border when pushed (windows compat)
11375           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11376           - Offset the text in RadioButton and Checkbox when being rendered as
11377           a button.
11378           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11379           radiobuttons
11380           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11381           - Fixed disabled text rendering for normally rendered radiobuttons
11382
11383 2004-11-04 10:26  jackson
11384
11385         * TabControl.cs: Recalculate tab rows when resizing
11386
11387 2004-11-04 07:47  jordi
11388
11389         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11390           collection completion, drawing issues, missing features
11391
11392 2004-11-04 05:03  ravindra
11393
11394         * ScrollBar.cs:
11395                 - We need to recalculate the Thumb area when
11396                 LargeChange/maximum/minimum values are changed.
11397           - We set the 'pos' in UpdatePos() method to minimum, if it's less
11398                 than minimum. This is required to handle the case if large_change is
11399                 more than max, and use LargeChange property instead of large_change
11400                 variable.
11401           - We return max+1 when large_change is more than max, like MS does.
11402
11403 2004-11-04 04:29  ravindra
11404
11405         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11406                 - Changed default value signatures (prefixed all with ListView).
11407                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11408                 ListView.
11409           - Fixed calculations for ListViewItem and implemented Clone()
11410           method.
11411
11412 2004-11-04 04:26  ravindra
11413
11414         * Theme.cs, ThemeWin32Classic.cs:
11415                 - Changed default ListView values signatures (prefixed all with
11416                 ListView).
11417           - Fixed default size values for VScrollBar and HScrollBar.
11418                 - Fixed DrawListViewItem method.
11419
11420 2004-11-04 04:05  ravindra
11421
11422         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11423
11424 2004-11-04 04:04  ravindra
11425
11426         * ImageList.cs: Implemented the missing overload for Draw method.
11427
11428 2004-11-03 19:29  jackson
11429
11430         * TabControl.cs: Handle dropping rows on selection properly
11431
11432 2004-11-03 11:59  jackson
11433
11434         * TabControl.cs: remove debug code
11435
11436 2004-11-03 11:52  jackson
11437
11438         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11439           the scrolly widgerywoo
11440
11441 2004-11-02 13:52  jackson
11442
11443         * TabControl.cs: Resize the tab pages and tabs when the tab control
11444           is resized
11445
11446 2004-11-02 13:40  jackson
11447
11448         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11449           selected tab to the bottom
11450
11451 2004-11-02 13:39  jackson
11452
11453         * TabPage.cs: Store the tab pages row
11454
11455 2004-11-02 12:33  jordi
11456
11457         * MenuItem.cs: fixes handle creation
11458
11459 2004-11-02 11:42  jackson
11460
11461         * TabControl.cs: signature fix
11462
11463 2004-11-02 08:56  jackson
11464
11465         * TabControl.cs: Calculate whether the tab is on an edge properly.
11466           Remove top secret debugging code
11467
11468 2004-11-01 19:57  jackson
11469
11470         * TabControl.cs: Add click handling, and proper sizing
11471
11472 2004-11-01 19:47  jackson
11473
11474         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11475           tab controls
11476
11477 2004-11-01 19:39  jackson
11478
11479         * TabPage.cs: add internal property to store the bounds of a tab
11480           page
11481
11482 2004-10-30 04:23  ravindra
11483
11484         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11485           values.
11486
11487 2004-10-30 04:21  ravindra
11488
11489         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11490           fixed calculations.
11491
11492 2004-10-30 03:06  pbartok
11493
11494         * XplatUIX11.cs:
11495           - Removed extension of DllImported libs
11496
11497 2004-10-29 09:55  jordi
11498
11499         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11500           navigation, itemcollection completion, menu fixes
11501
11502 2004-10-27 22:58  pbartok
11503
11504         * XplatUIX11.cs:
11505           - Now throws a nice error message when no X display could be opened
11506
11507 2004-10-26 13:51  jordi
11508
11509         * ListView.cs: removes warning
11510
11511 2004-10-26 03:55  ravindra
11512
11513         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11514           ThemeWin32Classic.cs: Some formatting for my last checkins.
11515
11516 2004-10-26 03:36  ravindra
11517
11518         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11519           control and default values.
11520
11521 2004-10-26 03:35  ravindra
11522
11523         * Theme.cs: Added some default values for ListView control.
11524
11525 2004-10-26 03:33  ravindra
11526
11527         * ToolBar.cs: ToolBar should use the user specified button size, if
11528           there is any. Added a size_specified flag for the same.
11529
11530 2004-10-26 03:33  ravindra
11531
11532         * ColumnHeader.cs: Added some internal members and calculations for
11533           ColumnHeader.
11534
11535 2004-10-26 03:32  ravindra
11536
11537         * ListViewItem.cs: Calculations for ListViewItem.
11538
11539 2004-10-26 03:31  ravindra
11540
11541         * ListView.cs: Added some internal members and calculations for
11542           ListView.
11543
11544 2004-10-22 13:31  jordi
11545
11546         * MenuAPI.cs: speedup menus drawing
11547
11548 2004-10-22 13:16  jackson
11549
11550         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11551           expose event
11552
11553 2004-10-22 11:49  jackson
11554
11555         * Control.cs: oops
11556
11557 2004-10-22 11:41  jackson
11558
11559         * Control.cs: Check to see if the window should have its background
11560           repainted by X when drawing.
11561
11562 2004-10-22 11:31  jackson
11563
11564         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11565           clear is true, this way we do not get flicker from X repainting the
11566           background
11567
11568 2004-10-22 11:28  jackson
11569
11570         * XEventQueue.cs: Queue properly
11571
11572 2004-10-21 09:38  jackson
11573
11574         * XEventQueue.cs: Fix access modifier
11575
11576 2004-10-21 09:36  jackson
11577
11578         * XEventQueue.cs: Don't loose messages
11579
11580 2004-10-21 09:22  jackson
11581
11582         * XEventQueue.cs: Don't loose messages
11583
11584 2004-10-20 04:15  jordi
11585
11586         * BootMode.cs: enum need it by SystemInfo
11587
11588 2004-10-19 21:58  pbartok
11589
11590         * XplatUIWin32.cs:
11591           - Small sanity check
11592
11593 2004-10-19 21:56  pbartok
11594
11595         * Form.cs:
11596           - Added private FormParentWindow class which acts as the container
11597             for our form and as the non-client area where menus are drawn
11598           - Added/Moved required tie-ins to Jordi's menus
11599           - Fixed/Implemented the FormStartPosition functionality
11600
11601 2004-10-19 21:52  pbartok
11602
11603         * Control.cs:
11604           - Removed unneeded locals
11605           - Added code to all size and location properties to understand and
11606             deal with the parent container of Form
11607
11608 2004-10-19 21:33  pbartok
11609
11610         * Application.cs:
11611           - Fixed to deal with new Form subclasses for menus
11612
11613 2004-10-19 17:48  jackson
11614
11615         * XEventQueue.cs: commit correct version of file
11616
11617 2004-10-19 16:50  jackson
11618
11619         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11620
11621 2004-10-19 16:15  jordi
11622
11623         * MenuAPI.cs: MenuBarCalcSize returns the height
11624
11625 2004-10-19 08:31  pbartok
11626
11627         * Control.cs:
11628           - Added missing call to PreProcessMessage before calling OnXXXKey
11629           methods
11630
11631 2004-10-19 00:04  ravindra
11632
11633         * ToolTip.cs: Fixed constructor.
11634
11635 2004-10-18 09:31  jordi
11636
11637         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11638
11639 2004-10-18 09:26  jordi
11640
11641         * MenuItem.cs: fixes MenuItem class signature
11642
11643 2004-10-18 08:56  jordi
11644
11645         * MenuAPI.cs: prevents windows from showing in the taskbar
11646
11647 2004-10-18 00:28  ravindra
11648
11649         * ToolTip.cs: Suppressed a warning message.
11650
11651 2004-10-18 00:27  ravindra
11652
11653         * Control.cs: Default value of visible property must be true.
11654
11655 2004-10-17 23:19  pbartok
11656
11657         * ToolTip.cs:
11658           - Complete implementation
11659
11660 2004-10-17 23:19  pbartok
11661
11662         * XplatUIX11.cs:
11663           - Added EnableWindow method
11664           - Added SetModal stub
11665           - Added generation of WM_ACTIVATE message (still needs testing)
11666           - Added SetTopMost stub
11667           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11668
11669 2004-10-17 23:17  pbartok
11670
11671         * XplatUIWin32.cs:
11672           - Removed VirtualKeys to XplatUIStructs
11673           - Implemented SetTopMost method
11674           - Implemented EnableWindow method
11675           - Bugfix in ScreenToClient()
11676           - Bugfixes in ClientToScreen()
11677
11678 2004-10-17 22:51  pbartok
11679
11680         * XplatUIStructs.cs:
11681           - Added WS_EX styles to WindowStyles enumeration
11682
11683 2004-10-17 22:50  pbartok
11684
11685         * XplatUI.cs, XplatUIDriver.cs:
11686           - Added method for enabling/disabling windows
11687           - Added method for setting window modality
11688           - Added method for setting topmost window
11689
11690 2004-10-17 22:49  pbartok
11691
11692         * ThemeWin32Classic.cs:
11693           - Added ToolTip drawing code
11694
11695 2004-10-17 22:49  pbartok
11696
11697         * Theme.cs:
11698           - Added ToolTip abstracts
11699
11700 2004-10-17 22:47  pbartok
11701
11702         * Form.cs:
11703           - Fixed Form.ControlCollection to handle owner relations
11704           - Added Owner/OwnedForms handling
11705           - Implemented Z-Ordering for owned forms
11706           - Removed unneeded private overload of ShowDialog
11707           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11708             so I hope)
11709           - Fixed Close(), had wrong default
11710           - Added firing of OnLoad event
11711           - Added some commented out debug code for Ownership handling
11712
11713 2004-10-17 22:16  pbartok
11714
11715         * Control.cs:
11716           - Fixed/implemented flat list of controls
11717
11718 2004-10-17 22:14  pbartok
11719
11720         * Application.cs:
11721           - Added code to simulate modal dialogs on Win32
11722
11723 2004-10-17 16:11  jordi
11724
11725         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11726           mouse event
11727
11728 2004-10-17 13:39  jordi
11729
11730         * MenuAPI.cs: menu drawing fixes
11731
11732 2004-10-15 09:10  ravindra
11733
11734         * StructFormat.cs: General Enum.
11735
11736 2004-10-15 09:09  ravindra
11737
11738         * SizeGripStyle.cs: Enum for Form.
11739
11740 2004-10-15 09:08  ravindra
11741
11742         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11743           in Theme for ListView.
11744
11745 2004-10-15 09:06  ravindra
11746
11747         * ColumnHeader.cs: Flushing some formatting changes.
11748
11749 2004-10-15 09:05  ravindra
11750
11751         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11752           style.
11753
11754 2004-10-15 09:03  ravindra
11755
11756         * ListView.cs: Implemented Paint method and fixed coding style.
11757
11758 2004-10-15 07:34  jordi
11759
11760         * MenuAPI.cs: fix for X11
11761
11762 2004-10-15 07:32  ravindra
11763
11764         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11765                 - Renamed Paint() method to Draw() for clarity. Also, moved
11766                 DrawImage() to OnPaint().
11767
11768 2004-10-15 07:25  ravindra
11769
11770         * CheckBox.cs, RadioButton.cs:
11771                 - Removed Redraw (), we get it from ButtonBase.
11772                 - Implemented Paint (), to do class specific painting.
11773
11774 2004-10-15 07:16  ravindra
11775
11776         * ButtonBase.cs:
11777                 - Redraw () is not virtual now.
11778                 - Added an internal virtual method Paint (), so that
11779                 derived classes can do their painting on their own.
11780                 - Modified OnPaint () to call Paint ().
11781
11782 2004-10-15 06:43  jordi
11783
11784         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11785           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11786
11787 2004-10-15 00:30  ravindra
11788
11789         * MessageBox.cs:
11790                 - MessageBox on windows does not have min/max buttons.
11791                 This change in CreateParams fixes this on Windows. We
11792                 still need to implement this windowstyle behavior in
11793                 our X11 driver.
11794
11795 2004-10-14 05:14  ravindra
11796
11797         * ToolBar.cs:
11798                 - Changed Redraw () to do a Refresh () always.
11799                 - Fixed the MouseMove event handling when mouse is pressed,
11800                 ie drag event handling.
11801                 - Replaced the usage of ToolBarButton.Pressed property to
11802                 ToolBarButton.pressed internal variable.
11803
11804 2004-10-14 05:10  ravindra
11805
11806         * ToolBarButton.cs:
11807                 - Added an internal member 'inside' to handle mouse move
11808                 with mouse pressed ie mouse drag event.
11809                 - Changed 'Pressed' property to return true only when
11810                 'inside' and 'pressed' are both true.
11811                 - Some coding style love.
11812
11813 2004-10-14 00:17  ravindra
11814
11815         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11816           public method.
11817
11818 2004-10-14 00:15  ravindra
11819
11820         * ButtonBase.cs: Redraw () related improvements.
11821
11822 2004-10-14 00:14  ravindra
11823
11824         * MessageBox.cs: Moved InitFormSize () out of Paint method and
11825           removed unnecessary calls to Button.Show () method.
11826
11827 2004-10-13 17:50  pbartok
11828
11829         * XplatUIX11.cs:
11830           - Formatting fix
11831           - Removed destroying of window until we solve the problem of X
11832             destroying the window before us on shutdown
11833
11834 2004-10-13 16:32  pbartok
11835
11836         * ButtonBase.cs:
11837           - Now Redraws on MouseUp for FlatStyle Flat and Popup
11838
11839 2004-10-13 14:18  pbartok
11840
11841         * XplatUIX11.cs:
11842           - Added code to destroy the X window
11843
11844 2004-10-13 14:18  pbartok
11845
11846         * XplatUIWin32.cs:
11847           - Added code to destroy a window
11848
11849 2004-10-13 14:12  pbartok
11850
11851         * ButtonBase.cs:
11852           - Added the Redraw on Resize that got dropped in the last rev
11853
11854 2004-10-13 09:06  pbartok
11855
11856         * ThemeWin32Classic.cs:
11857           - Path from John BouAntoun:
11858             * Fix check rendering (centre correctly for normal style, offset
11859               correctly for FlatStyle).
11860             * Fix border color usage (use backcolor) for FlatStyle.Popup
11861             * Use checkbox.Capture instead of checkbox.is_pressed when
11862               rendering flatstyle states.
11863
11864 2004-10-12 21:48  pbartok
11865
11866         * ThemeWin32Classic.cs:
11867           - Removed all occurences of SystemColors and replaced them with the
11868             matching theme color
11869
11870 2004-10-12 21:41  pbartok
11871
11872         * ThemeWin32Classic.cs:
11873           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11874             him using the function for flatstyle drawing
11875           - Changed functions to use the new version of CPDrawBorder3D
11876
11877 2004-10-12 21:15  pbartok
11878
11879         * ControlPaint.cs:
11880           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11881             match MS documentation. They need to return defined colors if the
11882             passed color matches the configured control color. Thanks to John
11883             BouAntoun for pointing this out.
11884
11885 2004-10-12 20:57  pbartok
11886
11887         * Control.cs:
11888           - Fix from John BouAntoun: Raise ForeColorChanged event when text
11889             color is changed
11890
11891 2004-10-12 20:46  pbartok
11892
11893         * CheckBox.cs:
11894           - Fix from John BouAntoun: Now properly sets the Appearance property
11895
11896 2004-10-12 20:45  pbartok
11897
11898         * ThemeWin32Classic.cs:
11899           - Fixes from John BouAntoun: now handles forecolors and backcolors
11900             for flatstyle rendered controls much better; It also fixes normal
11901             checkbox rendering when pushed or disabled.
11902
11903 2004-10-08 02:50  jordi
11904
11905         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11906           work
11907
11908 2004-10-07 08:56  jordi
11909
11910         * ThemeWin32Classic.cs: Removes deletion of cached brushes
11911
11912 2004-10-06 03:59  jordi
11913
11914         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11915           XplatUIWin32.cs: removes warnings from compilation
11916
11917 2004-10-05 12:23  jackson
11918
11919         * RadioButton.cs: Fix ctor
11920
11921 2004-10-05 11:10  pbartok
11922
11923         * MessageBox.cs:
11924           - Partial implementation by Benjamin Dasnois
11925
11926 2004-10-05 10:15  jackson
11927
11928         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11929           by John BouAntoun
11930
11931 2004-10-05 03:07  ravindra
11932
11933         * ToolBar.cs:
11934                 - Removed a private method, Draw ().
11935                 - Fixed the ButtonDropDown event handling.
11936                 - Fixed MouseMove event handling.
11937
11938 2004-10-05 03:04  ravindra
11939
11940         * ThemeWin32Classic.cs:
11941                 - Added DrawListView method and ListViewDefaultSize property.
11942                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11943                 - Changed DOS style CRLF to Unix format (dos2unix).
11944
11945 2004-10-05 03:03  ravindra
11946
11947         * Theme.cs:
11948                 - Added DrawListView method and ListViewDefaultSize property.
11949
11950 2004-10-05 02:42  ravindra
11951
11952         * ToolBarButton.cs: Added an internal member dd_pressed to handle
11953           clicks on DropDown arrow.
11954
11955 2004-10-04 22:56  jackson
11956
11957         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11958           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11959           Control handle the buffers, derived classes should not have to
11960           CreateBuffers themselves.
11961
11962 2004-10-04 21:20  jackson
11963
11964         * StatusBar.cs: The control handles resizing the buffers now.
11965
11966 2004-10-04 21:18  jackson
11967
11968         * Control.cs: When resizing the buffers should be invalidated. This
11969           should be handled in Control not in derived classes.
11970
11971 2004-10-04 14:45  jackson
11972
11973         * TabPage.cs: oops
11974
11975 2004-10-04 02:14  pbartok
11976
11977         * LeftRightAlignment.cs:
11978           - Initial check-in
11979
11980 2004-10-04 01:09  jordi
11981
11982         * ThemeWin32Classic.cs: fixes right button position causing right
11983           button not showing on horizontal scrollbars
11984
11985 2004-10-02 13:12  pbartok
11986
11987         * XplatUIX11.cs:
11988           - Simplified the Invalidate method by using an X call instead of
11989             generating the expose ourselves
11990           - Added an expose when the window background is changed
11991           - Implemented ClientToScreen method
11992
11993 2004-10-02 13:08  pbartok
11994
11995         * XplatUIWin32.cs:
11996           - Added Win32EnableWindow method (test for implementing modal
11997           dialogs)
11998           - Added ClientToScreen method and imports
11999
12000 2004-10-02 13:07  pbartok
12001
12002         * XplatUI.cs, XplatUIDriver.cs:
12003           - Added ClientToScreen coordinate translation method
12004
12005 2004-10-02 13:06  pbartok
12006
12007         * KeyPressEventArgs.cs:
12008           - Fixed access level for constructor
12009
12010 2004-10-02 13:06  pbartok
12011
12012         * NativeWindow.cs:
12013           - Changed access level for the window_collection hash table
12014
12015 2004-10-02 13:05  pbartok
12016
12017         * Form.cs:
12018           - Added KeyPreview property
12019           - Added Menu property (still incomplete, pending Jordi's menu work)
12020           - Implemented ProcessCmdKey
12021           - Implemented ProcessDialogKey
12022           - Implemented ProcessKeyPreview
12023
12024 2004-10-02 13:02  pbartok
12025
12026         * Control.cs:
12027           - Added private method to get the Control object from the window
12028           handle
12029           - Implemented ContextMenu property
12030           - Implemented PointToScreen
12031           - Implemented PreProcessMessage
12032           - Implemented IsInputChar
12033           - Implemented IsInputKey
12034           - Implemented ProcessCmdKey
12035           - Completed ProcessKeyEventArgs
12036           - Fixed message loop to call the proper chain of functions on key
12037           events
12038           - Implemented ProcessDialogChar
12039           - Implemented ProcessDialogKey
12040           - Implemented ProcessKeyMessage
12041           - Implemented ProcessKeyPreview
12042           - Added RaiseDragEvent stub (MS internal method)
12043           - Added RaiseKeyEvent stub (MS internal method)
12044           - Added RaiseMouseEvent stub (MS Internal method)
12045           - Added RaisePaintEvent stub (MS Internal method)
12046           - Added ResetMouseEventArgs stub (MS Internal method)
12047           - Implemented RtlTranslateAlignment
12048           - Implemented RtlTranslateContent
12049           - Implemented RtlTranslateHorizontal
12050           - Implemented RtlTranslateLeftRight
12051           - Added generation of KeyPress event
12052
12053 2004-10-02 05:57  ravindra
12054
12055         * ListViewItem.cs: Added attributes.
12056
12057 2004-10-02 05:32  ravindra
12058
12059         * ListView.cs: Added attributes.
12060
12061 2004-10-01 11:53  jackson
12062
12063         * Form.cs: Implement the Close method so work on MessageBox can
12064           continue.
12065
12066 2004-09-30 14:06  pbartok
12067
12068         * XplatUIX11.cs:
12069           - Bug fixes
12070
12071 2004-09-30 11:34  jackson
12072
12073         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
12074
12075 2004-09-30 07:26  ravindra
12076
12077         * ListViewItemConverter.cs: Converter for ListViewItem.
12078
12079 2004-09-30 07:26  ravindra
12080
12081         * SortOrder.cs: Enum for ListView control.
12082
12083 2004-09-30 07:25  ravindra
12084
12085         * ColumnHeader.cs: Supporting class for ListView control.
12086
12087 2004-09-30 07:24  ravindra
12088
12089         * ListView.cs, ListViewItem.cs: Initial implementation.
12090
12091 2004-09-30 07:20  ravindra
12092
12093         * ItemActivation.cs: Enum for ListView Control.
12094
12095 2004-09-29 20:29  pbartok
12096
12097         * XplatUIX11.cs:
12098           - Added lookup of pixel value for background color; tries to get a
12099             color 'close' to the requested color, it avoids having to create a
12100             colormap.  Depending on the display this could mean the used color
12101             is slightly off the desired color. Might have to change it to a more
12102             resource intensive colormap approach, but it will work as a
12103           workaround to avoid red screens.
12104
12105 2004-09-29 14:27  jackson
12106
12107         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12108
12109 2004-09-28 12:44  pbartok
12110
12111         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12112           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12113           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12114           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12115           TrackBar.cs, VScrollBar.cs:
12116           - Streamlined Theme interfaces:
12117             * Each DrawXXX method for a control now is passed the object for
12118               the control to be drawn in order to allow accessing any state the
12119               theme might require
12120
12121             * ControlPaint methods for the theme now have a CP prefix to avoid
12122               name clashes with the Draw methods for controls
12123
12124             * Every control now retrieves it's DefaultSize from the current
12125             theme
12126
12127 2004-09-28 12:17  jackson
12128
12129         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12130           drawing
12131
12132 2004-09-24 14:57  jackson
12133
12134         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12135           Gives us a nice little performance boost.
12136
12137 2004-09-24 12:02  jackson
12138
12139         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12140           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12141           Control and supporting classes. Initial checkin
12142
12143 2004-09-23 13:08  jackson
12144
12145         * Form.cs: Temp build fixage
12146
12147 2004-09-23 01:39  ravindra
12148
12149         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12150           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12151           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12152           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12153           EventHandlers needed by ListView Control.
12154
12155 2004-09-22 14:12  pbartok
12156
12157         * ScrollableControl.cs:
12158           - Implemented DockPadding property
12159           - Implemented AutoScroll property
12160           - Implemented AutoScrollMargin property
12161           - Implemented AutoScrollMinSize property
12162           - Implemented AutoScrollPosition property
12163           - Implemented DisplayRectangle property (still incomplete)
12164           - Implemented CreateParams property
12165           - Implemented HScroll property
12166           - Implemented VScroll property
12167           - Implemented OnVisibleChanged property
12168
12169 2004-09-22 14:09  pbartok
12170
12171         * Form.cs:
12172           - Added Form.ControllCollection class
12173           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12174             RemoveOwnedForm (still incomplete, missing on-top and common
12175             minimize/maximize behaviour)
12176           - Added StartPosition property (still incomplete, does not use when
12177             creating the form)
12178           - Added ShowDialog() methods (still incomplete, missing forcing the
12179             dialog modal)
12180
12181 2004-09-22 14:05  pbartok
12182
12183         * Application.cs:
12184           - Added message loop for modal dialogs
12185
12186 2004-09-22 14:02  pbartok
12187
12188         * GroupBox.cs:
12189           - Fixed wrong types for events
12190
12191 2004-09-22 14:00  pbartok
12192
12193         * Shortcut.cs, FormWindowState.cs:
12194           - Fixed wrong values
12195
12196 2004-09-22 12:01  jackson
12197
12198         * Control.cs: Text is never null
12199
12200 2004-09-20 22:14  pbartok
12201
12202         * XplatUIWin32.cs:
12203           - Fixed accessibility level for Idle handler
12204
12205 2004-09-20 18:54  jackson
12206
12207         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12208           XplatUIX11.cs: New message loop that uses poll so we don't get a
12209           busy loop
12210
12211 2004-09-17 10:43  pbartok
12212
12213         * ScrollBar.cs:
12214           - Fixed behaviour of arrow buttons. Now properly behaves like
12215             Buttons (and like Microsoft's scrollbar arrow buttons)
12216
12217 2004-09-17 10:14  pbartok
12218
12219         * ScrollBar.cs:
12220           - Added missing release of keyboard/mouse capture
12221
12222 2004-09-17 06:18  jordi
12223
12224         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12225           Theme.cs: Very early menu support
12226
12227 2004-09-16 17:45  pbartok
12228
12229         * XplatUIWin32.cs:
12230           - Fixed sending a window to the front
12231           - Added overload for SetWindowPos to avoid casting
12232
12233 2004-09-16 17:44  pbartok
12234
12235         * Control.cs:
12236           - Added SendToBack and BringToFront methods
12237
12238 2004-09-16 07:00  ravindra
12239
12240         * Copyright: Added Novell URL.
12241
12242 2004-09-16 07:00  ravindra
12243
12244         * ToolBar.cs: Invalidate should be done before redrawing.
12245
12246 2004-09-15 21:19  ravindra
12247
12248         * ColumnHeaderStyle.cs: Enum for ListView Control.
12249
12250 2004-09-15 21:18  ravindra
12251
12252         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12253           ListView Control.
12254
12255 2004-09-13 18:26  jackson
12256
12257         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12258           properly
12259
12260 2004-09-13 18:13  jackson
12261
12262         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12263           a second thread and post messages into the main threads message
12264           queue. This makes timing much more consistent. Both win2K and XP
12265           have a minimum timer value of 15 milliseconds, so we now do this
12266           too.
12267
12268 2004-09-13 15:18  pbartok
12269
12270         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12271           XplatUIX11.cs:
12272           - Added Z-Ordering methods
12273
12274 2004-09-13 10:56  pbartok
12275
12276         * Form.cs:
12277           - Fixed #region names
12278           - Moved properties and methods into their proper #regions
12279
12280 2004-09-13 10:51  pbartok
12281
12282         * Form.cs:
12283           - Added Accept and CancelButton properties
12284           - Added ProcessDialogKey() method
12285
12286 2004-09-13 08:18  pbartok
12287
12288         * IWindowTarget.cs:
12289           - Initial check-in
12290
12291 2004-09-10 21:50  pbartok
12292
12293         * Control.cs:
12294           - Added DoDragDrop() [incomplete]
12295           - Properly implemented 'Visible' handling
12296           - Added SetVisibleCore()
12297           - Implemented FindChildAtPoint()
12298           - Implemented GetContainerControl()
12299           - Implemented Hide()
12300
12301 2004-09-10 19:28  pbartok
12302
12303         * Control.cs:
12304           - Moved methods into their appropriate #regions
12305           - Reordered methods within regions alphabetically
12306
12307 2004-09-10 18:57  pbartok
12308
12309         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12310           - Added method to retrieve text from window
12311
12312 2004-09-10 18:56  pbartok
12313
12314         * Control.cs:
12315           - Moved some internal functions into the internal region
12316           - Implemented FontHeight
12317           - Implemented RenderRightToLeft
12318           - Implemented ResizeRedraw
12319           - Implemented ShowFocusCues
12320           - Implemented ShowKeyboardCues
12321           - Implemented FromChildHandle
12322           - Implemented FromHandle
12323           - Implemented IsMnemonic
12324           - Implemented ReflectMessage
12325           - All public and protected Static Methods are now complete
12326
12327 2004-09-10 16:54  pbartok
12328
12329         * Control.cs:
12330           - Implemented remaining missing public instance properties
12331           - Alphabetized some out of order properties
12332
12333 2004-09-10 05:51  ravindra
12334
12335         * PictureBox.cs: Added a check for null image.
12336
12337 2004-09-10 00:59  jordi
12338
12339         * GroupBox.cs: remove cvs tag
12340
12341 2004-09-09 05:25  ravindra
12342
12343         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12344
12345 2004-09-09 05:23  ravindra
12346
12347         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12348           parent redraw.
12349
12350 2004-09-09 02:28  pbartok
12351
12352         * ThemeWin32Classic.cs:
12353           - Improve disabled string look
12354
12355 2004-09-09 01:15  jordi
12356
12357         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12358           args and handler
12359
12360 2004-09-08 23:56  ravindra
12361
12362         * ItemBoundsPortion.cs: It's enum, not a class!
12363
12364 2004-09-08 23:47  ravindra
12365
12366         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12367           Enums for Form.
12368
12369 2004-09-08 21:13  ravindra
12370
12371         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12372           ListView control.
12373
12374 2004-09-08 21:03  ravindra
12375
12376         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12377           avoid crash.
12378
12379 2004-09-08 21:01  ravindra
12380
12381         * ScrollableControl.cs: Removed unreachable code.
12382
12383 2004-09-08 06:45  jordi
12384
12385         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12386
12387 2004-09-08 01:00  jackson
12388
12389         * XplatUIX11.cs: Only run the timers when updating the message
12390           queue. This effectively gives X messages a higher priority then
12391           timer messages. Timers still need love though
12392
12393 2004-09-07 14:01  jackson
12394
12395         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12396           this for us and the handle is no longer valid.
12397
12398 2004-09-07 13:59  jackson
12399
12400         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12401           loop that manages to not crash. TODO: Add poll and cleanup timers
12402
12403 2004-09-07 11:12  jordi
12404
12405         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12406
12407 2004-09-07 03:40  jordi
12408
12409         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12410           fixes, methods, multiple links
12411
12412 2004-09-06 06:55  jordi
12413
12414         * Control.cs: Caches ClientRectangle rectangle value
12415
12416 2004-09-05 02:03  jordi
12417
12418         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12419           certain situations
12420
12421 2004-09-04 11:10  jordi
12422
12423         * Label.cs: Refresh when font changed
12424
12425 2004-09-02 16:24  pbartok
12426
12427         * Control.cs:
12428           - Added sanity check to creation of double buffer bitmap
12429
12430 2004-09-02 16:24  pbartok
12431
12432         * ButtonBase.cs:
12433           - Fixed selection of text color
12434           - Fixed handling of resize event; now properly recreates double
12435             buffering bitmap
12436           - Added missing assignment of TextAlignment
12437           - Added proper default for TextAlignment
12438
12439 2004-09-02 14:26  pbartok
12440
12441         * RadioButton.cs:
12442           - Added missing RadioButton.RadioButtonAccessibleObject class
12443
12444 2004-09-02 14:26  pbartok
12445
12446         * Control.cs:
12447           - Added missing Control.ControlAccessibleObject class
12448           - Started to implement Select()ion mechanisms, still very incomplete
12449
12450 2004-09-02 14:25  pbartok
12451
12452         * AccessibleObject.cs:
12453           - Added missing methods
12454
12455 2004-09-02 14:23  pbartok
12456
12457         * AccessibleNavigation.cs, AccessibleSelection.cs:
12458           - Initial check-in
12459
12460 2004-09-02 10:32  jordi
12461
12462         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12463           pool for pens, brushes, and hatchbruses
12464
12465 2004-09-01 15:30  jackson
12466
12467         * StatusBar.cs: Fix typo
12468
12469 2004-09-01 14:44  pbartok
12470
12471         * RadioButton.cs:
12472           - Fixed state
12473
12474 2004-09-01 14:39  pbartok
12475
12476         * Button.cs, RadioButton.cs:
12477           - Functional initial check-in
12478
12479 2004-09-01 14:01  pbartok
12480
12481         * CheckBox.cs:
12482           - Added missing default
12483           - Added missing region mark
12484
12485 2004-09-01 09:10  jordi
12486
12487         * Label.cs: fixes method signatures, new methods, events, fixes
12488           autosize
12489
12490 2004-09-01 07:19  jordi
12491
12492         * Control.cs: Init string variables with an empty object
12493
12494 2004-09-01 04:20  jordi
12495
12496         * Control.cs: fires OnFontChanged event
12497
12498 2004-08-31 20:07  pbartok
12499
12500         * ButtonBase.cs:
12501           - Enabled display of strings
12502
12503 2004-08-31 20:05  pbartok
12504
12505         * Form.cs:
12506           - Added (partial) implementation of DialogResult; rest needs to be
12507             implemented when the modal loop code is done
12508
12509 2004-08-31 19:55  pbartok
12510
12511         * CheckBox.cs:
12512           - Fixed to match the removal of the needs_redraw concept
12513
12514 2004-08-31 19:55  pbartok
12515
12516         * ButtonBase.cs:
12517           - Removed the rather odd split between 'needs redraw' and redrawing
12518           - Now handles the events that require regeneration (ambient
12519             properties and size)
12520
12521 2004-08-31 19:41  pbartok
12522
12523         * Control.cs:
12524           - Added firing of BackColorChanged event
12525           - Added TopLevelControl property
12526           - Fixed handling of WM_ERASEBKGRND message
12527
12528 2004-08-31 12:49  pbartok
12529
12530         * ButtonBase.cs:
12531           - Removed debug
12532           - Minor fixes
12533
12534 2004-08-31 12:48  pbartok
12535
12536         * CheckBox.cs:
12537           - Finished (famous last words)
12538
12539 2004-08-31 04:35  jordi
12540
12541         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12542           scrolling bugs, adds new methods
12543
12544 2004-08-30 14:42  pbartok
12545
12546         * CheckBox.cs:
12547           - Implemented CheckBox drawing code
12548
12549 2004-08-30 14:42  pbartok
12550
12551         * ButtonBase.cs:
12552           - Made Redraw() and CheckRedraw() virtual
12553           - Improved mouse up/down/move logic to properly track buttons
12554
12555 2004-08-30 09:44  pbartok
12556
12557         * CheckBox.cs:
12558           - Updated to fix broken build. Not complete yet.
12559
12560 2004-08-30 09:28  pbartok
12561
12562         * CheckState.cs:
12563           - Initial checkin
12564
12565 2004-08-30 09:17  pbartok
12566
12567         * Appearance.cs:
12568           - Initial check-in
12569
12570 2004-08-27 16:12  ravindra
12571
12572         * ToolBarButton.cs: Added TypeConverter attribute.
12573
12574 2004-08-27 16:07  ravindra
12575
12576         * ImageIndexConverter.cs: Implemented.
12577
12578 2004-08-27 14:17  pbartok
12579
12580         * Control.cs:
12581           - Removed unneeded stack vars
12582           - First attempt to fix sizing issues when layout is suspended
12583
12584 2004-08-25 15:35  jordi
12585
12586         * ScrollBar.cs: more fixes to scrollbar
12587
12588 2004-08-25 14:04  ravindra
12589
12590         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12591           Added the missing divider code and grip for ToolBar Control.
12592
12593 2004-08-25 13:20  pbartok
12594
12595         * Control.cs:
12596           - Control now properly passes the ambient background color to child
12597             controls
12598
12599 2004-08-25 13:20  jordi
12600
12601         * ScrollBar.cs: small bug fix regarding bar position
12602
12603 2004-08-25 12:33  pbartok
12604
12605         * Timer.cs:
12606           - Now only calls SetTimer or KillTimer if the enabled state has
12607           changed
12608
12609 2004-08-25 12:33  pbartok
12610
12611         * XplatUIWin32.cs:
12612           - Fixed timer handling, now seems to work
12613           - Improved error message for window creation
12614
12615 2004-08-25 12:32  pbartok
12616
12617         * Control.cs:
12618           - Fixed generation of MouseUp message
12619
12620 2004-08-25 12:29  jordi
12621
12622         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12623           and fixes for progressbar
12624
12625 2004-08-24 18:43  ravindra
12626
12627         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12628           in ToolBar control.
12629
12630 2004-08-24 17:15  pbartok
12631
12632         * Panel.cs:
12633           - Added #region
12634           - Added missing events
12635           - Alphabetized
12636
12637 2004-08-24 17:14  pbartok
12638
12639         * StatusBar.cs, PictureBox.cs:
12640           - Now uses Control's CreateParams
12641
12642 2004-08-24 16:36  pbartok
12643
12644         * XplatUIX11.cs:
12645           - Fixed background color handling
12646           - Fixed sending of enter/leave events on a grab
12647
12648 2004-08-24 16:35  pbartok
12649
12650         * X11Structs.cs:
12651           - Refined definitions for CrossingEvent
12652
12653 2004-08-24 12:37  jordi
12654
12655         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12656           formmating, methods signature, and adds missing events
12657
12658 2004-08-24 12:24  jordi
12659
12660         * Control.cs: fire OnEnabledChanged event
12661
12662 2004-08-24 11:17  pbartok
12663
12664         * XplatUIWin32.cs:
12665           - Implemented SetTimer() and KillTimer()
12666
12667 2004-08-24 11:16  pbartok
12668
12669         * XplatUIX11.cs:
12670           - Now uses Remove instead of Add to kill the timer
12671
12672 2004-08-24 10:16  jackson
12673
12674         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12675           picture boxes in the theme now. Draw picture box borders and obey
12676           sizing modes
12677
12678 2004-08-24 05:49  jackson
12679
12680         * Timer.cs: Remove top secret debugging code
12681
12682 2004-08-24 05:34  jackson
12683
12684         * PictureBox.cs: Temp hack to make picture boxes draw their full
12685           image
12686
12687 2004-08-24 05:29  jackson
12688
12689         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12690           XplatUIX11.cs: Move timers to the driver level. On X they are
12691           queued by the driver and checked on idle.
12692
12693 2004-08-24 01:07  jackson
12694
12695         * XplatUIX11.cs: Use a queue for async messages instead of passing
12696           them as ClientMessages since that was totally broken. Also simply
12697           check for events and return an idle message if none are found. This
12698           gives us an idle handler, and prevents deadlocking when no messages
12699           are in the queue.
12700
12701 2004-08-23 18:19  ravindra
12702
12703         * XplatUIWin32.cs: Removed the unwanted destructor.
12704
12705 2004-08-23 17:27  pbartok
12706
12707         * ButtonBase.cs:
12708           - Finishing touches. Works now, just needs some optimizations.
12709
12710 2004-08-23 16:53  jordi
12711
12712         * ScrollBar.cs: small fix
12713
12714 2004-08-23 16:45  pbartok
12715
12716         * Application.cs:
12717           - Removed debug output
12718           - Simplifications
12719
12720 2004-08-23 16:43  jordi
12721
12722         * ScrollBar.cs: [no log message]
12723
12724 2004-08-23 16:10  pbartok
12725
12726         * Form.cs:
12727           - Fixed handling of WM_CLOSE message
12728           - Removed debug output
12729
12730 2004-08-23 16:09  pbartok
12731
12732         * Application.cs:
12733           - Added handling of Idle event
12734           - Added handling of form closing
12735           - Fixed reporting of MessageLoop property
12736           - Removed some unneeded code, should provide a bit of a speedup
12737
12738 2004-08-23 15:22  pbartok
12739
12740         * Control.cs:
12741           - Added InitLayout() method
12742           - Added code to properly perform layout when Anchor or Dock property
12743             is changed
12744           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12745             LAMESPEC, tried to do it in a way that makes sense
12746
12747 2004-08-23 14:10  jordi
12748
12749         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12750           properties and methods
12751
12752 2004-08-23 13:55  pbartok
12753
12754         * Control.cs:
12755           - Properly fixed Jordi's last fix
12756           - Now uses Cursor's Position property instead of calling XplatUI
12757           directly
12758
12759 2004-08-23 13:44  jordi
12760
12761         * PaintEventHandler.cs: Adding missing attribute
12762
12763 2004-08-23 13:39  pbartok
12764
12765         * Cursor.cs:
12766           - Implemented Position property
12767
12768 2004-08-23 13:39  pbartok
12769
12770         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12771           - Added method to move mouse cursor
12772
12773 2004-08-23 13:39  pbartok
12774
12775         * XplatUIX11.cs:
12776           - Fixed setting of background color
12777           - Added method to move mouse cursor
12778
12779 2004-08-23 13:16  jordi
12780
12781         * Control.cs: avoids null exception
12782
12783 2004-08-22 17:46  jackson
12784
12785         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12786           PictureBox
12787
12788 2004-08-22 17:40  jackson
12789
12790         * XplatUIX11.cs: Add some missing locks
12791
12792 2004-08-22 15:10  pbartok
12793
12794         * Control.cs, Form.cs:
12795           - Removed OverlappedWindow style from Control, instead it's default
12796             now is child
12797           - Made form windows OverlappedWindow by default
12798
12799 2004-08-22 13:34  jackson
12800
12801         * ScrollBar.cs: Update the position through the Value property so
12802           the OnValueChanged event is raised.
12803
12804 2004-08-22 12:04  pbartok
12805
12806         * SWF.csproj:
12807           - Added Cursor.cs and UserControl.cs
12808
12809 2004-08-22 12:03  pbartok
12810
12811         * Cursor.cs:
12812           - Started implementation, not usable yet
12813
12814 2004-08-22 12:00  pbartok
12815
12816         * UserControl.cs:
12817           - Implemented UserControl (complete)
12818
12819 2004-08-21 19:20  ravindra
12820
12821         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12822
12823 2004-08-21 18:49  ravindra
12824
12825         * ToolBar.cs: Probably this completes the missing attributes in
12826           toolbar control.
12827
12828 2004-08-21 18:03  ravindra
12829
12830         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12831           Fixed toolbar control signatures.
12832
12833 2004-08-21 16:32  pbartok
12834
12835         * LinkLabel.cs:
12836           - Signature Fixes
12837
12838 2004-08-21 16:30  pbartok
12839
12840         * Label.cs:
12841           - Signature fixes
12842
12843 2004-08-21 16:19  pbartok
12844
12845         * Control.cs, Label.cs:
12846           - Signature fixes
12847
12848 2004-08-21 15:57  pbartok
12849
12850         * ButtonBase.cs:
12851           - Added loads of debug output for development
12852           - Fixed typo in method name
12853
12854 2004-08-21 15:52  pbartok
12855
12856         * ToolBarButtonClickEventArgs.cs:
12857           - Added missing base class
12858
12859 2004-08-21 14:53  pbartok
12860
12861         * Control.cs:
12862           - Updated to match new GrabWindow signature
12863
12864 2004-08-21 14:51  pbartok
12865
12866         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12867           - Added method to get default display size
12868
12869 2004-08-21 14:23  pbartok
12870
12871         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12872           - Added method to query current grab state
12873           - Added argument to allow confining a grab to a window
12874
12875 2004-08-21 14:22  pbartok
12876
12877         * Keys.cs:
12878           - Added [Flags] attribute so that modifiers can be used in bitwise
12879           ops
12880
12881 2004-08-21 14:21  pbartok
12882
12883         * TrackBar.cs, ScrollBar.cs:
12884           - Replaced direct XplatUI calls with their Control counterpart
12885
12886 2004-08-21 13:32  pbartok
12887
12888         * Control.cs:
12889           - Implemented Created property
12890
12891 2004-08-21 13:28  pbartok
12892
12893         * Control.cs:
12894           - Implemented ContainsFocus
12895
12896 2004-08-21 13:26  pbartok
12897
12898         * Control.cs:
12899           - Implemented CausesValidation
12900
12901 2004-08-21 13:21  pbartok
12902
12903         * Control.cs:
12904           - Implemented CanFocus
12905           - Implemented CanSelect
12906           - Implemented Capture
12907
12908 2004-08-21 12:35  pbartok
12909
12910         * XplatUIWin32.cs:
12911           - Fixed bug with Async message handling
12912           - Implemented getting the ModifierKeys
12913
12914 2004-08-21 12:32  jackson
12915
12916         * AsyncMethodResult.cs: Make sure we have the mutex before we
12917           release it. Fixes BeginInvoke on windows
12918
12919 2004-08-21 11:31  pbartok
12920
12921         * XplatUIWin32.cs, XplatUIX11.cs:
12922           - Drivers now return proper mouse state
12923
12924 2004-08-21 10:54  jackson
12925
12926         * Control.cs: Implement EndInvoke
12927
12928 2004-08-21 10:48  jackson
12929
12930         * Timer.cs: Remove unneeded finalizer
12931
12932 2004-08-20 19:52  ravindra
12933
12934         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12935           in mouse event handling in the ToolBar control.
12936
12937 2004-08-20 19:50  ravindra
12938
12939         * ImageList.cs: Changed draw method to use the arguments passed in
12940           to draw the image.
12941
12942 2004-08-20 18:58  pbartok
12943
12944         * XplatUIStructs.cs:
12945           - Added private message for async communication
12946
12947 2004-08-20 17:38  ravindra
12948
12949         * Control.cs: Made RightToLeft property virtual and removed a
12950           Console.WriteLine.
12951
12952 2004-08-20 14:39  jordi
12953
12954         * ThemeGtk.cs: use style_attach
12955
12956 2004-08-20 14:39  pbartok
12957
12958         * XplatUIWin32.cs:
12959           - Added jackson's Async code from X11 to Win32
12960
12961 2004-08-20 14:09  pbartok
12962
12963         * SWF.csproj:
12964           - Added all new files
12965
12966 2004-08-20 14:09  pbartok
12967
12968         * Control.cs:
12969           - Added call to set window background color
12970
12971 2004-08-20 14:03  pbartok
12972
12973         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12974           - Added method for setting the window background
12975
12976 2004-08-20 14:02  pbartok
12977
12978         * XplatUIWin32.cs:
12979           - Added method for setting the background color
12980           - Added handling for erasing the window background
12981
12982 2004-08-20 13:45  jordi
12983
12984         * TrackBar.cs: fixes timer, new properties and methods
12985
12986 2004-08-20 13:34  jackson
12987
12988         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12989           correct thread
12990
12991 2004-08-20 13:22  jackson
12992
12993         * Timer.cs: Timer Tick events are now handed through Controls Async
12994           mechanism so the callbacks are executed in the same thread as X
12995
12996 2004-08-20 13:19  jackson
12997
12998         * XplatUIDriver.cs: Expose functionality to send async messages
12999           through the driver
13000
13001 2004-08-20 13:18  jackson
13002
13003         * Control.cs: Implement Begininvoke
13004
13005 2004-08-20 13:14  jackson
13006
13007         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13008           messages through the driver
13009
13010 2004-08-20 13:12  jackson
13011
13012         * XplatUIX11.cs: Lock before all X operations. Also added Async
13013           method functionality through XSendEvent
13014
13015 2004-08-20 13:11  jackson
13016
13017         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13018           This will screw up on 64 bit systems)
13019
13020 2004-08-20 13:10  jackson
13021
13022         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13023           Async messages through X/Win32
13024
13025 2004-08-19 19:39  pbartok
13026
13027         * XplatUIX11.cs:
13028           - Updated code to match new HandleData.DeviceContext type
13029
13030 2004-08-19 19:38  pbartok
13031
13032         * HandleData.cs:
13033           - Made DeviceContext a generic object to allow usage from various
13034           drivers
13035           - Added support for queueing Windows messages
13036
13037 2004-08-19 19:37  pbartok
13038
13039         * XplatUIWin32.cs:
13040           - Added generation of MouseEnter, MouseLeave and MouseHover events
13041           - Added cleanup on EndPaint
13042
13043 2004-08-19 19:17  pbartok
13044
13045         * Control.cs:
13046           - Added handling of WM_MOUSEHOVER
13047           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
13048           code
13049
13050 2004-08-19 18:55  jordi
13051
13052         * ThemeGtk.cs: fixes button order
13053
13054 2004-08-19 18:12  jordi
13055
13056         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
13057
13058 2004-08-19 17:09  pbartok
13059
13060         * Control.cs:
13061           - Added Right property
13062           - Added RightToLeft property
13063
13064 2004-08-19 16:27  jordi
13065
13066         * ThemeGtk.cs: experimental GTK theme support
13067
13068 2004-08-19 16:26  jordi
13069
13070         * ITheme.cs, Theme.cs: move themes from an interface to a class
13071
13072 2004-08-19 16:25  jordi
13073
13074         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
13075           theme enhancaments
13076
13077 2004-08-19 16:04  pbartok
13078
13079         * XplatUIX11.cs:
13080           - Added colormap basics
13081           - Added a way to re-initialize with a different display handle
13082           - Fixed setting of the window background color
13083           - Added various X11 imports related to colors and colormaps
13084
13085 2004-08-19 15:51  pbartok
13086
13087         * X11Structs.cs:
13088           - Removed packing hints (Paolo suggested this a while back)
13089           - fixed colormap type
13090           - Added default Atom types
13091           - Added Screen and color structs and enums
13092
13093 2004-08-19 15:39  pbartok
13094
13095         * ImageList.cs:
13096           - Added missing Draw() method
13097           - Added missing RecreateHandle event
13098
13099 2004-08-19 15:30  pbartok
13100
13101         * Form.cs:
13102           - Added handling of WM_CLOSE
13103
13104 2004-08-18 13:16  jordi
13105
13106         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13107           a table
13108
13109 2004-08-18 09:56  jordi
13110
13111         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13112
13113 2004-08-17 15:31  ravindra
13114
13115         * SWF.csproj: Updated project.
13116
13117 2004-08-17 15:25  pbartok
13118
13119         * Control.cs:
13120           - Drawing improvement; don't call UpdateBounds if we are not visible
13121             (or have been minimized)
13122
13123 2004-08-17 15:24  pbartok
13124
13125         * XplatUIWin32.cs:
13126           - Finished IsVisible
13127           - Added Win32GetWindowPlacement
13128
13129 2004-08-17 15:08  jackson
13130
13131         * Panel.cs: Initial checkin of the Panel
13132
13133 2004-08-17 14:25  pbartok
13134
13135         * Control.cs:
13136           - Fixed broken handling of default window sizes
13137
13138 2004-08-17 13:29  jackson
13139
13140         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13141           has a large startup time.
13142
13143 2004-08-17 10:25  jackson
13144
13145         * HandleData.cs: union areas properly
13146
13147 2004-08-17 10:12  jackson
13148
13149         * HandleData.cs: union areas properly
13150
13151 2004-08-16 20:00  ravindra
13152
13153         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13154
13155 2004-08-16 18:48  ravindra
13156
13157         * ToolBar.cs: Added attributes.
13158
13159 2004-08-16 17:17  ravindra
13160
13161         * SWF.csproj: Updated project.
13162
13163 2004-08-16 17:16  jackson
13164
13165         * XplatUIX11.cs: Check for more expose events before sending a
13166           WM_PAINT so they can all be grouped together. This makes dragging a
13167           window across another window redraw in a sane way.
13168
13169 2004-08-16 15:47  pbartok
13170
13171         * Control.cs:
13172           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13173             support OnMouseEnter/Leave()
13174           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13175             exposure handling
13176
13177 2004-08-16 15:46  pbartok
13178
13179         * XplatUIStructs.cs, XplatUIX11.cs:
13180           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13181           OnMouseEnter/Leave()
13182
13183 2004-08-16 15:34  jackson
13184
13185         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13186           sure messages get the message field set to WM_NULL if they are not
13187           handled.
13188
13189 2004-08-16 15:24  jackson
13190
13191         * HandleData.cs: HandleData is used for storing message information
13192           for window handles
13193
13194 2004-08-15 17:23  ravindra
13195
13196         * ColorDepth.cs: Added attribute.
13197
13198 2004-08-15 17:23  ravindra
13199
13200         * SWF.csproj: Updated project for ToolBar Control.
13201
13202 2004-08-15 17:20  ravindra
13203
13204         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13205           control and also dos2unix format.
13206
13207 2004-08-15 17:13  ravindra
13208
13209         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13210           ToolBarButtonClickEventArgs.cs,
13211           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13212           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13213
13214 2004-08-15 15:31  pbartok
13215
13216         * ButtonBase.cs:
13217           - First (mostly) working version
13218
13219 2004-08-13 16:15  pbartok
13220
13221         * Control.cs:
13222           - Fixed Anchor default
13223
13224 2004-08-13 15:43  pbartok
13225
13226         * Control.cs:
13227           - Changed GetCursorPos signature
13228
13229 2004-08-13 15:42  pbartok
13230
13231         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13232           - Changed signature for GetCursorPos
13233
13234 2004-08-13 15:25  pbartok
13235
13236         * XplatUIX11.cs:
13237           - Cleanup
13238           - Fixed resizing/exposure handling
13239
13240 2004-08-13 15:22  jordi
13241
13242         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13243           with tickposition
13244
13245 2004-08-13 14:55  jordi
13246
13247         * TrackBar.cs: change from wndproc to events
13248
13249 2004-08-13 13:00  jordi
13250
13251         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13252           XplatUIX11.cs: implements PointToClient (ScreenToClient)
13253
13254 2004-08-13 12:53  pbartok
13255
13256         * XplatUIWin32.cs:
13257           - Changed GetWindowPos to also provide client area size
13258           - Fixed broken prototypes for several win32 functions
13259
13260 2004-08-13 12:53  pbartok
13261
13262         * XplatUI.cs, XplatUIDriver.cs:
13263           - Changed GetWindowPos to also provide client area size
13264
13265 2004-08-13 12:52  pbartok
13266
13267         * XplatUIX11.cs:
13268           - Added generation of WM_POSCHANGED
13269           - Changed GetWindowPos to also provide client area size
13270
13271 2004-08-13 12:52  pbartok
13272
13273         * Control.cs:
13274           - Added Dispose() and destructor
13275           - Fixed resizing and bounds calculation
13276           - Fixed Layout
13277           - Added memory savings for invisible windows
13278
13279 2004-08-13 12:46  jordi
13280
13281         * TrackBar.cs: adds timer and grap window
13282
13283 2004-08-13 10:25  jackson
13284
13285         * Timer.cs: SWF Timer
13286
13287 2004-08-12 16:59  pbartok
13288
13289         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13290           - Implemented method to get current mouse position
13291
13292 2004-08-12 14:29  jordi
13293
13294         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13295           enhancement, fix mouse problems, highli thumb, etc
13296
13297 2004-08-12 13:31  pbartok
13298
13299         * Control.cs:
13300           - Fixed Anchoring bugs
13301
13302 2004-08-12 13:01  jackson
13303
13304         * StatusBar.cs: Don't forget things
13305
13306 2004-08-12 12:54  jackson
13307
13308         * ThemeWin32Classic.cs: Handle owner draw status bars
13309
13310 2004-08-12 12:54  jackson
13311
13312         * StatusBar.cs: Implement missing properties, events, and methods.
13313           Handle mouse clicking
13314
13315 2004-08-12 10:19  jackson
13316
13317         * StatusBarPanelClickEventArgs.cs,
13318           StatusBarPanelClickEventHandler.cs: Classes for handling status
13319           bar panel click events
13320
13321 2004-08-12 10:10  jackson
13322
13323         * Control.cs: Add missing properties
13324
13325 2004-08-12 09:46  pbartok
13326
13327         * BindingsManagerBase.cs:
13328           - Name changed to BindingManagerBase.cs
13329
13330 2004-08-12 09:25  jordi
13331
13332         * ScrollableControl.cs: calls ctrlbase instead of exeception
13333
13334 2004-08-11 16:28  pbartok
13335
13336         * InputLanguageChangingEventArgs.cs:
13337           - Never check in before compiling. Fixes the last check-in
13338
13339 2004-08-11 16:26  pbartok
13340
13341         * InputLanguageChangingEventArgs.cs:
13342           - More signature fixes
13343
13344 2004-08-11 16:20  pbartok
13345
13346         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13347           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13348           ImageListStreamer.cs, InputLanguage.cs,
13349           InputLanguageChangedEventArgs.cs,
13350           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13351           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13352           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13353           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13354           - Signature fixes
13355
13356 2004-08-11 16:16  pbartok
13357
13358         * Application.cs:
13359           - Fixed Signature
13360           - Added .Net 1.1 method
13361
13362 2004-08-11 15:25  pbartok
13363
13364         * SWF.csproj:
13365           - Fixed BindingManagerBase.cs filename
13366
13367 2004-08-11 15:22  pbartok
13368
13369         * BindingManagerBase.cs:
13370           - Was checked in with wrong filename
13371
13372 2004-08-11 14:50  pbartok
13373
13374         * SWF.csproj:
13375           - Updated
13376
13377 2004-08-11 13:41  jordi
13378
13379         * XplatUIWin32.cs: Fixes ClientRect
13380
13381 2004-08-11 13:19  pbartok
13382
13383         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13384           XplatUIX11.cs:
13385           - We had SetWindowPos and MoveWindow to set window positions and
13386             size, removed MoveWindow. We have GetWindowPos, so it made sense to
13387             keep SetWindowPos as matching counterpart
13388           - Added some X11 sanity checking
13389
13390 2004-08-11 12:59  pbartok
13391
13392         * Control.cs:
13393           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13394             (It seems that SetBounds is just a front for SetBoundsCore and
13395              SetBoundsCore updates the underlying window system and
13396              UpdateBounds is responsible for updating the variables associated
13397              with the Control and sending the events)
13398           - Major cleanup of Size handling; we now have two sizes, client_size
13399             and bounds. Bounds defines the window with decorations, client_size
13400             without them.
13401
13402 2004-08-11 12:55  pbartok
13403
13404         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13405           - Added method to calculate difference between decorated window and
13406             raw client area
13407
13408 2004-08-11 12:54  pbartok
13409
13410         * Label.cs:
13411           - Forcing redraw on resize
13412
13413 2004-08-11 11:43  pbartok
13414
13415         * ImageList.cs:
13416           - Removed disposing of the actual images when the list is disposed
13417
13418 2004-08-11 09:13  pbartok
13419
13420         * Control.cs:
13421           - Now properly reparents windows
13422
13423 2004-08-11 08:37  pbartok
13424
13425         * Control.cs:
13426           - Duh!
13427
13428 2004-08-11 07:47  pbartok
13429
13430         * Control.cs:
13431           - Rewrote the collection stuff. Might not be as fast now, not
13432             keeping the number of children around and accessible directly, but
13433             it's more straightforward
13434
13435 2004-08-11 07:44  pbartok
13436
13437         * AccessibleObject.cs:
13438           - Fixed to match ControlCollection rewrite
13439
13440 2004-08-11 07:43  pbartok
13441
13442         * ImageList.cs:
13443           - Added missing creation of the collection list
13444
13445 2004-08-10 20:08  jackson
13446
13447         * StatusBar.cs: Get the paint message from WndProc
13448
13449 2004-08-10 19:31  jackson
13450
13451         * ThemeWin32Classic.cs: Create Brushes as little as possible
13452
13453 2004-08-10 19:20  jackson
13454
13455         * UICues.cs: Add Flags attribute
13456
13457 2004-08-10 19:19  jackson
13458
13459         * StatusBarPanel.cs: Signature cleanup
13460
13461 2004-08-10 19:10  jackson
13462
13463         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13464           Initial implementation of status bar item drawing
13465
13466 2004-08-10 17:27  jordi
13467
13468         * TrackBar.cs: add missing methods, properties, and restructure to
13469           hide extra ones
13470
13471 2004-08-10 16:24  jackson
13472
13473         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13474           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13475           attribute
13476
13477 2004-08-10 13:21  jordi
13478
13479         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13480           enhancements and standarize on win colors defaults
13481
13482 2004-08-10 12:52  jackson
13483
13484         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13485           ThemeWin32Classic.cs: Implement DrawItem functionality
13486
13487 2004-08-10 12:47  jordi
13488
13489         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13490
13491 2004-08-10 12:32  jordi
13492
13493         * Control.cs: throw ontextchange event
13494
13495 2004-08-10 11:43  pbartok
13496
13497         * Control.cs:
13498           - Added more to the still unfinished Dock/Anchor layout code
13499
13500 2004-08-10 11:39  pbartok
13501
13502         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13503           - Added GetWindowPos method
13504
13505 2004-08-10 11:36  pbartok
13506
13507         * XplatUIWin32.cs:
13508           - Implemented several methods
13509
13510 2004-08-10 09:47  jackson
13511
13512         * TrackBar.cs: Allow control to handle buffering
13513
13514 2004-08-10 09:41  jackson
13515
13516         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13517
13518 2004-08-10 09:24  jackson
13519
13520         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13521
13522 2004-08-10 09:09  jackson
13523
13524         * StatusBar.cs: Let Control handle all the buffering.
13525
13526 2004-08-10 09:08  jackson
13527
13528         * Control.cs: Control will now handle the buffering code, so each
13529           control does not have to implement this.
13530
13531 2004-08-10 08:34  jackson
13532
13533         * XplatUIDriver.cs: Use default colors from the theme
13534
13535 2004-08-09 17:12  pbartok
13536
13537         * ImageList.cs:
13538           - Fixed several bugs Ravindra pointed out
13539
13540 2004-08-09 16:11  pbartok
13541
13542         * Control.cs:
13543           - Added incomplete dock layout code
13544           - Added support for mouse wheel
13545
13546 2004-08-09 16:09  pbartok
13547
13548         * XplatUIX11.cs:
13549           - Added handling for middle and right mousebutton
13550           - Added handling for mouse wheel
13551           - Added handling for key state and mouse state and position
13552           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13553           messages
13554
13555 2004-08-09 15:40  jackson
13556
13557         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13558           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13559           checkin
13560
13561 2004-08-09 15:37  jackson
13562
13563         * StatusBar.cs: Initial implementation of StatusBar
13564
13565 2004-08-09 15:36  jackson
13566
13567         * ITheme.cs: Add support for drawing status bar and getting status
13568           bar item sizes
13569
13570 2004-08-09 15:35  pbartok
13571
13572         * MouseButtons.cs:
13573           - Fixed values
13574
13575 2004-08-09 15:34  jackson
13576
13577         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13578           status bar item sizes
13579
13580 2004-08-09 15:21  jackson
13581
13582         * ThemeWin32Classic.cs: Use known colors for default control
13583           colours
13584
13585 2004-08-09 15:12  jackson
13586
13587         * ThemeWin32Classic.cs: Make the default font static, it is static
13588           in control so this doesn't change functionality and creating fonts
13589           is sloooooow.
13590
13591 2004-08-09 14:56  pbartok
13592
13593         * X11Structs.cs:
13594           - Added GrabMode enum
13595
13596 2004-08-09 14:55  pbartok
13597
13598         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13599           - Removed Run method, was only required for initial development
13600
13601 2004-08-09 14:51  pbartok
13602
13603         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13604           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13605           capture
13606
13607 2004-08-09 13:48  pbartok
13608
13609         * XplatUIX11.cs:
13610           - Fixed default sizing for child windows
13611
13612 2004-08-09 12:56  pbartok
13613
13614         * XplatUIX11.cs:
13615           - Added generation of WM_DESTROY message
13616           - Added handling of window manager induced shutdown
13617
13618 2004-08-09 11:31  jackson
13619
13620         * ThemeWin32Classic.cs: New names for control properties
13621
13622 2004-08-09 11:25  jackson
13623
13624         * Control.cs: Use new color names
13625
13626 2004-08-09 11:02  jackson
13627
13628         * XplatUI.cs: Get default window properties from the theme
13629
13630 2004-08-09 11:01  jackson
13631
13632         * ITheme.cs: The theme engine now controls default window
13633           properties
13634
13635 2004-08-09 11:00  jackson
13636
13637         * ThemeWin32Classic.cs: Add default window color properties
13638
13639 2004-08-09 10:17  jackson
13640
13641         * ThemeWin32Classic.cs: Use correct default back color
13642
13643 2004-08-09 10:05  jackson
13644
13645         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13646           the theme now.
13647
13648 2004-08-09 09:56  jackson
13649
13650         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13651
13652 2004-08-09 09:54  jackson
13653
13654         * Control.cs: Get default properties from the theme.
13655
13656 2004-08-09 09:53  jackson
13657
13658         * ITheme.cs: Themes now handle default control properties
13659
13660 2004-08-09 09:53  jackson
13661
13662         * ThemeWin32Classic.cs: Themes now handle default control
13663           properties so coloring will be consistent
13664
13665 2004-08-08 16:54  jordi
13666
13667         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13668
13669 2004-08-08 15:08  jordi
13670
13671         * XplatUIX11.cs: fixes keyboard crash
13672
13673 2004-08-08 13:47  jordi
13674
13675         * Label.cs: add cvs header info
13676
13677 2004-08-08 12:09  jackson
13678
13679         * ThemeWin32Classic.cs: Add pen_buttonface
13680
13681 2004-08-08 11:52  jordi
13682
13683         * Label.cs, LinkLabel.cs: [no log message]
13684
13685 2004-08-08 11:34  jordi
13686
13687         * ThemeWin32Classic.cs: Use Windows Standard Colours
13688
13689 2004-08-07 17:32  jordi
13690
13691         * TrackBar.cs: throw exceptions of invalid enums values
13692
13693 2004-08-07 17:31  jordi
13694
13695         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13696           draw method name
13697
13698 2004-08-07 16:56  jackson
13699
13700         * HorizontalAlignment.cs: Initial checkin
13701
13702 2004-08-07 13:16  jordi
13703
13704         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13705           methods
13706
13707 2004-08-07 13:05  jordi
13708
13709         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13710           GetSysColor defines
13711
13712 2004-08-06 18:01  pbartok
13713
13714         * ThemeWin32Classic.cs:
13715           - Fixed some rounding issues with float/int
13716
13717 2004-08-06 18:00  jackson
13718
13719         * DockStyle.cs, AnchorStyles.cs:
13720
13721                   Add flags and serializable attributes.
13722
13723 2004-08-06 17:46  pbartok
13724
13725         * XplatUIX11.cs:
13726           - Implemented GetParent
13727
13728 2004-08-06 17:18  pbartok
13729
13730         * TrackBar.cs:
13731           - Fixed some rounding issues with float/int
13732
13733 2004-08-06 17:17  pbartok
13734
13735         * X11Structs.cs, XplatUIX11.cs:
13736           - Fixed Refresh and Invalidate
13737
13738 2004-08-06 15:30  pbartok
13739
13740         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13741           - Fixed recursive loop when resizing
13742           - Improved/fixed redrawing on expose messages
13743
13744 2004-08-06 09:53  jordi
13745
13746         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13747           keyboard navigation
13748
13749 2004-08-06 08:02  pbartok
13750
13751         * X11Structs.cs, XplatUIX11.cs:
13752           - Fixed reparenting
13753           - Fixed window border creation
13754
13755 2004-08-05 15:38  pbartok
13756
13757         * XplatUIX11.cs:
13758           - Attempted fix for reparenting problems
13759
13760 2004-08-04 15:14  pbartok
13761
13762         * Control.cs:
13763           - Fixed Invalidation bug (calculated wrong client area)
13764           - Added ClientSize setter
13765
13766 2004-08-04 15:13  pbartok
13767
13768         * Form.cs:
13769           - Added AutoScale properties
13770
13771 2004-08-04 15:13  pbartok
13772
13773         * SWF.csproj:
13774           - Added latest files
13775
13776 2004-08-04 14:11  pbartok
13777
13778         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13779           XplatUIX11.cs:
13780           - Added Invalidate handling
13781
13782 2004-08-03 17:09  jordi
13783
13784         * XplatUIDriver.cs: fixes spelling mistake
13785
13786 2004-07-27 09:53  jordi
13787
13788         * TrackBar.cs: fixes trackbar events, def classname, methods
13789           signature
13790
13791 2004-07-27 09:29  jordi
13792
13793         * ScrollBar.cs: fixes scrollbar events
13794
13795 2004-07-27 04:38  jordi
13796
13797         * Control.cs: changes to be able to run winforms samples
13798
13799 2004-07-26 11:42  jordi
13800
13801         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13802           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13803
13804 2004-07-26 05:41  jordi
13805
13806         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13807           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13808           implementation
13809
13810 2004-07-22 09:22  jordi
13811
13812         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13813           check link overlapping, implement events, and fixes
13814
13815 2004-07-21 10:28  jordi
13816
13817         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13818
13819 2004-07-21 10:19  jordi
13820
13821         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13822           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13823           LinkLabelLinkClickedEventArgs.cs,
13824           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13825           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13826           implementation
13827
13828 2004-07-19 13:09  jordi
13829
13830         * Control.cs, Label.cs: label control re-written: added missing
13831           functionlity, events, and properties
13832
13833 2004-07-19 10:49  jordi
13834
13835         * Control.cs: fixes SetBounds logic
13836
13837 2004-07-19 01:29  jordi
13838
13839         * Control.cs: Call RefreshWindow only if the window has created
13840
13841 2004-07-15 14:05  pbartok
13842
13843         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13844           - Implemented ImageList and ImageList.ImageCollection classes
13845           - Added ColorDepth enumeration
13846           - Updated SWF VS.Net project
13847
13848 2004-07-15 11:06  jordi
13849
13850         * XplatUIStructs.cs: added MsgButons enum
13851
13852 2004-07-15 11:03  jordi
13853
13854         * Control.cs: added basic mouse handeling events
13855
13856 2004-07-15 03:38  jordi
13857
13858         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13859           Vertical TrackBar control implementation
13860
13861 2004-07-13 09:33  jordi
13862
13863         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13864
13865 2004-07-13 09:31  jordi
13866
13867         * Control.cs, Form.cs: commit: new properties and fixes form size
13868           problems
13869
13870 2004-07-09 14:13  miguel
13871
13872         * ProgressBar.cs: Spelling
13873
13874 2004-07-09 11:25  pbartok
13875
13876         * ProgressBar.cs:
13877           - Removed usage of Rectangle for drawing. Miguel pointed out it's
13878           faster
13879
13880 2004-07-09 11:17  miguel
13881
13882         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
13883
13884                 * ProgressBar.cs: Fixed spelling for `block'
13885
13886                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13887                 style guidelines.
13888
13889                 Avoid using the += on rect.X, that exposed a bug in the compiler.
13890
13891 2004-07-08 23:21  pbartok
13892
13893         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13894           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13895           BaseCollection.cs, Binding.cs, BindingContext.cs,
13896           BindingMemberInfo.cs, BindingsCollection.cs,
13897           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13898           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13899           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13900           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13901           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13902           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13903           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13904           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13905           FrameStyle.cs, GiveFeedbackEventArgs.cs,
13906           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13907           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13908           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13909           InputLanguageChangedEventArgs.cs,
13910           InputLanguageChangedEventHandler.cs,
13911           InputLanguageChangingEventArgs.cs,
13912           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13913           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13914           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13915           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13916           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13917           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13918           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13919           QueryAccessibilityHelpEventArgs.cs,
13920           QueryAccessibilityHelpEventHandler.cs,
13921           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13922           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13923           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13924           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13925           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13926           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13927           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13928           XplatUIX11.cs, lang.cs:
13929           - Initial check-in
13930