2006-06-01 Peter Dennis Bartok <pbartok@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
2
3         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
4           SendMessage directly calling window procedures, which in turn might
5           call SetFocus()
6
7 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
8
9         * Control.cs: Don't handle WM_SETFOCUS if the same window already
10           has focus (works around X11 sending a FocusIn after our SetFocus)
11         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
12
13 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
14
15         * Mime.cs: Fix for the NET_2_0 build.
16           NameValueCollection needs StringComparer now.
17
18 2006-05-31  Chris Toshok  <toshok@ximian.com>
19
20         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
21         return (via an out parameter) the starting X of the column.
22         (UpdateVisibleColumn): track change to FromPixelToColumn.
23         (HitTest): add a ColumnResize case here.
24         (DrawResizeLine): new function, probably poorly named.
25
26         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
27         only need to keep one reference.
28         (set_ListManager): same.
29         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
30         Also, add support for HitTestType.ColumnResize.
31         (OnMouseMove): add column resize behavior here, and change the
32         cursor to the correct one as we move around the datagrid.
33         (OnMouseUp): terminate the column resize if we're resizing.
34         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
35         for the current cell.
36         (ConnectListManagerEvents): use cached_currencymgr.
37         (DisconnectListManagerEvents): fill this in, using
38         cached_currencymgr.
39         (SetCurrentCell): remove cached_currencymgr_events handling.
40         (SetDataMember): only call DisconnectListManagerEvents if
41         cached_currencymgr is != null.
42         (SetDataSource): same.
43         (OnListManagerCurrentChanged): cached_currencymgr_events ->
44         cached_currencymgr.
45
46 2006-05-31  Jackson Harper  <jackson@ximian.com>
47
48         * BindingManagerBase.cs: Remove somedebug code that creeped into
49         SVN.
50         * TreeNode.cs: We get the indent level dynamically right now, so
51         don't track it as a member.
52         * TreeNodeCollection.cs: Make sure all nodes added to the list
53         have parents, treeviews/topnodes setup properly.
54         - Don't attempt to track indent level.
55
56 2006-05-30  Jackson Harper  <jackson@ximian.com>
57
58         * BindingContext.cs: Create the currency manager tables here.
59         This allows us to more easily create null tables (when bad data
60         members are used), and more easily create related currency
61         managers.
62         * CurrencyManager.cs: All the table creation stuff is done by the
63         binding context now.
64         - Current should throw an exception if listposition is -1.
65         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
66         been bound yet.
67
68 2006-05-30  Mike Kestner  <mkestner@novell.com>
69
70         * ListView.cs: allow reexpansion of zero-width column headers.
71         Fixes #78528.
72
73 2006-05-28  Chris Toshok  <toshok@ximian.com>
74
75         * CurrencyManager.cs (get_Current): after the late binding
76         listposition = -1 fix, we need to guard against it here and return
77         null, otherwise we raise an exception (which is swallowed
78         elsewhere, and breaks datagrid databinding.)
79
80 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
81
82         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
83           than WM_SYSKEY, don't throw if get something unexpected (#78507)
84
85 2006-05-26  Jackson Harper  <jackson@ximian.com>
86
87         * ControlPaint.cs:
88         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
89         values, it's faster and it's all we care about (we don't care if
90         the names aren't equal).
91         * KeyboardLayouts.cs: Eliminate some dead code.
92         - Lazy init things
93         * X11Keyboard.cs: Lazy init keyboard detection.
94         - Cleanup access modifiers a little.
95
96 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
97
98         * XplatUIX11.cs: Once again, attempting to get layout just right.
99
100 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
101
102         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
103           the sizes of each link section, that will result in sizes that
104           match DrawString's layout (Fixes #78391)
105
106 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
107
108         * FileDialog.cs: If AddExtension property is true autocomplete the
109           extensions in SaveFileDialog correctly. Fixes bug #78453.
110           Set MyNetwork and MyComputer to "C:\" for windows. This should
111           fix part 8 of bug #78446 for now.
112
113 2006-05-26  Chris Toshok  <toshok@ximian.com>
114
115         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
116         invalidate the current row header if we need to, but presumably
117         we'll invalidate the row corrsponding to the bounds or
118         editingControl.
119         (GridHScrolled): switch back to this method, as it's part of the
120         public api.  *sigh*.
121         (GridVScrolled): same.
122         (OnMouseWheel): hack up something that more or less works.  Call
123         GridHScrolled/GridVScrolled directly, instead of duplicating much
124         of their code here.
125         (EnsureCellVisibility): reinstate a bunch of this code, since we
126         can't just set the scrollbar Value and expect to do all the work
127         in the ValueChanged handler.  Also, Call Update() after scrolling
128         in one direction so the other XplatX11.ScrollWindow call has the
129         proper stuff in the proper places.
130         (EditCell): set is_editing to true before calling .Edit.
131
132         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
133         don't bother comparing first.
134         (OnKeyPress): call grid.ColumnStartedEditing before calling
135         base.OnKeyPress.  this will set is_changing and invalidate the row
136         header if necessary.
137         (ProcessKeyMessage): for WM_CHAR messages, call
138         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
139         and WM_KEYDOWN.
140         
141         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
142         it's done in the DataGrid.
143         (NextState): call grid.ColumnStartedEditing, which takes care of
144         invalidating the row header (and setting is_changing).
145
146         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
147         here.  it's done in the DataGrid.
148
149 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
150
151         * Control.cs: allow changing the cursor when the mouse position is
152         out of bounds but Capture is set.
153         * LinkLabel.cs: handle the case when the mouse button is pressed on the
154         linklabel but released somewhere else.
155
156 2006-05-25  Jackson Harper  <jackson@ximian.com>
157
158         * TreeView.cs: When we get focus if there is no selected node make
159         it the top node
160         - Remove some uneeded setup code from Draw.
161         * TreeNodeCollection.cs: If the tree doesn't have a top node when
162         a new node is inserted make the new node the top.
163         * XplatUIX11.cs:
164         * Timer.cs: Use Utc time so that no local time zone stuff needs to
165         be used (should be faster).
166         
167 2006-05-25  Chris Toshok  <toshok@ximian.com>
168
169         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
170         problem with the last commit.
171
172 2006-05-25  Chris Toshok  <toshok@ximian.com>
173
174         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
175         need the invalidate call here, while scrolling right-to-left via
176         the left arrow key (i.e. moving the editing cell while scrolling).
177
178         * DataGrid.cs (.ctor): remove the initialization of
179         ctrl_pressed/shift_pressed.  We no longer track them using key
180         up/down handlers, but by using Control.ModifierKeys.  Also, switch
181         to using ValueChanged handlers on the scrollbars instead of
182         Scrolled event handlers.  This simplifies a bunch of the scrolling
183         code.
184         (GridHValueChanged): rename from GridHScrolled, and change it to
185         work with the new event args.
186         (GridVValueChanged): same.
187         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
188         (OnMouseWheel): actually scroll the datagrid.  Don't change the
189         selected cell.
190         (ProcessGridKey): correct all the keyboard navigation stuff I
191         could find.  Ctrl up/down/left/right/home/end work now.
192         (EnsureCellVisibility): correct method name spelling.  Also,
193         simplify this a touch by not explicitly calling the
194         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
195         scrollbar value.
196         (OnKeyUpDG): no need for this method now.
197         
198 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
199
200         * LinkLabel.cs: display the OverrideCursor when hovering the label.
201         Fixes bug #78392.
202
203 2006-05-25  Chris Toshok  <toshok@ximian.com>
204
205         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
206         r61019.
207
208 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
209
210         * Application.cs: Moved setting of is_modal and closing to before
211           we create the control, to allow the event handlers called as a
212           result of creation affect closing. Also removed Gonzalo's previous
213           change to setting DialogResult, the behaviour has been moved to 
214           Form.ShowDialog()
215         * Form.cs: 
216           - ShowDialog(): Removed explicit creation of the form, let RunLoop
217             handle it instead
218           - ShowDialog(): If no dialog result is set, we need to return Cancel
219           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
220             the close is cancelled
221
222 2006-05-25  Jackson Harper  <jackson@ximian.com>
223
224         * StatusBar.cs: We only need to update the sizes of the other
225         panels when we have auto size contents.  Also we are only updating
226         the contents of the panel, not the borders, so compensate for the
227         border width (TODO: get this width from the theme somehow).
228         * TreeView.cs: Scrollable is true by default
229         - Use invalidate instead of refresh where needed
230         - Factor the scrollable value into scrollbar updating
231         - Update the scrollbars if the Scrollable property is altered
232         - Update the selected node if its ImageIndex is changed
233         - Handle null nodes in UpdateNode (mainly so we don't have to
234         check if selected is null when updating it
235         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
236         are factored into the visible count
237         - Use VisibleCount for clarity in the code
238         - When the font is changed we need to recurse through all the
239         nodes and invalidate their sizes
240         
241 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
242
243         * Application.cs: set the DialogResult to fixed when the main form is
244         hidden or destroyed while being modal.
245
246 2006-05-25  Miguel de Icaza  <miguel@novell.com>
247
248         * Theme.cs: Use Tangoified messagebox icons. 
249
250         (GetSizedResourceImage): Also cope with width = 0 and do not
251         trigger a warning in that case (0 means "give me your icon from
252         the resouce, no special size needed).
253
254 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
255
256         * Application.cs: Leave runloop if the the main modal form is 
257           hidden (fixes #78484)
258
259 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
260
261         * BindingContext.cs : reject null datasource in Contains() and
262           Item[].
263         * CurrencyManager.cs : check data_member validity when data_source
264           is dataset. When it is late binding, the initial position is -1.
265
266 2006-05-24  Jackson Harper  <jackson@ximian.com>
267
268         * TreeNodeCollection.cs: Dont't recalculate the visible order on
269         inserted nodes that aren't visible.  This changes the
270         max_visible_order which confuses scrollbar settings.
271         - Use the enumerator to get the prev node instead of duplicating
272         code.
273         * TreeView.cs: Use new method for setting scrollbar values
274         - Don't set the bounds every time the scrollbar is updated
275         - When updating below the root node use an invalidate instead of a
276         refresh to prevent the child controls (scrollbars) from being
277         refreshed. (UpdateBelow still needs to be reworked anyways).
278         - Reenable SetBottom now that visible orders are set correctly,
279         added some debug code incase we ever get bad values there again.
280         - Set the scrollbar max to 2 less then the max value, this
281         compensates for the max value being one above the node count, and
282         for scrollbars adding one extra "notch".
283         - When drawing image nodes if there is an imagelist we draw the
284         first image in the list if the supplied image index is out of the
285         image list's bounds.
286         
287 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
288
289         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
290           we receive a size change from the WM (Fixes #78503)
291
292 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
293
294         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
295           rectangle (Fixes #78501)
296
297 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
298
299         * ButtonBase.cs: 
300           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
301             as a bitfield.
302           - Fixed MouseMove to no longer switch pressed state unless the left
303             mouse button is pressed. Atsushi provided the original patch (#78485)
304           
305 2006-05-24  Jackson Harper  <jackson@ximian.com>
306
307         * ScrollBar.cs: New internal methods that allow us to change a
308         couple values on the scrollbar (the most common case is maximum
309         and large change) without getting multiple invalidates.
310
311 2006-05-24  Chris Toshok  <toshok@ximian.com>
312
313         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
314         (Edit): save off the original state in oldState, and set
315         grid.is_editing to true.
316         (OnKeyDown): abort editing if escape is pressed.  also, call
317         NextState if space is pressed.
318         (OnMouseDown): call NextState.
319         (NextState): factor out shared code from OnKeyDown and OnMouseDown
320         here.  Also, only invalidate the row header once (on the initial
321         is_changing switch) to save on redraws.
322
323 2006-05-24  Chris Toshok  <toshok@ximian.com>
324
325         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
326         if the value in the cell is different than it was before.  This
327         keeps us from triggering a layout when we move around a datarid
328         with a highlighted cell.
329         (Edit): suspend layout when creating/positining the text box, and
330         resume passing false so we don't ever actually re-layout.
331         (ReleaseHostedControl): same.
332         (EnsureTextBox): reformat slightly, and set WordWrap to false.
333
334         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
335         control-key sequences should go to the datagrid - remove that
336         lock.  Also, modify the conditions under which we move between
337         cells when moving the cursor within a cell, and remove the "this"
338         and "base" from field accesses.  We weren't even consistent, given
339         they all were in the base class.
340
341 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
342
343         * Binding.cs : (.ctor)
344           An obvious NRE fix for BindingTest.CtorNullTest().
345
346 2006-05-23  Chris Toshok  <toshok@ximian.com>
347
348         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
349         them between lines.  This fixes some quirks editing cells in the
350         datagrid.
351
352 2006-05-23  Jackson Harper  <jackson@ximian.com>
353
354         * TreeView.cs: Use begin/end update when doing expand/collapse all
355         so that we don't get flicker on the scrollbar.
356
357 2006-05-23  Jackson Harper  <jackson@ximian.com>
358
359         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
360         treenode calculations to be independant of the painting code. To
361         do this nodes track a visible order which is calculated by the
362         treeview.
363         - Call new methods for expanding/collapsing nodes.  These methods
364         use scrollwindow so we don't have to update everything below the
365         node.
366         * TreeView.cs: Refactored drawing and scrolling code.  We don't
367         need to update nodes when drawing anymore or calculate scrollbar
368         stuff.
369         - Added new methods for expanding/collapsing nodes. These methods
370         use ScrollWindow so as to not have to redraw all the nodes below.
371         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
372         we add/remove nodes or sort.
373         - Handle removing the selected and the top node properly.
374
375 2006-05-23  Chris Toshok  <toshok@ximian.com>
376
377         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
378         maybe this should actually happen in the datagrid code?
379         (EndEdit): no need to invalidate anything, given that
380         ReleaseHostedControl causes the datagrid to relayout, which
381         invalidates everything anyway.
382
383         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
384         in SetCurrentCell).
385         (set_SelectionBackColor): call InvalidateSelection instead of
386         Refresh.
387         (set_SelectionForeColor): same.
388         (BeginEdit): Flesh this out a bit.
389         (CancelEditing): only do any of this if we're editing/adding.
390         (EndEdit): same.
391         (OnMouseDown): there's no need to cancel editing here, it's done
392         in SetCurrentCell.
393         (SetCurrentCell): only invalidate the current row header if it's a
394         different row than the new one.
395         (ShiftSelection): fix this to work like MS does.
396         (ResetSelection): factor out the invalidation of selected_rows to
397         InvalidateSelection.
398         (SetDataSource): cancel any editing that's going on.
399
400         * DataGridColumnStyle.cs
401         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
402         call the non-interface version.
403
404         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
405         header rectangle with the clip rectangle so we don't redraw the
406         entire header for just a small area.  Gets rid of the last flicker
407         when horizontally scrolling.
408         (DataGridPaintRow): same.
409
410 2006-05-23  Mike Kestner  <mkestner@novell.com>
411
412         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
413         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
414         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
415         Critical bug report.
416
417 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
418
419         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
420           and this fixes #78493
421
422 2006-05-23  Miguel de Icaza  <miguel@novell.com>
423
424         * Theme.cs (GetSizedResourceImage): Scale images if the proper
425         size is not found.  
426         
427         * FileDialog.cs: Do not change the background for the side bar as
428         it wont work nicely with the theme, and also reduces the artifacts
429         in rendering the icons (which I want to fix too).
430
431         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
432         resources, not resgen resources. 
433
434         (PlatformDefaultHandler): Pull images using the new API.
435
436 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
437
438         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
439           a reference to the hwnd and will not remove it unless there are
440           no pending exposures (fixes #78341)
441         * XplatUI.cs: Improved debug
442
443 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
444
445         * MenuAPI.cs : don't handle OnClick event when it was not the left
446           button. Fixed bug #78487.
447
448 2006-05-23  Mike Kestner  <mkestner@novell.com>
449
450         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
451         prefer submenus to the top menu for item lookup, to avoid popping down
452         top-row items.
453
454 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
455
456         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
457           Graphics.FillRectangle as the visual results are really bad (even
458           on win). We now draw perfect arrows (and perfect shadows when the
459           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
460           Pen.DashPattern to draw the dots of each line.
461
462 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
463
464         * FileDialog.cs: Update the filename combobox when navigating through
465           the ListView with the cursor keys. Fixes part 7 of bug #78446.
466
467 2006-05-22  Mike Kestner  <mkestner@novell.com>
468
469         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
470         Fixes #78463.
471
472 2006-05-22  Mike Kestner  <mkestner@novell.com>
473
474         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
475         requests. Fix a misspelled parameter and a copy paste exception error
476         in Select.
477
478 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
479
480         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
481           to get the same width/height (5/13) on X11 as the default font has on
482           win32. This means that our DefaultFont emSize is smaller than the 
483           the MS SWF equivalent (even thought the width/height stays the same)
484
485 2006-05-20  Jackson Harper  <jackson@ximian.com>
486
487         * MdiClient.cs:
488         * MdiWindowManager.cs:
489         * InternalWindowManager.cs: Make sure to use the border width from
490         the theme.
491
492 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
493
494         * PrintDialog.cs: Implements printer details
495
496 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
497
498         * FileDialog.cs: Added focus handling for PopupButtonPanel.
499           Fixes part 1 and 2 of bug #78446
500
501 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
502
503         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
504           instead of sticking to the first ever calculated value
505
506 2006-05-19  Mike Kestner  <mkestner@novell.com>
507
508         * ComboBox.cs: fix mouse motion selection to use MousePosition and
509         PointToClient, since Capture is set. Fixes #78344.
510
511 2006-05-19  Mike Kestner  <mkestner@novell.com>
512
513         * ListView.cs: match MS behavior in Details view where items are not
514         drawn if Columns.Count == 0. 
515         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
516         Use a separate pen to draw the check, since changing the width affects
517         the box as well.  Fixes #78454.
518
519 2006-05-18  Miguel de Icaza  <miguel@novell.com>
520
521         * ListView.cs: ArgumentOutOfRangeException, single versions of the
522         exception should throw the name of the invalid argument.
523
524         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
525         there are no files listed. 
526
527 2006-05-18  Jackson Harper  <jackson@ximian.com>
528
529         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
530         up.
531
532 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
533
534         * Control.cs: Brought back our old UpdateZOrder method as a private
535           function and switched our calls from UpdateZOrder to the new one.
536           This fixes the Paint.Net canvas disappearing bug.
537
538 2006-05-18  Jackson Harper  <jackson@ximian.com>
539
540         * Theme.cs:
541         * ThemeWin32Classic.cs:
542         * InternalWindowManager.cs: Move the drawing into the theme,
543         expose everything the theme should need from the window manager.
544
545 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
546
547         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
548           from the call to NativeWindow to avoid walking up the parent chain
549           further than needed (speeds up setting cursors and avoids setting
550           the wrong cursor if a parent has another cursor defined)
551         * Cursor.cs: When loading an icon as cursor, MS uses the center of
552           the icon as hotspot, not what's contained as hotspot in the icon
553           file. This fixes the perceived drawing offset seen with Paint.Net
554         
555 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
556
557         * XplatUIX11.cs: 
558           - Store the calculated rectangle in Hwnd object and use it when 
559             setting the client size
560           - Force Toolwindows to always be type Dock, to ensure they're on top
561
562 2006-05-18  Mike Kestner  <mkestner@novell.com>
563
564         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
565         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
566         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
567         Substantial refactoring to remove confusing nested classes. Coding
568         standard and Get+Set->property refactorings.  Shift to index based
569         highlighting in ComboListBox instead of constantly using IndexOf and
570         Items[]. Add invalidations on resize for DropDownList to fix ugliness
571         in FileDialog growth.  Draw borders manually since Simple mode needs
572         to look like two independent controls.  Make listbox border
573         conditional to DropDownStyle.  Improved OwnerDraw support.
574
575 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
576
577         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
578         Don't set the disposed graphics to null, so we can throw the "right"
579         exception if the graphics is reused later (added a flag to avoid 
580         double disposing). Some behaviours are different under 2.0 and are
581         filled under bug #78448.
582
583 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
584
585         * Control.cs: When double-buffering is enabled, we need to reset
586           our graphics context between paint calls. Otherwise, any 
587           transformations and other alterations on the context will 
588           become cumulative (#77734)
589
590 2006-05-18  Mike Kestner  <mkestner@novell.com>
591
592         * ListView.cs: do focused item selection like MS on clicks. 
593         Rework focus handling for ItemControl so LostFocus invalidates as
594         well.
595         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
596         the ListView ItemControl has focus.
597
598 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
599
600         * XplatUIX11.cs: If client_window ends up being width or height zero
601           due to border settings, move it off window inside whole_window (#78433)
602
603 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
604
605         * Mime.cs: Shrink the mime file cache correctly.
606
607 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
608
609         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
610
611 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
612
613         * XplatUIX11.cs (AddExpose): More sanity checks
614
615 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
616
617         * XplatUIX11.cs:
618           - AddExpose: Don't add expose ranges outside the size of our
619             window
620           - Cast opacity values to Int32 to avoid crashes with certain
621             values
622           - Added disabled code paths that protect against illegal cross-
623             thread painting (Developers.exe)
624
625 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
626
627         * ProgressBar.cs: Invalidate the control when it's resized
628           since block size is based on control size. (#78388)
629
630 2006-05-16  Miguel de Icaza  <miguel@novell.com>
631
632         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
633         of setting the incoming argument to the "reset" value, we set the
634         this.datamember to string.empty (before we were invalidating the
635         incoming data).   
636
637         Fixes 78420
638
639 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
640
641         * Form.cs: Only apply transparency settings after the form
642           is created. (Fixes #77800)
643
644 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
645
646         * ApplicationContext.cs: Grab the HandleDestroyed event so
647           we know when to fire OnMainFormClosed 
648
649 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
650
651         * Application.cs: Introduced sub-class to allow tracking of
652           threads and centralized triggering of the event mess for
653           ThreadExit, AppExit, etc..  (#76156)
654
655 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
656
657         * MimeIcon.cs:
658           - Do not return a null icon index value for a mime subclass.
659             Instead try the main mime type class too.
660           - Seems that some newer distributions don't have a link to some
661             gnome default icons anymore. So check the default gnome dir too.
662           
663
664 2006-05-16  Jackson Harper  <jackson@ximian.com>
665
666         * MdiClient.cs: Don't paint the parent background image if we have
667         our own background image.
668
669 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
670
671         * Control.cs:
672           - PerformLayout: Do not shrink space filled by DockStyle.Fill
673             controls, all filled controls are supposed to overlap (#78080)
674           - UpdateZOrder is supposed to update the control's z-order in the
675             parent's z-order chain. Fixed to behave like that
676           - BringToFront: Removed obsolete code
677           - SendToBack: Simplyfied
678           - SetChildIndex: Trigger layout calculations when Z-order changes
679             since layout is done by z-order
680
681 2006-05-16  Chris Toshok  <toshok@ximian.com>
682
683         [ fixes bug #78410 ]
684         * DataGrid.cs (set_AlternatingBackColor): use
685         grid_drawing.InvalidateCells instead of Refresh().
686         (set_BackColor): call grid_drawing.InvalidateCells.
687         (set_BackgroundColor): use Invalidate instead of Refresh.
688
689         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
690         invalidate the cell area.
691
692 2006-05-15  Chris Toshok  <toshok@ximian.com>
693
694         [ fixes bug #78011 ]
695         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
696         on to DataGridPaintRow.
697         (DataGridPaintRow): take a clip argument, and only draw the cells
698         which intersect it.  same with the not_usedarea.
699
700         * Theme.cs (DataGridPaintRow) add @clip parameter.
701
702         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
703         XplatUI.ScrollWindow.
704         (ScrollToRow): same.
705
706         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
707         with last column which was causing a gray swath to appear with the
708         XplatUI.ScrollWindow code.
709
710 2006-05-15  Chris Toshok  <toshok@ximian.com>
711
712         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
713         use XplatUI.ScrollWindow.
714         (VerticalScrollEvent): use XplatUI.ScrollWindow.
715
716 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
717
718         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
719
720 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
721
722         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
723           file since there are no equivalent X11 cursors
724
725 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
726
727         * MonthCalendar.cs : DateTimePicker should reflect selected date
728           on mouse*up*, not mouse*down*. Fixed originally reported part of
729           bug #76474.
730
731 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
732
733         * TabControl.cs : When argument index is equal or more than tab
734           count, just ignore. Fixed bug #78395.
735
736 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
737
738         * Control.cs: Dispose all child controls when control is diposed (#78394)
739
740 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
741
742         * ColorDialog.cs: Finally it is possible to select the color with
743           the text boxes
744
745 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
746
747         * PrintDialog.cs: Fix typo
748
749 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
750
751         * PrintDialog.cs: PrintDialog is not resizable
752         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
753           color. Made some ToolBar drawing methods protected virtual.
754
755 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
756
757         * PrintDialog.cs: Implementation of the PrintDialog
758
759 2006-05-12  Chris Toshok  <toshok@ximian.com>
760
761         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
762         thumb, instead use MoveThumb.  This has the side effect of making
763         most of the other thumb moving machinery use MoveThumb as well.
764         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
765         need to actually invalidate the rectangle where the new thumb will
766         go.
767         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
768         We force an Update() after, so it's not as fast as it could be,
769         but at least there's zero flicker and no droppings.
770         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
771         (UpdateThumbPos): add another argument (dirty), which says whether
772         or not to calculate/add dirty regions which we later invalidate.
773         For cases where we know we're going to use MoveThumb, we pass
774         false for this.  Otherwise, pass true.
775
776 2006-05-12  Jackson Harper  <jackson@ximian.com>
777
778         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
779         the status bar.
780         
781 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
782
783         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
784           and GetClipRegion methods and UserClipWontExposeParent property.
785         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
786           overriding UserClipWontExposeParent property, setting to false, since
787           Win32 handles the required expose messages to draw our clipped parent
788           areas internally
789         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
790           PaintEventStart to set the user clip region if set.
791         * Control.cs: 
792           - Now internally tracking the Region for the control since we need to
793             store it if the handle is not yet created and only set it when it
794             becomes created. Before setting the region forced handle creation
795           - Added code to draw the parents underneath a user-clipped region
796         * Hwnd.cs: Added UserClip property
797
798 2006-05-12  Chris Toshok  <toshok@ximian.com>
799
800         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
801         (set_Maximum): same.
802         (set_Minimum): same.
803         (set_SmallChange): same.
804         (OnMouseUpSB): remove the call to refresh when releasing the
805         thumb.  We shouldn't need it.
806         
807 2006-05-12  Miguel de Icaza  <miguel@novell.com>
808
809         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
810         AutoSize set to None, we do not need to relayout everything, we
811         just need to invalidate the current region.
812
813         (Draw): Do not draw the entire ClientArea, just redraw the
814         clip area being passed.
815
816         * MdiClient.cs: Make MdiClient constructor with the Form argument
817         internal. 
818
819 2006-05-12  Jackson Harper  <jackson@ximian.com>
820
821         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
822         parents background image,  but strangely not their own.
823         - (DrawStatusBarPanel): Take into account horizontal alignment
824         when drawing the strings and icons.
825
826 2006-05-12  Mike Kestner  <mkestner@novell.com>
827
828         * ListBox.cs: avoid invalidations for focus when the collection is
829         empty. 
830
831 2006-05-12  Chris Toshok  <toshok@ximian.com>
832
833         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
834         invalidate the entire thumb area.  Call InvalidateDirty which
835         limits the redraw to the thumb itself and surrounding pixels.
836
837         * XplatUIX11.cs (ScrollWindow): optimize copying.
838         
839 2006-05-12  Chris Toshok  <toshok@ximian.com>
840
841         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
842         Figure out the positioning/layout in a single pass instead of
843         multiple recursive invocations.  Speeds up the initial display of
844         the data grid.  Also, make many things private that were
845         originally public but unused outside this class.
846
847 2006-05-11  Jackson Harper  <jackson@ximian.com>
848
849         * MdiClient.cs: Improved layout code.
850
851 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
852
853         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
854           not SelectedObject.
855
856 2006-05-11  Chris Toshok  <toshok@ximian.com>
857
858         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
859         union of that will always be {0,0,width,height}.
860
861 2006-05-11  Jackson Harper  <jackson@ximian.com>
862
863         * Form.cs: Match MS's DefaultSize for forms (they must have
864         changed the size in sp2).
865
866 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
867
868         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
869
870 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
871
872         * TextControl.cs : Fixed bug #78109. This incorrect position
873           comparison caused crash on automatic line split.
874         * TextBoxBase.cs : reduce duplicate code.
875
876 2006-05-10  Jackson Harper  <jackson@ximian.com>
877
878         * MdiClient.cs: Active form is only sent to the back when using
879         the Next form functionality, when a form is clicked the current
880         active shouldn't be sent to the back.
881         - Layout the mdi windows when the container is first made visible.
882         * Form.cs: Give the MdiClient a ref to the containing form when we
883         create it.
884         
885 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
886
887         * LinkLabel.cs : link_font could be uninitialized, so populate one
888           before actual use. Fixed bug #78340.
889
890 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
891
892         * XplatUIX11.cs : clipboard format native value is IntPtr.
893           Fixed bug #78283.
894
895 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
896
897         * Control.cs: 
898           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
899             which is passed up the parent chain by DefWndProc
900           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
901             to DefWndProc (#77956)
902         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
903
904 2006-05-10  Jackson Harper  <jackson@ximian.com>
905
906         * MdiClient.cs: We need to remove the controls from the mdi
907         collection, when we close the window.
908         * MdiWindowManager.cs: Special handling of closing mdi windows.
909         * InternalWindowManager.cs: Make the close method virtual so the
910         mdi window manager can handle it specially.
911
912 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
913
914         * DataGrid.cs:
915           - Recalculate grid when the data source has changed
916           - Matches styles provided by user from all data sources types
917         * DataGridTableStyle.cs: For columns that provided by the user set the
918         with the preferred value is there was unassigned.
919         * CurrencyManager.cs: throw OnItemChanged event
920
921 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
922
923         * PictureBox.cs: Don't animate until handle is created. Start animation
924           when handle is created.
925
926 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
927
928         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
929           current codebase.
930         * XEventQueue.cs: We don't need to provide the extra info
931
932 2006-05-10  Jackson Harper  <jackson@ximian.com>
933
934         * MdiClient.cs: If the mdi clients parent form has a background
935         image set, we draw that background image for the mdi area's
936         background.
937
938 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
939
940         * TextBoxBase.cs: Set IBeam cursor (#78347)
941
942 2006-05-10  Mike Kestner  <mkestner@novell.com>
943
944         * ToolBar.cs: fix some text padding issues with ButtonSize
945         calculation. Update the default size to match MS documentation.
946         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
947         button size. Fixes #78296.
948
949 2006-05-10  Mike Kestner  <mkestner@novell.com>
950
951         * ListBox.cs: use is_visible for scrollbar positioning in case the
952         control isn't on screen yet.  Fix off by one with Right vs Width
953         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
954         
955 2006-05-10  Jackson Harper  <jackson@ximian.com>
956
957         * X11Dnd.cs: Drop to a control with another control on top of it.
958         * ToolBar.cs: Work on a copy of the buttons list, so that it can
959         be modified in click handlers. TODO: Look for similar problems in
960         other controls.
961
962 2006-05-09  Jackson Harper  <jackson@ximian.com>
963
964         * Form.cs: Window managers need the old window state when setting
965         window state now.
966         * InternalWindowManager.cs: Allow the base mdi window manager to
967         handle more of the MDI only stuff (like maximize buttons).
968         * MdiWindowManager.cs: Fix some snafus in changing the window
969         state.  Add all the menu functionality, for both popup and
970         maximized menus.
971         * MdiClient.cs: When a new form is selected the currently
972         activated form is sent to the back, this matches MS.
973         - Implement a new method to activate the next mdi child window.
974
975 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
976
977         * Control.cs: 
978           - Added new InternalCapture method to allow controls to prevent
979             the capture behaviour on the click handlers
980           - Switched to use InternalCapture
981         * ComboBox.cs:
982           - Using InternalCapture to prevent mouse captures from being released
983             on mouse button release (Fixes #78100)
984         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
985           returns Form borders if a caption is present. (Fixes #78310)
986
987 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
988
989         * TreeNode.cs: Changed serialization .ctor to not require every field
990           to be present. (#78265)
991         * OwnerDrawPropertyBag.cs: Added serialization .ctor
992
993 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
994
995         * MimeIcon.cs: for is faster than foreach for strings.
996
997 2006-05-05  Mike Kestner  <mkestner@novell.com>
998
999         * CheckedListBox.cs: update check handling code to not use selected.
1000         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
1001         behavior for visual feedback, motion response, shift/ctrl handling,
1002         and properly deal with all 4 selection modes. Updates to bounds
1003         handling logic.  Add scroll wheel support. [Fixes #77842]
1004
1005 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1006
1007         * ListView.cs:
1008           - Moved adding of Implicit controls into .ctor. That way, subsequent
1009             creation of the controls will not cause them to think they are 
1010             toplevel windows (fixes #78200 header problem)
1011           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
1012           - Switched visibility setting of header control to use internal field
1013             to avoid triggering handle creation
1014           - Now checking if handle is created before causing a refresh when items
1015             are added (This makes us now match handle creation time with MS)
1016         * Splitter.cs: Removed loading of private splitter cursor, switched to
1017           Cursors version now that that is loading the right ones
1018         * Cursors.cs: Load proper splitter cursors from resources
1019         * Cursor.cs: Added second method of loading resource cursors for the 
1020           VS.Net users amongst us
1021
1022 2006-05-05  Mike Kestner  <mkestner@novell.com>
1023
1024         * ListView.cs: give header_control a minimum size based on the
1025         ListView size.
1026
1027 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
1028
1029         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
1030           window seems to do that with metacity, so set that type. (#78120)
1031
1032 2006-05-05  Mike Kestner  <mkestner@novell.com>
1033
1034         * ListViewItem.cs: fix Details mode checkbox layout bug.
1035         * ThemeWin32Classic.cs: draw a ListView column header for unused space
1036         at the end of the header, if it exists. [Fixes for #78200]
1037
1038 2006-05-04  Jackson Harper  <jackson@ximian.com>
1039
1040         * MdiClient.cs: Add a helper property to get the container form.
1041         * MdiWindowManager.cs: We have to make sure to use the menu origin
1042         when drawing the icons and buttons, this fixes maximized window
1043         icons/buttons on win32.
1044         * InternalWindowManager.cs: Reset the restore captions when a
1045         window goes from Maximized to Minimized and vice versa. Move the
1046         DrawMaximizedButtons into the MdiWindowManager source, tool
1047         windows can't be maximized. NOTE: This could use a little
1048         refactoring if time ever permits.
1049         
1050 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1051
1052         * TextBox.cs: Add MWFCategoryAttributes
1053         * TextBoxBase.cs: Add MWFCategoryAttributes
1054         * Form.cs: Add MWFCategoryAttributes
1055
1056 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
1057
1058         * Control.cs: Add MWFCategoryAttributes
1059         * ScrollableControl.cs: Add MWFCategoryAttributes
1060
1061 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
1062
1063         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
1064           Divider is true. Fix a little glitch in PropertyToolBar
1065           drawing code
1066
1067 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
1068
1069         * Control.cs:
1070           - Dispose: Call base.Dispose, this causes the disposed event
1071             to be fired (and probably other, more important stuff)
1072           - SetVisibleCore: Set is_visible to true after creating the
1073             window so that the window still gets created invisible (if
1074             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
1075             to generate a WM_ACTIVE message
1076         * Form.cs: Call Dispose when we want to destroy the window, instead of
1077           just destroying the handle (Dispose will do that for us)
1078         * XplatUIX11.cs:
1079           - RootWindow also needs a queue, so we can properly process the
1080             property change events from RootWindow (like Activate)
1081           - Generatic synthetic WM_ACTIVE message when the active window is
1082             being destroyed
1083
1084 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1085
1086         * LinkLabel.cs: Trigger a recalc of our label dimensions when
1087           bounds are changed
1088
1089 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1090
1091         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1092           for determining width and height (image might not be assigned if
1093           we're drawing an imagelist)
1094
1095 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1096
1097         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1098         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1099           height from system
1100         * Theme.cs: No longer returns hardcoded menu height, instead calls
1101           new driver method
1102         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1103           on MS (# 78257)
1104
1105 2006-05-01  Mike Kestner  <mkestner@novell.com>
1106
1107         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1108
1109 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1110
1111         * TextBoxBase.cs: Removed Fixme
1112         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
1113
1114 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1115
1116         * XplatUIX11.cs:
1117           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
1118             the rectangle relative to the parent, considering borders. We
1119             don't really want that.
1120           - ScrollWindow: Fixed warning to be more understandable
1121         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
1122           scrollbars and scroll only the visible area
1123         * RichTextBox.cs: Removed debug output
1124
1125 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1126
1127         * NumericUpDown.cs (Text): Just use base
1128         * UpDownBase.cs: Ensure txtView is created before using it
1129
1130 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1131
1132         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
1133           casting to IntPtr to avoid 64bit overflow errors
1134
1135 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1136
1137         * Control.cs:
1138           - AllowDrop: Don't force handle creation.
1139           - CreateHandle: Added call to tell driver if we're allowed to drop
1140
1141 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1142
1143         * FileDialog.cs: Remember the last directory not only for the
1144           current instance but also for new FileDialog instances.
1145
1146 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1147         
1148         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
1149           broke sending async messages
1150
1151 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1152
1153         * XplatUIX11.cs:
1154           - ScrollWindow: Fixed method. We finally generate expose events again
1155             for scrolled areas. This was causing 'garbage' when scrolling
1156             textbox and other controls that used ScrollWindow
1157           - Switched from using the regular queue for paint events to the MS 
1158             model of 'generating' paint events when the queue is empty.
1159             We use the new XQueueEvent.Paint subclass to store which windows
1160             need painting.
1161           - AddExpose now takes the x/y/width/height of the exposed area
1162             and inserts the window into the paint queue if not already there
1163           - InvalidateWholeWindow: Switched to use new AddExpose method
1164           - UpdateMessageQueue: Added which queue to monitor for paint events
1165           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
1166             the unlikely case nothing above handles it. We reset the expose
1167             pending states to get them off the queue.
1168           - GetMessage: Now pulls a paint event if no other events are in the
1169             queue
1170           - Invalidate: Switched to new AddExpose method
1171           - PeekMessage: Updated to understand pending paint events
1172           - UpdateWindow: Fixed logic bug. We were only updating if the window
1173             didn't need updating. Also switched to sending WM_PAINT directly,
1174             like MS does.
1175         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
1176           and random access Remove(). The random access is needed to handle
1177           UpdateWindow() where a WM_PAINT is sent directly without accessing
1178           the queue.
1179         * ScrollBar.cs: Added Update() calls to cause immediate updates to
1180           allow for better feedback when scrolling. Scrollbars are small and
1181           the immediate update should make it 'feel' more responsive without
1182           slowing things down. ScrollBar still needs it's invaliate logic
1183           updated to not always invalidate the whole bar on certain changes.
1184
1185 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1186
1187         * Control.cs:
1188         (BackColor): if the control does not support a transparent background,
1189         return the default backcolor when the parent backcolor is transparent.
1190
1191 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
1192
1193         * Application.cs: Updated to new StartLoop/GetMessage API
1194         * RichTextBox.cs: Provide some output on RTF parsing errors
1195         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
1196           new queue_id argument to GetMessage and PeekMessage to allow faster
1197           handling of per-thread queues in drivers.
1198         * Hwnd.cs: Added Queue tracking and property
1199         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1200         * XEventQueue.cs: Added thread trackingA
1201         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1202         * XplatUIX11.cs:
1203           - Implemented new per-thread queue
1204           - GetMessage: Fixed return/break behaviour on several cases. We were
1205             returning stale messages in some cases, instead of just processing
1206             the next message
1207
1208 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1209
1210         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1211
1212 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1213
1214         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1215           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1216
1217 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1218
1219         * PropertyGridView.cs: Fix drop down width.
1220
1221 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1222
1223         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1224           a mess in DrawToolBar, so I removed one of them.
1225
1226 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1227
1228         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1229           needed (clip). Otherwise we get artifacts.
1230
1231 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1232
1233         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1234           dimension is fixed
1235         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1236           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1237         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1238           if it matches the scale base font (avoids unneeded scaling)
1239
1240 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1241
1242         * X11DesktopColors.cs: One gtk_init_check should be enough
1243
1244 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1245
1246         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1247           match MS behaviour
1248
1249 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1250
1251         * TextBoxBase.cs: 
1252           - Generate OnTextChanged for Backspace even if we're only deleting
1253             the current selection
1254           - When setting the Text property, only select all text if the
1255             control does not have focus when it is being set. Otherwise
1256             just place the cursor at the beginning of the control
1257
1258 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1259
1260         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1261           Added a little helper to draw PropertyGrid ToolBar with a different
1262           border and a different BackColor.
1263         * PropertyGrid.cs: Some background parts didn't get painted with the
1264           correct background color. Added a class that helps us to draw the
1265           correct border for PropertyGridView and a class that helps us to
1266           draw ToolBars with a different backcolor
1267         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1268
1269 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1270
1271         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1272         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1273
1274 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1275
1276         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1277           into the palette entries. Also, since we're working on a copy
1278           we needed to copy the palette back onto the bitmap.
1279         * Cursor.cs: Same fix as XplatUIWin32.cs.
1280
1281 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1282
1283         * ImageListStreamer.cs: Need to read the var (or we're off)
1284
1285 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1286
1287         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1288           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1289           TextBoxBase.cs: Unused var fixes
1290         * AxHost.cs: Small 2.0 fix
1291         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1292           as it seems that is what at least Metacity expects. This will make
1293           icons show up on 64bit platforms. We still have some 64bit size
1294           issues, though, since the startup app window size still won't match.
1295
1296 2006-04-25  Mike Kestner  <mkestner@novell.com>
1297
1298         * *.cs: cleanup newly reported exception var unused warnings.
1299
1300 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1301
1302         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1303           ms
1304
1305 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1306
1307         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1308           image. The image position is always the same, no matter if the
1309           button is pressed or not.
1310
1311 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1312
1313         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1314           selection and set the correct filename for SaveFileDialog.
1315           Patch by Emery Conrad.
1316
1317 2006-04-24  Mike Kestner  <mkestner@novell.com>
1318
1319         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1320         check for item.X outside the ClientRect instead of item.Y. Fixes
1321         #78151.
1322
1323 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1324
1325         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1326         trust that value blindly and do some sanity check. Fixes bug #77814.
1327
1328 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1329
1330         * ImageListStreamer.cs: save the mask as a 1bpp image.
1331
1332 2006-04-21  Mike Kestner  <mkestner@novell.com>
1333
1334         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1335         pass Checked and Indeterminate to the Theme Engine. Improve
1336         encapsulation with ListBox.
1337         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1338         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1339         nested types.  Move all CheckState functionality to CheckedListBox.
1340         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
1341         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
1342         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1343         single base list. Fix scrollbar sizing and placement to mirror MS.
1344         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1345         used.
1346         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1347         for CheckedListBox by using new DrawItemState info.  Center the
1348         checkboxes on the items. Use new StringFormat property.
1349
1350 2006-04-18  Jackson Harper  <jackson@ximian.com>
1351
1352         * Form.cs: MdiChildren don't do default locations the same way as
1353         regular forms.  This prevents a crash when trying to position the
1354         mdi windows.
1355
1356 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
1357
1358         * PropertyGridTextBox.cs: Formatting, copyright
1359         * PropertiesTab.cs: Formatting
1360         * PropertyGrid.cs: Formatting
1361         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
1362           click toggling of values
1363           
1364 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
1365
1366         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1367         * Control.cs (.ctor): verify_thread_handle is static, don't reset
1368           every time a control is created
1369         * Application.cs: Removed obsolete EnableRTLMirroring method
1370
1371 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
1372
1373         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1374         SelectedIndex to -1. Fixes bug #78121.
1375
1376 2006-04-17  Jackson Harper  <jackson@ximian.com>
1377
1378         * Binding.cs: Handle null values for Current and BindingContext.
1379         This occurs when binding is a little delayed.
1380         * CurrencyManager.cs: return null for Current when there are no
1381         items in the list.
1382         - Hookup to the listchanged event on the DataView and update
1383         bindings when the list is changed.  This fixes late binding of
1384         controls.
1385
1386 2006-04-17  Jackson Harper  <jackson@ximian.com>
1387
1388         * X11Dnd.cs:
1389         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1390         Ringenbach.
1391
1392 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
1393
1394         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1395           place
1396         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1397           with the correct ButtonState
1398
1399 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
1400
1401         * XplatUIX11.cs: Improved distinguishing between window types to
1402           tell the WM a type closer to what the app wants (Fixes #78107)
1403
1404 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1405
1406         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1407           GrabHandle
1408
1409 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1410
1411         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1412           drawing code to reflect the size grip changes
1413
1414 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1415
1416         * ImageListStreamer.cs: fix handling of the mask that follows the main
1417         bitmap when deserializing and serialize it properly. The generated mask
1418         should better be a 1bpp image, but I'll do that later.
1419
1420 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1421
1422         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1423           path doesn't fit into some of our Current.Places
1424
1425 2006-04-13  Jackson Harper  <jackson@ximian.com>
1426
1427         * ComboBox.cs: Use borders instead of drawing our own decorations,
1428         try to obey correct rules for heights.
1429         * Theme.cs:
1430         * ThemeNice.cs:
1431         * ThemeClearLooks.cs:
1432         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1433         this is now handled by borders.
1434         - Remove unused DrawListBoxDecorationSize method.
1435         
1436 2006-04-13  Mike Kestner  <mkestner@novell.com>
1437
1438         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1439         reported by Alex.
1440
1441 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1442
1443         * ThemeWin32Classic.cs: 
1444           - Fixed CPDrawStringDisabled
1445           - Corrected drawing of disabled menu items
1446           - Fixed drawing of disabled radio buttons (bug #78095)
1447           - Draw check in a disabled CheckBox with color ControlDark 
1448
1449 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1450
1451         * Form.cs: Use the provided width when calculating the menu size;
1452           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1453           and ClientSize.Width won't be updated yet
1454         * Application.cs: Use Visible instead of Show() to make form visible,
1455           this way we create the handle later and menusize is considered
1456
1457 2006-04-12  Mike Kestner  <mkestner@novell.com>
1458
1459         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1460         reporting.
1461
1462 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1463
1464         * TextBox.cs: Implemented context menu
1465
1466 2006-04-12  Mike Kestner  <mkestner@novell.com>
1467
1468         * ListView.cs: implement box selection. fixes #77838.
1469         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1470
1471 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1472
1473         * XplatUIX11.cs: Added setting of window type when transient window
1474           is created (metacity would move it otherwise)
1475         * X11Structs.cs: Added WINDOW_TYPE atoms
1476         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1477           background (the control is Opaque but still wants transparent
1478           backgrounds)
1479
1480 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1481
1482         * Control.cs: Added OnPaintBackgroundInternal to allow controls
1483           that set Opaque but don't mean it (like all ButtonBase-derived
1484           controls) to still draw their background
1485         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1486           the background
1487
1488 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1489
1490         * Control.cs (PaintControlBackground): Set the graphics object
1491           on our PaintEvent to null to prevent it from being disposed
1492           when the PaintEvent gets disposed
1493
1494 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
1495
1496         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1497         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1498
1499 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1500
1501         * Control.cs: 
1502           - Added transparency check to BackColor property. Transparent
1503             backgrounds are only allowed if the control styles permit it
1504           - Added recursive painting of parent control background and
1505             foreground if a control with a transparent backcolor is drawn
1506             (Thanks to Tim Ringenback for providing his 'hack' as a base
1507              for this patch) Fixes #77985 and #78026.
1508           - Added Opaque style check before calling OnPaintBackground, no
1509             need to draw the background if the control is opaque
1510           - Removed ControlAccessibleObject owner variable (inherited from
1511             base, no need to define again)
1512           - Added some documentation links explaining the drawing events
1513             and styles
1514
1515 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1516
1517         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1518           that the affected control is the located at the left border of our
1519           parent (Fixes #77936)
1520
1521 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1522
1523         * TextBoxBase.cs: When rendering disabled or readonly controls,
1524           draw the background with 'Control' instead of 'Window' color as
1525           long as the user hasn't specifically set a color
1526
1527 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1528
1529         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1530           since that won't be updated if the user types text (only if it's
1531           programatically set)
1532
1533 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1534
1535         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1536           layout changes do to app-triggered resizes will have the proper
1537           display rectangle for layout
1538
1539 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1540
1541         * ThemeWin32Classic.cs:
1542           - Make use of the SystemBrushes and SystemPens wherever possible
1543           - Corrected some highlight colors
1544           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1545             drawing
1546         * Theme.cs: Added Empty field to CPColor struct
1547
1548 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1549
1550         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1551           is displayed when calculating the display rectangle. Thanks to Mike
1552           for teaching me the err of my ways.
1553
1554 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1555
1556         * ScrollableControl.cs:
1557           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1558             (instead of 0,0) and we now return the real width/height instead of
1559             just the clientrectangle, adjusted for padding. The rectangle is
1560             now cached and created by the new CalculateDisplayRectangle method.
1561           - Created new CalculateDisplayRectange method, which basically does
1562             what get_DisplayRectangle() did originally, but now using the 
1563             right edge instead of DisplayRectangle to determine the size of
1564             our scrollbars
1565           - get_Canvas(): Fixed it to properly calculate canvas for 
1566             right/bottom controls which seem to be placed to the right/bottom
1567             of any controls that have a fixed location
1568           - Removed TODO that's taken care of
1569           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1570             and SetDisplayRectLocation according to new MSDN2 docs
1571           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1572             event when that is called, this is added for compatibility
1573           - ScrollControlIntoView(): Implemented.
1574           - Switched scrollbars to be implicit, they shouldn't be selectable
1575         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1576           call it when the active control is set/changed
1577         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1578         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1579           implicit_control variable (used for native Win32 message generation)
1580         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1581           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1582         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1583         * XplatUIStructs.cs: Added ScrollBarCommands enum
1584
1585 2006-04-10  Jackson Harper  <jackson@ximian.com>
1586
1587         * ButtonBase.cs:
1588         * CheckedListBox.cs:
1589         * ComboBox.cs:
1590         * DataGrid.cs:
1591         * DataGridView.cs:
1592         * Form.cs:
1593         * GroupBox.cs:
1594         * ListBox.cs:
1595         * PrintPreviewControl.cs:
1596         * ProgressBar.cs:
1597         * PropertyGrid.cs:
1598         * Splitter.cs:
1599         * StatusBar.cs:
1600         * TrackBar.cs:
1601         * UpDownBase.cs: Fixup base event overrides.
1602         
1603 2006-04-06  Mike Kestner  <mkestner@novell.com>
1604
1605         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1606         all user-initiated value changes to min <= value <= max-thumbsz+1.
1607         (set_Value): check for vert/horiz when calculating new thumb position.
1608         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1609         like MS does.
1610         (OnMouseMoveSB): refactor the thumb dragging code and refine
1611         invalidation logic to reduce flicker.
1612         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1613         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1614         (UpdateThumbPosition): small code readability cleanup
1615
1616 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1617
1618         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1619           different
1620
1621 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1622
1623         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1624
1625 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1626
1627         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1628         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1629           This dramatically reduces the number of Pen.Dispose calls. 
1630           Where possible call ResPool methods only once instead of calling it
1631           over and over again (for example for the same color).
1632
1633 2006-04-06  Mike Kestner  <mkestner@novell.com>
1634
1635         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1636         Also remove an unused private field on the collection. Fixes #77972.
1637
1638 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1639
1640         * ThemeNice.cs: Added ToolBar drawing code
1641
1642 2006-04-06  Mike Kestner  <mkestner@novell.com>
1643
1644         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1645         I'm assuming that means we need to look up the toplevel for the
1646         provided control. Fixes the crash trace in #77911 but exposes another
1647         crash in some strange reflection usage in NDocGui.
1648
1649 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1650
1651         * ThemeNice.cs: Gave it a little silver touch and added Images
1652           method
1653         * FontDialog.cs: FontDialog is not resizable
1654         * FileDialg.cs: Added SizeGripStyle.Show
1655
1656 2006-04-05  Jackson Harper  <jackson@ximian.com>
1657
1658         * KeyboardLayouts.cs: Remove warning.
1659
1660 2006-04-05  Jackson Harper  <jackson@ximian.com>
1661
1662         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1663         all of our controls instead of Paint +=.
1664         * ListBox.cs:
1665         * ListView.cs:
1666         * MenuAPI.cs:
1667         * MessageBox.cs:
1668         * NotifyIcon.cs:
1669         * ProgressBar.cs:
1670         * ScrollBar.cs:
1671         * Splitter.cs:
1672         * StatusBar.cs:
1673         * TabControl.cs:
1674         * TextBoxBase.cs:
1675         * ToolBar.cs:
1676         * TrackBar.cs:
1677         * UpDownBase.cs:
1678         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1679         use OnPaintInternal. Remove Width/Height and Visible checks in
1680         paint handler, this is done at a higher level now.
1681         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1682         * PaintEventArgs.cs: Add a handled flag so controls that don't
1683         want anymore painting after OnPaintInternal can make sure OnPaint
1684         isn't called.
1685
1686 2006-04-05  Mike Kestner  <mkestner@novell.com>
1687
1688         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1689         state of the form, so that we don't process events when Modal dialogs
1690         are up. Fixes #77922.
1691
1692 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1693
1694         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1695           checking is done.
1696
1697 2006-04-05  Mike Kestner  <mkestner@novell.com>
1698
1699         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1700
1701 2006-04-05  Mike Kestner  <mkestner@novell.com>
1702
1703         * ListView.cs (HeaderMouseMove): null guarding for the over column
1704         when setting up the drag_to_index.  Fixes #78015.
1705
1706 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1707
1708         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1709           in the taskbar. Transient windows seem to accomplish that.
1710
1711 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1712
1713         * Form.cs:
1714           - Re-enabled CreateParams.X/Y code for FormStartPosition
1715           - Added code for manual placement when creating the Control
1716           - Incomplete patch to treat MDI forms differently when
1717             setting the ClientSizeCore. (Still need to figure out handling
1718             x/y coords there)
1719         * XplatUIX11.cs:
1720           - When we're explicitly setting the X/Y position of a non-Child
1721             window, let the WM know. Metacity really wants this.
1722
1723 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1724
1725         * ThemeNice.cs: Added CPDrawButton
1726
1727 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1728
1729         * ThemeNice.cs: Changed the color for focused buttons and activated
1730           the arrows for small scroll buttons.
1731
1732 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1733
1734         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1735           anymore. Changed some method modifiers to protected (virtual)
1736         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1737           changes
1738         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1739           Updated drawing of menus, buttons and progressbars; added
1740           CPDrawBorder3D 
1741
1742 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1743
1744         * ImageListStreamer.cs: implemented serialization/deserialization
1745         of the images.
1746
1747 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1748
1749         * ThemeWin32Classic.cs:
1750           - Removed all the DrawFrameControl stuff; CPDrawButton,
1751             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1752             inside the methods
1753           - Updated and corrected the drawing code of CPDrawButton,
1754             CPDrawCheckBox and CPDrawRadioButton to better match ms
1755           - Updated theme checkbox and radiobutton code to use the CP*
1756             methods
1757
1758 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1759
1760         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1761           bug is fixed
1762
1763 2006-03-31  Jackson Harper  <jackson@ximian.com>
1764
1765         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1766         sometimes.
1767         * UpDownBase.cs: Don't CreateGraphics manually, use a
1768         Refresh. Ideally we would invalidate the correct areas here.
1769
1770 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1771
1772         * XplatUIX11.cs: 
1773           - We now track the mapping state of windows. If a window (or 
1774             one of it's parents) is not mapped we no longer permit
1775             WM_PAINT messages to be generated since we'd otherwise get 
1776             lots of BadMatch X errors. Jackson did all the work figuring
1777             out the problem.
1778           - Destroying the caret if the window it's contained in is 
1779             destroyed. Can't use regular DestroyCaret method since it
1780             might fall into a drawing function (trying to remove the
1781             caret) and with that generate new BadMatch errors. Again,
1782             Jackson tracked this down.
1783           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1784             make sure we send the messages to all windows. (The old code
1785             would send the WM_DESTROY to the window, and then all child
1786             windows would be 'gone' because the WM_DESTROY handle lookup
1787             would no longer find the destroyed window)
1788         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1789         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1790
1791 2006-03-31  Jackson Harper  <jackson@ximian.com>
1792
1793         * ScrollableControl.cs: Dont recalc if we are not visible.
1794
1795 2006-03-31  Mike Kestner  <mkestner@novell.com>
1796
1797         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1798         the visibility branch.
1799
1800 2006-03-31  Jackson Harper  <jackson@ximian.com>
1801
1802         * ScrollBar.cs: Cap values when incrementing/decrementing.
1803
1804 2006-03-31  Mike Kestner  <mkestner@novell.com>
1805
1806         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1807         * ToolTip.cs: guard against timer expirations with no active control.
1808         Not sure why it happened.
1809
1810 2006-03-31  Mike Kestner  <mkestner@novell.com>
1811
1812         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1813         text.
1814         * ToolTip.cs: Position the tooltip based on where the cursor is at
1815         popup time, not at MouseEnter time.  Add a Down state so that we don't
1816         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1817         positioning offset. Lookup DisplaySize at positioning time, since it
1818         can theoretically change during invocation.
1819         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1820         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1821
1822 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1823
1824         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1825           Fixes behaviour when the Text property of the box is String.Empty
1826
1827 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1828
1829         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1830           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1831           a window)
1832
1833 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1834
1835         * FileDialog.cs: Visual enhancement for the popup buttons in 
1836           PopupButtonPanel
1837
1838 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1839
1840         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1841           code
1842
1843 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1844
1845         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1846           highlighted menu items to match ms
1847
1848 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1849
1850         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1851
1852 2006-03-30  Mike Kestner  <mkestner@novell.com>
1853
1854         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1855         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1856         go active to account for HotLight to Selected transition.
1857         * MenuItem.cs: add internal Selected prop. Fill out the Status
1858         property by calculating it from item info. Add HotLight,
1859         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1860
1861 2006-03-30  Mike Kestner  <mkestner@novell.com>
1862
1863         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1864
1865 2006-03-29  Jackson Harper  <jackson@ximian.com>
1866
1867         * Form.cs: Implement TODO.
1868
1869 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1870
1871         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1872           missing proper dialog setup in the constructor
1873
1874 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1875
1876         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1877         * Control.cs:
1878           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1879           - Fixed ResetBindings and removed TODO
1880           - Added check for cross-thread calls to get_Handle()
1881           - Added Marshaller attribute for set_Font to satisfy class status
1882         * FontDialog.cs: Removed TODOs that seemed implemented
1883         * UpDownBase.cs: Removed unneeded TODO and Fixme
1884         * MessageBox.cs: Implemented support for Default button and removed TODO
1885         * FileDialog.cs: Removed obsolete TODO
1886         * DomainUpDown.cs: Removed obsolete TODO
1887         * ButtonBase.cs: Removed obsolete TODO
1888         * XplatUIWin32.cs: Removed obsolete TODO
1889         * Form.cs:
1890           - Removed obsolete TODO
1891           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1892             internal status updates
1893           - Making sure the active control is selected when the control is created
1894         * CurrencyManager.cs: Removed obsolete TODO
1895
1896 2006-03-29  Mike Kestner  <mkestner@novell.com>
1897
1898         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1899         of PrintPreviewDialog and RichTextBox.
1900
1901 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1902
1903         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1904           DarkDark, Light and LightLight colors for a specific color
1905         * ThemeWin32Classic.cs:
1906           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1907             Appearance = Button 
1908           - Make use of the new ResPool helper CPColor
1909           - Draw ProgressBar and StatusBar with correct 3D borders
1910
1911 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1912
1913         * ColorDialog.cs: Return selected color. Fixes bug #77940.
1914
1915 2006-03-28  Mike Kestner  <mkestner@novell.com>
1916
1917         * ListView.cs: fix Icon layout to plan for scrollbar widths when
1918         calculating col/row counts.
1919
1920 2006-03-28  Mike Kestner  <mkestner@novell.com>
1921
1922         * ColumnHeader.cs:
1923         * ListView.cs:
1924         * ListViewItem.cs:
1925         * Menu.cs: 
1926         switch to explicit interface method implementation for some methods
1927         corcompare identifies as inconsistent with MS.
1928
1929 2006-03-28  Mike Kestner  <mkestner@novell.com>
1930
1931         * MainMenu.cs: 
1932         * Menu.cs:
1933         add a few missing methods from the class status output.
1934
1935 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
1936
1937         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1938           correct.
1939
1940 2006-03-28  Mike Kestner  <mkestner@novell.com>
1941
1942         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1943
1944 2006-03-27  Mike Kestner  <mkestner@novell.com>
1945
1946         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1947         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1948
1949 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
1950
1951         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1952
1953 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1954
1955         * ThemeWin32Classic.cs:
1956           - GroupBox: Inserted a little gap between the text and the lines
1957             on the right side
1958           - Made the code in CPDrawBorder3D more readable
1959           - Corrected the drawing location of the up and down arrows in 
1960             CPDrawScrollButton
1961
1962 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1963
1964         * ControlPaint.cs: Corrected line widths in DrawBorder for
1965           ButtonBorderStyle Inset and Outset
1966
1967 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1968
1969         * ThemeWin32Classic.cs:
1970           - Rewrote the totally broken CPDrawBorder3D method. That was
1971             one of the main problems for the terrific ThemeWin32Classic
1972             look
1973           - Updated and corrected Button drawing
1974           - Correct the dimensions of the SizeGrip to match ms ones
1975           - Removed a small drawing glitch in DrawComboBoxEditDecorations
1976         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1977           Border3DStyle.Sunken to match ms.
1978
1979 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1980
1981         * ThemeWin32Classic.cs: First small part of the "de-uglify
1982           ThemeWin32Classic" effort, SizeGrip
1983
1984 2006-03-24  Jackson Harper  <jackson@ximian.com>
1985
1986         * XplatUIX11.cs: Give a max idle time of one second, this matches
1987         MS and forces an Idle event every second when there are no other
1988         events in the queue.
1989
1990 2006-03-24  Mike Kestner  <mkestner@novell.com>
1991
1992         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1993         * ListView.Item.cs: fix layout issues with null image lists and images
1994         smaller than checkbox size.
1995         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1996         mode like MS does.  It's weird, but consistent.  ;-)
1997         Fixes #77890.
1998
1999 2006-03-24  Mike Kestner  <mkestner@novell.com>
2000
2001         * ListView.cs: Scroll wheel support for the item control.  Fixes
2002         #77839.
2003
2004 2006-03-23  Jackson Harper  <jackson@ximian.com>
2005
2006         * ScrollableControl.cs: Special case negative sized areas, not
2007         zero.
2008         * MonthCalendar.cs: Save the rect of the clicked date so we can
2009         use it for invalidation.
2010         - Try to cut down on the number of invalidates
2011         - Invalidate the rect the mouse is over and was over when moving
2012         the mouse, so we get the focus box following the cursor.
2013
2014 2006-03-23  Mike Kestner  <mkestner@novell.com>
2015
2016         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
2017         focus rectangle drawing. Fixes #77835.
2018
2019 2006-03-23  Mike Kestner  <mkestner@novell.com>
2020
2021         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
2022         the if and else if and reverting back to the original == check on the
2023         None conditional.
2024
2025 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2026
2027         * FontDialog.cs: Update the example panel if the selected index of
2028           the fontListBox changes.
2029
2030 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
2031
2032         * FileDialog.cs: Make FileDialog remember which directory it was in
2033           last in the same execution.
2034
2035 2006-03-22  Mike Kestner  <mkestner@novell.com>
2036
2037         * FileDialog.cs: make the DropDownMenu on the toolbar display
2038         RadioChecks since they are mutually exclusive and that's what MS does.
2039
2040 2006-03-22  Mike Kestner  <mkestner@novell.com>
2041
2042         * Theme.cs: add Color param to CPDrawMenuGlyph.
2043         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
2044         checks and radio marks and arrows are visible on highlighted items.
2045         * ControlPaint.cs: update to use new Theme signature.
2046
2047 2006-03-22  Mike Kestner  <mkestner@novell.com>
2048
2049         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
2050         is active. Fixes #77870.
2051
2052 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2053
2054         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
2055           to be focused/selected after startup
2056
2057 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
2058
2059         * ColorDialog.cs: 
2060           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
2061             CustomColors and ShowHelp properties
2062           - Some internal rewrites to get better results when using the
2063             ColorMatrix
2064
2065 2006-03-22  Mike Kestner  <mkestner@novell.com>
2066
2067         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
2068         HoverSelection.  Fixes #77836.
2069
2070 2006-03-22  Mike Kestner  <mkestner@novell.com>
2071
2072         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
2073         ToggleButtons.  (De)Sensitize the Back button around a stack count of
2074         1, not 0.  Update ButtonSize based on a pixel count of the win32
2075         control.  Adjust the toolbar size/location for new button size.
2076
2077 2006-03-22  Jackson Harper  <jackson@ximian.com>
2078
2079         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
2080         true.
2081         * ScrollBar.cs: When doing increments and decrements we need to
2082         set the Value property so that ValueChanged gets raised. A
2083         possible optimization here would be to make an internal SetValue
2084         that doesn't invalidate immediately.
2085         * ToolTip.cs: Tooltips get added to their container (when
2086         supplied) so they get disposed when the container is disposed.
2087         - Don't create tooltips for String.Empty. This prevents all these
2088         little 2-3 pixel windows from showing up when running nunit-gui
2089         and driving me mad.
2090         * Form.cs: Don't set topmost when setting the owner if the handles
2091         haven't been created yet.  The topmost set will happen when the
2092         handles are created.
2093
2094 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2095
2096         * XplatUIX11.cs:
2097           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2098           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2099             visible (to allow them to recalculate their sizes)
2100
2101 2006-03-21  Mike Kestner  <mkestner@novell.com>
2102
2103         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2104         methods. Removed a ton of redundant code.  Still not really happy with
2105         the border rendering, but I think that's mainly because of the
2106         ControlDarkDark being black instead of a dark grey. Depending on how 
2107         close we want to be, we might want to revisit those color choices.
2108         Among the new features added during the refactor were DropDownArrow
2109         pressed rendering, Disabled image rendering.  Proper flat appearance
2110         boundary rendering.  Removed the Divider and Wrapping dividers since I
2111         can't figure out any combination of themes and conditions to make the
2112         MS control draw a horizontal line on a toolbar despite what the
2113         Divider property docs indicate.
2114         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
2115         conditions and incorrect layout.  Updated to coding standard.
2116         * ToolBarButton.cs: refactored layout and positioning code from
2117         ToolBar to here.  Invalidate wherever possible instead of forcing
2118         redraws of the whole toolbar. 
2119         (Known remaining issues: explicit ButtonSize smaller than provided
2120         images.)
2121
2122 2006-03-21  Mike Kestner  <mkestner@novell.com>
2123
2124         * ContextMenu.cs (Show): use the position parameter instead of just
2125         showing at the MousePosition.
2126
2127 2006-03-21  Jackson Harper  <jackson@ximian.com>
2128
2129         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
2130         control handle this.
2131         * TreeNodeCollection.cs: If we are clearing the root node we need
2132         to reset top_node so calcs can still happen.
2133         * ThemeWin32Classic.cs: This is a Flags so we need to check
2134         properly.
2135         
2136 2006-03-21  Jackson Harper  <jackson@ximian.com>
2137
2138         * DataGrid.cs: Create columns when the binding context has been
2139         changed.
2140         * X11Structs.cs: Keysyms are uints.
2141         - Add size to fix build.
2142
2143 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
2144
2145         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2146           XplatUIOSX.cs: 
2147           - Added ResetMouseHover method to allow controls to retrigger
2148             hovering if they need it more than once
2149           - Implemented MouseHoverTime and MouseHoverSize properties
2150         * Timer.cs: Start() must reset the interval
2151         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
2152           properties
2153
2154 2006-03-21  Jackson Harper  <jackson@ximian.com>
2155
2156         * X11Keyboard.cs: improved layout detection. Move the nonchar
2157         tables into this file.
2158         * KeyboardLayouts.cs: Move the tables into resource files.
2159
2160 2006-03-21  Mike Kestner  <mkestner@novell.com>
2161
2162         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2163
2164 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
2165
2166         * Mime.cs: Various speed optimizations. Looking up mime types
2167           is now 2 times faster than before
2168
2169 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
2170
2171         * CreateParams.cs: Added internal menu field
2172         * Control.cs: 
2173           - Switched call order for UpdateBounds; now we always call
2174             the one that also takes ClientSize, and we're calculating the 
2175             client size via driver method in the others. The previous
2176             method of tracking client size by difference wasn't working
2177             for forms where even the starting client size wouldn't match
2178             the overall form size (due to borders) (Part of fix for #77729)
2179           - CreateParams(): Do not use parent.Handle unless the handle is
2180             already created. Causes havoc with Nexxia and throws off our
2181             creation of controls
2182         * XplatUIX11.cs:
2183           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
2184           - Switched handling of ConfigureNotify over to new PerformNCCalc 
2185             method (consolidates code)
2186           - Changed RequestNCRecalc to use new PerformNCCalc method
2187           - Added calls to RequestNCRecalc when menus and borders are changed
2188             to allow app to set NC size. (Part of fix for #77729) This matches
2189             when MS send a WM_NCRECALC on Win32 windows.
2190           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
2191             (Part of fix for #77729). This matches what MS does, they also
2192             send that message when the form is made visible.
2193           - XException.GetMessage: Improved usability of X errors by including
2194             a translation of the window into Hwnd and Control class
2195           - Improved debug info for window creation, reparenting and destruction
2196           - Created helper method WindowIsMapped() [Currently not used]
2197         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2198         * Form.cs:
2199           - CreateParams: Now setting our menu on the new internal menu field
2200           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2201             avoid calculating the same property twice
2202         * Hwnd.cs:
2203           - Improved usability of ToString() for debugging purposes
2204           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2205             determine the height of the menu, instead of just the font. This
2206             required to also create a graphics context and to keep a bmp 
2207             around (for performance reasons)
2208
2209 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2210
2211         * MenuAPI.cs: Added OnMouseUp method
2212         * Form.cs:
2213           - Now remembering the requested client size, avoids size errors
2214           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2215             instead of base if the menu is active. This is required due to
2216             control now capturing and releasing on down/up and it would
2217             prematurely release our menu capture
2218
2219 2006-03-17  Jackson Harper  <jackson@ximian.com>
2220
2221         * KeyboardLayouts.cs: Add the czech layouts.
2222
2223 2006-03-16  Jackson Harper  <jackson@ximian.com>
2224
2225         * Control.cs: Use the viewport space when sizing not the controls
2226         client size, so things like ScrollableControl that effect the
2227         viewport size (when scrollbars are added) are computed correctly.
2228         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2229         of ManagerEntrys.
2230         - Handle creating BindingManagers for null data sources.
2231         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2232         source, otherwise when rows are added they are added to the 'fake'
2233         datasource and we will crash when trying to set the position in
2234         those rows.
2235         - Use Implicit scrollbars on the datagrid so they arent
2236         selectable.
2237         
2238 2006-03-16  Jackson Harper  <jackson@ximian.com>
2239
2240         * Binding.cs:
2241         * InternalWindowManager.cs:
2242         * MdiWindowManager.cs:
2243         * X11Keyboard.cs: I really want Mike to love me again (fix
2244         compiler warnings).
2245
2246 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2247
2248         * DataGrid.cs:
2249           - OnMouseDown: Switch to editing mode when clicking on the cell
2250                          even if we're clicking on the cell that's currently 
2251                          selected
2252           - ProcessGridKey: Left/Right now wrap like MS.Net does
2253           - ProcessGridKey: Tab now knows to add a new row when tab is
2254                             pressed in the cell of the last column of the 
2255                             last row
2256           - ProcessGridKey: Enter now adds another row  if pressed in the last
2257                             row and selectes the new row, same column cell
2258           - ProcessGridKey: Home/End navigate columns, not rows, like 
2259                             originally implemented
2260           - Broke ProcessKeyPreview code out into an extra Internal method
2261             so it can be called from the edit code
2262         * DataGridTextBox.cs (ProcessKeyMessage):
2263           - Switched to accept Tab keypresses
2264           - Added F2 handling to allow jumping to the end of the edited cell
2265           - Added logic to allow moving caret left/right inside edited cell
2266             and making the edited cell jump when the caret hits cell borders
2267           - Tab and Enter are now passed to the datagrid after being handled
2268         * TextBoxBase.cs:
2269           - Removed capture code now that Control handles it
2270           - set_SelectionStart now ensures caret is visible
2271
2272 2006-03-16  Jackson Harper  <jackson@ximian.com>
2273
2274         * TrackBar.cs: Debackwards the increment/decrement for handling
2275         mouse clicks on the bar with vertical trackbars.
2276         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2277         bottom to match MS.
2278
2279 2006-03-16  Mike Kestner  <mkestner@novell.com>
2280
2281         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2282         consistent with the MS control. Fix a bug in
2283         SelectedListViewItemCollection.Clear that was pissing me off for the
2284         better part of a day because the collection was being altered
2285         underneath us as we walked the list.
2286
2287 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2288
2289         * Control.cs: Not sure how we could miss this so long, but it seems
2290           that MS.Net has Capture set all the way from before calling 
2291           OnMouseDown through sending the mouse events until after
2292           OnMouseUp. This will fix DataGrid's selection being set to end
2293           at the location of the MouseUp.
2294
2295 2006-03-15  Jackson Harper  <jackson@ximian.com>
2296
2297         * BindingContext.cs: Check the binding after its added so that it
2298           can initialize the binding managers and hookup to events.
2299         * Binding.cs: Data members seem to sometimes include rows/cols in
2300           the format Row.Column we now take this into account.
2301           - Hookup to the position changed event so we can update the
2302           control when the position has changed in the data set.
2303         * CurrencyManager.cs: Take into account the row/col naming
2304           convention when creating dataset tables.
2305         * BindingContext.cs: Using a newer better way of storing
2306           datasource/datamember pairs.  Hopefully this better matches MS for
2307           looking up binding managers.
2308
2309
2310 2006-03-15  Jackson Harper  <jackson@ximian.com>
2311
2312         * BindingContext.cs: The currency manager needs the data member
2313         name, if the member is a data set we use the name to find the
2314         correct table.
2315         * CurrencyManager.cs: When creating the list prefer an IList over
2316         an IListSource.
2317         - Attempt to create a DataTable from a DataSet (TODO: might need
2318         some better error checking here, although MS doesn't seem to have much)
2319         - If we have a DataTable create a view and use it as our list.
2320
2321 2006-03-15  Mike Kestner  <mkestner@novell.com>
2322
2323         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2324         keyboard navigation. Support Up/Down/Left/Right selection correctly
2325         for all 4 View modes.
2326         * ListViewItem.cs: add internal row/col fields for icon layouts.
2327
2328 2006-03-15  Jackson Harper  <jackson@ximian.com>
2329
2330         * TabControl.cs: Redraw the tabs when we resize so their newly
2331         calculated sizes are drawn on screen.
2332         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2333         composite characters.
2334         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2335         - filter events so that composite characters can be created
2336         patches by peter
2337         * X11Structs.cs: Add XIMProperties enum.
2338
2339 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2340
2341         * Control.cs (BringToFront, SendToBack): Don't use window or handle
2342           unless it's created
2343
2344 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2345
2346         * Control.cs (PerformLayout): We don't need to consider visiblity
2347           for anchoring, only for docking. This fixes 'whacky' alignment
2348           in listbox and other controls that use implicit scrollbars after
2349           the previous PerformLayout patch
2350         * ListBox.cs: Switched to use implicit scrollbars
2351           
2352 2006-03-14  Mike Kestner  <mkestner@novell.com>
2353
2354         * ToolBar.cs: 
2355         * VScrollBar.cs:
2356         - chain up the "new event" overrides to base and use
2357         OnEvent to raise them.  Part of fix for bug #76509.
2358
2359 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
2360
2361         * FileDialog.cs: Do not select an item in the parent directory
2362           on backspace
2363
2364 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2365
2366         * Control.cs (PerformLayout): It would seem that we considered
2367           invisible windows for our layout. Not quite the right thing
2368           to do. Now we don't any longer, thereby fixing bug #76889.
2369
2370 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2371
2372         * Control.cs (CanFocus): I goofed. A control can have focus 
2373           even though it's not selectable. Made it match MS docs.
2374
2375 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2376
2377         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2378           center by default (fixes #76895)
2379         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
2380           all uses of Border3DSides.All with the explicit ORd together
2381           Left|Right|Top|Bottom because I assume that nobody was aware 
2382           that All also implies a center fill. Most places I checked had
2383           a fill right above.
2384         * ProgressBarStyle.cs: Added
2385
2386 2006-03-13  Mike Kestner  <mkestner@novell.com>
2387
2388         * ListView.cs: fix breakage in drag shadow header positioning 
2389         from Peter's csc compilation fix.
2390
2391 2006-03-13  Mike Kestner  <mkestner@novell.com>
2392
2393         * ListView.cs: fix NRE produced by backspacing twice in a focused
2394         FileDialog.
2395
2396 2006-03-13  Mike Kestner  <mkestner@novell.com>
2397
2398         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2399
2400 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2401
2402         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2403           be changed
2404         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2405           the allowed size before making programmatic size changes
2406
2407 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
2408
2409         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
2410           set, metacity is broken and will still use the emty sizes in 
2411           the struct. (Fix for #77089)
2412
2413 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2414
2415         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2416           WindowExStyles and marked both enums as Flags
2417         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2418           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2419           to match WindowStyles split
2420         * XplatUIX11.cs:
2421           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2422           - Updated to match WindowStyles split
2423         * XplatUIWin32.cs:
2424           - Fixed FosterParent creation, was using ExStyle on the Style field
2425             (This should help with Popup focus issues)
2426           - Updated to match WindowStyles split
2427
2428 2006-03-13  Jackson Harper  <jackson@ximian.com>
2429
2430         * MdiWindowManager.cs: Use the system menu height. Fixes some
2431         strange sizing issues.
2432
2433 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2434
2435         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2436         * TextBoxBase.cs:
2437           - Scroll to caret after inserting text (#77672)
2438           - Make scroll range one pixel higher, fixes off-by-one error (and
2439             makes underlines visible on the last line)
2440
2441 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2442
2443         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2444           the keyboard state from being stuck with keys in 'pressed' state when
2445           focus is switched away via keyboard
2446         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2447           reset the keyboard if no X11 KeyUp events are expected to come
2448         * X11Structs.cs: Switched type of Visible to bool to match driver
2449
2450 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2451
2452         * TextControl.cs:
2453           - Switched caret to be just 1 pixel wide, matches MS and looks less
2454             clunky
2455           - Moved caret display 1 pixel down from the top of the control
2456             to improve view
2457           - InsertCharAtCharet: Update the selection start if moving the caret
2458             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2459           - No longer always creating the caret when the caret methods are
2460             called. Only the actual ShowCaret/HideCaret will do that now
2461           - Only setting caret visible if the owner control has focus
2462           - UpdateView: Added invalidation-shortcut logic for center and right 
2463             aligned text. Previously we'd update all according to the left
2464             logic which caused drawing errors. Also fixed height of invalidated
2465             areas, now properly invalidating the whole area (was off-by-one)
2466           - owner_HandleCreated: Always generate the document when the
2467             handle is created; this ensures that 
2468         * TextBoxBase.cs:
2469           - Fixed situation where caret would disappear under the right
2470             window border, also improved scrolling behaviour on left-
2471             aligned textboxes
2472           - Fixed right-aligned textboxes to have a border to the
2473             right instead of the caret being under the right border
2474         * XplatUIX11.cs:
2475           - Switched from 'nested' to simple visible/not visible tracking 
2476             for caret (part of fix for #77671)
2477           - No longer passing through translated FocusIn/FocusOut messages
2478             since we were notifying too often and the wrong windows. Instead
2479             we just notify our focussed window of receiving or loosing focus
2480         * XplatUIWin32.cs: Switched from 'nested' show/hide 
2481           counting for caret to simple visible yes/no behaviour (part of 
2482           fix for #77671)
2483
2484 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2485
2486         * Mime.cs: Remove debug code...
2487
2488 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2489
2490         * MimeGenerated.cs: Removed
2491         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2492           and subclasses) from /usr/(local/)share/mime and
2493           $HOME/.local/share/mime.
2494
2495 2006-03-10  Jackson Harper  <jackson@ximian.com>
2496
2497         * MdiWindowManager.cs: Recalc the NC area when a window is
2498         maximized/restored so that the menu area is drawn on forms that
2499         don't have a menu.
2500
2501 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2502
2503         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2504           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2505           us to force a WM_NCCALCRESIZE message being sent. This is needed
2506           for MDI maximizing.
2507
2508 2006-03-10  Jackson Harper  <jackson@ximian.com>
2509
2510         * Form.cs: We need to use the ActiveMenu when calculating menu
2511         height.
2512         - Fix nullref when the window manager hasn't been created yet.
2513         * Control.cs: Fix nullref when we try to bring a control to the
2514         front that has no parent.
2515         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2516         height.
2517         - Add a dummy item to the maximized menu so it always has the
2518         correct height. Otherwise when there are no menus we don't get our
2519         icon and buttons.
2520         
2521
2522 2006-03-10  Jackson Harper  <jackson@ximian.com>
2523
2524         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2525         stuff.
2526         * Form.cs: Make the window_state internal so the window managers
2527         can track it.
2528         - When an MDI child is maximized let its window manager create the
2529         main menu (so it can add its icon).
2530         - Notify the window managers of state changes
2531         - Let the window manager paint its buttons and handle button
2532         clicks on the menu when it is maximized.
2533         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2534         window manager, since tool windows don't use it, only mdi windows.
2535         - Tell the main form that we don't want it to handle NCPAINT
2536         itself to avoid extra painting.
2537         - Handle clicks on a maximized windows menu.
2538         - Handle window state changes
2539         - Handle minimize/maximize clicks correctly by setting the window state.
2540         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2541         when clicking on the forms icon).
2542         - New method to create a forms maximized menu. This is its normal
2543         menu + an icon.
2544         - Handle window state changes.
2545         - Handle sizing of maximized windows.  Maximized windows are just
2546         drawn bigger then the parent visible area. All controls are still
2547         there, they are just outside the visible area (this matches windows).
2548         * MdiClient.cs: No scrollbars when a child window is maximized.
2549         - Let the children windows figure out how big they should be when
2550         sizing maximized windows.
2551         - Implement a version of ArrangeIconicWindows somewhat similar to
2552         Windows version.  There are some little differences, but I don't
2553         think any app will rely on the layout of minimized mdi windows.
2554
2555 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2556
2557         * Padding.cs: Several fixes to allow compiling with csc 2.0
2558
2559 2006-03-09  Jackson Harper  <jackson@ximian.com>
2560
2561         * Menu.cs:
2562         * MenuItem.cs: Cheap hack so we can add items to the list without
2563         the events being raised.  This allows adding mdi items during
2564         drawing. TODO: Should probably find a better time to add the items.
2565
2566 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2567
2568         * ThemeWin32Classic.cs:
2569           - CheckBox_DrawText: Added logic to not wrap if not enough space
2570             is available (Fix for bug #77727)
2571           - RadioButton_DrawText: Added logic not to wrap if not enough
2572             space is available (Fix for bug #77727). Also removed some
2573             duplicate code, DrawString always drawing the regular text
2574             before hitting the if statement.
2575
2576 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2577
2578         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2579
2580 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2581
2582         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2583         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2584           methods. Moved the new 2.0 properties into alphabetical order with
2585           other properties and added MonoTODO tags
2586
2587 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2588
2589         * AutoScaleMode.cs: Added. Fix build.
2590
2591 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2592
2593         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2594           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2595           and was requiring premature handle creation for calls from above
2596         * Form.cs, Control.cs: Removed handle arguments from calls to
2597           CalculateClientRect()
2598
2599 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2600
2601         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2602           drag_column.column_rect is MarshalByRef and can't be used that way
2603
2604 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2605
2606         * AxHost.cs: Added deserialization constructor for 
2607           AxHost+State (fixes 77743)
2608
2609 2006-03-09  Mike Kestner  <mkestner@novell.com>
2610
2611         * ListView.cs: 
2612         - Added column drag reordering for details view.
2613         - fixed behavior when mouse is dragged off column and
2614         AllowColumnReorder is false.
2615         * ColumnHeader.cs: clone the format too in Clone.
2616         * Theme.cs: add DrawListViewHeaderDragDetails method.
2617         * ThemeWin32Classic.cs:
2618         - impl new method for drawing drag column shadows and targets.
2619         - support column offset for details mode in DrawListViewItem.
2620
2621 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2622
2623         * TextControl.cs: Reset the char_count when the document is cleared
2624           (Fixes bug reported on mono-winforms mailing list)
2625
2626 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2627
2628         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2629           of calling base we simply process the key ourselves, since both
2630           DefWindowProc and the handled method would set m.Result. 
2631           (Fixes #77732)
2632
2633 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2634
2635         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2636           method also moves the window; instead implemented a copy of
2637           Control.ScaleCore (Part of fix for #77456)
2638         * TextBoxBase.cs: 
2639           - Created new CreateGraphicsInternal method to allow providing
2640             a graphics context when no handle is created without triggering
2641             handle creation. (Part of fix for #77456)
2642           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2643         * TextControl.cs: 
2644           - Switched Constructor to require TextBoxBase instead of Control (to
2645             allow uncast access to CreateGraphicsInternal)
2646           - Safeguarded use of owner.Handle property. No longer accessing it
2647             unless the handle is already created.
2648           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2649           - Now triggering a recalc when owning control becomes visible
2650         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2651           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2652           premature handle creation (Part of fix for #77456)
2653         * Control.cs:
2654           - We now only destroy our double-buffering buffers when the
2655             control is resized or disposed, but not when visibility
2656             changes. (The code even re-created them twice every time)
2657           - Now requiring a redraw of the buffer on visibility changes
2658             (fixes bug 77654 part 2)
2659           - Not passing OnParentVisibleChanged up unless the control
2660             is visible
2661           - CanFocus: Fixed to match MS documentation
2662           - Focus: Fixed to return actual focus state and to check if
2663             setting focus is legal before setting it
2664
2665 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2666
2667         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2668           when to draw focus rectangle by looking at parent focus and
2669           selected state instead. This fixes TabPages on Linux sometimes
2670           having none or multiple focus rectangles.
2671         * XplatUIX11.cs (SetFocus): 
2672           - Don't set the focus if the same window already has focus
2673           - Use SendMessage instead of PostMessage (like it's Win32
2674             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2675             to match MS behaviour
2676         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2677           are not selectable.
2678
2679 2006-03-07  Jackson Harper  <jackson@ximian.com>
2680
2681         * PictureBox.cs: Revert line I accidently committed last week.
2682
2683 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2684
2685         * Control.cs: 
2686           - Added new IsRecreating and ParentIsRecreating properties to
2687             allow testing if RecreateHandle has been called on ourselves
2688             or one of our parents
2689           - WndProc(WM_DESTROY): If our control handle is being recreated
2690             we immediately need to create the handle when receiving the
2691             destroy, that way our child windows find a valid parent handle
2692             when they themselves are being recreated upon WM_DESTROY receipt
2693             (fix for bug #77654 part 1)
2694         * XplatUIX11.cs:
2695           - DestroyWindow: WM_DESTROY must be sent to our own window before
2696             notifying any child windows. MS documents that child windows
2697             are still valid when WM_DESTROY is received. (Control now relies on
2698             this behaviour)
2699           - Added some fine-grain debug options
2700
2701 2006-03-06  Jackson Harper  <jackson@ximian.com>
2702
2703         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2704         box and base calculations off this.
2705         * MdiChildContext.cs:
2706         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2707         anymore.
2708         
2709 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2710
2711         * Splitter.cs: In situations where the affected control is added
2712           to the parent's control list after the splitter, we would not
2713           populate affected. Now we try populating it on mousedown, if
2714           it's not already set, and force it to be re-set whenever our
2715           parent changes.
2716
2717 2006-03-03  Matt Hargett  <matt@use.net>
2718
2719         * Control.cs: implement Control.Padding
2720         * Padding.cs: -Padding.All returns -1 when constructing with the
2721         implicit default ctor
2722         -Padding.ToString() matches MS.NET
2723         * ContainerControl.cs: implement
2724         ContainerControl.AutoScaleDimensions
2725         * ListControl.cs: implement ListControl.FormattingEnabled
2726         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2727         * ButtonBase.cs:
2728         * TabPage.cs: Implement UseVisualStyleBackColor.
2729         * PictureBox.cs: Implement PictureBox.InitialImage.
2730
2731 2006-03-03  Mike Kestner  <mkestner@novell.com>
2732
2733         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2734         event declarations to proxy to base event.
2735         * ListViewItem.cs: update to use ItemControl.
2736         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2737         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2738         column header label rendering for 0 width columns.
2739
2740 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2741
2742         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2743           that causes the control to be created. Fixes #77476.
2744
2745 2006-03-02  Jackson Harper  <jackson@ximian.com>
2746
2747         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2748         expose_pending.
2749
2750 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2751
2752         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2753           passed in for the EventArgs (fixes #77690)
2754
2755 2006-03-01  Jackson Harper  <jackson@ximian.com>
2756
2757         * ScrollBar.cs: Refresh afterbeing resized.
2758
2759 2006-02-28  Mike Kestner  <mkestner@novell.com>
2760
2761         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2762         Clean up a tracker compile warning.
2763         * MenuItem.cs: add internal PerformPopup method.
2764         [Fixes #77457]
2765
2766 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2767
2768         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2769           implicit expose) when the text is set to null
2770
2771 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2772
2773         * RichTextBox.cs (FlushText): When newline is true, we always
2774           need to split the line, even if no text is on it and we may
2775           never eat newlines. (Fixes #77669)
2776
2777 2006-02-28  Mike Kestner  <mkestner@novell.com>
2778
2779         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2780         and set Selected instead.
2781         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2782         collections.
2783
2784 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2785
2786         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2787
2788 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2789
2790         * FontDialog.cs:
2791           - Got rid of the panel. All controls are now directly added to
2792             the dialog form
2793           - It is now possible to set a font with the Font property
2794           - MinSize and MaxSize property do now what they should
2795           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2796           - Searching and selecting a font with the font textbox works now,
2797             the same applies to the style and size textbox
2798           - Draw the correct 3D border in the example panel
2799           - Fixed a little mem leak (unused fonts didn't get disposed)
2800           - Many other internal updates/rewrites...
2801           - Fix typo
2802
2803 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2804
2805         * TextControl.cs: 
2806           - InsertRTFFromStream: Added 'number of characters inserted' argument
2807           - set_SelectedRTF: Now using the number of characters to calculate
2808             the new location for the selection and cursor (x/y cannot be used
2809             due to potentially already wrapped text)
2810
2811 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2812
2813         * TextControl.cs: Added property and implemented means to allow 
2814           disabling recalculation of a document (can be used to speed up
2815           multiple inserts and is needed to make RTF inserts predictable, see
2816           bug #77659)
2817         * RichTextBox.cs: Using the new NoRecalc property of Document to
2818           keep x/y insert locations predictable. Also makes it faster inserting
2819           large chunks of RTF
2820
2821 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2822
2823         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2824           it's easier for a child control to handle the other messages without
2825           having to duplicate the special functionality
2826         * TextBoxBase.cs
2827           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2828             code to handle processing the key ourselves, in order to get 
2829             access to the result of KeyEventArgs.Handled. We now only call 
2830             ProcessKey if they key hasn't been handled already. Fixes #77526.
2831           - set_Text: If null or empty string is given, just clear the 
2832             document. Fixes part of #77526
2833
2834 2006-02-27  Jackson Harper  <jackson@ximian.com>
2835
2836         * SizeGrip.cs: Paint the background color before painting the grip
2837         so things look right.
2838         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2839
2840 2006-02-27  Mike Kestner  <mkestner@novell.com>
2841
2842         * ListView.cs:
2843           - Restructure layout and invalidation model to remove a ton of
2844           flicker from the control and speed up performance in general.
2845           - Add manual column resize, flickers like crazy, but I already have
2846           some ideas on how I'll fix that. (#76822)
2847           - Merge the three Icon-based views into a single layout method.
2848           - Move item selection interaction logic from the item since 
2849           interaction with the collections is more appropriate to the view.
2850           - Deselection on non-item clicks.
2851         * ListViewItem.cs:
2852           - Encapsulate most of the layout. Add some internal props to trigger
2853           layout.  Move to a model where Items invalidate themselves instead
2854           of just invalidating the whole control every time something changes.
2855           - Invalidate on Text/Caption changes.
2856           - switch to an offset based layout model to avoid having to absolute
2857           position every element on item moves.
2858           - correct checkbox layout to conform to MS layout.
2859         * ThemeWin32Classic.cs:
2860           - refactor some column header drawing code.
2861           - fix string justification for column headers (#76821)
2862           - make SmallIcon labels top justified for compat with MS impl.
2863         * ThemeClearlooks.cs:
2864           - adjust to new ListViewItem internal checkbox bounds api.
2865
2866 2006-02-27  Jackson Harper  <jackson@ximian.com>
2867
2868         * Control.cs:  Change where implicit controls fall in the zorder.
2869         They are now on top of all children.
2870         - Synced AddImplicit code with Add
2871         - Removed unused enumerator.
2872         * SizeGrip.cs: Remove the TODO as its been TODONE.
2873
2874 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2875
2876         * TextControl.cs(Insert): Combine the last lines unless the insertion
2877           string ends with \n\n, otherwise we leave one line too many (Fixes
2878           something I noticed with the testapp for #77526; the bug itself was
2879           already fixed in the previous checkin)
2880
2881 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2882
2883         * RichTextBox.cs:
2884           - SelectionColor and SelectionFont methods no longer set absolute
2885             styles. Instead, the keep font or color respectively (This 
2886             resolves a long-standing FIXME in the code)
2887           - When flushing RTF text, the insert code now considers text trailing
2888             behind the insertion point (Fixes the bug where when replacing
2889             the selected text via SelectedRTF the remainder of the line behind 
2890             the selection would stay on the first insertion line)
2891         * TextBoxBase.cs:
2892           - AppendText now updates the selection points after inserting text
2893           - AppendText now ensures that the last tag (sometimes 0-length) of
2894             the document is used for the style information (Fixes part of 
2895             bug #77220)
2896         * TextControl.cs:
2897           - Created new FontDefiniton class to allow describing partial style
2898             changes
2899           - StreamLine() now takes a lines argument, to allow it to decide
2900             whether an encountered zero-length tag is the last in the document
2901             (which must be kept to not loose the font/color contained in it,
2902             for later appends)
2903           - Created Combine() and Split() methods for Marker structs, to 
2904             support marker updates due to reformatted documents (soft line
2905             wraps)
2906           - Implemented Document.CaretTag setter
2907           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2908             of the last line (Not the cause, but also exposed by bug #77220)
2909           - Added LineTag argument to InsertString method, to allow callers
2910             to force a certain tag to be used (required to force use of the
2911             trailing zero-length tag of a document)
2912           - Now updating markers in Combine(), to avoid stale tag markers
2913           - Added some method descriptions to aid maintenance
2914           - Implemented new FormatText concept, allowing additive/subtractive
2915             formatting by only specifying the components that are to be 
2916             changed. This was needed for resolving the RTB.SelectedColor/
2917             RTB.SelectedFont fixmes
2918           - Added Break() support method to allow breaking up linetags (used
2919             for partial formatting)
2920           - Added GenerateTextFormat() method. It is used for partial 
2921             formatting and allows to generate a full font/color from given
2922             attributes and an existing tag.
2923
2924 2006-02-26  Jackson Harper  <jackson@ximian.com>
2925
2926         * XplatUIX11.cs:  Use the correct caption height.
2927         - Translate hittest coordinates to screen coords to match MS.
2928         * XplatUIWin32.cs: When we create MDI windows we need to reset
2929         some of the style flags, so we get a nice blank window, and can
2930         draw all the decorations ourselves.
2931         - Set a clipping rectangle on the non client paint event, the
2932         window manager drawing code needs one.
2933         * Form.cs: The window manager needs to know when the window state
2934         has been updated.
2935         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2936         don't need to factor in border and title sizes in these
2937         methods. TODO: Remove the args and fix the call points.
2938         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2939         properly.
2940         - Let the driver set the cursors.
2941         - Improve active window handling
2942         - Correct sizes for title bars and buttons.
2943         - Match MS drawing better
2944         * MdiWindowManager.cs: We don't need to handle border style
2945         updates specially anymore.
2946         - Check for scrollbars when windows are done moving
2947         - Handle Active properly.
2948         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2949         correctly. I am spewing the exception though, so we don't hide the
2950         bugs.
2951         
2952 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
2953
2954         * DataGridViewRowPostPaintEventArgs.cs,
2955           DataGridViewCellPaintingEventArgs.cs,
2956           DataGridViewRowCollection.cs,
2957           DataGridViewRowPrePaintEventArgs.cs,
2958           DataGridViewCell.cs: Clear a few warnings and implement a few
2959           exceptions that should be thrown.
2960
2961 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2962
2963         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2964           'inheriting' our parent's (non-default) cursor. (Part of
2965            the fix for #77479)
2966
2967 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
2968
2969         * XplatUIX11.cs: Fixed cast to make csc happy
2970
2971 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2972
2973         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2974           it's for the client area (part of fix for #77479 and needed
2975           for MDI window cursor handling)
2976         * XplatUIX11.cs
2977           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2978             the appropriate default cursors and also passing the message
2979             up the parent chain 
2980           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2981             for non-client areas
2982
2983 2006-02-15  Jackson Harper  <jackson@ximian.com>
2984
2985         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2986         is a real MDI window
2987
2988 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
2989
2990         * X11DesktopColors.cs: Instead of checking the desktop session
2991           string for "KDE" check if it starts with "KDE"
2992
2993 2006-02-10  Jackson Harper  <jackson@ximian.com>
2994
2995         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2996         systems).
2997
2998 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2999
3000         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
3001           errors
3002         * ColorDialog.cs:
3003           - Got rid of the panel. All controls are now directly added to
3004             the dialog form
3005           - Changed to mono coding style
3006
3007 2006-02-10  Jackson Harper  <jackson@ximian.com>
3008
3009         * InternalWindowManager.cs: We don't need the set visibility to
3010         false hack anymore now that peter has written beautiful shutdown
3011         code.
3012
3013 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
3014
3015         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
3016           where already explicitly destroyed
3017
3018 2006-02-10  Jackson Harper  <jackson@ximian.com>
3019
3020         * MdiClient.cs: Handle the case where windows are too high or to
3021         the left and we need scrollbars.
3022
3023 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
3024
3025         * MimeIcon.cs: Added some icons
3026         * FileDialog.cs:
3027           - Fixed bug #77477
3028           - Got rid of the panel. All controls are now directly added to
3029             the dialog form
3030           - Changed to mono coding style
3031           - On Linux "My Computer" and "My Network" will now show some
3032             more usefull information. A new class, MasterMount, gathers
3033             this information from /proc/mount. Updated MWFFileView to make
3034             use of this information
3035           - Fixed a bug that caused FileDialog to crash when
3036             ".recently_used" file had a zero size
3037           - FilterIndex does now what it should
3038           - Some Refactoring
3039         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
3040             FileDialog changes
3041
3042 2006-02-09  Jackson Harper  <jackson@ximian.com>
3043
3044         * ComboBox.cs: Don't touch if null.
3045
3046 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
3047
3048         * Cursor.cs: 64bit safeness fix
3049         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
3050
3051 2006-02-09  Jackson Harper  <jackson@ximian.com>
3052
3053         * Form.cs: If a form is made into an MDI form update the styles so
3054         all the props can get set correctly.
3055         - Kill the mdi_container when we dont need it anymore.
3056         * InternalWindowManager.cs: Add missing NOT
3057
3058 2006-02-08  Jackson Harper  <jackson@ximian.com>
3059
3060         * InternalWindowManager.cs: Respek clipping when drawing MDi
3061         decorations.
3062
3063 2006-02-08  Jackson Harper  <jackson@ximian.com>
3064
3065         * Hwnd.cs: Add bits to track non client expose events.
3066         * XplatUIX11.cs: Track non client expose events on the hwnd. This
3067         gives us a proper invalid rect and will allow for some nice
3068         optimizations with NC client drawing
3069         - MDI windows are children windows, so move their style handling
3070         into the child window block.
3071         * InternalWindowManager.cs: Remove a state reset that was
3072         getting invoked at the wrong time. Fixes managed windows getting
3073         into a 'stuck' captured state.
3074
3075 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3076
3077         * TextControl.cs (Document.ctor): Now initializing 
3078           selection_anchor. Fixes #77493
3079
3080 2006-02-07  Jackson Harper  <jackson@ximian.com>
3081
3082         * TrackBar.cs: The increment/decrements were backwards.
3083
3084 2006-02-07  Mike Kestner  <mkestner@novell.com>
3085
3086         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
3087         to the instance itself.
3088
3089 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3090
3091         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3092           on ulongs and pointers, the size differs between 32bit and 64bit
3093           systems. 
3094
3095 2006-02-07  Mike Kestner  <mkestner@novell.com>
3096
3097         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3098         for 64 bit platforms to work around a metacity bug. 
3099
3100 2006-02-07  Jackson Harper  <jackson@ximian.com>
3101
3102         * TrackBar.cs: Process the input keys we need, and hookup to
3103         KeyDown instead of using WndProc, so we get key messages.
3104
3105 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3106
3107         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3108           machine we're on. 
3109         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3110           we need to translate the XdndVersion atoms array before sending it
3111
3112 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
3113
3114         * XplatUIX11.cs: 
3115           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
3116             number of bits for the property, not the number of bytes. The
3117             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
3118             but would not crash since it specified 8 bits instead of 4 bits)
3119           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
3120             defined as XID -> long in the C headers)
3121           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
3122             references since those are now IntPtr to begin with
3123           - Switched all Atom.XXX 'int' casts to IntPtr casts
3124           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
3125           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
3126           - Added XChangeActivePointerGrab DllImport (for X11DnD)
3127         * X11Structs.cs:
3128           - Changed 'int' type for Atoms in XEvent structures to IntPtr
3129           - Changed atom in HoverStruct to be IntPtr
3130         * X11DnD.cs:
3131           - Removed local DllImports, switched code to use those from XplatUIX11
3132           - Removed/fixed casts related to the switch of Atom to be a IntPtr
3133
3134 2006-02-06  Mike Kestner  <mkestner@novell.com>
3135
3136         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
3137         method signatures in the import region.  There may still be some
3138         lingering struct marshaling issues, as I didn't drill down into those.
3139         Yet.
3140
3141 2006-02-06  Jackson Harper  <jackson@ximian.com>
3142
3143         * ComboBox.cs: Dont manually set the top_item, this is computed
3144         when the scrollbar position is set.
3145
3146 2006-02-06  Mike Kestner  <mkestner@novell.com>
3147
3148         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
3149         startup crashes on amd64.  There's other fixes needed.  All pinvoke
3150         usage of Atom needs to be mapped to IntPtr for example.  And there are
3151         likely other int/long issues to be addressed.
3152
3153 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
3154
3155         * FileDialog.cs: One more...
3156
3157 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3158
3159         * FileDialog.cs: Next try
3160
3161 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3162
3163         * FileDialog.cs: First part of fix for #77464
3164
3165 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3166
3167         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
3168           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
3169           AcceptButton border drawing.
3170
3171 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
3172
3173         * Form.cs: Moved positioning of form after auto scaling is applied,
3174           otherwise it would possibly use wrong form size.
3175
3176 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
3177
3178         * Control.cs (RecreateHandle): No need to re-create any child
3179           controls, the child windows will get destroyed automatically by
3180           the windowing system or driver, and re-created when the handle
3181           is being accessed the first time. Fixes #77456
3182         * Form.cs: No longer setting the form to closing if the handle is 
3183           being recreated. This seems like the right thing to do, don't
3184           have a bug or testcase for this, though.
3185
3186 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3187
3188         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
3189           controls to avoid unwanted side effects
3190
3191 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
3192
3193         * Control.cs: 
3194           - ScaleCore needs to scale the bounds, not the ClientSize of the 
3195             control. Fixes #77416.
3196           - DefaultSize is 0,0 for control
3197         * TextBoxBase.cs: 
3198           - DefaultSize is 100, 20
3199           - SetBoundsCore: Now enforcing the height, no matter if the provided
3200             height is more or less than the preferred one, as long as AutoSize
3201             is on
3202         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3203
3204 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3205
3206         * Control.cs:
3207           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3208             call unless both performLayout is true *and* we have a pending
3209             layout change
3210           - ResumeLayout: MS does not completely nest Suspend and Resume,
3211             they bottom out at 0, fixed our code to match that.
3212           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3213             SetBoundsCore, we were updating even when we shouldn't. This fixes
3214             swf-anchors mis-anchoring when resizing the app fast and lots.
3215           - UpdateDistances: Now only setting the left and top distance if 
3216             we have a parent and are not suspended, this is based on
3217             a suggestion by Don Edvaldson in bug #77355.
3218           - OnVisibleChanged: Fixed logic when to create the control. We may
3219             not create the control if we have no parent or if it's not visible;
3220             switched to using Visible property instead of is_visible field 
3221             since the property also considers parent states. This fixes a bug
3222             when starting Paint.Net
3223
3224 2006-02-02  Jackson Harper  <jackson@ximian.com>
3225
3226         * Form.cs: If the forms handle hasn't been created yet don't call
3227         into xplatui to make it top most, just set the topmost flag on the
3228         form in CreateParams
3229         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3230
3231 2006-02-01  Jackson Harper  <jackson@ximian.com>
3232
3233         * ScrollableControl.cs: Refactored the Recalculate method a
3234         little, this wasn't handling all the variants of bottom and right
3235         bars needed to be added and added/removed based on their
3236         counterparts being added/removed (which changes the drawable
3237         size). Also we special case client widths and heights of 0 and
3238         don't add the scrollbar for those.
3239
3240 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3241
3242         * XplatUIX11.cs: 
3243           - Added method to get AbsoluteGeometry(); currently unused, but might
3244             be used in the future, if we try again to figure out toplevel
3245             coordinates with some more crappy window managers
3246           - Added FrameExtents() method to retrieve the WM set decoration size
3247           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3248             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3249         * Hwnd.cs: 
3250           - Added whacky_wm tracking var for metacity
3251           - Added logic to have default menu height if the actual menu height
3252             has not yet been calculated (part of fix for #77426)
3253         * Form.cs: Keep track whether client size has been set and re-set 
3254           it if a menu is added/removed afterwards (Fixes #77426)
3255
3256 2006-01-31  Jackson Harper  <jackson@ximian.com>
3257
3258         * Control.cs: When a new Site is set on the component attempt to
3259         pull the AmbientProperties from it.
3260
3261 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3262
3263         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3264           in the background of the owning form. Fixes #77332
3265
3266 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3267
3268         * MimeIcon.cs: Fix for #77409
3269
3270 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3271
3272         * XplatUIX11GTK.cs: Initial import
3273
3274 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3275
3276         * FixedSizeTextBox: fixes class signature
3277
3278 2006-01-30  Jackson Harper  <jackson@ximian.com>
3279
3280         * FixedSizeTextBox.cs: New internal class that represents a
3281         textBox that will not be scaled.
3282         * TreeView.cs:
3283         * ComboBox.cs:
3284         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3285         standard TextBox.
3286                 
3287 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3288
3289         * XplatUIX11.cs: Retrieve default screen number instead of
3290           assuming 0. Attempted fix for #77318
3291
3292 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3293
3294         * XplatUIWin32.cs: 
3295           - GetWindowPos: When a window is parented by FosterParent, use 
3296             the desktop instead of FosterParent as the base to get coordinates
3297           - CreateWindow: Don't make FosterParent the parent window for Popups
3298             if we don't want a taskbar entry, Popups automatically don't get one
3299         * Hwnd.cs: Need to call remove to actually remove the key from the
3300           hash table
3301
3302 2006-01-30  Mike Kestner  <mkestner@novell.com>
3303
3304         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3305
3306 2006-01-30  Jackson Harper  <jackson@ximian.com>
3307
3308         * TreeView.cs:
3309         * TreeNode.cs: Raise events no matter how the treenode is
3310         checked. Patch by Don Edvalson.
3311
3312 2006-01-30  Jackson Harper  <jackson@ximian.com>
3313
3314         * TreeNode.cs: Signature fix.
3315
3316 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3317
3318         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3319
3320 2006-01-20  Mike Kestner  <mkestner@novell.com>
3321
3322         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3323         event forwarding when menus are active.
3324         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3325         Most of the patch is pdb's with a little rework.
3326
3327 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3328
3329         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3330           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3331           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3332         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3333         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3334           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3335           the PaintWindowDecorations method
3336         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3337         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3338         * MenuAPI.cs: Made tracker window invisible
3339         * XplatUIWin32.cs:
3340           - Removed GetMenuDC and ReleaseMenuDC methods
3341           - Implemented the client=false path for PaintEventStart and
3342             PaintEventEnd
3343
3344 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3345
3346         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3347         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3348           styles
3349         * Form.cs: 
3350           - MaximizeBox, MinimizeBox: Recreate the handle when setting
3351             the style
3352           - CreateParams: Reworked the styles to match MS look'n'feel,
3353             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3354             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3355
3356 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3357
3358         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
3359           window is not mapped, since otherwise every form that's being 
3360           created is considered minimized, which is wrong.
3361         * Form.cs: Catching the exception and returning our internal value
3362           instead
3363
3364 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3365
3366         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3367           SetWindowMinMax() to have means to tell the driver about the minimum,
3368           maximum and maximized state window sizes. (Part of the fix for #76485)
3369         * Form.cs:
3370           - Implemented tracking of minimum and maximum window size, now calling
3371             new SetWindowMinMax() driver method to tell the driver (Part of the
3372             fix for #76485)
3373           - Finished handling of WM_GETMINMAXINFO method, now setting all values
3374             (Completes fix for #76485)
3375           - Calling new SetWindowMinMax driver method when the handle for a 
3376             form is created, to make sure the driver knows about it even if
3377             the values have been set before the window was created
3378           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3379             to avoid messing up our anchoring calculations (partial fix
3380             for #77355)
3381         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3382         * XplatUIX11.cs:
3383           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3384           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
3385             (and presumably other freedesktop.org compliant WMs). Left the
3386             assumption unmapped=minimized, needed for SetVisible to work.
3387           - Now setting the window state when creating windows
3388           - Fixed SetVisible to consider/set the window state when mapping
3389             a Form. We cannot set the state before it's mapped, and we cannot
3390             use Form.WindowState once it's mapped (since it would ask the
3391             driver and get 'normal'. Therefore, we grab the state before
3392             mapping, map, and then set state.
3393           - Implmemented SetWindowMinMax method; Metacity does not seem to
3394             honor the ZoomHints, though.
3395         * XplatUIWin32.cs:
3396           - Removed MINMAXINFO (moved to XplatUIStructs)
3397           - Added SetWindowMinMax stub (on Win32 the only way to set that
3398             information is in response to the WM_GETMINMAXINFO message, which
3399             is handled in Form.cs)
3400           - Added logic to SetVisible to set the proper window state when a 
3401             form is made visible (fixes #75720)
3402
3403 2006-01-26  Jackson Harper  <jackson@ximian.com>
3404
3405         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3406         same way we handle them with Invoke.
3407
3408 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
3409
3410         * Form.cs:
3411           - Added tracking of window state so CreateParams can return
3412             the appropriate style
3413           - Moved setting of WS_CAPTION style in CreateParams to allow
3414             styles without caption
3415         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3416           control if the TextBox property is accessed. Fixes #77345
3417         * Control.cs:
3418           - get_Created: now uses is_disposed and is_created to determine
3419             return value (suggested by Jackson)
3420           - CreateHandle: No longer exits if the handle is being recreated
3421           - RecreateHandle: If the handle is not yet created call the 
3422             appropriate method to create either control or handle. If the
3423             control is already created CreateHandle will simply exit instead
3424             of just creating the handle
3425         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3426           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3427           is called.
3428         * XplatUIX11.cs: 
3429           - When DestroyWindow is called, instead of waiting for the 
3430             DestroyNotification from X11, we directly post it to the WndProc
3431             and immediately dispose the hwnd object.
3432             Same applies to DestroyChildWindows, and this obsoletes the
3433             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3434             child windows before our own, to avoid X11 errors.
3435           - Removed the direct sending of WM_PAINT on UpdateWindow
3436         * XplatUIWin32.cs:
3437           - Reworked DoEvents and GetMessage to allow access to internal queue
3438             even when trying non-blocking access to the queue.  Fixes #77335. 
3439             Based on a patch suggestion by Don Edvalson. The new private
3440             GetMessage can now also be used as a backend for a PeekMessage
3441             frontend version.
3442         * XplatUI.cs: Improved debug output for CreateWindow
3443
3444 2006-01-25  Jackson Harper  <jackson@ximian.com>
3445
3446         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3447
3448 2006-01-24  Jackson Harper  <jackson@ximian.com>
3449
3450         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3451         when we have a MaxDropItems lower then the selected index.
3452
3453 2006-01-24  Jackson Harper  <jackson@ximian.com>
3454
3455         * Control.cs: Don't allow selection of non visible controls, allow
3456         selection of controls without parents.
3457
3458 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3459
3460         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3461         * DataGridDrawingLogic.cs: Add editing row only when is necessary
3462
3463 2006-01-23  Jackson Harper  <jackson@ximian.com>
3464
3465         * UpDownBase.cs: Make the textbox handle all the selection and
3466         tabbing. This fixes tabing to updown controls.
3467
3468 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3469
3470         * TextBoxBase.cs: fixes exception thown the object was null
3471
3472 2006-01-23  Jackson Harper  <jackson@ximian.com>
3473
3474         * ButtonBase.cs: Just use the base CreateParams. They set
3475         visibility and enabled correctly.
3476         * ComboBox.cs:
3477         * TrackBar.cs:
3478         * MonthCalendar.cs: Lets let the base set as much of the
3479         createparams as possible so we don't have duplicate code all over
3480         the place.
3481
3482 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
3483
3484         * ThemeGtk.cs: Added TrackBar and some experimental code to
3485           get double buffering back
3486
3487 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3488
3489         * DataGrid.cs: Allows row number set internally higher than the last
3490         when creating a new row. Restores the editing functionality.
3491
3492 2006-01-20  Mike Kestner  <mkestner@novell.com>
3493
3494         * MimeIcon.cs: delay Image creation until the icons are accessed
3495         instead of creating 190 scaled images on GnomeHandler startup.
3496
3497 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
3498
3499         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3500           first call base before processing the event. Fixes #77279
3501
3502 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
3503
3504         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3505           that the stride for the GDI bitmap would match the stride of
3506           a DIB or a Cursor.
3507
3508 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
3509
3510         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3511
3512 2006-01-19  Jackson Harper  <jackson@ximian.com>
3513
3514         * ComboBox.cs: Hookup the text controls keydown event so we get
3515         those when the text control has the focus.
3516
3517 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3518
3519         * Label.cs: Now using the base events instead of defining new ones;
3520           this allows us to just call the base properties without having to
3521           duplicate all base property logic 
3522
3523 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3524
3525         * Label.cs: A label by default is not a tabstop (Fixes one of our
3526           failing nunit tests)
3527
3528 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3529
3530         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3531         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3532
3533 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3534
3535         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3536           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3537           This fixes #77218
3538         * XplatUIWin32.cs: 
3539           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3540             constructor creates images that can't be saved. Part of the fix
3541             for #76103
3542           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3543           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3544             bug fix for handling window state in forms properly)
3545
3546 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3547
3548         * ThemeGtk.cs: Simplify ScrollBar drawing
3549
3550 2006-01-18  Jackson Harper  <jackson@ximian.com>
3551
3552         * Splitter.cs: Set the default dock style for the splitter control
3553         in the constructor.
3554
3555 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3556
3557         * ThemeGtk.cs: Corrected StateType and ShadowType for
3558           gtk_paint_box
3559
3560 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3561
3562         * Control.cs: Make use of Theme.DoubleBufferingSupported
3563         * ThemeGtk.cs:
3564           - Added drawing for flat style buttons
3565           - Added ScrollBar drawing
3566
3567 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3568
3569         * ThemeClearlooks.cs: Removed some unneeded code.
3570         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3571
3572 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3573
3574         * LinkLabel.cs: We need to update the hover drawing when
3575           leaving the control as well.
3576
3577 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3578
3579         * DataGrid.cs: Clicking on non empty areas in the columns
3580            area was giving an exception
3581
3582 2006-01-17  Jackson Harper  <jackson@ximian.com>
3583
3584         * ThemeWin32Classic.cs:
3585         * ListView.cs: Do not draw/clip the headers when the header style
3586         is None.
3587
3588 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3589
3590         * DataGrid.cs: Fixes 77260
3591         
3592 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3593
3594         * DataGrid.cs: Clicking on a column on a empty grid was giving
3595           an exception
3596
3597 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3598
3599         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3600           or any keypress will crash the grid.
3601
3602 2006-01-17  Mike Kestner  <mkestner@novell.com>
3603
3604         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3605         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3606         invisible/previously-visible items.
3607         [Fixes #76909]
3608
3609 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3610
3611         * ThemeClearlooks.cs:
3612         - Added CL_Draw_Button method; now other theme controls that are 
3613           not derived from button or do not have a button can draw buttons
3614           too
3615         - Updated ComboBox drawing
3616         - Beautified RadioButton drawing
3617         - Corrected drawing of bottom and left tabs
3618         - Beautified DateTimePicker and MonthCalendar
3619         - Added CPDrawButton and CPDrawRadioButton
3620
3621 2006-01-16  Jackson Harper  <jackson@ximian.com>
3622
3623         * ComboBox.cs: Set the initial value of the scrollbar to the
3624         current index. Reduce the numbers of refreshs and IndexOfs called.
3625
3626 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3627
3628         * FileDialog.cs: When the file listview is focused hitting the
3629           backspace key moves the fileview to the parent directory
3630
3631 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3632
3633         * Form.cs: 
3634           - Added RecreateHandle call when changing taskbar visibility to 
3635             trigger reparenting in Win32 driver (Fixes #75719)
3636           - If a window has minimize or maximize buttons, it cannot have
3637             a help button
3638         * XplatUIWin32.cs:
3639           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3640             the toplevel form with FosterParent (A toolwindow not on the
3641             taskbar) (Fixes #75719)
3642           - Made FosterParent a toolwindow
3643
3644 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3645
3646         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3647
3648 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3649
3650         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3651           is currently over that control, make sure that tooltip_window.Text
3652           gets updated
3653
3654 2006-01-13  Mike Kestner  <mkestner@novell.com>
3655
3656         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3657
3658 2006-01-13  Jackson Harper  <jackson@ximian.com>
3659
3660         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3661         value passed.  Also redraw the selected node when we recieve
3662         focus, so tabbing between trees works correctly.
3663
3664 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3665
3666         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3667           ~/.gconf/%gconf-tree.xml, so use
3668           .gconf/desktop/gnome/interface/%gconf.xml
3669
3670 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3671
3672         * TextControl.cs: Draw text in gray if control is disabled
3673
3674 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3675
3676         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3677           make sure it's always visible. Fixes #76680.
3678
3679 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3680
3681         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3682
3683 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3684
3685         * PageSetupDialog.cs: Added.
3686         * PrintDialog.cs: Attributes.
3687         * PrintPreviewControl.cs: Updates.
3688         * PrintPreviewDialog.cs: Updates.
3689         
3690 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3691
3692         * Control.cs: Undid my selection check fix, since it's not needed
3693         * TextBoxBase.cs:
3694           - Now considering the presence of hscroll/vscroll when sizing
3695             vscroll/hscroll respectively. Fixed bug #77077
3696           - Added Left/Up/Down/Right to IsInputKey list to prevent
3697             ContainerControl from stealing them. This fixes what I broke
3698             with my last checkin.
3699
3700 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3701
3702         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3703           I finally understand how the property can be set without a setter :-)
3704
3705 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3706
3707         * Application.cs:
3708           - Switched RunLoop to use static Message.Create to create a 
3709             Message object
3710           - Added PreProcessMessage call in runloop for keyboard events; this
3711             is part of the fix for #77219, I overlooked this originally in the
3712             MSDN doc for PreProcessMessage
3713         * Control.cs:
3714           - Removed call to PreProcessMessage from handling of keyboard 
3715             messages; it's supposed to be done in the message pump
3716           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3717             per MSDN documentation.
3718           - IsInputChar: All chars are input chars by default; removed the 
3719             parent calling chain, MS does not document that
3720           - PreProcessMessage: If IsInputChar is true, we want to return false
3721             to allow dispatching of the message
3722           - When selecting the next control, now also check that we're not
3723             selecting ourselves again and therefore return a false positive.
3724         * TextBoxBase.cs:
3725           - Tried to match return values for IsInputKey and ProcessDialogKey
3726             to what MS returns; moved processing of our special keys outside
3727             ProcessDialogKey since MS does not seem to return true on those.
3728           - Moved code that previously was in ProcessDialogKey into new private
3729             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3730           - Reworked handling of WM_CHAR to not have to duplicate code from
3731             Control.cs anymore, instead we simply call down to base.
3732            
3733 2006-01-12  Jackson Harper  <jackson@ximian.com>
3734
3735         * ComboBox.cs: We always need to refresh the text area when
3736         EndUpdate is called. Fixes the combobox in the file dialog.
3737         * Control.cs: Don't create the creator_thread until the controls
3738         handle is created.  Also in InvokeRequired we check if the
3739         creator_thread is null. This gives the effect of InvokeRequired
3740         returning true if the controls handle is not created yet, and
3741         matches MS.
3742
3743 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3744
3745         * XplatUI.cs:
3746           - Added StartLoop() driver method. This is used to allow drivers to
3747             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3748             loop for a particular thread
3749           - Added EndLoop() driver method. This is called once the message
3750             pump for the thread is shut down
3751           - Added SupportsTransparency method to allow the driver to indicate
3752             opacity support for windows
3753         * Form.cs:
3754           - Removed TODO attribute, completed AllowTransparency property
3755           - Added documented logic to Opacity
3756         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3757           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3758           versions of CompatibleTextRendering
3759         * X11Structs.cs: Added opacity atom to our atom enumeration
3760         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3761           of a form might be set before it's reparented by the WM, and we need
3762           the opacity value without calling up to Form)
3763         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3764           SupportsTransparency() driver methods
3765         * Application.cs: Now calling StartLoop and EndLoop driver methods
3766         * XplatUIX11.cs:
3767           - Added opacity atom registration
3768           - Added StartLoop()/EndLoop() methods. They're empty right now but
3769             will need to get implemented when we switch to a per-thread queue
3770           - Implemented SupportsTransparency() method
3771           - Implemented SetWindowTransparency() method
3772           - Added support for setting the opacity value when a window is
3773             reparented (since the opacity needs to be set on the WM frame)
3774         * XplatUIOSX.cs, XplatUIWin32.cs:
3775           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3776
3777 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3778
3779         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3780
3781 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3782
3783         * FileDialog.cs: Added ToolTip for MWFFileView
3784         * MimeIcon.cs: Rewrote GnomeHandler.
3785           - Get currently used gnome icon theme from
3786             ($HOME)/.gconf/%gconf-tree.xml
3787           - Make use of inherited icon themes
3788           - Support SVG icon themes like Tango via librsvg
3789
3790 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3791
3792         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3793         builds. 
3794         
3795         * Application.cs: Move the use_compatible_text_rendering outside
3796         the NET_2_0 define.  If we ever need to use the
3797         use_compatible_text_rendering on the individual controls they will
3798         access the variable from the common shared code paths.
3799
3800 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3801
3802         * XplatUI.cs:
3803           - Added more granular debug options
3804           - Added method to print both window text and id
3805           - Switched debug output to use new Window() debug method
3806           - Added IsEnabled() driver method
3807           - Added EnableWindow() driver method
3808         * Form.cs:
3809           - Removed end_modal; no longer needed, new loop handles termination
3810             via 'closing' variable
3811           - If form is modal, setting DialogResult will now initiate loop
3812             termination via 'closing' variable
3813           - Added support for is_enabled/WS_DISABLED to CreateParams
3814           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3815             does all the work
3816           - Removed code that's now in RunLoop from ShowDialog()
3817           - Added various documented sanity checks to ShowDialog()
3818           - Added handling of WM_DESTROY message; we set 'closing' on getting
3819             the message to indicate the message pump to terminate
3820           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3821             send by the Application.ExitThread method. (We send the message
3822             to destroy the window after all other events have been
3823             processed through the queue, instead of destroying the handle 
3824             directly)
3825           - Moved code from Close() method to WM_CLOSE handler; added logic
3826             to only send close-related events if the form is not displayed
3827             modal
3828         * Splitter.cs (..ctor): Fixed typo in resource name
3829         * Control.cs:
3830           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3831             brush now
3832           - set_Cursor: Now only setting calling into XplatUI if the handle for
3833             the control is already created; this avoids implict handle creation
3834             or crashes if it's not created
3835           - set_Enabled: Now setting the enabled state via the new driver method
3836             instead of just tracking it
3837           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3838           - CreateControl: Reordered event firing and method calls to more
3839             closely fire events in the order MS does. Now setting the
3840             enabled state in the driver when creating the control.
3841           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3842             match MS order
3843         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3844           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3845         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3846         * Hwnd.cs:
3847           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3848           - Added EnabledHwnd property to easily allow a driver to find the
3849             handle of the first enabled window in the parent chain (this is
3850             used by drivers to pass up input events of disabled windows)
3851         * XplatUIDriver.cs: Added IsEnabled() method
3852         * Application.cs:
3853           - Removed crude and obsolete exiting tracking variable
3854           - Removed internal ModalRun(); replaced by RunLoop()
3855           - Implemented private CloseForms() method to allow closing all 
3856             windows owned by a particular (or all) threads
3857           - Exit() now properly closes all windows without forcing the message
3858             pump to quit
3859           - Removed obsolete InternalExit() method
3860           - Changed Run() methods to use new RunLoop() message pump
3861           - Implemented new RunLoop() method for both modal and non-modal forms
3862         * CommonDialog.cs:
3863           - get_CreateParams: Added setting of WS_DISABLED
3864           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3865             invoked via Form.ShowDialog()
3866         * NativeWindow.cs: We don't remove the window from the collection when
3867           the handle is destroyed; there might still be messages for it in the
3868           queue (mainly the resulting WM_DESTROY); instead it will be removed
3869           when Control calls InvalidateHandle in the WM_DESTROY handler
3870         * XplatUIX11.cs:
3871           - CreateWindow: Added logic to handle the WS_DISABLED window style
3872           - EnableWindow: Implemented based on Hwnd.Enabled
3873           - GetMessage: Reset PostQuitState so the method can be called again
3874           - Implemented support for disabled windows (passing messages to the
3875             first enabled parent) in handling all input messages
3876           - Added optimizations for handling Expose events
3877           - Implemeted new driver method IsEnabled()
3878           - Now always resetting paint pending tracking vars when we start paint
3879           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3880         * XplatUIOSX.cs: Added IsEnabled method stub
3881         * XplatUIWin32.cs: Implemented new IsEnabled() method
3882
3883 2006-01-11  Jackson Harper  <jackson@ximian.com>
3884
3885         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3886         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3887         variables a little.
3888         * ColorDialog.cs: Clear out the old form before adding the new
3889         panel.  
3890
3891 2006-01-11  Jackson Harper  <jackson@ximian.com>
3892
3893         * X11Dnd.cs: Make sure to add all the text formats when adding
3894         strings to the data object.
3895         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3896         do some redrawing too.  Also change the UpdateNode to an
3897         UpdateBelow so the newly added node gets painted.
3898         
3899 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3900
3901         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3902         LinkLabel.cs, PropertyGrid.cs: Implement the
3903         UseCompatibleTextRendering property for 2.x
3904
3905         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3906
3907 2006-01-11  Jackson Harper  <jackson@ximian.com>
3908
3909         * TreeView.cs: Use the property for setting the selected node so
3910         the correct events get raised.
3911         * TreeNode.cs: Update the tree when the fore/back colours of a
3912         node are set.
3913
3914 2006-01-10  Jackson Harper  <jackson@ximian.com>
3915
3916         * TreeView.cs: Allow setting SelectedNode to null.
3917
3918 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3919
3920         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3921
3922 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3923
3924         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3925
3926 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3927
3928         * PrintDialog.cs: Added attributes and set default property values.
3929
3930 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3931
3932         * PrintControllerWithStatusDialog.cs: 
3933         Added PrintControllerWithStatusDialog.
3934
3935 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3936
3937         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3938         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3939
3940 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3941
3942         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3943
3944 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
3945
3946         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3947         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3948
3949 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3950
3951         * MimeIcon.cs: Added internal class SVGUtil.
3952
3953 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3954
3955         * FileDialog.cs: Don't crash if there are two files with the
3956           same name but different locations.
3957
3958 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
3959
3960         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3961         dates across multiple month grids. Used to not highlight entire 
3962         month, but does now.
3963         
3964 2006-01-06  Jackson Harper  <jackson@ximian.com>
3965
3966         * MonthCalendar.cs: Removed DoEvents call to prevent a running
3967         message loop. Change timer intervals to numbers that seem more
3968         natural.
3969
3970 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
3971
3972         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3973           object for location info since screen object is now implemented.
3974
3975 2006-01-05  Jackson Harper  <jackson@ximian.com>
3976
3977         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3978         * AsyncMethodResult.cs: We no longer use a WeakReference for the
3979         AsyncMethodResult, this is because we ALWAYS want the
3980         ManualResetEvent to get set.
3981         * Control.cs: When disposing use an async invoke to call shutdown
3982         code, so that thigns don't block on the finalizer thread.  Also
3983         check if we even have a message loop before trying to send
3984         messages, if we don't then don't bother sending messages.
3985         - No more weak references for async methods
3986         * XplatUIDriver.cs: No more weak references for async methods.
3987
3988 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3989
3990         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3991           returns two FontFamily with the same name
3992
3993 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3994
3995         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
3996           drawing disabled text. Instead using the ColorGrayText color
3997
3998 2006-01-04  Jackson Harper  <jackson@ximian.com>
3999
4000         * TreeNode.cs: redraw the node when its image index is changed.
4001
4002 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
4003
4004         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
4005           time I checked there are no others like it.
4006
4007 2006-01-04  Jackson Harper  <jackson@ximian.com>
4008
4009         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
4010         this gives the behavoir I was looking for.
4011         * Control.cs: Special case Invoking EventHandlers, this matches MS
4012         and fixes part of bug #76326.
4013
4014 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4015
4016         * ThemeClearlooks.cs, FileDialog.cs:
4017           - Reflect the latest Theme class changes
4018           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
4019             with DateTime
4020             
4021 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
4022
4023         * Theme.cs: Cache UI resource images and resize them if needed
4024
4025 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4026
4027         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
4028           is called. This fixes the crash in Nexxia when setting the font
4029           attributes in the chat. [However, RTF needs a look-over to make sure
4030           that all SelectionXXX methods handle the special case that selection
4031           is empty and therefore the change must be applied to all text starting
4032           at the cursor/selection start]
4033
4034 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
4035
4036         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4037           XplatUIOSX.cs: Added SendMessage and PostMessage methods
4038         * X11Keyboard.cs: Switched to new way of calling PostMessage
4039
4040 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
4041
4042         * Theme.cs: Added theme interface for images to allow the theme to
4043           control what images are used for things like FileDialog, MessageBox
4044           icons, etc.
4045         * MessageBox.cs: Now uses the new Theme icon/image interfaces
4046
4047 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
4048
4049         * FileDialog.cs:
4050           - Removed some dead code
4051           - Opening a recently used file does work now
4052           - Small UI enhancements
4053           - Refactoring
4054
4055 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4056
4057         * FileDialog.cs: Forgot too add __MonoCS__
4058
4059 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
4060
4061         * FileDialog.cs: We are able to read recently used files now let's
4062           go on and write them.
4063
4064 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
4065
4066         * FileDialog.cs: Breathe some life into "last open"/"recently used"
4067           button
4068         * MimeIcon.cs: Do a check for the top level media type also
4069
4070 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4071
4072         * ThemeClearlooks.cs:
4073           - Added CPDrawStringDisabled
4074           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
4075             some chars if the text doesn't fit into text_rect
4076           - DrawListViewItem: If View = View.LargeIcon center the image;
4077             rewrote the drawing of ListViewItem.Text if View = 
4078             View.LargeIcon
4079
4080 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
4081
4082         * MimeIcon.cs: Use default KDE icon theme if there is no
4083           "48x48" directory for the current icon theme, fixes #77114
4084         * Mime.cs: Disable not working and actually not used code. 
4085         * ThemeWin32Classic.cs:
4086           - Replace "new SolidBrush" in GetControlBackBrush and
4087             GetControlForeBrush with ResPool.GetSolidBrush
4088           - Changed DrawListViewItem from private to protected virtual
4089         * FileDialog.cs:
4090           - Added form.MaximizeBox = true
4091           - Don't throw an exception if there is a broken symbolic link
4092
4093 2005-12-23  Jackson Harper  <jackson@ximian.com>
4094
4095         * TabControl.cs: Give the panels focus, keyboard navigation is
4096         fixed so this works correctly now.
4097         - We need these key events also.
4098         * ToolBar.cs: Remove some of the poor mans double buffering.
4099         
4100 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4101
4102         * ComboBox.cs: The internal TextBox now returns the focus.
4103
4104 2005-12-23  Jackson Harper  <jackson@ximian.com>
4105
4106         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4107
4108 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4109
4110         * Control.cs: Removed debug code
4111         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
4112           implicit children
4113
4114 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
4115
4116         * Control.cs: When creating the control, update the Z-order after
4117           all it's children are created, too. (Fixes nexxia not showing
4118           picturebox bug)
4119
4120 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4121
4122         * Control.cs: Do not update the anchoring distances if layout is
4123           suspended, instead do it once layout is resumed
4124
4125 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
4126
4127         * Control.cs: 
4128           - After many hours of debugging, for both Jackson and
4129             myself, it turns out that it helps to set the parent of a control
4130             if you want to actually see it onscreen. In the spirit of that
4131             discovery, we're now setting the parent of the control and
4132             it's children when the control's handle is created. This fix
4133             will make Lutz Roeder's Reflector run happily. 
4134           - now just creating the handle instead of the whole control when
4135             getting a graphics context for the control.
4136
4137 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4138
4139         * ScrollableControl.cs: When calculating the canvas, don't consider
4140           the scrollbar widths. Instead, predict if horizontal scrollbar
4141           will affect canvas when deciding on vertical display and vice versa.
4142
4143 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4144
4145         * RichTextBox.cs: Set default RTF font for documents that don't
4146           have a font table (Fixes #77076)
4147
4148 2005-12-22  Jackson Harper  <jackson@ximian.com>
4149
4150         * TextBoxBase.cs: It's difficult to do, but you can have an empty
4151         clipboard. This prevents a NullRef in that case.
4152         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
4153         clipboard. PRIMARY is for the currently selected text only. (We
4154         should implement PRIMARY at some point.
4155
4156 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4157
4158         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
4159           a Unicode function with a structure that was defined in Ansi way.
4160           This fixes #76942.
4161
4162 2005-12-21  Jackson Harper  <jackson@ximian.com>
4163
4164         * StatusBar.cs: Statusbar handles its fore/back colours on it's
4165         on. Because thats how it rolls. (and this avoids it using ambient
4166         colours).
4167         * ThemeWin32Classic.cs: Use the proper back color for filling.
4168         * Menu.cs: Use the system menu bar color for drawing menu
4169         bars. Using the window back color will bring ambient colours into
4170         the picture.
4171
4172 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
4173
4174         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
4175           Bitmaps were created and not disposed.
4176
4177 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4178
4179         * Control.cs (CreateControl): Don't do anything if the control is
4180           already created, otherwise we'd fire the OnCreated event more than
4181           once
4182
4183 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4184
4185         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
4186           will always match. Instead return -1. Fixes #76464.
4187
4188 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4189
4190         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
4191           neither the beginning nor the end of the line (Fixes bug #76479)
4192
4193 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4194
4195         * Control.cs:
4196           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4197             where handle is invalid
4198           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4199             instead of slower linear search
4200         * NativeWindow.cs: Don't remove the window from the hashtable until
4201           after the driver has destroyed it (since the driver might use
4202           Control.FromHandle to lookup the control object
4203         * Hwnd.cs: Added DestroyPending property to track if a window is 
4204           already destroyed as far as the driver is concerned and only hasn't
4205           yet notified the control
4206         * XplatUIX11.cs:
4207           - Activate(): Check if the window is still valid before using the 
4208             handle
4209           - Implemented DestroyChildWindow() method to mark child windows as
4210             destroyed when a window is destroyed. This prevents situations 
4211             where we might call an X method based on queued events for a
4212             window that already has been destroyed but we haven't yet pulled
4213             the destroy method from the queue.
4214           - Added a call to the new DestroyChildWindow() method to the drivers
4215             DestroyWindow code. Also now marking the destroyed window itself
4216             as pending
4217
4218 2005-12-20  Jackson Harper  <jackson@ximian.com>
4219
4220         * StatusBar.cs:
4221         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4222         anymore. Just do them when needed, also track the rects of panels
4223         so that we can optimize refreshing more in the future.
4224
4225 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4226
4227         * ColorDialog.cs: Fixed focus drawing in small color controls
4228
4229 2005-12-19  Jackson Harper  <jackson@ximian.com>
4230
4231         * InternalWindowManager.cs:
4232         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4233         moving windows works properly.
4234
4235 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4236
4237         * Control.cs: 
4238           - Removed call to InitLayout() from SetBoundsCore(); doc says
4239             it's only called when a control is added to a container
4240           - Split InitLayout logic, moved to separate UpdateDistances() method
4241             since we need to perform those calculations more often than just
4242             when adding the control to a container. (Needed to fix #77022)
4243           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4244           - Reduced the OnBindingContextChanged events count, don't send them
4245             unless the control is created, we still aren't totally matching
4246             MS, but I can't quite figure out some of their rules
4247
4248 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4249
4250         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4251           stripes
4252
4253 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4254
4255         * ThemeClearlooks.cs:
4256           - Updated ProgressBar drawing
4257           - Corrected drawing of ScrollBars and scroll buttons
4258           - Some temporary fixes for minor pixel artefacts
4259
4260 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4261
4262         * Control.cs:
4263           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4264             cause events to be sent in the same order as MS does.
4265           - Added ChangeParent() method to trigger various OnXXXChanged events
4266             that need to be fired when a parent changes (This is a reworking
4267             of the patch from r54254, with the X11 errors fixed)
4268           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4269             since on MS we get OnLayoutChanged events when calling Clear()
4270           - Changed Enabled property to consider parent state as well, if a
4271             parent is not enabled, the control will not be either
4272           - Changed Parent property to simply call Controls.Add() since that
4273             now does all the work required, this way we avoid code duplication
4274           - Threw in a few OnBindingsContextChanged calls to try and match
4275             when MS sends them. We seem to send a few too many, though.
4276           - Added call to CreateControl when adding the control to a parent.
4277             We were never calling CreateControl. Still needs some work, in
4278             some places we treat HandleCreated and ControlCreated as equal, 
4279             which is wrong
4280           - Removed obsolete commented out code from UpdateZOrder()
4281
4282 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4283
4284         * ThemeClearlooks.cs: Updated TrackBar drawing.
4285
4286 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4287
4288         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4289
4290 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4291
4292         * FileDialog.cs: Add the Help button and the open readonly
4293           checkbox only if needed
4294
4295 2005-12-16  Jackson Harper  <jackson@ximian.com>
4296
4297         * Control.cs: Make sure we have an active menu before trying to
4298         process commands on it. Prevents menu-less forms from crashing
4299         when Alt is pressed.
4300         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4301         Dieter Bremes.
4302         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4303         2.0 build.
4304
4305 2005-12-16  Jackson Harper  <jackson@ximian.com>
4306
4307         * InternalWindowManager.cs: Don't translate tool windows screen
4308         coordinates. This fixes windows 'bouncing' around when being moved.
4309
4310 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4311
4312         * TextBoxBase.cs:
4313           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4314             not quite MS compatible, MS uses that number only for single line
4315             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4316             the limit at 2GB)
4317           - Now enforcing the MaxLength limit when entering characters
4318           - Added argument to internal Paste() method to track if it's called
4319             from programatically or via keyboard, since keyboard driven pastes
4320             need to enforce max-length
4321           - Added logic to Paste to only paste as many chars as MaxLength 
4322             allows
4323         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4324         * TextControl.cs:
4325           - Added Length property to return number of characters in document
4326           - Added private CharCount property which only tracks actual chars
4327             in the document (no linefeeds) and fires event when CharCount
4328             changes
4329           - Added tracking of character count to all methods that alter it
4330           - Added LengthChanged event to allow applications to subscribe
4331             to any changes to the document
4332
4333 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4334
4335         * TextBox.cs: 
4336           - Removed local password_char field (moved to TextBoxBase)
4337           - Now setting the document's password var when password is
4338             set
4339         * TextBoxBase.cs:
4340           - Added password_char field (needed here so MultiLine can
4341             access it)
4342           - Added logic to MultiLine property setter to set the document's
4343             variable when password display is allowed
4344           - Removed debug code and made some debug code conditional
4345         * TextControl.cs:
4346           - Added RecalculatePasswordLine() method to handle special password
4347             char only lines
4348           - Added PasswordChar property, also added related tracking vars
4349           - Draw() method now uses local text var for grabbing text to draw,
4350             this var is set to line.text unless we're doing password display,
4351             then it is set to the pre-generated all-password-chars line
4352           - Added calling RecalculatePasswordLine() method for password lines
4353
4354 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4355
4356         * Hwnd.cs: 
4357           - Added Reparented property to allow tracking of Window Manager
4358             reparenting actions (which affect X/Y calculations of toplevel 
4359             windows)
4360           - Made ToString() print window handles in hex
4361         * XplatUIX11.cs:
4362           - AddConfigureNotify(): Now uses reparented state off Hwnd to
4363             determine if X/Y needs offsetting
4364           - AddConfigureNotify(): Fixed offset calculations
4365           - Now adds ReparentNotify messages into the queue
4366           - Now processes ReparentNotify messages and causes a 
4367             WM_WINDOWPOSCHANGED message to be sent upstream if a window
4368             is reparented (as most likely it's X/Y coordinates are changed
4369             due to that)
4370
4371 2005-12-14  Jackson Harper  <jackson@ximian.com>
4372
4373         * XplatUIX11.cs: Tool windows still need to respek focus.
4374
4375 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4376
4377         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4378           have a working release
4379
4380 2005-12-13  Jackson Harper  <jackson@ximian.com>
4381
4382         * Form.cs: Update styles after setting the border style regardless
4383         of whether or not the window is using a window manager.
4384
4385 2005-12-13  Jackson Harper  <jackson@ximian.com>
4386
4387         * Form.cs: We now hook into an internal window manager instead of just an
4388         MDI subsystem, this is so we can have properly behaving tool windows.
4389         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4390         * InternalWindowManager.cs: New internal class that acts as a
4391         window manager for tool windows and as a base for mdi windows.
4392         * MdiWindowManager.cs: New class that acts as a window manager for
4393         mdi windows.
4394
4395 2005-12-12  Jackson Harper  <jackson@ximian.com>
4396
4397         * Control.cs: Updates so we match behavoir for for implicit
4398         controls. Fixes explosions in MDI.
4399
4400 2005-12-12  Jackson Harper  <jackson@ximian.com>
4401
4402         * Control.cs: Implement Invalidate (Region).
4403
4404 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
4405
4406         * Control.cs: 
4407           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
4408             the same events as MS does. MS fires events for each property 
4409             except, for unknown reasons, Cursor, when the control is reparented. 
4410             I can't seem to totally match add/remove since MS also fires some 
4411             VisibleChanged events, which makes no sense. Consolidated the
4412             parenting code into a separate method so it can be called from
4413             both Add and Remove. set_Parent no longer needs any special logic
4414             as it calls the parent's add method which implicitly fires
4415             all events
4416           - Removed some obsolete code and debug output
4417           - Enabled state is inherited from parents, if this is enabled
4418
4419 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4420
4421         * Form.cs: Removed commented out code
4422
4423 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4424
4425         * Control.cs:
4426           - Added internal version of Invoke, with additional argument 
4427             indicating if we're calling it from a Dispose() handler. That
4428             way we can avoid BeginInvoke throwing an exception if we're
4429             calling for an already destroyed window.
4430           - Added a dispose argument to BeginInvokeInternal, and made the
4431             check if a valid window handle chain exists conditional on
4432             it not being a dispose call
4433           - Removed code in DestroyHandle to destroy our children. Since we
4434             now handle the WM_DESTROY message we will catch all our children
4435             being destroyed.
4436           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4437         * Form.cs:
4438           - Added a field to track the application context of the form.
4439           - No need to set closing variable as response to WM_CLOSE, instead
4440             we destroy the window. We also call PostQuitMessage if the form
4441             has an application context (which makes it the main app form,
4442             which, when closed terminates the app)
4443         * XplatUI.cs:
4444           - Dropped Exit() method, it's naming was confusing
4445           - Added PostQuitMessage() which causes GetMessage to return false
4446             once the message queue is empty
4447         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4448           PostQuitMessage()
4449         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4450           no longer a valid XplatUI method, but left it in since it's used
4451           internally. Added empty PostQuitMessage() method.
4452         * MenuAPI.cs: Replaced call to Exit() with call to
4453           PostQuitMessage, even though this is probably no longer needed.
4454         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4455         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4456         * Application.cs:
4457           - Replaced call to XplatUI.Exit() with PostQuitMessage()
4458           - Removed old debug code that would call XplatUI for exception
4459             display, enabled standard exception handling (Still not enabled
4460             though, until NativeWindow's ExternalExceptionHandler define
4461             is removed
4462         * NativeWindow.cs:
4463           - Added internal method to allow control to update NativeWindow
4464             after a window has been destroyed
4465           - Added handling of already destroyed windows when calling i
4466             DestroyWindow
4467           - Added removal of handle from list on ReleaseHandle
4468         * XplatUIX11.cs:
4469           - Dropped GetMessageResult var and related code
4470           - Added PostQuitState to field to track if PostQuitMessage has been
4471             called
4472           - Dropped Exit() method
4473           - Added PostQuitMessage() method
4474           - GetMessage now will return false if PostQuitState is set and no
4475             more messages are in the queue.
4476           - Expose handler will no longer generate WM_PAINT messages if we are
4477             in PostQuitState since it's very likely any windows have already
4478             been destroyed, and since Hwnd won't get updated until we have
4479             processed the DestroyNotify we'd be causing X errors.
4480         
4481 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4482
4483         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4484           Thanks to Mike for pointing out the err of my ways.
4485
4486 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4487
4488         * Control.cs(PreProcessMessage): Moved menu handling back, but
4489           after all other key handling, to match MS (who handles Menu in
4490           DefWndProc)
4491         * Menu.cs (WndProc): Removed my brainfart
4492
4493 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4494
4495         * Control.cs(PreProcessMessage): Removed special menu handling 
4496         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4497
4498 2005-12-07  Mike Kestner  <mkestner@novell.com>
4499
4500         * Control.cs : special case SYSKEYUP so that we can adjust keynav
4501         state according in tracker.
4502         * Menu.cs : promote tracker field to base class and provide a tracker
4503         lookup capability.  Add/Remove shortcuts dynamically if the top menu
4504         has a tracker. Unparent items that are removed from the collection.
4505         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4506         * Theme*.cs: add always_show_hotkeys field to support configurability
4507         of mnemonic display.  win32 doesn't show mnemonics until Alt is
4508         pressed.
4509
4510 2005-12-07  Jackson Harper  <jackson@ximian.com>
4511
4512         * MdiChildContext.cs: Use Control.ResetCursor.
4513         * Control.cs: ResetCursor needs to set the property so that the
4514         correct XplatUI call gets made.
4515
4516 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4517
4518         * Control.cs: More fixes to make our key events match MS. We
4519           were not setting the modifier state on KeyData, and we were
4520           not generating any events when Alt was pressed with a key
4521           since handling of WM_SYSxxx was missing for the OnKey methods.
4522
4523 2005-12-07  Jackson Harper  <jackson@ximian.com>
4524
4525         * MdiChildContext.cs: reenable the sizing code.
4526         - When the mouse leaves a window reset its cursor.
4527
4528 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4529
4530         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4531
4532 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4533
4534         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4535           widths of Fixed3D borders
4536
4537 2005-12-07  Jackson Harper  <jackson@ximian.com>
4538
4539         * MdiClient.cs: Fix warnings. Earn Mike's love.
4540
4541 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4542
4543         * ThemeClearlooks.cs:
4544           - Adjusted mouse over button color
4545           - Added first parts of CheckBox drawing
4546           - Added correct color for selected text background
4547           - Fixed ComboBox drawing
4548           - Added CPDrawBorder3D and CPDrawBorder
4549
4550 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4551
4552         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4553
4554 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4555
4556         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4557           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4558           alert users via sound. We could add an enum arg with different
4559           types of alerts in the future
4560
4561 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4562
4563         * Control.cs: Fix behaviour problems pointed out by Mike
4564
4565 2005-12-05  Mike Kestner  <mkestner@novell.com>
4566
4567         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4568         prop setters.  Calls parent.Refresh for now, but could be maybe be
4569         optimized with an internal method on StatusBar at some point.
4570         [Fixes #76513]
4571
4572 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4573
4574         * RichTextBox.cs: Implemented get_SelectionColor
4575
4576 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4577
4578         * ThemeClearlooks.cs:
4579           - Removed dead code
4580           - Draw black button border only if button is Form.AcceptButton
4581           - Draw correct button color for pressed RadioButton if the mouse 
4582             has entered the button
4583           - Updated ProgressBar drawing!
4584           - Updated CPDrawSizeGrip drawing
4585           - Updated StatusBarPanel drawing
4586
4587 2005-12-05  Mike Kestner  <mkestner@novell.com>
4588
4589         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4590         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4591
4592 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4593
4594         * ThemeClearlooks.cs: Initial check-in, activate with
4595           export MONO_THEME=clearlooks
4596         * ThemeEngine.cs: Added ThemeClearlooks
4597
4598 2005-12-03  Mike Kestner  <mkestner@novell.com>
4599
4600         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4601         [Fixes #76897]
4602
4603 2005-12-02  Jackson Harper  <jackson@ximian.com>
4604
4605         * Form.cs: If the child form has no menu the default main menu is
4606         used as the active menu.
4607
4608 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4609
4610         * ListBox.cs: Check if any items exist before trying to resolve 
4611           coordinates into items
4612
4613 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4614
4615         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4616           as the second color for the background hatch
4617
4618 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4619
4620         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4621         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4622           sure that what we pass to FormatText is always 1-based. Fixes #76885
4623
4624 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4625
4626         * NumericUpDown.cs (EndInit): When we are done initializing,
4627         reflect any updates on the UI.
4628
4629 2005-12-02  Jackson Harper  <jackson@ximian.com>
4630
4631         * ImplicitHScrollBar.cs:
4632         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4633         their container controls.
4634         * TreeView.cs: Use the new implicit scrollbars.
4635
4636 2005-12-02  Jackson Harper  <jackson@ximian.com>
4637
4638         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4639         can play with it.
4640         * TreeNodeCollection.cs: If we remove the topnode we need to
4641         update topnode to the next node in line.
4642         - When clearing nodes go through the same process as removing
4643         them, so they get depareneted and checked if they are top node.
4644
4645 2005-12-01  Jackson Harper  <jackson@ximian.com>
4646
4647         * TreeView.cs: When imagelists are used the image area is
4648         selectable as well as the text.
4649         - If there are no selected nodes select the first one.
4650         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4651         so don't do it more then we need to.
4652
4653 2005-12-01  Jackson Harper  <jackson@ximian.com>
4654
4655         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4656         that arrows can be scaled.
4657
4658 2005-12-01  Jackson Harper  <jackson@ximian.com>
4659
4660         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4661         fail. Patch by Dieter Bremes
4662
4663 2005-11-30  Jackson Harper  <jackson@ximian.com>
4664
4665         * Form.cs: Property is 2.0 only
4666         * PrintDialog.cs: Signature fix.
4667
4668 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4669
4670         * TextControl.cs: 
4671           - No longer artificially moves text 2 pixels down (now that we have
4672             borders this is no longer needed)
4673           - Added calcs for left, hanging and right indent
4674
4675 2005-11-23  Mike Kestner  <mkestner@novell.com>
4676
4677         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4678
4679 2005-11-30  Jackson Harper  <jackson@ximian.com>
4680
4681         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4682         get cloned as part of CloneMenu ().
4683         * Menu.cs: Make sure the parent of the items get set correctly
4684         when they are added.  And the owners are notified of the changes.
4685         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4686         we can change the menu being displayed/handled by the form without
4687         changing the menu assosciated with the form.
4688         - Don't let Mdi children draw/handle menus.
4689         
4690 2005-11-30  Jackson Harper  <jackson@ximian.com>
4691
4692         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4693         a MenuChanged event. Just to make the API a little more
4694         consistent.
4695         * MainMenu.cs:
4696         * MenuItem.cs: Use the new OnMenuChanged
4697         * MdiChildContext.cs: Handle menu merging.
4698         * Form.cs: Implement MergedMenu.
4699         
4700 2005-11-30  Jackson Harper  <jackson@ximian.com>
4701
4702         * Menu.cs: We were misusing Add. Add goes behind the specified
4703         index according to the docs, and does not replace the specified
4704         index. So I added an Insert method.
4705
4706 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4707
4708         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4709           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4710           is for Jackson
4711         * RichTextBox.cs: Added calls to base for DnD events
4712
4713 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4714
4715         * TextControl.cs:
4716           - Fixed drag-selection related crash; style fixes
4717           - Implemented undo class
4718             o Implemented method to capture document state for specified
4719               range in document tree
4720             o Implemented method to restore captured document state
4721             o Implemented cursor tracking
4722             o Implemented basic undo stack
4723           - Added undo cursor tracking to methods altering cursor location
4724           - Added undo tracking to selection deletion (still missing
4725             other text-altering hookups)
4726         * RichTextBox.cs:
4727           - Added SelectionLength property
4728           - Implemented CanPaste()
4729           - Implemented Paste()
4730           - Added missing protected methods
4731           - Fixed RTF->Document conversion; now uses font index 0 and color 
4732             index 0 as the default font for the parsed text
4733           - Fixed RTF<->Document font size translation
4734           - Fixed RTF generation, now properly handles cross-tag boundaries
4735             for single line selection
4736           - No longer always appends blank line to generated RTF
4737           - Removed TODOs
4738           - Added missing attributes
4739           - Hooked up undo-related methods
4740         * TextBoxBase.cs:
4741           - Implemented Copy()
4742           - Implemented Paste()
4743           - Implemented Cut()
4744           - Fixed caret mis-behaviour on backspace across line-boundaries
4745
4746 2005-11-29  Jackson Harper  <jackson@ximian.com>
4747
4748         * MdiClient.cs: Add a method for activating mdi children. Very
4749         basic right now. I imagine someday it might need more girth.
4750         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4751         children windows names are added to the menu item.
4752         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4753         mdilist. This happens regardless of whether or not there are any
4754         mdi windows to see in the list, and according to my tests happens
4755         before the items are even added. Also happens if there isn't even
4756         an mdi client to get windows from.
4757
4758 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4759
4760         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4761         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4762
4763 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4764
4765         * DataGridTableStyle.cs:
4766           - Create always the styles for the missing columns even if they are
4767             provided by the user (not default table style)
4768         * DataGrid.cs:
4769           - Fixes bug 76770
4770           - Fixes SetDataBinding (always re-attach source)
4771           - Fixes SetNewDataSource (only clear styles if they are not for 
4772             this source)
4773          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4774             and remove properly
4775
4776 2005-11-29  Jackson Harper  <jackson@ximian.com>
4777
4778         * FileDialog.cs: Implement missing bits, remove some dead
4779         code.
4780         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4781         creation of the panel so that the options set on the dialog are
4782         seen when the panel is created.
4783         * TreeView.cs: raise a click when items are clicked.
4784         
4785 2005-11-29  Jackson Harper  <jackson@ximian.com>
4786
4787         * MdiClient.cs: Pass some signature methods through to base.
4788
4789 2005-11-28  Jackson Harper  <jackson@ximian.com>
4790
4791         * ListView.cs: Raise the click event when items are clicked.
4792
4793 2005-11-28  Jackson Harper  <jackson@ximian.com>
4794
4795         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4796         a nullref.
4797
4798 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4799
4800         * ThemeNice.cs: - Removed 1 pixel bitmaps
4801           - Use SmoothingMode.AntiAlias where it makes sense
4802             (ScrollButton arrow for example)
4803           - Enhanced Button focus drawing
4804           - Fixed ComboBox drawing (no artefacts anymore, focus
4805             rectangle is back again, reduced size of ComboButton, etc.)
4806           - Fixed RadioButton focus drawing for Appearence.Button
4807           - Slight ScrollButton redesign
4808           - Some LinearGradientBrush size fixes
4809           - GroupBoxes have now rounded edges
4810           - Fixed StatusBar drawing
4811
4812 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4813
4814         * ThemeNice.cs: - Remove dead code
4815           - use correct background colors for menus, etc.
4816           - Fake pixel drawing with 1 pixel bitmaps
4817
4818 2005-11-24  Jackson Harper  <jackson@ximian.com>
4819
4820         * MdiClient.cs: Size the scrollbars when resizing the window.
4821         - Resize the maximized windows when the client is resized
4822         * Form.cs: Make the child context available
4823         
4824 2005-11-23  Jackson Harper  <jackson@ximian.com>
4825
4826         * MdiChildContext.cs: Don't size windows if they are maximized.
4827
4828 2005-11-23  Mike Kestner  <mkestner@novell.com>
4829
4830         * ContextMenu.cs: use MenuTracker.
4831         * Control.cs: remove menu handle usage.
4832         * Form.cs: remove menu handle usage.
4833         * Hwnd.cs: remove menu handle usage.
4834         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4835         motion and clicks to the new Tracker handlers.
4836         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4837         and handle usage.
4838         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4839         Killed the MENU and MENUITEM data types and associated collections
4840         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4841         MenuTracker class that exposes the leftovers from the old MenuAPI
4842         static methods. Restructured Capture handling so that only one grab is
4843         done for the entire menu hierarchy instead of handing off grabs to
4844         submenus. Tracker now has an invisible control to Capture when active.
4845         * MenuItem.cs: add sizing accessors, kill Create
4846         and handle usage.
4847         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4848         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4849         MENU(ITEM). remove menu handle usage, use Menu directly.
4850         * XplatUIDriver.cs: remove menu handle usage.
4851         * XplatUIOSX.cs: remove menu handle usage.
4852         * XplatUIWin32.cs: remove menu handle usage.
4853         * XplatUIX11.cs: remove menu handle usage.
4854
4855 2005-11-22  Jackson Harper  <jackson@ximian.com>
4856
4857         * Hwnd.cs: Don't compute the menu size for
4858         DefaultClientRectangle.
4859         - Reenable menu sizes being computed for GetClienRectangle.
4860         * Form.cs: Remove comment of trechery
4861         
4862 2005-11-22  Jackson Harper  <jackson@ximian.com>
4863
4864         * Hwnd.cs: The adjustments for the menu bar are made when it is
4865         attached to the form.
4866
4867 2005-11-19  Jackson Harper  <jackson@ximian.com>
4868
4869         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4870         (just like on windows).
4871
4872 2005-11-19  Jackson Harper  <jackson@ximian.com>
4873
4874         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4875         use real buttons anymore because they are in non client area. The
4876         one TODO here is that I need to somehow invalidate a section of
4877         the non client area.
4878
4879 2005-11-18  Jackson Harper  <jackson@ximian.com>
4880
4881         * Control.cs: Put the enum check back in now that MDI doesnt have
4882         to use this to set border styles.
4883         * Form.cs: Only set mdi child windows borders if the handle has
4884         been created.
4885         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4886         this directly on to the driver.
4887         - Get the move start position before adjusting for the titlebar
4888         height, this fixes the windows "skipping" when they are first
4889         moved.
4890
4891 2005-11-18  Jackson Harper  <jackson@ximian.com>
4892
4893         * XplatUIX11.cs: Just compute the mdi borders separately as they
4894         don't totally match up with normal form borders.
4895
4896 2005-11-18  Jackson Harper  <jackson@ximian.com>
4897
4898         * Control.cs: Set WS_ styles for borders, so that the driver does
4899         not have to retrieve the control instance to figure out what kind
4900         of borders it should have.
4901         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4902         driver can know its an mdi child easily.
4903         * XplatUIX11.cs: Get the border styles and whether the window is
4904         MDI from the Styles and ExStyles params instead of having to get a
4905         control. This prevents a chicken and egg problem.       
4906
4907 2005-11-18  Jackson Harper  <jackson@ximian.com>
4908
4909         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4910
4911 2005-11-18  Jackson Harper  <jackson@ximian.com>
4912
4913         * MdiClient.cs: Calculate when to add and remove scrollbars
4914         correctly.
4915         * MdiChildContext.cs: Adjust the y position to take the titlebar
4916         into account.
4917         - No height for FormBorderStyle.None
4918
4919 2005-11-18  Jackson Harper  <jackson@ximian.com>
4920
4921         * Control.cs: Allow non enum values to be used for
4922         InternalBorderStyle.  MDI does this to set a special border style.
4923         - New utility methods for converting points to/from client coords
4924         - Add the newly created control to the Controls collection before
4925         updating its style. This way UpdateStyle can walk the control
4926         heirarchy to find the control if needed.
4927         so I don't need to create a new Point object all the time.
4928         * Form.cs: Let MDI windows handle their border styles.
4929         - Set styles on MDI windows so the correct title style is derived.
4930         * MdiChildContext.cs: Move all the painting and window handling
4931         into the non client area.
4932         - Use correct sizing and put correct buttons on frames based on
4933         the FormBorderStyle.
4934         - Notify the mdi client about scrolling
4935         - Need to handle the buttons ourselves now, because they are all
4936         in non client areas and we can't add controls there.
4937         * MdiClient.cs: Halfway to scrolling, this implementation is
4938         somewhat broken though, we need to check to make sure other
4939         windows aren't causing scrolling before removing the bars. Also
4940         the bars need to be drawn on top, maybe I can switch implicit
4941         controls to be on top.
4942         * Hwnd.cs: caption_height and tool_caption_height are now
4943         properties of an hwnd, this way they can be set by the driver
4944         based on the type of window they are.  In X11 the window manager
4945         handles the decorations so caption_height is zero unless its an
4946         MDI window.
4947         - Add 3 pixel borders for MDI windows (0xFFFF).
4948         - Get rid of some code duplication, have DefaultClientRectanle
4949         just call GetClientRectangle.
4950         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4951         Hwnd now.
4952         - Set border styles differently for mdi windows.
4953         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4954         Hwnd now.
4955         
4956 2005-11-15  Mike Kestner  <mkestner@novell.com>
4957
4958         * Menu.cs: when adding an item to the collection, if item is already 
4959         parented, remove it from the parent.
4960
4961 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
4962
4963         * X11DesktopColors.cs: Added KDE support
4964
4965 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
4966
4967         * XplatUIWin32.cs: 
4968           - Clipboard methods now can translate Rtf format
4969           - No longer removes clipboard contents whenever a new format is added
4970             to allow placing multiple formats on the clipboard
4971         * Clipboard.cs: Clipboard now supports getting a IDataObject and
4972           will place all formats contained in it onto the clipboard. Also
4973           now cleans the clipboard before placing a new object onto it
4974         * RichTextBox.cs:
4975           - Implemented set_Rtf
4976           - Implemented set_SelectedRtf
4977           - Created InsertRTFFromStream() method to allow single code base
4978             for all properties and methods that insert RTF into document
4979           - Removed debug output
4980         * TextControl.cs:
4981           - Fixed Delete(int) to fix up line numbers
4982           - Fixed ReplaceSelection to combine start and end line
4983           - Fixed serious DeleteChars bug that would leave the document tree
4984             broken
4985           - Improved DumpTree with several logic checks to detect broken
4986             document trees
4987           - Removed debug lines
4988           - Fixed Caret.WordForward/WordBack moving code, now always also 
4989             updates caret.tag (fixes crash when word-selecting across tag
4990             boundaries via keyboard)
4991           - Added Insert() method for inserting multiline text into documents
4992           - Fixed DeleteChars() calculation errors that would cause a broken
4993             tag chain with multiple tag lines
4994           - DeleteChars() no longer crashes on multi-tag lines if not all tags
4995           - Split() no longer moves caret if split is at caret location
4996           - ReplaceSelection() now updates the cursor and re-displays it
4997           - ReplaceSelection() now uses new Insert() method to avoid code
4998             duplication
4999           - FormatText() can now handle formatting partial lines
5000         * TextBoxBase.cs:
5001           - Append now uses new TextControl.Insert() method (this avoids 
5002             duplicate code)
5003           - Implemented Ctrl-X (Cut) (
5004           - Implemented Ctrl-C (Copy)
5005           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
5006             regeneration when pasting text; roundtripping Copy&Paste within
5007             edit control still fails due to some calculation bugs in GenerateRTF)
5008           - The Delete key will now remove the current selection if it is visible
5009         * TextBox.cs: Removed debug lines
5010         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
5011           driver to be initialized and can't therefore be done via a static ctor)
5012
5013 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
5014
5015         * TextControl.cs: Added backend code for finding char arrays and strings
5016         * TextBoxBase.cs:
5017           - Added mouse wheel scroll support
5018           - Added support for VScroll and HScroll events
5019         * RichTextBox.cs:
5020           - Implemented all seven Find() variants
5021           - Implemented GetCharFromPosition()
5022           - Implemented GetCharIndexFromPosition()
5023           - Implemented GetLineFromIndex()
5024           - Implemented GetPositionFromCharIndex();
5025           - Implemented SaveFile for PlainText and UnicodeText
5026           - Fixed set_Font, now setting a new font applies that font to
5027             the whole document
5028           - Implemented generic Document to RTF converter
5029           - Implemented SaveFile for RichText format (still missing unicode
5030             conversion for non-ansi chars)
5031           - Implemented get_Rtf
5032           - Implemented get_SelectedRtf
5033
5034 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
5035
5036         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
5037           to allow any captures to be released before triggering OnClick. This
5038           way a click handler may capture the mouse without interference.
5039         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
5040           This way we send them even though X may not allow a grab (if the window
5041           isn't visible, for example)
5042
5043 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
5044
5045         * DataGridViewRowEventArgs.cs: DataGridView implementation
5046         * DataGridViewElement.cs: DataGridView implementation
5047         * DataGridViewComboBoxCell.cs: DataGridView implementation
5048         * DataGridViewDataErrorContexts.cs: DataGridView implementation
5049         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
5050         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
5051         * ImageLayout.cs: DataGridView implementation
5052         * DataGridViewComboBoxColumn.cs: DataGridView implementation
5053         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
5054         * DataGridViewSelectionMode.cs: DataGridView implementation
5055         * IDataGridViewEditingControl.cs: DataGridView implementation
5056         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
5057         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
5058         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
5059         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
5060         * DataGridViewColumnSortMode.cs: DataGridView implementation
5061         * DataGridView.cs: DataGridView implementation
5062         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
5063         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
5064         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
5065         * Padding.cs: DataGridView implementation
5066         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
5067         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
5068         * DataGridViewRowEventHandler.cs: DataGridView implementation
5069         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
5070         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
5071         * DataGridViewButtonCell.cs: DataGridView implementation
5072         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
5073         * DataGridViewEditMode.cs: DataGridView implementation
5074         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
5075         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
5076         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
5077         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
5078         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
5079         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
5080         * DataGridViewCellEventHandler.cs: DataGridView implementation
5081         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
5082         * DataGridViewCellStyleConverter.cs: DataGridView implementation
5083         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
5084         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
5085         * DataGridViewColumnEventArgs.cs: DataGridView implementation
5086         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
5087         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5088         * QuestionEventArgs.cs: DataGridView implementation
5089         * IDataGridViewEditingCell.cs: DataGridView implementation
5090         * DataGridViewTriState.cs: DataGridView implementation
5091         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5092         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5093         * DataGridViewColumnCollection.cs: DataGridView implementation
5094         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5095         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5096         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5097         * DataGridViewColumn.cs: DataGridView implementation
5098         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5099         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5100         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5101         * DataGridViewRow.cs: DataGridView implementation
5102         * DataGridViewImageCellLayout.cs: DataGridView implementation
5103         * DataGridViewImageCell.cs: DataGridView implementation
5104         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5105         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5106         * DataGridViewHeaderCell.cs: DataGridView implementation
5107         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5108         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5109         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5110         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5111         * QuestionEventHandler.cs: DataGridView implementation
5112         * DataGridViewCellStyleScopes.cs: DataGridView implementation
5113         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
5114         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
5115         * DataGridViewCell.cs: DataGridView implementation
5116         * DataGridViewCellEventArgs.cs: DataGridView implementation
5117         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
5118         * DataGridViewCellStyle.cs: DataGridView implementation
5119         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
5120         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
5121         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
5122         * TextFormatFlags.cs: DataGridView implementation
5123         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
5124         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
5125         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
5126         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
5127         * DataGridViewButtonColumn.cs: DataGridView implementation
5128         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
5129         * HandledMouseEventArgs.cs: DataGridView implementation
5130         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
5131         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
5132         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
5133         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
5134         * DataGridViewRowCollection.cs: DataGridView implementation
5135         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
5136         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
5137         * DataGridViewHitTestType.cs: DataGridView implementation
5138         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
5139         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
5140         * DataGridViewColumnEventHandler.cs: DataGridView implementation
5141         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
5142         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
5143         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
5144         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
5145         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
5146         * DataGridViewContentAlignment.cs: DataGridView implementation
5147         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
5148         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
5149         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
5150         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
5151         * DataGridViewPaintParts.cs: DataGridView implementation
5152         * DataGridViewCellCollection.cs: DataGridView implementation
5153         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
5154         * DataGridViewImageColumn.cs: DataGridView implementation
5155         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
5156         * DataGridViewElementStates.cs: DataGridView implementation
5157         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
5158         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
5159         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
5160         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
5161         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
5162         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
5163         * DataGridViewRowHeaderCell.cs: DataGridView implementation
5164         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
5165         * DataGridViewTextBoxCell.cs: DataGridView implementation
5166         * DataGridViewBand.cs: DataGridView implementation
5167         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
5168         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
5169         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
5170         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
5171         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
5172         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
5173         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
5174         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
5175         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
5176         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
5177         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
5178
5179 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
5180
5181         * ThemeWin32Classic.cs: 
5182           - Draw the outside focus rectangle around buttons
5183           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
5184             doesn't use end caps for every dash of a line anymore. This
5185             workaround ignores the forecolor.
5186
5187 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
5188
5189         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
5190           endian safe.
5191
5192 2005-11-07  Jackson Harper  <jackson@ximian.com>
5193
5194         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
5195
5196 2005-11-07  Jackson Harper  <jackson@ximian.com>
5197
5198         * ScrollableControl.cs: Calculate the maximum and change vars
5199         (more) correctly so that scrollbars appear as a sensible size.
5200
5201 2005-11-04  Jackson Harper  <jackson@ximian.com>
5202
5203         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5204         collection.
5205         * TreeView.cs: When the tree is sorted null out the top_node so
5206         that it is recalculated.
5207         - Use dotted lines instead of dashed lines to match MS better.
5208
5209 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5210
5211         * ListView.cs: 
5212           - Implements key search for items. Useful when browsing files with FileDialog
5213           - When changing view mode or when clear the items reset scrollbar positions
5214
5215 2005-11-04  Jackson Harper  <jackson@ximian.com>
5216
5217         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5218         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5219         as to what the method may do as there is no real way of creating a
5220         derived CurrencyManager and calling the method. 
5221
5222 2005-11-03  Jackson Harper  <jackson@ximian.com>
5223
5224         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5225         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5226         method which seems to just be used internally to refresh the tabs.
5227
5228 2005-11-03  Jackson Harper  <jackson@ximian.com>
5229
5230         * TabControl.cs: Implement the remove method. Fix some broken
5231         comments.
5232
5233 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5234
5235         * DateTimePicker.cs:
5236           - Added missing DateTimePickerAccessibleObject class
5237           - Added missing events
5238           - Added OnFontChanged method
5239         * Form.cs: Added missing attributes
5240         * TreeView.cs: Added missing attributes
5241
5242 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5243
5244         * GridItemCollection.cs: Fix signatures
5245
5246 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5247
5248         * XplatUI.cs: Updated build rev/date
5249         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5250           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5251         * Application.cs: Trigger context-specific ExitThread events
5252
5253 2005-11-03  Jackson Harper  <jackson@ximian.com>
5254
5255         * Menu.cs:
5256         * MainMenu.cs:
5257         * GridTableStylesCollection.cs:
5258         * Timer.cs:
5259         * TabPage.cs:
5260         * HelpProvider.cs:
5261         * StatusBar.cs:
5262         * MonthCalendar.cs: Signature fixes
5263
5264 2005-11-03  Jackson Harper  <jackson@ximian.com>
5265
5266         * TreeNodeCollection.cs: Remove should not be virtual.
5267         * TreeView.cs: Implement the last of the missing methods.
5268
5269 2005-11-03  Jackson Harper  <jackson@ximian.com>
5270
5271         * TreeNodeConverter.cs: Implement to get off my class-status back.
5272
5273 2005-11-03  Jackson Harper  <jackson@ximian.com>
5274
5275         * TreeView.cs: Hookup the bits for drag and drop.
5276         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5277         that nodes can be moved from tree to tree easily this just causes
5278         all sorts of problems.
5279         * TreeNodeCollection: Don't need to give treenodes an index and
5280         treeview anymore when they are added, these are computed on the
5281         fly. Also make sure to remove a node before its added.
5282
5283 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5284
5285         * TextControl.cs:
5286           - Added CaretSelection enum
5287           - Added comparison methods to Marker struct, makes selection code
5288             more readable
5289           - Added SelectionStart and SelectionEnd as 'moveable' location for
5290             the CaretDirection enum and handler
5291           - Added selection_prev variable to track optimized invalidation for
5292             word and line selection
5293           - Added SelectionVisible property (returns true if there is a valid 
5294             selection)
5295           - Switched CaretHasFocus to only display the caret if there is no
5296             visible selection
5297           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5298             using the direct character index; should be much faster
5299           - Added various conditional debug statements
5300           - Fixed invalidation calculation for selection ranges
5301           - Added ExpandSelection() method to support word and line selection
5302           - Switched SetSelectionToCaret to use new Marker compare overloads
5303           - Added central IsWordSeparator() method to determine word 
5304             separators/whitespace and FindWordSeparator() to streamline common
5305             usage of IsWordSeparator()
5306         * TextBoxBase.cs:
5307           - Removed unneeded grabbed variable, it was just mirroring
5308             Control.Capture
5309           - No longer firing OnTextChanged event when Text setter is called,
5310             since the base will fire the event for us
5311           - Added handling of Ctrl-Up/Down selection
5312           - Added handling of Shift-Cursorkey selection
5313           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5314             words
5315           - Added handling of Shift and Ctrl-Shift-Home/End selection
5316           - Removed some debug output
5317           - Added handling for single/double/tripple-click to place caret/
5318             select word/select line respectively (Fixes bug #76031)
5319           - Added support for drag expansion of word/line selection
5320         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5321           current selection
5322
5323 2005-11-02  Jackson Harper  <jackson@ximian.com>
5324
5325         * X11Dnd.cs: If the drag is going to and from a MWF window just
5326         copy the data instead of sending it out through the X Selection
5327         mechanism.
5328
5329 2005-11-02  Jackson Harper  <jackson@ximian.com>
5330
5331         * X11Dnd.cs:
5332         * XplatUIX11.cs: When in a drag we don't want motion notify
5333         messages to get passed on to the other controls. This prevents
5334         mouse move messages from showing up in the drag source.
5335
5336 2005-11-02  Jackson Harper  <jackson@ximian.com>
5337
5338         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5339         the correct button is release to end a drag.
5340         * XplatUIX11.cs: Make the button state internal so the drag system
5341         can access it.  Dragging needs to know about all button releases,
5342         not just left button.
5343
5344 2005-11-02  Miguel de Icaza  <miguel@novell.com>
5345
5346         * Form.cs (Icon): If the icon is null, reset the icon to the
5347         default value. 
5348
5349         * Cursor.cs: When writing the AND-mask bitmap do not include the
5350         number of colors, but hardcode those to two (black and white),
5351         fixes the loading of color cursors (Paint Dot Net).
5352
5353         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5354         turn off autoscaling.
5355
5356         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5357
5358 2005-11-02  Jackson Harper  <jackson@ximian.com>
5359
5360         * X11Dnd.cs: Make sure to send a status message if the pointer
5361         enters a control that can not accept a drop, otherwise the cursor
5362         isn't updated correctly. Also tried to compress the lines of code
5363         a bit.
5364
5365 2005-11-02  Jackson Harper  <jackson@ximian.com>
5366
5367         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5368         set actions correctly.  This isn't perfect as XDND and win32 have
5369         some differences on how you allow actions. I'll clear this up by
5370         adding a path for drag from MWF to MWF windows.
5371         * XplatUIX11.cs: Hook into the dnd system.
5372
5373 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
5374
5375         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5376         previously shown but they are no longer need it. Very obvious when 
5377         browsing files with FileDialog.
5378
5379 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
5380
5381         * Control.cs: We always need to call OnPaintBackground. We pretty much
5382           ignore AllPaintingInWmPaint and always do the painting there, whether 
5383           it's set or not, since we always ignore the WM_ERASEBKGND message 
5384           (which we don't generate on X11). This fixes #76616.
5385         * Panel.cs: Removed unneeded background painting. This happens properly
5386           in Control.cs already
5387
5388 2005-10-31  Mike Kestner  <mkestner@novell.com>
5389
5390         * Menu.cs: Add items to collection before setting their index.
5391         * MenuItem.cs : add range checking with ArgumentException like MS.
5392         [Fixes #76510]
5393
5394 2005-10-31  Jackson Harper  <jackson@ximian.com>
5395
5396         * ListBox.cs: Invalidate if the area is visible at all not just
5397         contained in the visible rect. Fixes unselection of semi visible
5398         items.
5399
5400 2005-10-31  Jackson Harper  <jackson@ximian.com>
5401
5402         * Control.cs: Consistently name the dnd methods. Make them
5403         internal so we can override them to match some MS behavoir
5404         internally.
5405         * Win32DnD.cs: Use the new consistent names.
5406
5407 2005-10-31  Jackson Harper  <jackson@ximian.com>
5408
5409         * TreeView.cs: Don't draw the selected node when we lose focus.
5410
5411 2005-10-31  Jackson Harper  <jackson@ximian.com>
5412
5413         * X11Dnd.cs: We still need to reset the state even though a full
5414         reset isn't being done, otherwise status's still get sent all over
5415         the place.
5416
5417 2005-10-31  Jackson Harper  <jackson@ximian.com>
5418
5419         * Control.cs: Make the dnd_aware flag internal so the dnd
5420         subsystem can check it. Catch exceptions thrown in dnd handlers to
5421         match MS behavoir.
5422         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5423         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5424         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5425         flags to reduce the number of dnd enters/status's sent.
5426
5427 2005-10-31  Jackson Harper  <jackson@ximian.com>
5428
5429         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5430
5431 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5432
5433         * PictureBox.cs: Fixes 76512
5434
5435 2005-10-28  Jackson Harper  <jackson@ximian.com>
5436
5437         * X11Dnd.cs: Early implementation to support winforms being a drag
5438         source for data on X11. Also restructured the converters so they
5439         can go both ways now.
5440         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5441         
5442 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5443
5444         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5445           clipboard requests
5446
5447 2005-10-27  Jackson Harper  <jackson@ximian.com>
5448
5449         * TreeNode.cs: Implement serialization so my DnD examples will work.
5450
5451 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
5452
5453         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5454           TreeView.cs: Don't dispose objects that are not owned.
5455           
5456 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
5457
5458         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5459           should retrieve the current cursor and report that, but XplatUI
5460           doesn't (yet) have an interface for that (and I'm not sure I even
5461           can, on X11)
5462         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5463           until any message loop processing is done (and the WM_SETCURSOR
5464           replaces the cursor to the proper one)
5465         * XplatUIX11.cs: 
5466           - Fixed override behaviour, we can't set the cursor globally on X11, 
5467             just for our windows.
5468           - Invalidating the System.Drawing X11 display handle when we are
5469             shutting down
5470         * Control.cs: Fix to make csc happy
5471
5472 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
5473
5474         * TextBoxBase.cs: 
5475           - get_Text: Add last line (without trailing newline) to returned
5476             value (Fixes 76212)
5477           - get_TextLength: Count last line in returned length
5478           - ToString: Call Text property instead of duplicating code
5479
5480 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
5481
5482         * ImageList.cs: Dispose ImageAttributes objects.
5483
5484 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5485
5486         * ImageList.cs: Use attribute constructors with less arguments where
5487           possible.
5488
5489 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5490
5491         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5492           Use typeof instead of strings when assembly is referenced. Added
5493           some more comments.
5494
5495 2005-10-21  Jackson Harper  <jackson@ximian.com>
5496
5497         * ListView.cs: Raise a double click event. Also tried to somewhat
5498         fix when the selectedindexchanged event is raised. Its still
5499         broken though.
5500
5501 2005-10-21  Jackson Harper  <jackson@ximian.com>
5502
5503         * TreeView.cs: New method to invalidate the plus minus area of a
5504         node without invalidating the whole node (maybe this can be used
5505         in some more places).
5506         * TreeNodeCollection.cs: When adding to an empty node we need to
5507         invalidate its plus minus area so the little block shows up.
5508         
5509 2005-10-21  Jackson Harper  <jackson@ximian.com>
5510
5511         * TreeView.cs: Make sure that when we invalidate a node the bounds
5512         are big enough to cover the selected box and the focus
5513         rectangle. Use a different colour for the lines connecting nodes
5514         so they show up with all themes.
5515
5516 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5517
5518         * NativeWindow.cs: Don't call anything that could call into the driver,
5519           we might be on a different thread.
5520
5521 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
5522
5523         * Control.cs(Dispose): Since Dispose might run on a different thread,
5524           make sure that we call methods that could call into the driver via
5525           invoke, to avoid thread issues
5526
5527 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5528
5529         * XplatUI.cs: Removed finalizer
5530         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5531           not allowing to be called on the finalizer thread.
5532
5533 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5534
5535         * ImageList.cs:
5536           - Reverted r51889 and r51891.
5537           - Added ImageListItem class that stores unmodified image items and image
5538             properties required to create list images until handle is created.
5539           - Added AddItem and moved image creation logic to AddItemInternal.
5540           - Added CreateHandle method that creates images based on unmodified items.
5541           - Added DestroyHandle that changes state to store unmodified items.
5542           - Add and AddStrip methods no more create handle.
5543           - ReduceColorDepth has no return value.
5544           - Dispose destroys handle.
5545           - Modified other methods to reflect the above changes.
5546           - Implemented key support.
5547           - Added profile 2.0 members and attributes.
5548           - Added private Reset and ShouldSerialize methods that provide the same
5549             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5550             them as they are private.
5551           - Added some more comments about implementation details.
5552
5553 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5554
5555         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5556
5557 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5558
5559         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5560
5561 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5562
5563         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5564         * DataGridColumnStyle.cs: Remove debug message
5565
5566 2005-10-20  Jackson Harper  <jackson@ximian.com>
5567
5568         * TreeView.cs: We can always get input keys regardless of whether
5569         or not editing is enabled. They are used for navigation.
5570
5571 2005-10-20  Jackson Harper  <jackson@ximian.com>
5572
5573         * TreeNode.cs: Use the viewport rect for determining if a node
5574         needs to be moved for visibility. Don't use Begin/End edit. This
5575         calls a full refresh when its done.
5576         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5577         rect property internal so the treenodes can see it. When clicking
5578         on a node we need to ensure that its visible because it might just
5579         be partly visible when clicked.
5580
5581 2005-10-20  Jackson Harper  <jackson@ximian.com>
5582
5583         * TreeNodeCollection.cs: Remove debug code.
5584
5585 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5586
5587         * Datagrid.cs: Implements column sorting in Datagrid
5588         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5589
5590 2005-10-20  Jackson Harper  <jackson@ximian.com>
5591
5592         * TreeNodeCollection.cs: Remove items properly. Update the correct
5593         area after removing them.
5594
5595 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5596
5597         * Datagrid.cs: Should not call base.OnPaintBackground
5598
5599 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5600
5601         * XplatUIX11.cs (GetMessage):
5602           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5603             window instead of client window
5604           - Now properly calculates NC_xBUTTONUP message coordinates
5605           - ScreenToMenu now properly calculates it's coordinates of whole 
5606             window, since menus are in the whole window, not in the client
5607             window
5608           - Added WholeToScreen coordinate translation method
5609
5610 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5611
5612         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5613           want to return a message, loop back to the beginning of the function
5614           and grab the next real message to process instead.
5615
5616 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5617
5618         * Splitter.cs: Properly set limits if no filler control is used
5619
5620 2005-10-19  Jackson Harper  <jackson@ximian.com>
5621
5622         * ColorDialog.cs: Don't show the help button if it is not enabled
5623         instead of disabling it (this is what MS does). Don't create the
5624         panel until the dialog is run, otherwise the vars (such as
5625         ShowHelp) are not set yet.
5626
5627 2005-10-19  Jackson Harper  <jackson@ximian.com>
5628
5629         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5630         are reduced when adding nodes.
5631         * TreeNode.cs:
5632         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5633         tree.
5634         
5635 2005-10-19  Jackson Harper  <jackson@ximian.com>
5636
5637         * FolderBrowserDialog.cs: End editing our treeview so the window
5638         actually gets refreshed.
5639
5640 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5641
5642         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5643           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5644           inside of WM_PAINT
5645
5646 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5647
5648         * MenuAPI.cs: Returns after Hidding window
5649         * XplatUIX11.cs: Added TODO found while debugging menu issues
5650
5651 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5652
5653         * XplatUIX11.cs: Do not re-map the whole window when it's size
5654           becomes non-zero unless it's supposed to be actually visible
5655
5656 2005-10-18  Jackson Harper  <jackson@ximian.com>
5657
5658         * TreeView.cs: We don't need to keep a count anymore.
5659         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5660         use the Grow method.
5661
5662 2005-10-18  Jackson Harper  <jackson@ximian.com>
5663
5664         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5665         implement it manually here.
5666
5667 2005-10-18  Jackson Harper  <jackson@ximian.com>
5668
5669         * ImageList.cs: Dont kill the list when the colour depth is
5670         changed, just change the colour depth of all the images.
5671         - Same goes for setting the image size. Just resize them all
5672         instead of killing the list softly.
5673
5674 2005-10-18  Jackson Harper  <jackson@ximian.com>
5675
5676         * Control.cs: Don't invalidate empty rectangles.
5677
5678 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5679
5680         * ListViewItem.cs:
5681           - Adds checked item to the Checked/Item lists (where empty before)
5682           - Do not add items to the Selected lists if they are already present
5683         * ListView.cs:
5684           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5685           - When deleting items make sure that we delete them for the Selected
5686           and Checked list also.
5687
5688 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5689
5690         * Label.cs: Dispose objects no longer used
5691         * ThemeWin32Classic.cs: Dispose objects no longer used
5692
5693 2005-10-18  Jackson Harper  <jackson@ximian.com>
5694
5695         * TabControl.cs: Don't refresh the whole control when the tabs are
5696         scrolled, we just need to refresh the tab area.
5697
5698 2005-10-17  Jackson Harper  <jackson@ximian.com>
5699
5700         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5701         after handle when we need it.
5702
5703 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5704
5705         * Control.cs: When the parent size changes, recalculate anchor 
5706           positions. Partial fix for #76462
5707
5708 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5709
5710         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5711           drawn. Fixes #76462
5712
5713 2005-10-17  Jackson Harper  <jackson@ximian.com>
5714
5715         * MonthCalendar.cs: Don't create the numeric up down until our
5716         handle is created. Otherwise our handle is created in the
5717         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5718         yet.
5719
5720 2005-10-17  Jackson Harper  <jackson@ximian.com>
5721
5722         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5723         correctly.
5724
5725 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5726         * TreeNode.cs : small logical fix (was using local var instead of field)
5727         
5728 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5729
5730         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5731
5732 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5733
5734         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5735
5736 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5737
5738         * Control.cs: 
5739           - Re-implemented anchoring code. My first version was really broken.
5740             This fixes bug #76033. Unlike the previous implementation we will
5741             no longer have round errors since all numbers are calculated from
5742             scratch every time. Removed various anchor-related obsolete vars.
5743           - InitLayout no longer causes layout event firing and layout to be 
5744             performed
5745
5746 2005-10-16  Jackson Harper  <jackson@ximian.com>
5747
5748         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5749         which was broken).
5750
5751 2005-10-16  Jackson Harper  <jackson@ximian.com>
5752
5753         * TabControl.cs: Remove debug code.
5754
5755 2005-10-16  Jackson Harper  <jackson@ximian.com>
5756
5757         * XEventQueue.cs: Increase the default queue size (very simple
5758         apps needed to grow the queue).
5759         * Hwnd.cs: No finalizer so we don't need to suppress
5760         finalization. Compute the invalid area manually so a new rectangle
5761         does not newto be created.
5762         * ScrollableControl.cs: Don't set any params (otherwise visibility
5763         isn't set correctly).
5764         * MdiChildContext.cs: New constructor takes the mdi parent so it
5765         doesn't have to be computed and avoids a crash on windows. Draw
5766         the window icon properly, and allow the text to be seen.
5767         * Form.cs: Use new MdiChildContext constructor. Make sure the
5768         child context isn't null in wndproc.
5769         * TabControl.cs: Don't set focus, this is muddling keyboard
5770         behavoir. Expand the tab rows when a window size increase will
5771         allow extra tabs to be seen. Don't allow tabs smaller than the
5772         width of a window to be scrolled out of view.
5773         * TreeNode.cs:
5774         * TreeView.cs: Use measure string to calculate a nodes width, the
5775         width is cached and only updated when the text or the font is
5776         changed. Don't check for expand/collapse clicks on the first level
5777         nodes if root lines are disabled.
5778         
5779 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5780
5781         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5782
5783 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5784
5785         * DataGridBoolColumn.cs: fixes warning
5786
5787 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5788
5789         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5790         to match more to match more precisely the MS Net behavior
5791
5792 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5793
5794         * Hwnd.cs: Added field to track if window is mapped
5795         * XplatUIX11.cs: 
5796           - Unmap windows if they become 0-size, re-map when 
5797             they are >0 again; fixes #76035
5798           - Re-set our error handler after initializing X11Desktop
5799             to override any error handlers Gtk or whatever was called
5800             may have set.
5801
5802 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5803
5804         * CheckedListBox.cs: Removed unused vars
5805         * ListView.cs: Fixed signatures
5806         * RichTextBox.cs: Removed unused vars
5807         * TextBoxBase.cs: Removed unused vars
5808         * XplatUIWin32.cs: Removed unused vars
5809         * XplatUIX11.cs: Removed unused vars
5810         * XplatUI.cs: Updated version and date to latest published
5811
5812 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5813
5814         * Cursor.cs: Added private .ctor to work around a bug in
5815           resourceset (Thanks to Geoff Norton for the help on this)
5816         * SplitterEventArgs.cs: Made fields accessible so we don't
5817           waste boatloads of objects and can reuse the same one
5818           in Splitter
5819         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5820           any captions and borders when generating screen coordinates
5821         * Splitter.cs: Reimplemented control, now fully complete, uses
5822           rubberband drawing, supports and obeys all properties, has
5823           proper cursors
5824
5825 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5826
5827         * Form.cs (Form): Setup default values for autoscale and
5828         autoscale_base_size;  Make these instance variables, not static
5829         variables. 
5830
5831         (OnLoad): on the first load, adjust the size of the form.
5832
5833 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5834
5835         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5836           width argument to DrawReversibleRectangle()
5837         * XplatUIWin32.cs, XplatUIX11.cs: 
5838           - Implemented width for DrawReversibleRectangle()
5839           - Added logic to DrawReversibleRectangle that recognizes a zero
5840             width or height and only draws a line in that situation
5841         
5842 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5843
5844         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5845         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5846         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5847           method (it uses our FosterParent window to get a graphics context)
5848
5849 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5850
5851         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5852           and SetWindowBackground methods
5853         * Control.cs:
5854           - Setting proper ControlStyles
5855           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5856             EraseWindowBackground, instead we draw the window background
5857             ourselves in PaintControlBackground. This behaviour is
5858             required to match MS, where, when OnPaintBackground is not
5859             called, the background is not drawn.
5860           - Removed unneeded Refresh() in set_Text
5861         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5862         * XplatUIX11.cs:
5863           - Created DeriveStyles method to translate from CreateParams to
5864             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5865             matches FormBorderStyle enum values)
5866           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5867             style calculations into single DeriveStyles method
5868           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5869             from redrawing the whole window on any resize or expose.
5870           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5871             all styles were applied to our whole/client window appropriately
5872           - Removed EraseWindowBackground() and SetWindowBackground() methods
5873           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5874             no longer clear/redraw the background through X
5875           - Removed handling of erase_pending bit, we have no use for it (or
5876             so it seems)
5877         * XplatUIOSX.cs:
5878           - Removed generation and handling of WM_ERASEBKGND message
5879           - Removed EraseWindowBackground() and SetWindowBackground() methods
5880           - Removed handling of hwnd.ErasePending flag
5881         * XplatUIWin32.cs:
5882           - Removed EraseWindowBackground() and SetWindowBackground() methods
5883           - We no longer call EraseWindowBackground on PaintEventStart, we 
5884             ignore the fErase flag, erasing is handled in Control in the
5885             background handler
5886         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5887           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5888           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5889           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5890           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5891           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5892           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5893
5894 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5895
5896         * PropertyGrids.cs: Get sub properties
5897         * PropertyGridView.cs: Fix drawing code
5898
5899 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5900
5901         * ListBox.cs: Fixes 76383
5902
5903 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5904
5905         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5906         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5907         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5908
5909
5910 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5911
5912         * ComboBox.cs: Fixes border drawing
5913
5914 2005-10-10  Miguel de Icaza  <miguel@novell.com>
5915
5916         * MimeIcon.cs: Ignore errors if the file can not be read.
5917
5918 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5919
5920         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5921          - Fixed border calculations
5922          - Fixed horizontal scrolling in single column listboxes
5923          - Fixed drawing issues
5924
5925 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
5926
5927         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
5928           FormBorderStyle enum
5929         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
5930           code to determine FormBorderStyles from CreateParams
5931         * Form.cs:
5932           - Fixed bug where we'd set the wrong window styles if we were
5933             not creating an MDI window
5934           - Added call to XplatUI.SetBorderStyle when form borders are set
5935         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5936         * Hwnd.cs:
5937           - Removed obsolete edge style
5938           - Switched from BorderStyle to FormBorderStyle
5939         
5940 2005-10-10  Jackson Harper  <jackson@ximian.com>
5941
5942         * Form.cs: Use the property to get the window handle instead of
5943         accessing it directly. Prevents a null reference exception.
5944
5945 2005-10-10  Jackson Harper  <jackson@ximian.com>
5946
5947         * TreeView.cs: Don't adjust the rect given to DrawString now that
5948         our libgdiplus draws correctly.
5949
5950 2005-10-08  Jackson Harper  <jackson@ximian.com>
5951
5952         * TreeView.cs: Don't try to find the clicked on node if there are
5953         no nodes in the tree.
5954
5955 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5956
5957         * RichTextBox.cs:
5958
5959           restore
5960
5961 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5962
5963         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5964           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5965           ErrorProvider.cs:
5966           Use ResPool for brushes and dispose System.Drawing objects that
5967           are not used anymore.
5968
5969 2005-10-07  Jackson Harper  <jackson@ximian.com>
5970
5971         * MdiChildContext.cs: Use the new borders instead of drawing them
5972         ourselves.
5973
5974 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5975
5976         * Calling UpdateBounds after changing the window's BorderStyle 
5977         since the style can change the ClientSize
5978
5979 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5980
5981         * Control.cs: Made PaintControlBackground virtual
5982         * Panel.cs: Overriding PaintControlBackground instead of using paint
5983           event; paint event method was interfering with 'real' users of the
5984           event.
5985
5986 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5987
5988         * ThemeWin32Classic.cs: remove border drawing since it is handled
5989         by the base control class now and was causing double border drawing.
5990
5991 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5992
5993         * Panel.cs: Redraw our background on paint. Not a pretty solution,
5994           but it does seem to match MS behaviour. This fixes bug #75324
5995
5996 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5997
5998         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5999           somewhat hackish looking
6000
6001 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6002
6003         * TextBoxBase.cs:
6004           - We now accept Enter even if AcceptEnter is false, if the containing
6005             form does not have an AcceptButton configured (fixes bug #76355)
6006           - Calculations are now fixed to no longer use Width/Height, but
6007             ClientSize.Width/Height, since we now support borders (this was
6008             a result of fixing borders and therefore bug #76166)
6009           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
6010             true (fixes bug #76354)
6011         
6012 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6013
6014         * Control.cs: 
6015           - Defaulting BorderStyle and setting it in XplatUI when our window 
6016             is created
6017           - Added enum check to InternalBorderStyle setter
6018         * XplatUIX11.cs: 
6019           - Added drawing of window borders
6020           - Now properly calculates WM decorations offset for toplevel 
6021             windows (fixes bug #74763)
6022         * XplatUIWin32.cs: 
6023           - Implemented BorderStyles for windows (we're letting win32 draw 
6024             the border for us)
6025           - Fixed the signature for SetWindowLong
6026         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
6027           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
6028           setting borders
6029         * UpDownBase.cs: Remove drawing of borders, this is handled by
6030           the driver, outside the client area
6031         * ListView.cs: Removed bogus border calculations. The control should
6032           be oblivious to borders, since those are not part of the client
6033           area. 
6034         * X11DesktopColors.cs: Commented out (currently) unneeded variables
6035         * ThemeWin32Classic.cs: Removed border calculations from ListView 
6036           drawing code
6037
6038 2005-10-06  Jackson Harper  <jackson@ximian.com>
6039
6040         * MdiChildContext.cs: Clear out the old virtual position remove
6041         all the unneeded calls to CreateGraphics.
6042
6043 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6044
6045         * TextControl.cs: Use proper color for highlighted text; fixes #76350
6046
6047 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
6048
6049         * Form.cs: 
6050           - Added loading and setting of our new default icon
6051           - Only set icon if window is already created
6052
6053 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
6054
6055         * Label.cs:
6056           - Do not explicitly set the foreground and background colors, to
6057             allow inheriting from parents (fixes #76302)
6058           - Use Control's InternalBorderStyle property to deal with borders
6059
6060 2005-10-06  Jackson Harper  <jackson@ximian.com>
6061
6062         * MdiChildContext.cs: Use the new xplatui function to draw a
6063         reversible rect.
6064
6065 2005-10-06  Jackson Harper  <jackson@ximian.com>
6066
6067         * Form.cs: Add the parent before creating the child context cause
6068         we need the parent when setting up the child.
6069
6070 2005-10-06  Jackson Harper  <jackson@ximian.com>
6071
6072         * FolderBrowserDialog.cs: redo the tree population code so a
6073         second thread isn't used. Should be a lot faster and more stable
6074         now.
6075
6076 2005-10-05  Jackson Harper  <jackson@ximian.com>
6077
6078         * TreeView.cs: There are no expand/collapse boxes if the node has
6079         no children.
6080
6081 2005-10-05  Jackson Harper  <jackson@ximian.com>
6082
6083         * X11DesktopColors.cs: Get menu colours for the gtk theme.
6084
6085 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
6086
6087         * FileDialog.cs: Fix InitialDirectory
6088
6089 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6090
6091         * ComboBox.cs:
6092                 - Fixes changing between styles
6093                 - Fixes simple mode
6094                 - Fixes last item crashing when navigating with keyboard
6095
6096 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6097
6098         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6099
6100 2005-10-05  Jackson Harper  <jackson@ximian.com>
6101
6102         * TreeView.cs: If updating the root node do a full refresh.
6103         * TreeNode.cs: The root node should be expanded by default. Also
6104         added a utility prop to tell if we are the root node.
6105         * TreeNodeCollection.cs: Only refresh if the node we are being
6106         added to is expanded. Also added a comment on a potential
6107         optimization.
6108         
6109 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6110
6111         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
6112           in dispose method. Fixes #76330
6113
6114 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
6115
6116         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
6117
6118                 - Implements vertical and horizontal scrolling using XplatUI
6119                 - Fixes keyboard navagation
6120                 - Fixes EnsureVisible
6121                 - Drawing fixes
6122                 - Handles and draws focus properly
6123
6124
6125 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
6126
6127         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
6128           Create handle. NET_2_0: Destroy handle when value is null.
6129
6130 2005-10-03  Jackson Harper  <jackson@ximian.com>
6131
6132         * ScrollBar.cs: My last scrollbar patch was broken. This is a
6133         revert and a new patch to prevent the thumb from refreshing so
6134         much.
6135
6136 2005-10-02  Jackson Harper  <jackson@ximian.com>
6137
6138         * ScrollBar.cs: Don't update position if it hasn't actually
6139         changed. This occurs when you hold down the increment/decrement
6140         buttons and the thumb gets to the max/min.
6141
6142 2005-10-01  Jackson Harper  <jackson@ximian.com>
6143
6144         * Form.cs:
6145         * MdiChildContext.cs:
6146         * MdiClient.cs: Implement ActiveMdiChild in Form.
6147
6148 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
6149
6150         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
6151
6152 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
6153
6154         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
6155           be found
6156
6157 2005-09-30  Jackson Harper  <jackson@ximian.com>
6158
6159         * ListBox.cs: Don't do a full refresh unless some data has
6160         actually changed.
6161
6162 2005-09-30  Jackson Harper  <jackson@ximian.com>
6163
6164         * TreeView.cs: Make sure that the checkboxes size is factored in
6165         even when not visible.
6166
6167 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6168
6169         * FileDialog.cs: Fix Jordi's build break
6170
6171 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6172
6173         * FileDialog.cs: 
6174                 - Use standard the Windows colours for the combobox as espected
6175                 - Dispose objects that use resouces when no longer need them
6176
6177 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6178
6179         * X11DesktopColors.cs: Initial incomplete implementation
6180         * XplatUIX11.cs: Added call to initialize X11DesktopColors
6181
6182 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
6183
6184         * Theme.cs: 
6185           - Switched Theme color names to match the names defined in 
6186             System.Drawing.KnownColors. Life's hard enough, no need to make 
6187             it harder.
6188           - Added setters to all theme color properties so themes can set
6189             their color schemes. The setters also propagate the color changes
6190             to System.Drawing.KnownColors via reflection
6191         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
6192           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
6193           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
6194           use the new, more logical theme color names
6195         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6196           post-NT colors
6197         * ThemeWin32Classic.cs:
6198           - Removed code to set the old classic Windows colors. Instead it
6199             now relies on the colors returned by System.Drawing.KnownColors
6200             which will be either modern static colors (Unix) or colors
6201             read from the user's configuration (Win32)
6202           - Updated to use the new, more logical theme color names
6203           - Switched DataGrid drawing code to use only Theme colors instead of
6204             a mix of System.Drawing.KnownColors and Theme colors
6205           - DrawFrameControl(): Removed code that fills the button area, the
6206             fill would overwrite any previous fill done by a control. This
6207             fixes bug #75338 
6208           - Added DrawReversibleRectangle() stub
6209         * ScrollableControl.cs: Set visible state to false when scrollbars
6210           are removed (pdn fix)
6211         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6212           DrawReversibleRectangle() method to allow drawing primitive 
6213           'rubber bands'
6214         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6215
6216 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6217
6218         * ImageList.cs: Add(Icon): Create handle.
6219
6220 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6221
6222         * ListView.cs:
6223         * ThemeWin32Classic.cs:
6224                 - Fixes detail mode
6225                 - Sets clippings
6226                 - Issues with drawing
6227
6228 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6229
6230         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6231           source has to be the ImageList.
6232
6233 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6234
6235         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6236
6237 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6238
6239         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6240
6241 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6242
6243         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6244
6245 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6246         * GridItem.cs: Fixed TODOs
6247         * GridItemCollection.cs: Added ICollection interface
6248
6249 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6250
6251         * ImageList.cs: Resize icons when needed.
6252
6253 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6254
6255         * ListViewItem.cs
6256                 - Fixes GetBounds and returns on screen rects
6257         * ListView.cs:
6258                 - Fixes vertical and horzintal scrolling of items
6259         * ThemeWin32Classic.cs:
6260                 - Fixes drawing
6261                 
6262 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6263
6264         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6265
6266 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6267
6268         * ImageList.cs: Added comments about handle creation. Moved Handle,
6269           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6270           Handle is created in Add methods.
6271
6272 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6273          
6274         * DataGridDrawingLogic.cs: 
6275                 - Takes rows into account on Colum calculations
6276                 - Returns the column when clickig
6277         * DataGrid.cs:
6278                 - Fixes default HitTestInfo values
6279                 - Fixes HitTestInfo.ToString
6280                 - Fixes ResetBackColor          
6281         
6282 2005-09-28  Jackson Harper  <jackson@ximian.com>
6283
6284         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6285         sizing or cursor changes). Also added some temp code to draw the
6286         titlebars text (Makes dev a little easier).
6287
6288 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6289
6290         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6291
6292 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6293          
6294         * ListBox.cs: Fixes bug 76253
6295
6296 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6297
6298         * ImageList.cs: Added comments about the current implementation. Added
6299           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6300           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6301           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6302           with Bitmap.LockBits for better performance. Revised the whole file to
6303           match MS.NET behaviour and provide better performance. Non-public
6304           interface members are calling public members even when they throw
6305           NotSupportedException for better maintainability. Moved ColorDepth,
6306           ImageSize, ImageStream and TransparentColor implementations to
6307           ImageCollection for better performance as these properties are not used
6308           by ImageList.
6309         * ImageListStreamer.cs: Added a new internal constructor that takes an
6310           ImageList.ImageCollection and serializes Images based on
6311           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6312           match ImageList property name.
6313
6314 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6315
6316         * ListBox.cs: Fixes IndexFromPoint for last item
6317
6318 2005-09-27  Jackson Harper  <jackson@ximian.com>
6319
6320         * Form.cs: Set the position of new mdi children correctly.
6321
6322 2005-09-27  Jackson Harper  <jackson@ximian.com>
6323
6324         * MdiClient.cs: New mdi children need to be added to the back of
6325         the controls collection so the zorder is set correctly. Also add a
6326         count of all the child windows that have been created.
6327
6328 2005-09-27  Jackson Harper  <jackson@ximian.com>
6329
6330         * Form.cs (CreateParams): Setup MDI forms correctly.
6331
6332 2005-09-27  Jackson Harper  <jackson@ximian.com>
6333
6334         * MdiChildContext.cs:
6335         * MonthCalendar.cs:
6336         * UpDownBase.cs:
6337         * ListBox.cs:
6338         * ListView.cs:
6339         * TextBoxBase.cs:
6340         * TreeView.cs:
6341         * ScrollableControl.cs:
6342         * ComboBox.cs: Add implicit controls using the new implict control
6343         functionality in ControlCollection. Also try to block multiple
6344         control add in a suspend/resume layout to save some cycles.
6345         
6346 2005-09-27  Jackson Harper  <jackson@ximian.com>
6347
6348         * Control.cs: Add functionality to the controls collection to add
6349         'implicit controls' these are controls that are created by the
6350         containing control but should not be exposed to the user. Such as
6351         scrollbars in the treeview.
6352         * Form.cs: The list var of the ControlsCollection is no longer
6353         available because of the potential of implicit controls getting
6354         ignored by someone accessing the list directly.
6355
6356 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
6357
6358         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6359           loose it's parent. (Fixed bug introduced in r49103 when we added
6360           setting the child parent to null on Remove)
6361
6362 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
6363
6364         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6365         * Splitter.cs: Added missing attributes for BorderStyle property.
6366         * TextBoxBase.cs: Marked Calculate* methods internal.
6367         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6368         MS.NET.
6369
6370 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
6371          
6372         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6373
6374 2005-09-25  Jackson Harper  <jackson@ximian.com>
6375
6376         * TreeView.cs: Update the node bounds correctly regardless of
6377         whether the node is visible.
6378
6379 2005-09-25  Jackson Harper  <jackson@ximian.com>
6380
6381         * ImageList.cs: Don't dispose the image after it is added to the
6382         image list. Only reformat images that need to be resized.
6383
6384 2005-09-25  Jackson Harper  <jackson@ximian.com>
6385
6386         * ImageList.cs: Don't set the format when changing the image.
6387
6388 2005-09-25  Jackson Harper  <jackson@ximian.com>
6389
6390         * TreeView.cs: We can't just assume the node has a font. Use the
6391         treeviews font if no node font is available.
6392
6393 2005-09-25  Jackson Harper  <jackson@ximian.com>
6394
6395         * TreeView.cs: Allow the scrollbars to be reset with negative
6396         values.
6397         - Don't add scrollbars to negative sized windows.
6398
6399 2005-09-23  Jackson Harper  <jackson@ximian.com>
6400
6401         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6402         old Mono.Posix. Also remove some stray code that shouldn't have
6403         been committed.
6404
6405 2005-09-23  Jackson Harper  <jackson@ximian.com>
6406
6407         * TreeView.cs: Attempt at proper sizing of the horizontal
6408         scrollbar. Also don't resize the scrollbars unless they are
6409         visible.
6410
6411 2005-09-23  Jackson Harper  <jackson@ximian.com>
6412
6413         * TreeView.cs: We don't need to expand the invalid area when the
6414         selection changes, as this is all drawn in the node's bounding
6415         box. The area needs to be expanded (previous typo was contracting
6416         it) when the focus rect moves.
6417
6418 2005-09-23  Jackson Harper  <jackson@ximian.com>
6419
6420         * TreeView.cs: Display the selection box under the correct
6421         circumstances. We were rendering white text with no selection box
6422         before.
6423
6424 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6425
6426         * TextControl.cs(Split): Now updates selection start/end if it points 
6427           into a line that's being split. Fixes a FIXME and bug #75258
6428
6429 2005-09-23  Jackson Harper  <jackson@ximian.com>
6430
6431         * Binding.cs:
6432         * ListControl.cs: Don't use the path when retrieving binding
6433         managers from the binding context. My bat sense tells me that the
6434         path is only used on insertion.
6435
6436 2005-09-22  Jackson Harper  <jackson@ximian.com>
6437
6438         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6439
6440 2005-09-22  Jackson Harper  <jackson@ximian.com>
6441
6442         * Splitter.cs: There are special cursors used for splitting.
6443         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6444
6445 2005-09-22  Jackson Harper  <jackson@ximian.com>
6446
6447         * Splitter.cs: Change the cursor appropriately when the splitter
6448         is moused over, so the user actually knows there is a splitter
6449         there.
6450
6451 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6452
6453        * Label.cs : Fix ToString method to give same output as MS.NET
6454
6455 2005-09-22  Jackson Harper  <jackson@ximian.com>
6456
6457         * TreeView.cs: Create the scrollbars when the handle is created
6458         and add them right away, just make them invisble. Also account for
6459         the window being shrunk vertically to the point that the vert
6460         scrollbar needs to be added.
6461         - Remove some 0.5 adjustments to get around anti aliasing issues.
6462         
6463 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
6464          
6465         * MainMenu.cs: Fixes default value
6466         * MenuItem.cs: Fixes default value
6467
6468 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
6469
6470         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6471
6472 2005-09-21  Jackson Harper  <jackson@ximian.com>
6473
6474         * Control.cs: Don't try to set the border style on the window if
6475         it hasn't been created. When the window is created the border
6476         style will be used.
6477
6478 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6479
6480         * Control.cs (Update): Don't call XplatUI if we don't have a
6481           window handle yet
6482
6483 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6484
6485         * ContainerControl.cs: Instead of throwing an exception, print
6486           a one-time warning about Validate not being implemented
6487         * XplatUIWin32.cs: Removed debug output
6488
6489 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6490
6491         * Control.cs: Only set XplatUI background if we expect the windowing
6492           system to handle the background. This stops controls that draw their
6493           own background from flickering
6494
6495         * XplatUIX11.cs: Support custom visuals and colormaps for window 
6496           creation. This allows, amongst other things, using MWF X11 windows 
6497           with OpenGL.
6498
6499 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6500
6501         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6502           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6503           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6504           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6505           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6506           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6507           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6508           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6509           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6510           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6511           GridColumnStylesCollection.cs, 
6512           IDataGridColumnStyleEditingNotificationService.cs,
6513           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6514           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6515           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
6516           TreeNodeCollection.cs, AmbientProperties.cs, 
6517           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6518           DataObject.cs, ErrorProvider.cs, Splitter.cs,
6519           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6520           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6521           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6522           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6523           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6524           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6525           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6526           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6527           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6528           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6529           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6530           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6531           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6532           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6533           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6534           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6535           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6536           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6537           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6538           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6539           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6540           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6541           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6542           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6543           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6544           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6545           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6546           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6547           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6548           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6549           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6550           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6551           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6552           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6553           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6554
6555 2005-09-21  Jackson Harper  <jackson@ximian.com>
6556
6557         * TreeNode.cs: Call Before/After Expand not Collapse when
6558         expanding.
6559
6560 2005-09-20  Jackson Harper  <jackson@ximian.com>
6561         
6562         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6563
6564 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6565          
6566         * ListViewItem.cs:
6567                 - Fixes bug 76120
6568                 - Fixes proper storing of subitems
6569                 - Fixes not updated items
6570
6571 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6572
6573         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6574           things if our window handle isn't created yet. Also disabled 
6575           debug for TextBoxBase
6576
6577 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6578
6579         * MenuAPI.cs: Remove filtering of events to allow menu usage
6580
6581 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6582
6583         * Cursor.cs: Allow null to be passed to Cursor.Current.
6584
6585 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6586
6587         * ThemeWin32Classic.cs:
6588           - Change some private methods/fields to protected virtual so that 
6589             they can be accessed and overriden in derived classes
6590           - First refactoring of some methods. Derived themes now don't 
6591             need to duplicate the complete code from ThemeWin32Classic
6592         * ThemeNice.cs:
6593           - Added nice StatusBar
6594           - Derive from ThemeWin32Classic and not Theme
6595           - Removed duplicate ThemeWin32Classic code
6596
6597 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6598
6599         * Control.cs (ControlCollection.Add): If the value null is passed
6600         the control is ignored. 
6601
6602         Optimize this loop.
6603
6604 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6605
6606         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6607           PostQuitMessage state.
6608         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6609
6610 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6611
6612         * Application.cs: Our constructor will never get called, move 
6613           initialization to fields; fixes bug #75933
6614
6615 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6616
6617         * FileDialog.cs :
6618                 - Allow files to be selected properly using file name
6619                 combo box.
6620                 - Add ability to change diretory (absolute / relative)
6621                 using file name combo box.
6622
6623 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6624          
6625         * ListBox.cs: 
6626                 - Fixes Multicolumn listboxes item wrong calculations
6627                 - Allows to click when only one item is in the listbox
6628                 - Fixes crash when no items using keyboard navigation
6629
6630 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6631
6632         * ComboBox.cs: Reverted almost everything from the latest patch which
6633           broke ComboBox
6634
6635 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6636         
6637         * ToolTip.cs:
6638                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6639         * ComboBox.cs:
6640                 - When DropDownStyle is Simple, it does not show scrollbar 
6641                 to the last item of the list.
6642                 - When DropDownStyle is Simple, it crashed when the list was 
6643                 scrolled down with the down cursor key.
6644                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6645                 selected item was not shown.
6646                 - The position of the selected item was not preserved when 
6647                 the next dropdown happened.
6648         * ThemeWin32Classic.cs:
6649                 - Items were wrapped at the right end.
6650         * CheckedListBox.cs:
6651                 - Fixed Add method
6652         * ListBox.cs:
6653                 - Items should be fully shown.
6654                 - When resizing and vertical scrollbar disappeared, the item 
6655                 of index 0 should be on the top of the list.
6656                 - GetItemRectangle should consider the size of ver. scrollbar
6657         * StatusBar.cs:
6658                 - SizingGrip area should not be allocated when it is not 
6659                 displayed.
6660                 - Now it reflects MinWidth of the containing panel and 
6661                 fixed a crash that happens when its width becomes so small.
6662
6663 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6664
6665         * CheckedListBox.cs: Fixes bug 76028
6666         * ListBox.cs: Fixes bug 76028
6667
6668 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6669
6670         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6671         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6672
6673 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6674
6675         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6676
6677 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6678
6679         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6680
6681 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6682
6683         * IRootGridEntry.cs: Added
6684         * PropertyGridCommands.cs: Added
6685         * PropertiesTab.cs: Added missing methods and property
6686         * PropertyGridView.cs: Made class internal
6687         * PropertyGridTextBox.cs: Made class internal
6688
6689 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6690
6691         * MimeIcon.cs: Try to check some other environment variables
6692           if "DESKTOP_SESSION" returns "default"
6693
6694 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6695
6696         * ThemeNice.cs: Corrected background colors (e.g. menus)
6697         * ColorDialog.cs: Use correct background colors for controls
6698
6699 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6700
6701         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6702
6703 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6704
6705         * RichTextBox.cs: Added initial implementation
6706         * lang.cs: Removed. Was accidentally checked in long time ago
6707         * TODO: Removed. Contents were obsolete
6708
6709 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6710                                                                                 
6711         * PropertiesTab.cs : Added
6712
6713 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6714                                                                                 
6715         * PropertyGrid.cs : Update
6716         * PropertyGridView.cs : Update
6717         * System.Windows.Forms.resx : Added images and strings
6718
6719 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6720
6721         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6722  
6723 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6724
6725         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6726           a busy loop right after the Ungrab the X11 display is otherwise 
6727           blocked
6728
6729 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6730
6731         * ThemeWin32Classic.cs: Optimise the use of clipping
6732
6733 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6734
6735         * DataGrid.cs: fixes recursion bug
6736
6737 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6738
6739         * ThemeNice.cs: 
6740           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6741           - Cleanup
6742
6743 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6744
6745         * ThemeNice.cs: Draw nice ProgressBars
6746
6747 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6748
6749         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6750
6751         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6752         bug finder.
6753
6754 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6755
6756         * ThemeNice.cs:
6757           - Added nicer menu drawing
6758           - Updated DrawTab
6759           - some refactoring
6760
6761 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6762
6763         * CreateParams.cs (ToString): Made output match MS
6764         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6765             handle is already created (to avoid forcing window creation)
6766         * XplatUIX11.cs: Set window text to caption after creating window,
6767           in case Text was set before window was created
6768         * Form.cs: Use this.Text instead of a static string as caption
6769
6770 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6771
6772         * NotifyIcon.cs: Don't set the window to visible; this screws
6773           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6774           OnPaint without a bitmap)
6775         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6776           happen very often anyway; we could add the check to the WM_PAINT 
6777           event generation code
6778
6779 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6780
6781         * NotifyIcon.cs: Fill the icon area with a background color, to 
6782           avoid 'residue' when transparent icons are drawn
6783         * XplatUIX11.cs:
6784           - Handle whole_window == client_window when destroying windows
6785           - SystrayAdd(): Set client_window to whole_window value to
6786             get mouse and other events passed to NotifyIcon
6787
6788 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6789
6790         * Form.cs: Set proper default for Opacity property
6791         * NotifyIcon.cs:
6792           - ShowSystray(): Don't bother creating telling the OS
6793             about the systray item if no icon is provided
6794           - Now handles WM_NCPAINT message to deal with whole/client window
6795             split
6796           - Create window as visible to not get caught by Expose optimization
6797         * Hwnd.cs: Removed debug message
6798         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6799           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6800             PaintEventStart/End to use new client argument
6801         * TextBoxBase.cs:
6802           - Commented out debug messages
6803           - Switched PaintEventStart/End to use new client argument
6804         * XplatUI.cs: Added client window bool to PaintEventStart()/
6805           PaintEventEnd() calls, to support drawing in non-client areas
6806         * XplatUIDriver.cs: 
6807           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6808             calls, to support drawing in non-client areas
6809           - Added conditional compile to allow using MWF BeginInvoke 
6810             on MS runtime
6811         * XplatUIX11.cs:
6812           - Added some conditional debug output
6813           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6814             whole/client window split
6815           - Implemented handling of client argument to PaintEventStart()/End()
6816         * Control.cs:
6817           - Throw exception if BeginInvoke() is called and the window handle
6818             or one of the window's parent handles is not created
6819           - Added conditional compile to allow using MWF BeginInvoke on
6820             MS runtime
6821           - get_Parent(): Only sets parent if handle is created. This avoids
6822             forcing window handle creation when parent is set.
6823           - Now fires Layout and Parent changed events in proper order
6824           - Switched to use Handle instead of window.Handle for Z-Order setting,
6825             the get_Parent() patch above causes us to possibly get null for 'window'
6826           - Implemented handling of client argument to PaintEventStart()/End()
6827           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6828             default handling)
6829           - Now sends a Refresh() to all child windows when Refresh() is called
6830
6831 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6832
6833         * Form.cs: Added (non-functional) Opacity property
6834         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6835
6836 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6837         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6838           use export MONO_THEME=nice to activate it.
6839           Currently supported controls:
6840           - Button
6841           - ComboBox
6842           - ScrollBar
6843           - TabControl (TabAlignment.Top only, other will follow)
6844         * ThemeEngine.cs: Add theme nice
6845         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6846           if enabled
6847
6848 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6849
6850         * Splitter.cs: Resize docked control and its neighbor.
6851
6852 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6853         -- Making Windows with Menus layout correctly --
6854         * Form.cs : The first leg of the fix
6855                 Menu setter - adjust Client Size as needed to make space for the menu
6856                 SetClientSizeCore - doesn't call base version to be able to pass the 
6857                         menu handle to XplatUI.CalculateWindowRect
6858         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6859         * XplatUIX11.cs: The critical second leg of the fix
6860                 GetWindowPos needs to use a recalculated client_rect
6861                 so that resizing the window doesn't break layout of child controls. 
6862                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6863                 Lots of \t\n killed
6864
6865 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6866
6867         * Label.cs: Now properly recalculates width and height on Font and Text
6868           changes if AutoSize is set
6869
6870 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6871         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6872
6873 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6874
6875         * ImageList.cs: Makes ToString method compatible with MS
6876
6877 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6878
6879         * MenuAPI.cs: fixes bug 75716
6880
6881 2005-08-11 Umadevi S <sumadevi@novell.com>
6882         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6883
6884 2005-08-11 Umadevi S <sumadevi@novell.com>
6885         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6886
6887 2005-08-10  Umadevi S <sumadevi@novell.com>
6888         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6889
6890 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6891
6892         * Menu.cs: fixes bug 75700
6893         * MenuAPI.cs: fixes navigation issues
6894
6895 2005-08-09  Umadevi S <sumadevi@novell.com>
6896         * CheckedListBox.cs - simple fix for GetItemChecked.
6897
6898 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6899
6900         * ComboBox.cs: Serveral fixes
6901         * ListBox.cs: Serveral fixes
6902
6903 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6904
6905         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6906         * ListBox.cs: Fixes FindString methods
6907
6908 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6909
6910         * DataGrid.cs: fixes bugs exposed by new tests
6911
6912 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
6913
6914         * Mime.cs: Compile Mono assembly references only if compiling
6915           with Mono (Allows to build with VS.Net again)
6916
6917 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
6918
6919         * Control.cs (PaintControlBackground): Draw background image
6920         corrrectly.
6921         (CheckForIllegalCrossThreadCalls): Stubbed.
6922         
6923         * Form.cs (OnCreateControl): Center when should be centered.
6924         
6925         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6926
6927 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
6928
6929         * Binding.cs: Binding to properties should be case unsensitive
6930
6931 2005-07-18 vlindos@nucleusys.com
6932
6933         * DataGrid.cs: fixes setmember order
6934
6935 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
6936
6937         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6938         * FileDialog.cs: FileDialog is now resizable and uses the new
6939           MimeIconEngine
6940
6941 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
6942
6943         * DataGridTextBoxColumn.cs: default value
6944         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6945         * GridTableStylesCollection.cs: fixes checking MappingName
6946         * DataGridDrawingLogic.cs: fixes drawing logic issues
6947         * DataSourceHelper.cs: rewritten to make compatible with more data sources
6948         * DataGrid.cs: fixes    
6949
6950 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
6951
6952         * MimeGenerated.cs: Use case sensitive comparer for
6953           NameValueCollections
6954
6955 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
6956
6957         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
6958         * ThemeWin32Classic.cs: bug fixes, code refactoring
6959         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
6960         * DataGrid.cs: bug fixes, code refactoring
6961         * DataGridTextBox.cs: bug fixes, code refactoring
6962         * DataGridColumnStyle.cs:  bug fixes, code refactoring
6963         * Theme.cs:  bug fixes, code refactoring
6964
6965 2005-07-01  Peter Bartok  <pbartok@novell.com> 
6966
6967         * TextControl.cs: Quick fix for the reported crash on ColorDialog
6968           and other text box usage
6969
6970 2005-07-01  Jackson Harper  <jackson@ximian.com>
6971
6972         * TabControl.cs: Make sure the bottom of the tab covers the pages
6973         border.
6974
6975 2005-06-30  Peter Bartok  <pbartok@novell.com> 
6976
6977         * Form.cs (ShowDialog): Assign owner of the dialog
6978         * TextBoxBase.cs: Always refresh caret size when deleting, caret
6979           might have been moved to a tag with different height
6980
6981 2005-06-30  Jackson Harper  <jackson@ximian.com>
6982
6983         * Form.cs: Don't create an infinite loop when setting focus
6984         * MenuItem.cs: Don't dirty the parents if we don't have any
6985
6986 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
6987
6988         * LibSupport.cs: Rename
6989
6990 2005-06-29  Peter Bartok  <pbartok@novell.com>
6991
6992         * TextBoxBase.cs: Re-align caret after deleting a character
6993         * TextControl.cs:
6994           - DeleteChars(): Ensure that tag covers the provided position
6995           - StreamLine(): Drop reference for dropped tag
6996
6997 2005-06-29  Peter Bartok  <pbartok@novell.com> 
6998
6999         * TextControl.cs: 
7000           - Selections now work properly, anchoring at the initial location
7001             and properly extending in either direction (SetSelectionToCaret(),
7002             SetSelectionStart() and SetSelectionEnd())
7003           - No longer redraws the whole control on selection change, now
7004             calculates delta between previous and new selection and only
7005             invalidates/redraws that area
7006           - Fixed FindPos() math off-by-one errors
7007           - Changed DeleteChars() to verify the provided tag covers the
7008             provided position, selections may have a tag that doesn't cover
7009             the position if the selection is at a tag border
7010           - Fixed off-by-one errors in DeleteChars()
7011           - Added missing streamlining check in DeleteChars() to remove
7012             zero-length tags
7013           - Implemented Invalidate() method, now properly calculates exposures
7014             between two given lines/positions
7015           - Implemented SetSelection()
7016           - Obsoleted and removed FixupSelection()
7017           - Improved RecalculateDocument() logic, removing code duplication
7018
7019 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7020
7021         * LibSupport.cs: changes to match different input/output arguments.
7022
7023 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7024
7025         * LibSupport.cs: added libsupport.so init routine.
7026
7027 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
7028         
7029         * ControlBindingsCollection.cs
7030                 - Throws an exception on null datasource when adding
7031                 - Checks for duplicated bindings when adding
7032
7033 2005-06-28  Jackson Harper  <jackson@ximian.com>
7034
7035         * TreeView.cs (OnKeyDown): Support left and right properly
7036         (navigates as well as expanding and collapsing.
7037         - Add support for Multiply, this expands all the selected nodes
7038         children.
7039         - Fix some tabbing.
7040
7041 2005-06-28  Jackson Harper  <jackson@ximian.com>
7042
7043         * TreeView.cs: Implement keyboard navigation, currently supports,
7044         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
7045         support for toggling checkboxes with the space bar.
7046
7047 2005-06-28  Jackson Harper  <jackson@ximian.com>
7048
7049         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
7050         tree.
7051
7052 2005-06-28  Jackson Harper  <jackson@ximian.com>
7053
7054         * TreeView.cs: Add missing event.
7055
7056 2005-06-27  Peter Bartok  <pbartok@novell.com> 
7057
7058         * TextControl.cs:
7059           - Made line ending size configurable (now allows for counting 
7060             lineendings as \n or \r\n)
7061           - Added margin to viewport to keep caret visible on right side
7062           - Fixed translation routines for line/pos to documentpos to consider
7063             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
7064           - Fixed some line-endings to be unix style
7065           - Fixed Document.FormatText to perform it's calculations 1-based
7066           - Added descriptions for a few methods that might otherwise get 
7067             used wrong
7068           - Added NOTE section with some basic conventions to remember at 
7069             the top of the file
7070           - Major fixup for RichTextBox selection drawing:
7071             * Fixed crashes when multiple tags on a single line were selected
7072             * fixed selection box drawing not overlaying text
7073             * fixed bogus offset calculation for tags not starting at index 1
7074             * Switched behaviour from using multiple Substrings of a 
7075               StringBuilder.ToString() to using multiple 
7076               StringBuilder.ToString(start, length) statements, hoping this is
7077               faster (kept original version commented out in the code, in case
7078               original version was faster)
7079         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
7080           alignment != Left
7081         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
7082           call it as well
7083
7084 2005-06-27  Jackson Harper  <jackson@ximian.com>
7085
7086         * TabControl.cs: Move to the left and right with the arrow
7087         keys. These keys don't cycle beyond first and last like
7088         tab. Refresh all the tabs when scrolling them to the left or
7089         right.
7090
7091 2005-06-27  Jackson Harper  <jackson@ximian.com>
7092
7093         * TabControl.cs:
7094           - ToString: Added method
7095           - CreateParams: Remove TODO and comment
7096           - OnKeyDown: Cycle through bounds properly.
7097           - SelectedIndex: Scroll to the right or left if we need to
7098           display the newly selected tab.
7099
7100 2005-06-23  Jackson Harper  <jackson@ximian.com>
7101
7102         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7103         set.
7104
7105 2005-06-23  Jackson Harper  <jackson@ximian.com>
7106
7107         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7108         CTRL-SHIFT-TAB, and HOME, END are there any others?
7109
7110 2005-06-23  Jackson Harper  <jackson@ximian.com>
7111
7112         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
7113
7114 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7115         
7116         * DataGridTextBoxColumn.cs: fixes and enhancements
7117         * ThemeWin32Classic.cs: fixes and enhancements
7118         * DataGridBoolColumn.cs:  fixes and enhancements
7119         * DataGridDrawingLogic.cs:  fixes and enhancements
7120         * CurrencyManager.cs: fixes and enhancements
7121         * DataGrid.cs: fixes and enhancements
7122         * DataGridColumnStyle.cs:  fixes and enhancements
7123
7124 2005-06-22  Jackson Harper  <jackson@ximian.com>
7125
7126         * TabControl.cs: Add some missing methods that just call into the
7127         base. Make the TabPageCollection's IList interface behave in the
7128         same manner as the MS implementation.
7129
7130 2005-06-22  Peter Bartok  <pbartok@novell.com> 
7131
7132         * TextControl.cs: Added sanity check
7133         * TextBoxBase.cs: 
7134           - Fixed wrapping behaviour, don't set wrap on single line controls
7135             (this fixes the breakage of colordialog introduced in an earlier
7136              checkin)
7137           - Added rudimentary support for autoscrolling right-aligned controls
7138             (still needs fixing, also, center alignment scroll is missing)
7139
7140 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7141         
7142         * ScrollBar.cs: Fixes thumbpos on Maximum values
7143
7144 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
7145         
7146         * PropertyGridView.cs: Pass context information to UITypeEditors 
7147
7148 2005-06-21  Peter Bartok  <pbartok@novell.com> 
7149
7150         * TextBoxBase.cs:
7151           - Now calling PositionCaret with absolute space coordinates
7152           - Enabled vertical scrolling
7153           - Better tracking of scrollbar changes, tied into WidthChange
7154             event
7155           - Improved cursor tracking
7156           - Removed debug output
7157         * TextControl.cs:
7158           - PositionCaret coordinates are now works in absolute space, not 
7159             the canvas
7160           - Improved tracking of document size
7161           - Added events for width and height changes
7162
7163 2005-06-21  Peter Bartok  <pbartok@novell.com>
7164
7165         * Form.cs: Set focus to active control when form is activated
7166         * TextControl.cs: 
7167           - Added word-wrap functionality to RecalculateLine() 
7168           - Added some short function descriptions for VS.Net to aid in
7169             writing dependent controls
7170           - Added Caret property, returning the current coords of the caret
7171           - Added ViewPortWidth and ViewPortHeight properties
7172           - Added Wrap property
7173           - Added CaretMoved event
7174           - Removed some old debug code
7175           - Split() can now create soft splits
7176           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
7177           - Added method to format existing text
7178           - Fixed size/alignment calculations to use viewport
7179           - RecalculateDocument now can handle changing line-numbers while
7180             calculating lines
7181
7182         * TextBox.cs:
7183           - Added some wrap logic, we don't wrap if alignment is not left
7184           - Added casts for scrollbar var, base class switched types to
7185             also support RichTextBoxA
7186           - Implemented handling of scrollbar visibility flags
7187
7188         * TextBoxBase.cs:
7189           - Switched scrollbars type to RichTextBoxScrollBars to support
7190             RichTextBox
7191           - Added tracking of canvas width/height
7192           - Switched scrollbars to be not selectable (to keep focus on text)
7193           - Added central CalculateDocument() method to handle all redraw
7194             requirements
7195           - Added ReadOnly support
7196           - Added WordWrap support
7197           - Fixed handling of Enter key (we now treat it as a DialogKey)
7198           - Fixed caret positioning when h or v scroll is not zero
7199           - Fixed placing/generation of vertical scrollbar
7200           - Added CalculateScrollBars() method to allow updating scrollbar
7201             limits and visibility
7202           - Fixed handling of horizontal scroll
7203           - Added handling of vertical scroll
7204           - Implemented auto-'jump' when caret moves to close to a left or
7205             right border and there is text to be scrolled into view (currently
7206             there's the potential for a stack overflow, until a bug in
7207             scrollbar is fixed)
7208
7209 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7210         
7211         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7212
7213 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7214
7215         * Mime.cs:
7216         - added inodes.
7217         - return application/x-zerosize for files with size zero
7218           (if no extension pattern matches).
7219         - check matches collection for strings too.
7220         - return only the first mime type if the name value
7221           collection has more than one mime type.
7222
7223 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7224         
7225         * PropertyGrid.cs: Cleaned up some TODOs
7226         * PropertyGridView.cs: Added support for UITypeEditors
7227
7228 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7229         
7230         * DataGrid.cs: clears cached value
7231
7232 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7233
7234         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7235         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7236         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7237         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7238         
7239 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7240
7241         * ThemeWin32Classic.cs: fixes colour
7242
7243 2005-06-15  Peter Bartok  <pbartok@novell.com>
7244
7245         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7246         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7247         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7248         * Control.cs: Added some MWFCategory and MWFDescription attributes
7249         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7250
7251 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7252
7253         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7254         usage
7255
7256 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7257
7258         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7259         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7260         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7261         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7262         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7263         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7264
7265 2005-06-13  Jackson Harper  <jackson@ximian.com>
7266
7267         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7268         isn't printed when the user enables dropping. (X11 does accept
7269         drops).
7270         
7271 2005-06-13  Jackson Harper  <jackson@ximian.com>
7272
7273         * TreeView.cs: Remove some TODOS.
7274
7275 2005-06-13  Jackson Harper  <jackson@ximian.com>
7276
7277         * Form.cs: Hook into the mdi framework.
7278         * MdiClient.cs: Use the base control collections add method so
7279         parents get setup correctly. Set the default back colour and dock
7280         style.
7281         * MdiChildContext.cs: New class, this bad actor handles an
7282         instance of an MDI window. Right now there is only basic
7283         support. You can drag, close, and resize windows. Minimize and
7284         Maximize are partially implemented.
7285
7286 2005-06-13  Jackson Harper  <jackson@ximian.com>
7287
7288         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7289         freaky when both vals are negative. NOTE: There are probably other
7290         places in XplatUIX11 that this needs to be done.
7291
7292 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7293
7294         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7295         * DataGridColumnStyle.cs: fixes signature
7296
7297 2005-06-12  Jackson Harper  <jackson@ximian.com>
7298
7299         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7300         windows.
7301
7302 2005-06-11  Jackson Harper  <jackson@ximian.com>
7303
7304         * StatusBarPanel.cs: Signature cleanups. Implement
7305         BeginInit/EndInit.
7306
7307 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7308
7309         * DataGridTextBoxColumn.cs: Honors aligment
7310         * GridColumnStylesCollection.cs: Contains is case unsensitive
7311         * GridTableStylesCollection.cs: several fixes
7312         * DataGridTableStyle.cs: default column creation
7313         * DataGridDrawingLogic.cs: fixes
7314         * CurrencyManager.cs: ListName property
7315         * DataGrid.cs: multiple styles support
7316         * DataGridColumnStyle.cs: fixes
7317         
7318
7319 2005-06-10  Peter Bartok  <pbartok@novell.com>
7320
7321         * Control.cs(Select): Moved SetFocus call to avoid potential
7322           loops if controls change the active control when getting focus
7323         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7324           the up/down buttons
7325
7326 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7327
7328         * ImageListConverter.cs: Implemented
7329
7330 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7331
7332         * MonthCalendar.cs: Wired in NumericUpDown control for year
7333
7334 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7335
7336         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7337           DoubleClick events, since they are not meant to be fired.
7338
7339 2005-06-09  Peter Bartok  <pbartok@novell.com>
7340
7341         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7342           Jonathan's standalone controls into MWF, implemented missing
7343           events, attributes and methods; added xxxAccessible classes
7344         * AccessibleObject.cs: Made fields internal so other classes
7345           can change them if needed
7346
7347 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
7348
7349         * UpDownBase.cs: Complete implementation
7350         * NumericUpDown.cs: Complete implementation
7351         * DomainUpDown.cs: Complete implementation
7352
7353 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
7354
7355         * DataGridTextBoxColumn.cs: drawing fixes
7356         * DataGridCell.cs: fixes ToString method to match MSNet
7357         * DataGridTableStyle.cs: fixes
7358         * DataGridBoolColumn.cs: fixes, drawing
7359         * DataGridDrawingLogic.cs: fixes, new methods
7360         * DataGridTextBox.cs: Keyboard and fixes
7361         * DataGrid.cs:
7362                 - Keyboard navigation
7363                 - Scrolling fixes
7364                 - Row selection (single, multiple, deletion, etc)
7365                 - Lots of fixes
7366         
7367 2005-06-07  Jackson Harper  <jackson@ximian.com>
7368
7369         * ThemeWin32Classic.cs: Clear the background area when drawing
7370         buttons.
7371
7372 2005-06-06  Peter Bartok  <pbartok@novell.com>
7373
7374         * ImageListStreamer.cs: Fixed signature for GetData
7375         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7376         * ComboBox.cs:
7377           - Added missing ChildAccessibleObject class
7378           - Added missing OnXXXFocus overrides, switched to using those
7379             instead of the event handler
7380         * Control.cs:
7381           - Added Parent property for ControlAccessibleObject
7382           - Fixed signatures
7383           - Fixed attributes
7384           - Added ResetBindings()
7385         * ListBindingConverter.cs: Implemented some methods
7386         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7387         * ImageList.cs: Implemented basic handle scheme, removed TODOs
7388         * ContainerControl.cs: Fixed signature, now subscribing to the
7389           ControlRemoved event instead of overriding the handler, LAMESPEC
7390         * CurrencyManager.cs: Added missing attribute
7391         * MonthCalendar.cs: Added missing properties
7392
7393 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7394
7395         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7396         
7397 2005-06-06  Gaurav Vaish and Ankit Jain
7398
7399         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7400         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7401         
7402 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7403
7404         * Control.cs: fixes CreateParams Width / Height.
7405
7406 2005-06-05  Peter Bartok  <pbartok@novell.com>
7407
7408         * Win32DnD.cs: Removed compilation warnings
7409
7410 2005-06-05  Peter Bartok  <pbartok@novell.com>
7411
7412         * Control.cs (CreateParams): Since we don't know if one of the
7413           properties we use is overridden, lets make sure if we fail accessing
7414           we continue with a backup plan
7415
7416 2005-06-05  Peter Bartok  <pbartok@novell.com>
7417
7418         * Win32DnD.cs:
7419           - Removed debug output
7420           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7421             struct
7422           - Plugged resource leak
7423         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7424           MS size
7425
7426 2005-06-05  Peter Bartok  <pbartok@novell.com>
7427
7428         * XplatUIWin32.cs: Removed DnD code
7429         * Win32DnD.cs: Implemented drop source and drop target functionality
7430
7431 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7432
7433         * UpDownBase.cs: remove duplicate addition of event, enable some code
7434         that was commented out.
7435         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7436         Validate input when a key is pressed. It works fine now for every
7437         combination of Hexadecimal. Only missing some drawing love when sharing
7438         space with other controls.
7439
7440 2005-06-04  Peter Bartok  <pbartok@novell.com>
7441
7442         * Control.cs:
7443           - We need to pass a window for DragDrop, so enable callback events
7444           - Added DnD callback events when being a DragSource
7445         * XplatUI.cs (StartDrag): Added window handle argument
7446         * XplatUIDriver.cs (StartDrag): Added window handle argument
7447         * QueryContinueDragEventArgs: Made fields internally accessible so
7448           drivers can set them
7449         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7450           can set them
7451
7452 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
7453
7454         * DataGridTextBoxColumn.cs: column text editing
7455         * DataGridTableStyle.cs: Respect columns styles created by the user
7456         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7457         * DataGridBoolColumn.cs: bool column editing
7458         * DataGrid.cs: fixes to scrolling, properties, etc
7459         * DataGridTextBox.cs: handle keyboard
7460         * DataGridColumnStyle.cs: fixes
7461
7462 2005-06-02  Jackson Harper  <jackson@ximian.com>
7463
7464         * ImageListStreamer.cs: Somewhat broken implementation of
7465         GetObjectData. The RLE needs some work to match MS properly.
7466
7467 2005-06-02  Jackson Harper  <jackson@ximian.com>
7468
7469         * X11Dnd.cs: Attempting to keep at least one file in MWF
7470         monostyled.
7471
7472 2005-06-02  Peter Bartok  <pbartok@novell.com>
7473
7474         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7475           that way
7476
7477 2005-06-02  Peter Bartok  <pbartok@novell.com>
7478
7479         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7480         * XplatUI.cs: Added DoDragDrop() method
7481         * XplatUIDriver.cs: Added DoDragDrop() method
7482
7483 2005-06-02  Jackson Harper  <jackson@ximian.com>
7484
7485         * Splitter.cs: Implement BorderStyle.
7486
7487 2005-06-02  Jackson Harper  <jackson@ximian.com>
7488
7489         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7490         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7491         X11 using XDND.
7492
7493 2005-06-02  Peter Bartok  <pbartok@novell.com>
7494
7495         * DataObject.cs:
7496           - Added Data setter
7497           - Fixed broken insertion code for SetData, now also
7498             overwrites any existing entry of the same format name
7499         * Hwnd.cs: Added list of pointers that automatically gets
7500           freed when the window is disposed
7501         * XplatUI.cs: Call driver initialization method when loading
7502           a driver
7503         * Control.cs:
7504           - OnDragLeave takes EventArgs, not DragEventArgs
7505           - Added setting of WS_EX_ACCEPTFILES style when dropping is
7506             supported
7507           - Forces style update when drop state changes
7508         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7509           not perfect since we cannot (yet) call the IDataObject.GetData()
7510           method, we keep getting 0x80004005 error, dunno why)
7511
7512 2005-06-02  Peter Bartok  <pbartok@novell.com>
7513
7514         * DragEventArgs.cs: Make fields internal so we can cache the
7515           object and re-set the fields from XplatUI
7516
7517 2005-06-02  Jackson Harper  <jackson@ximian.com>
7518
7519         * Control.cs: Add some internal methods so the DnD subsystem can
7520         raise DnD events. Also call into the driver when AllowDrop is set.
7521         * XplatUI.cs:
7522         * XplatUIDriver.cs: New method for setting whether or not a window
7523         is allowed to accept drag and drop messages.
7524                 
7525 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7526         
7527         * ScrollBar.cs: Make sure that values sent in Scroll events
7528         are always between Maximum and Minimum.
7529
7530 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7531
7532         * Menu.cs: Call MenuChanged when menuitem visibility has been
7533         changed.
7534         * MenuItem.cs: Rebuild menu when item is (not) visible.
7535         * MainMenu.cs: MainMenu has special MenuChanged.
7536         * Theme.cs: Caption and FrameBorderSize are not fixed.
7537         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7538         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7539         * XplatUIX11.cs,
7540         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7541         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7542
7543 2005-05-30  Jackson Harper  <jackson@ximian.com>
7544
7545         * DataFormat.cs: We can't statically initialize this stuff because
7546         it calls into the xplatui and could create a loop. So we lazy init
7547         it.
7548
7549 2005-05-28  Jackson Harper  <jackson@ximian.com>
7550
7551         * Control.cs: Proper implementation of Product(Name/Version).
7552
7553 2005-05-27  Jackson Harper  <jackson@ximian.com>
7554
7555         * DataObject.cs: Dont crash if no data is found.
7556
7557 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7558         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7559                 as per status page, guessing it should be set to true
7560
7561 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7562
7563         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7564         * DataGridTableStyle.cs: set proper formatting text, def header text
7565         * ThemeWin32Classic.cs: new themable paramaters
7566         * DataGridBoolColumn.cs: paint check box, get data, fixes
7567         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7568         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7569         * DataGridColumnStyle.cs: fixes
7570         * Theme.cs: new themable paramaters
7571                 
7572 2005-05-26  Peter Bartok  <pbartok@novell.com>
7573
7574         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7575
7576 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7577         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7578
7579 2005-05-24  Peter Bartok  <pbartok@novell.com>
7580
7581         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7582           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7583           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7584           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7585           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7586           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7587           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7588           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7589           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7590           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7591           missing attributes, etc
7592         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7593
7594 2005-05-24  Peter Bartok  <pbartok@novell.com>
7595
7596         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7597           when user tries to get help
7598         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7599           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7600           to suppress warnings
7601         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7602           avoid unreachable code warning
7603
7604 2005-05-20  Peter Bartok  <pbartok@novell.com>
7605
7606         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7607
7608 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7609
7610         * DataGridTextBoxColumn.cs: Basic painting methods
7611         * DataGridTableStyle.cs: Set table style in the column
7612         * ThemeWin32Classic.cs: Use Theme for colors
7613         * DataGridDrawingLogic.cs: Implement more drawing
7614         * DataGrid.cs: drawing, theming, enhacements, fixes
7615         * DataGridColumnStyle.cs: fixes, drawing
7616         * Theme.cs: theming for Datagrid
7617
7618 2005-05-20  Peter Bartok  <pbartok@novell.com>
7619
7620         * Cursor.cs: Implemented GetObjectData() method
7621
7622 2005-05-20  Peter Bartok  <pbartok@novell.com>
7623
7624         * Cursors.cs: Added setting of cursor name
7625         * Cursor.cs:
7626           - Implemented constructors
7627           - Implemented Draw and DrawStretched
7628           - Implemented Current property
7629           - Implemented == and != operators
7630           - Implemented Dispose()
7631           - Implemented ToString
7632           - Added missing attributes
7633         * XplatUIX11.cs:
7634           - Added missing reset for OverrideCursor when DoEvents is called
7635           - Fixed creation of cursor, logic was wrong
7636         * XplatUIWin32.cs:
7637           - Added missing reset for OverrideCursor when DoEvents is called
7638           - Fixed creation of cursor, bit arrays were swapped
7639         * Clipboard.cs: Removed obsolete MonoTODO attribute
7640
7641 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7642
7643         * ComboBox.cs: fixes OnSelectedItemChanged
7644         * ControlBindingsCollection.cs: fixes item range check
7645
7646 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7647
7648         * UpDownBase.cs:
7649                 - Calc preferred height properly
7650                 - Implement missing properties
7651                 
7652         * NumericUpDown.cs: Implement missing events
7653
7654 2005-05-19  Jackson Harper  <jackson@ximian.com>
7655
7656         * TabControl.cs: New method that resizes the tab pages before
7657         redrawing them. This as needed as the control is double buffered
7658         and sizing will not be recalculated unless ResizeTabPages is
7659         called.
7660         * TabPage.cs: Set base.Text instead of Text in the constructor so
7661         that UpdateOwner does not get called. Use the new Redraw method of
7662         TabControl instead of Refresh so the sizing is recalculated.
7663         * ThemeWin32Classic.cs: Draw the text for button tabs.
7664
7665 2005-05-19  Jackson Harper  <jackson@ximian.com>
7666
7667         * Control.cs: Paint control background images. Fix typo where
7668         PaintControlBackground was not getting called correctly.
7669
7670 2005-05-19  Peter Bartok  <pbartok@novell.com>
7671
7672         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7673           I can investigate, apparently I broke FileDialog
7674
7675 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7676
7677         * AxHost.cs: Some simple properties.
7678         * Control.cs: window must be accessible after ctor.
7679         * Form.cs: Added TransparencyKey property.
7680         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7681         * XplatUIWin32.cs: SetBorderStyle implemented.
7682
7683 2005-05-18  Peter Bartok  <pbartok@novell.com>
7684
7685         * DataObject.cs: Entries are not global but particular to the
7686           DataObject, now it behaves that way
7687         * XplatUIWin32.cs: Implemented Clipboard methods
7688         * Clipboard.cs: Implemented
7689         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7690         * XplatUIOSX.cs: Updated to final clipboard prototypes
7691         * XplatUIX11.cs: Implemented Clipboard methods
7692         * XplatUIDriver.cs: Updated to final clipboard prototypes
7693         * XplatUIStructs.cs:
7694           - Added BITMAPINFOHEADER struct
7695           - Added ClipboardFormats enum
7696         * X11Structs.cs:
7697           - Added ClipboardStruct
7698           - Added Atom enum items for clipboard types
7699           - Fixed atom types for Selection event structures
7700         * DataFormats.cs:
7701           - Added internal properties and methods for drivers to enumerate
7702             all known formats
7703           - Switched initialization method to allow drivers to assign their
7704             own IDs even for the MS predefined clipboard IDs
7705         * XplatUI.cs: Updated to final clipboard interface
7706
7707 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7708         * PropertyGridView.cs: Fixed compiler warnings.
7709
7710 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7711         * PropertyGrid.cs: Added some event calls
7712         * PropertyGridView.cs: Change drawing code to use double buffering
7713         * PropertyGridTextBox.cs: Changed Text property name
7714         * GridItem.cs: Added Bounds property.
7715         * GridEntry.cs: Added Bounds property.
7716
7717 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7718
7719         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7720         since GetType() may not return the correct type if the object is
7721         a remoting proxy.
7722
7723 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7724
7725         * TreeNodeCollection.cs: fixes get/set item ranges
7726         
7727 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7728
7729         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7730                 
7731 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7732
7733         * ComboBox.cs: Fix item range comparation
7734         * ListView.cs: Fix item range comparation
7735
7736 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7737
7738         * FontDialog.cs:
7739           - Clear example panel when OnPaint is called
7740           - Better solution for displaying the example panel text
7741           - Select default indexes in the ListBoxes
7742
7743 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7744
7745         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7746
7747 2005-05-11  Peter Bartok  <pbartok@novell.com>
7748
7749         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7750         * SelectionRangeConverter.cs: Implemented
7751         * PropertyGrid.cs: Fixed attribute value
7752         * Control.cs:
7753           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7754           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7755         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7756           that's common to all drivers. First methods to go there are
7757           Sebastien Pouliot's CAS Stack Propagation helper methods
7758         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7759           Sebastien Pouliot for CAS Stack Propagation
7760
7761 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7762
7763         * OSXStructs.cs:
7764           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7765
7766 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7767
7768         * DataGridTextBoxColumn.cs: fixed some members
7769         * GridColumnStylesCollection.cs: indexed column is case insensitive
7770         * DataGridTableStyle.cs: fixes
7771         * ThemeWin32Classic.cs: add new theme parameter
7772         * Theme.cs: add new theme parameter
7773         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7774         * DataGrid.cs: fixes, new internal properties, etc.
7775         * DataGridColumnStyle.cs: allows to set grid value
7776         *
7777
7778 2005-05-10  Peter Bartok  <pbartok@novell.com>
7779
7780         * AccessibleObject.cs:
7781           - Removed MonoTODO attribute on help, method is correct
7782           - Fixed Bounds property
7783         * AxHost.cs: Moved MonoTODO
7784         * ButtonBase.cs: Now setting AccessibleObject properties
7785         * RadioButton.cs: Setting proper AccessibleObject role
7786         * CheckBox.cs: Setting proper AccessibleObject role
7787         * ControlBindingsCollection.cs: Added properties, methods and attributes
7788         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7789           userdefined DataFormats.Format items as well
7790         * ListControl.cs: Removed data_member from the public eye
7791         * OpenFileDialog.cs:
7792           - Made class sealed
7793           - Added missing attributes
7794         * SaveFileDialog.cs: Added missing attributes
7795         * ImageListStreamer.cs: Fixed code that caused warnings
7796         * LinkLabel.cs: Removed unreachable code
7797         * TreeView.cs: Fixed code that caused warnings
7798         * PropertyGridView.cs: Fixed code that caused warnings
7799         * GridColumnStylesCollection.cs: Added missing attributes
7800         * GridTableStylesCollection: Added missing attribute
7801         * PropertyManager: Added .ctor
7802         * SecurityIDType: Added
7803         * DataObject.cs: Implemented class
7804         * LinkArea.cs: Added missing attribute
7805
7806 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7807
7808         * RadioButton.cs: call base method to allow to fire OnClick event
7809         * UpDownBase.cs: OnMouseUp call base method
7810         * CheckedListBox.cs: call base method before returning
7811         * TrackBar.cs: call base method before returning
7812         
7813
7814 2005-05-10  Peter Bartok  <pbartok@novell.com>
7815
7816         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7817           for messages
7818
7819 2005-05-10  Peter Bartok  <pbartok@novell.com>
7820
7821         * DataFormats.cs: Implemented
7822         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7823           XplatUIX11.cs: Added Clipboard APIs
7824         * XplatUIWin32.cs: Implemented Clipboard APIs
7825         * FolderBrowserDialog.cs: Added missing event, attributes
7826
7827 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7828
7829         * CheckBox.cs: call base method to allow to fire OnClick event
7830
7831 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7832
7833         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7834
7835 2005-05-06  Peter Bartok  <pbartok@novell.com>
7836
7837         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7838         * Screen.cs: Implemented
7839         * HelpNavigator.cs: Added
7840         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7841           property
7842         * HelpProvider.cs: Implemented all we can do until we have a CHM
7843           help library (which means that "What's This" does work now)
7844
7845 2005-05-06  Jackson Harper  <jackson@ximian.com>
7846
7847         * XplatUIX11.cs: Fix waking up the main loop.
7848                 
7849 2005-05-05  Peter Bartok  <pbartok@novell.com>
7850
7851         * XplatUI.cs: Updated revision
7852         * Form.cs: Removed enless loop
7853         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7854         * Label.cs (OnPaint): Added call to base.OnPaint()
7855         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7856         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7857         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7858         * AxHost.cs: Added
7859         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7860         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7861           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7862           reuse of ToolTipWindow by other controls
7863         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7864         * XplatUIX11.cs: Now clipping drawing area (experimental)
7865         * PictureBox.cs: Moved base.OnPaint() call to end of method
7866         * Theme.cs: Fixed ToolTip abstracts to match new format
7867         * ErrorProvider.cs: Implemented
7868
7869 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7870
7871         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7872         * LinkLabel.cs:
7873                 - Adds cursors
7874                 - Handles focus
7875                 - Implements LinkBehavior
7876                 - Fixes many issues
7877
7878 2005-05-03  Jackson Harper  <jackson@ximian.com>
7879
7880         * ListView.cs: Calculate the scrollbar positioning on resize and
7881         paint, so they get put in the correct place.
7882
7883 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7884
7885         * ColorDialogs.cs: The small color panels are now handled by
7886           SmallColorControl. This fixes drawing of the focus rectangle
7887           and adds a 3D border.
7888
7889 2005-05-03  Peter Bartok  <pbartok@novell.com>
7890
7891         * Control.cs: Modified version of Jonathan Chamber's fix for
7892           double-buffering
7893
7894 2005-05-03  Jackson Harper  <jackson@ximian.com>
7895
7896         * ListView.cs: Remove redraw variable. Control now handles whether
7897         or not a redraw needs to be done, and will only raise the paint
7898         event if redrawing is needed.
7899
7900 2005-05-03  Jackson Harper  <jackson@ximian.com>
7901
7902         * Splitter.cs: No decorations for the splitter form. Cache the
7903         hatch brush.
7904
7905 2005-05-03  Jackson Harper  <jackson@ximian.com>
7906
7907         * TreeView.cs: Use dashed lines to connect nodes. Use the
7908         ControlPaint method for drawing the focus rect instead of doing
7909         that in treeview.
7910
7911 2005-05-02  Peter Bartok  <pbartok@novell.com>
7912
7913         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7914
7915 2005-04-29  Jackson Harper  <jackson@ximian.com>
7916
7917         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7918         entire image buffer. Just clear the clipping rectangle.
7919
7920 2005-04-29  Jackson Harper  <jackson@ximian.com>
7921
7922         * ThemeWin32Classic.cs: Don't draw list view items that are
7923         outside the clipping rectangle.
7924
7925 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
7926
7927         * ListBox.cs: added horizontal item scroll
7928
7929 2005-04-29  Jackson Harper  <jackson@ximian.com>
7930
7931         * ThemeWin32Classic.cs: Remove some old debug code that was
7932         causing flicker with the new double buffering code.
7933
7934 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
7935
7936         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7937         behave like combobox and comboboxlist (still not sure if this is
7938         correct though).
7939
7940 2005-04-28  Jackson Harper  <jackson@ximian.com>
7941
7942         * ThemeWin32Classic.cs: Don't fill the middle of progress
7943         bars. This fills areas outside of the clip bounds that don't need
7944         to be filled.
7945
7946 2005-04-28  Jackson Harper  <jackson@ximian.com>
7947
7948         * Control.cs: Don't expose functionality to touch the image buffers.
7949         * ProgressBar.cs:
7950         * ListView.cs: We do not need to (and no longer can) manipulate
7951         the image buffers directly. All of this is handled by Control.
7952
7953 2005-04-28  Peter Bartok  <pbartok@novell.com>
7954
7955         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7956           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7957           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7958
7959 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7960
7961         * Combobox:
7962                 - Adjust control's height for non-simple comboboxes (bug fix)
7963                 - Remove dead code
7964         * MenuAPI.cs: remove unused var
7965         * ScrollBar.cs: remove unsed var
7966                  
7967         * ListBox.cs: unselect items when clearing
7968
7969 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7970
7971         * ListControl.cs: honors OnPositionChanged and default Selected Item
7972         * ListBox.cs: unselect items when clearing
7973
7974 2005-04-27  Jackson Harper  <jackson@ximian.com>
7975
7976         * X11Keyboard.cs: Initialize a default keyboard and give a warning
7977         if a "correct" keyboard is not found. This will make us not crash,
7978         but might give some users bad keyboard layouts...seems to be the
7979         same thing rewind does.
7980
7981 2005-04-27  Jackson Harper  <jackson@ximian.com>
7982
7983         * BindingManagerBase.cs: Attach the current/position changed
7984         handlers to their respective events.
7985
7986 2005-04-27  Jackson Harper  <jackson@ximian.com>
7987
7988         * Control.cs: Make sure that the first WM_PAINT does a full draw,
7989         not just a blit.
7990         * ThemeWin32Classic.cs: Don't fill the background for picture
7991         boxes. This could overright user drawing.
7992         * ComboBox.cs: Just fill the clipping rect not the entire client
7993         rect when drawing the background. This prevents pieces of the
7994         image buffer from getting overwritten and is theoretically faster.
7995
7996 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
7997
7998         * ComboBox.cs: Databinding support fixes, fire missing events
7999         * ListControl.cs: implement missing methods and properties, fixes
8000         * ThemeWin32Classic.cs: Databiding support on Drawing
8001         * CheckedListBox.cs: Databinding support fixes, fire missing events
8002         * ListBox.cs: Databinding support fixes, fire missing events
8003         
8004 2005-04-25  Peter Bartok  <pbartok@novell.com>
8005
8006         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
8007
8008 2005-04-25  Jackson Harper  <jackson@ximian.com>
8009
8010         * TreeView.cs: Use the horizontal scrollbars height not width when
8011         determining how much of the client area is available.
8012
8013 2005-04-25  Jackson Harper  <jackson@ximian.com>
8014
8015         * Control.cs: Double buffering is handled differently now. As per
8016         the spec, the extra buffer is created in the WM_PAINT message and
8017         passed down to the control's drawing code.
8018         * GroupBox.cs:
8019         * Label.cs:
8020         * CheckBox.cs:
8021         * ProgressBar.cs:
8022         * RadioButton.cs:
8023         * ColorDialog.cs:
8024         * ComboBox.cs:
8025         * PropertyGridView.cs:
8026         * UpDownBase.cs:
8027         * MessageBox.cs:
8028         * MenuAPI.cs:
8029         * ListView.cs:
8030         * ButtonBase.cs:
8031         * SizeGrip.cs:
8032         * ScrollBar.cs:
8033         * ListBox.cs:
8034         * TrackBar.cs:
8035         * ToolBar.cs:
8036         * PictureBox.cs:
8037         * DateTimePicker.cs:
8038         * StatusBar.cs:
8039         * TreeView.cs: Update to new double buffering system.
8040         * MonthCalendar.cs: Uncomment block, as Capture is now
8041         working. Update to new double buffering
8042         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
8043         * PaintEventArgs.cs: New internal method allows us to set the
8044         graphics object. This is used for double buffering.
8045         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
8046         rectangle. The internal paint_area var has been removed from
8047         StatusBar. The clipping rect should be used instead.
8048         * Theme.cs: Give the PictureBox drawing method a clipping rect.
8049         * TabPage.cs: The RefreshTabs method was removed, so just call the
8050         tab controls Refresh method now.
8051         * TabControl.cs: Update to new double buffering. Make sure the
8052         handle is created before sizing the tab pages, otherwise we will
8053         get stuck in a loop.
8054
8055 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
8056
8057         * LinkLabel.cs: Fix typo, bug #74719; patch
8058           from Borja Sanchez Zamorano
8059
8060 2005-04-22  Jackson Harper  <jackson@ximian.com>
8061
8062         * TreeNode.cs: Implement Handle stuff.
8063         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
8064
8065 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
8066
8067         * DataGridTextBoxColumn.cs: call base constructors, fixes
8068         * GridColumnStylesCollection.cs: missing events, methods, and functionality
8069         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
8070         * DataGridTableStyle.cs: implements create default column styles
8071         * DataGridBoolColumn.cs: which types can handle
8072         * DataGrid.cs: missing methods, fixes, new functionality
8073         * DataGridColumnStyle.cs: fixes
8074
8075 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
8076         * FolderBrowserDialog.cs:
8077         - Use a thread to fill the TreeView
8078         - Adjusted some sizes
8079
8080 2005-04-19  Peter Bartok  <pbartok@novell.com>
8081
8082         * LinkLabel.cs: (Re-)create the pieces when setting the Text
8083           property. Fixes #74360.
8084
8085 2005-04-19  Jackson Harper  <jackson@ximian.com>
8086
8087         * XEventQueue.cs: Lock when getting the lockqueue size.
8088         * PictureBox.cs: Call base OnPaint
8089         
8090 2005-04-19  Peter Bartok  <pbartok@novell.com>
8091
8092         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8093           messages were no longer being processed (this broke BeginInvoke)
8094
8095           
8096 2005-04-18  Jackson Harper  <jackson@ximian.com>
8097
8098         * TreeView.cs: buglet that caused node images to get drawn
8099         regardless of whether or not they were in the clipping rectangle.
8100
8101 2005-04-18  Jackson Harper  <jackson@ximian.com>
8102
8103         * CurrencyManager.cs: There are four rules for GetItemProperties:
8104         - If the type is an array use the element type of the array
8105         - If the type is a typed list, use the type
8106         - If the list contains an Item property that is not an object, use
8107         that property
8108         - use the first element of the list if there are any elements in
8109         the list.
8110         
8111 2005-04-17  Jackson Harper  <jackson@ximian.oom>
8112
8113         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
8114         click. This handles offsets for scrolling properly and reduces
8115         memory. Also fixed GetNode to not offset now that TopNode works
8116         properly.
8117         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
8118         
8119 2005-04-17  Jackson Harper  <jackson@ximian.com>
8120
8121         * CursorConverter.cs: Initial implementation.
8122
8123 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8124
8125         * ListControl.cs: work towards complex data binding support on ListControl
8126         * CurrencyManager.cs: work towards complex data binding support on ListControl
8127         * ListBox.cs: work towards complex data binding support on ListControl
8128
8129
8130 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8131
8132         * GridTableStylesCollection.cs: fixes name and constructor
8133         * DataGridTableStyle.cs: fixes
8134         * DataGridBoolColumn.cs: fixes names and constructors
8135         * DataGrid.cs: define methods and properties. Some init implementations
8136         * DataGridCell.cs: define methods and properties. Some init implementations
8137         * GridTablesFactory.cs: Define methods and properties
8138
8139 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
8140
8141         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
8142         graphics port changes.  We still want the coordinates in global screen
8143         coordinates.
8144
8145 2005-04-14  Jackson Harper  <jackson@ximian.com>
8146
8147         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
8148         check plus minus or checkbox clicks unless those features are enabled.
8149
8150 2005-04-14  Jackson Harper  <jackson@ximian.com>
8151
8152         * TreeView.cs: Add methods for setting the top and bottom visible
8153         nodes. TreeNode::EnsureVisible uses these methods.
8154         * TreeNode.cs: Implement EnsureVisible
8155
8156 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
8157
8158         * Form.cs: Pospone menu assignation if the window has not been created yet
8159         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
8160         size and position
8161
8162 2005-04-12  Jackson Harper  <jackson@ximian.com>
8163
8164         * TreeView.cs: Set the TopNode properly when scrolling
8165         occurs. This has the added benifit of reducing the amount of
8166         walking that needs to be done when drawing. Also removed an old
8167         misleading TODO.
8168         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
8169         
8170 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
8171
8172         * Timer.cs: fixes interval setting when the timer is already enabled
8173         
8174 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
8175
8176         * FolderBrowserDialog.cs: First approach
8177
8178 2005-04-09  Peter Bartok  <pbartok@novell.com>
8179
8180         * FolderBrowserDialog: Added
8181
8182 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
8183
8184         * LinkLabel.cs: move drawing code into the theme
8185         * ThemeWin32Classic.cs: drawing code and painting background bugfix
8186         * Theme.cs: define DrawLinkLabel method
8187
8188 2005-04-05  Jackson Harper  <jackson@ximian.com>
8189
8190         * BindingContext.cs: Use weak references so these bad actors don't
8191         stay alive longer then they need to.
8192
8193 2005-04-05  Jackson Harper  <jackson@ximian.com>
8194
8195         * ListControl.cs: Basic implementation of complex databinding.
8196         * ComboBox.cs:
8197         * ListBox.cs: Add calls to ListControl databinding methods.
8198
8199 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8200
8201         * FileDialog.cs:
8202           - Don't change PopupButtonState to Normal when the
8203             PopupButton gets pressed several times.
8204           - Renamed ButtonPanel to PopupButtonPanel
8205
8206 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8207
8208         * ColorDialog.cs: Use cached objects instead of creating them
8209         * LinkLabel.cs: Use cached objects instead of creating them
8210         * Splitter.cs: Use cached objects instead of creating them
8211         * FontDialog.cs: Use cached objects instead of creating them
8212         * PropertyGridView.cs: Use cached objects instead of creating them
8213         * MessageBox.cs: Use cached objects instead of creating them
8214         * FileDialog.cs: Use cached objects instead of creating them
8215         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8216         * TreeView.cs: Use cached objects instead of creating them
8217         
8218 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8219
8220         * Control.cs: use Equals to compare the font since no == op
8221         * ScrollBar.cs: use Equals to compare the font since no == op
8222
8223 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8224
8225         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8226
8227 2005-04-01  Jackson Harper  <jackson@ximian.com>
8228
8229         * Binding.cs: Implement IsBinding.
8230         * BindingManagerBase.cs:
8231         * PropertyManager.cs:
8232         * CurrencyManager.cs: Add IsSuspended property.
8233
8234 2005-04-01  Jackson Harper  <jackson@ximian.com>
8235
8236         * Binding.cs: Had some IsAssignableFrom calls backwards.
8237
8238 2005-04-01  Jackson Harper  <jackson@ximian.com>
8239
8240         * Binding.cs: Handle null data members when pulling data.
8241         * PropertyManager.cs: Handle the data member being a property that
8242         does not exist.
8243
8244 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8245
8246         * DataGridTextBoxColumn.cs: fixes signature
8247         * DataGrid.cs: calls right constructor
8248
8249 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8250
8251         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8252         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8253         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8254         * DataGridTableStyle.cs: implements DataGridTableStyle
8255         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8256         * DataGridTextBox.cs: implements DataGridTextBox
8257         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8258
8259 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8260
8261         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8262
8263 2005-03-29  Peter Bartok  <pbartok@novell.com>
8264
8265         * Application.cs:
8266           - Properly implemented CompanyName property
8267           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8268             returns a path that includes CompanyName, ProductName and
8269             Version (fixes bug #70330)
8270
8271 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8272
8273         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8274           fixes bug #72588.
8275
8276 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8277
8278         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8279         
8280           - Added ReadOnly CheckBox
8281           - Further refactoring: moved some code from Open-/SaveFileDialog
8282             to FileDialog
8283
8284 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8285
8286         * OpenFileDialog.cs: Fixed CheckFileExists
8287         * FileDialog.cs:
8288           Moved FileView and DirComboBox outside FileDialog class.
8289           They can now be used outside FileDialog
8290
8291 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8292
8293         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8294         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8295
8296 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8297
8298         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8299           - Added missing CreatePrompt property in SaveDialog
8300           - Overall SaveDialog handling should be better now
8301           - Added non standard ShowHiddenFiles property
8302           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8303           - Added InitialDirectory and RestoreDirectory support
8304
8305 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8306
8307         * FileDialog.cs: Made dirComboBox usable
8308
8309 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8310
8311         * FileDialog.cs: Added Filter support (case sensitiv)
8312
8313 2005-03-24  Jackson Harper  <jackson@ximian.com>
8314
8315         * TabControl.cs: Need a couple more pixels for the lines.
8316
8317 2005-03-23  Jackson Harper  <jackson@ximian.com>
8318
8319         * TabControl.cs: Give the tab page focus when it is selected.
8320
8321 2005-03-23  Jackson Harper  <jackson@ximian.com>
8322
8323         * TabControl.cs: Account for the drawing of tabs borders when
8324         invalidating. If the slider was clicked dont do click detection on
8325         the tabs.
8326
8327 2005-03-23  Jackson Harper  <jackson@ximian.com>
8328
8329         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8330
8331 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8332
8333         * CategoryGridEntry.cs: Added
8334         * GridItem.cs: Added helper properties
8335         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8336         * GridEntry.cs: Updated code for collection
8337         * PropertyGrid.cs: Cleaned up some formatting
8338         * PropertyGridView.cs: Added drop down functionality for enums.
8339         * GridItemCollection.cs: Added enumerator logic
8340         * PropertyGridEntry.cs: Added
8341
8342 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8343
8344         * FileDialog.cs:
8345           - Removed unnecessary commented code
8346           - Fixed handling for entering the filename manually in the combobox
8347
8348 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8349
8350         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8351
8352 2005-03-18  Peter Bartok  <pbartok@novell.com>
8353
8354         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8355           them being touching the border
8356
8357 2005-03-18  Peter Bartok  <pbartok@novell.com>
8358
8359         * TextControl.cs: Quick hack to center text better
8360
8361 2005-03-18  Peter Bartok  <pbartok@novell.com>
8362
8363         * ControlPaint.cs:
8364           - Don't throw NotImplemented exceptions, just print a notice once
8365             instead (requested by Miguel). This makes running existing SWF
8366             apps a bit easier
8367         * Control.cs:
8368           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8369           - Added context menu trigger on right click
8370         * Panel.cs: Trigger invalidate on resize
8371         * StatusBar.cs:
8372           - Removed old double-buffer drawing
8373           - Added ResizeRedraw style to force proper update of statusbar
8374         * ListView.cs:
8375           - Removed debug output
8376         * ThemeWin32Classic.cs:
8377           - Fixed drawing of status bar, now draws Text property if there
8378             are no defined panels
8379
8380 2005-03-18  Jackson Harper  <jackson@ximian.com>
8381
8382         * ImageList.cs: When the image stream is set pull all the images
8383         from it.
8384         * ImageListStreamer.cs: Implement reading image list streams.
8385
8386 2005-03-18  Peter Bartok  <pbartok@novell.com>
8387
8388         * ThemeWin32Classic.cs (DrawPictureBox):
8389           - Fixed calculations for centered drawing
8390           - Fixed drawing for normal mode, not scaling the image on normal
8391
8392 2005-03-18  Peter Bartok  <pbartok@novell.com>
8393
8394         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8395           textbox
8396         * FileDialog.cs:
8397           - Made Open/Save button the accept button for FileDialog
8398           - Tied the cancel button to the IButtonControl cancel button
8399           - Save/Open now properly builds the pathname
8400           - Now handles user-entered text
8401           - Preventing crash on right-click if no item is selected
8402           - Fixed Text property, now uses contents of textbox
8403           - Fixed SelectedText property, now just returns the text part that
8404             is selected in the text box
8405
8406 2005-03-18  Jackson Harper  <jackson@ximian.com>
8407
8408         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8409         rect, make sure to de-adjust the interior rect after drawing the
8410         tab text.
8411
8412 2005-03-18  Peter Bartok  <pbartok@novell.com>
8413
8414         * MenuAPI.cs: Remove menu *before* executing selected action to
8415           prevent the menu from 'hanging around'
8416           
8417 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8418
8419         * XplatUIOSX.cs: Implemented WorkingArea property
8420
8421 2005-03-17  Peter Bartok  <pbartok@novell.com>
8422
8423         * XplatUIX11.cs: Fixed menu coord calculations
8424         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8425           for calculating offsets
8426
8427 2005-03-17  Peter Bartok  <pbartok@novell.com>
8428
8429         * Hwnd.cs: Do not consider menu presence for default client
8430           rectangle location/size
8431         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8432           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8433           translation functions
8434         * FileDialog.cs: Fixed (what I presume is a) typo
8435
8436 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8437
8438         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8439           X access (avoids X-Async errors)
8440
8441 2005-03-16  Jackson Harper  <jackson@ximian.com>
8442
8443         * TabControl.cs: Raise the SelectedIndexChanged event.
8444
8445 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8446
8447         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8448           - Removed vertical ToolBar and replaced it with a custom panel
8449             (desktop and home button already work)
8450           - Added Help button (some controls get resized or relocated then)
8451           - Draw correct text depending on Open or Save.
8452           - Fixed some typos...
8453
8454 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
8455
8456         * ScrollBar.cs:
8457           - Only change Maximum and Minimum when need it (bug fix)
8458
8459 2005-03-15  Peter Bartok  <pbartok@novell.com>
8460
8461         * Form.cs: Use Handle for icon, to trigger creation if
8462           the window does not yet exist
8463         * Control.cs:
8464           - CanSelect: Slight performance improvement
8465           - Focus(): Preventing possible recursion
8466           - Invalidate(): Removed ControlStyle based clear flag setting
8467           - WM_PAINT: fixed logic for calling OnPaintBackground
8468           - WM_ERASEBKGND: Fixed logic, added call to new driver method
8469             EraseWindowBackground if the control doesn't paint background
8470         * XplatUIWin32.cs:
8471           - Moved EraseWindowBackground() method to internal methods
8472           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8473             is sent via SendMessage on BeginPaint call on Win32
8474         * XplatUIX11.cs:
8475           - Added EraseWindowBackground() method
8476           - No longer sends WM_ERASEBKGND on .Expose, but on call to
8477             PaintEventStart, which more closely matches Win32 behaviour
8478           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8479           - Fixed SetFocus() to properly deal with client and whole windows
8480         * Hwnd.cs: Added ErasePending property
8481         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8482         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8483
8484 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
8485
8486         * XplatUIOSX.cs:
8487           - Fix hard loop when timers exist.
8488           - Fix bugs with middle and right click for 3 button mice.
8489
8490 2005-03-11  Peter Bartok  <pbartok@novell.com>
8491
8492         * XplatUIX11.cs:
8493           - get_WorkingArea: Need to call X directly, GetWindowPos only
8494             returns cached data now
8495           - Added sanity check to GetWindowPos hwnd usage
8496
8497 2005-03-11  Jackson Harper  <jackson@ximian.com>
8498
8499         * BindingManagerBase.cs: This method isn't used anymore as
8500         PullData now updates the data in the control.
8501
8502 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
8503
8504         * Form.cs: fixes menu drawing on X11
8505         * MenuAPI.cs:  fixes menu drawing on X11
8506
8507 2005-03-11  Peter Bartok  <pbartok@novell.com>
8508
8509         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8510           from Jonathan Gilbert; should fix bug #73606
8511         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8512           in Screen coordinates. Thanks, Jordi.
8513         * Form.cs: Added missing attribute
8514
8515 2005-03-11  Peter Bartok  <pbartok@novell.com>
8516
8517         * Form.cs:
8518           - Rudimentary Mdi support
8519           - Removed outdated FormParent code
8520           - Implemented lots of missing properties and methods, still missing
8521             transparency support
8522           - Added missing attributes
8523           - Implemented support for MaximumBounds
8524           - Added firing of various events
8525         * XplatUI.cs: Added SetIcon() method
8526         * XplatUIDriver.cs: Added SetIcon() abstract
8527         * XplatUIOSX.cs: Stubbed out SetIcon() method
8528         * XplatUIX11.cs:
8529           - Implemented SetIcon() support
8530           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8531           - Switched to unix line endings
8532         * XplatUIWin32.cs:
8533           - Made POINT internal so for can access it as part of MINMAX
8534           - Implemented SetIcon() support
8535           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8536             native Mdi support again, might have to go managed)
8537         * Control.cs: Now fires the StyleChanged event
8538         * MdiClient.cs: Added; still mostly empty
8539
8540 2005-03-10  Peter Bartok  <pbartok@novell.com>
8541
8542         * SaveFileDialog.cs: Added emtpy file
8543
8544 2005-03-08  Peter Bartok  <pbartok@novell.com>
8545
8546         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8547           in turn triggers OnCreateContro) when creating a handle for the
8548           first time.
8549         * TextControl.cs: Fixed endless loop in certain cases when
8550           replacing the current selection
8551
8552 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8553
8554         * ScrollBar.cs:
8555           - Honors NewValue changes in Scroll events allowing apps to change it
8556           - Adds First and Last Scroll events
8557           - Fixes Thumb events
8558
8559 2005-03-07  Peter Bartok  <pbartok@novell.com>
8560
8561         * Hwnd.cs: Added DefaultClientRectangle property
8562         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8563           more detailed debug information
8564         * XplatUIX11.cs:
8565           - Fixed size-change feedback loop, where we would pull an old size
8566             off the queue and mistakenly change our window's size to an
8567             earlier value
8568           - Now compressing ConfigureNotify events, to reduce looping and
8569             redraw issues
8570         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8571           is called
8572
8573 2005-03-07  Jackson Harper  <jackson@ximian.com>
8574
8575         * Binding.cs: Push data pushes from data -> property. Check if the
8576         property is readonly when attempting to set it.
8577
8578 2005-03-07  Jackson Harper  <jackson@ximian.com>
8579
8580         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8581         instead of IsSubclassOf. Pulling data now sets the value on the
8582         control.
8583         * PropertyManager.cs:
8584         * CurrencyManager.cs: Just need to pull data when updating now,
8585         because PullData will set the value on the control.
8586
8587 2005-03-04  Jackson Harper  <jackson@ximian.com>
8588
8589         * Binding.cs: Implement data type parsing and converting on pulled
8590         data. TODO: Are there more ways the data can be converted?
8591
8592 2005-03-04  Jackson Harper  <jackson@ximian.com>
8593
8594         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8595         controls Validating method so we can repull the data when the
8596         control loses focus.
8597
8598 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8599
8600         * ColumnHeader.cs:
8601           - Fixes null string format
8602           
8603         * ListView.cs:
8604           - Adds enum type checks
8605           - Fixes redrawing and recalc need after changing some properties
8606           - Fixes on focus_item set after the event
8607           - Fixes adding columns after the control has been created
8608           
8609         * ThemeWin32Classic.cs:
8610           - Fixes CheckBox focus rectangle
8611           - Fixes ColumnHeader drawing
8612
8613
8614 2005-03-03  Jackson Harper  <jackson@ximian.com>
8615
8616         * Binding.cs: Bind to <Property>Changed events so we can detect
8617         when properties are changed and update the data.
8618
8619 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8620
8621         * ImageList.cs:
8622           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8623           - Fixes ImageList constructor with ImageList container
8624           - Fixes image scaling (wrong parameters at DrawImage)
8625
8626 2005-02-02  Jackson Harper  <jackson@ximian.com>
8627
8628         * Binding.cs: Make property searches case-insensitive. Eliminate
8629         some duplicated code.
8630
8631 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8632
8633         * ComboBox.cs:
8634                 - Handle focus event
8635                 - Fix scrollbar events
8636                 - Discard highlighted item if remove it
8637                 - Fixes SelectedItem with strings
8638
8639 2005-03-01  Peter Bartok  <pbartok@novell.com>
8640
8641         * Control.cs:
8642           - Fixed Visible property, now follows (once again) parent chain
8643             to return false if any control in the chain is visible=false
8644           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8645           - Fixed several places where is_visible instead of Visible was used
8646           - Implemented FIXME related to focus selection when setting focused
8647             control to be invisible
8648
8649         * XplatUIWin32.cs: Now using proper method to find out if window is
8650           visible. Thanks to Jordi for pointing it out
8651
8652 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8653
8654         * ComboBox.cs: show/hide scrollbar instead of creating it
8655
8656 2005-02-27  Jackson Harper  <jackson@ximian.com>
8657
8658         * CurrencyManager.cs: Add PositionChanged stuff.
8659
8660 2005-02-27  Peter Bartok  <pbartok@novell.com>
8661
8662         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8663         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8664         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8665         * XplatUIX11.cs:
8666           - Implemented GetMenuDC()
8667           - Implemented GetMenuOrigin()
8668           - Implemented ReleaseMenuDC()
8669           - Implemented generation of WM_NCPAINT message
8670           - Implemented generation and handling of WM_NCCALCSIZE message
8671         * Form.cs: Added debug helper message for Jordi's menu work
8672         * Hwnd.cs:
8673           - Modified ClientRect property; added setter, fixed getter to handle
8674             setting of ClientRect
8675           - Added MenuOrigin property
8676
8677 2005-02-26  Peter Bartok  <pbartok@novell.com>
8678
8679         * XplatUIX11.cs:
8680           - Destroys the caret if a window that's being destroyed contains it
8681           - Ignores expose events coming from the X11 queue for windows that
8682             already are destroyed
8683           - Now uses the proper variable for handling DestroyNotify, before we
8684             marked the wrong window as destroyed
8685           - Improved/added some debug output
8686
8687 2005-02-26  Peter Bartok  <pbartok@novell.com>
8688
8689         * X11Keyboard.cs: Fixes to work on 64bit systems
8690
8691 2005-02-26  Peter Bartok  <pbartok@novell.com>
8692
8693         * Control.cs:
8694           - Now calling OnHandleDestroyed from DestroyHandle()
8695             instead of Dispose()
8696           - Removed bogus call to controls.Remove() from DestroyHandle()
8697
8698 2005-02-26  Peter Bartok  <pbartok@novell.com>
8699
8700         * Control.cs: Properly destroy child windows when our handle is
8701           destroyed
8702
8703 2005-02-25  Peter Bartok  <pbartok@novell.com>
8704
8705         * XplatUI.cs:
8706           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8707           - Alphabetized Static Methods and Subclasses
8708
8709         * XplatUIX11.cs:
8710           - Added XException class to allow custom handling of X11 exceptions
8711           - Created custom X11 error handler, tied into XException class
8712           - Added support for MONO_XEXCEPTIONS env var to allow the user
8713             to either throw an exception on X errors or continue running
8714             after displaying the error
8715           - Added handling of DestroyNotify message
8716           - Added handler for CreateNotify message (still disabled)
8717           - Improved (tried to at least) Where method to provide file and lineno
8718         * X11Structs.cs:
8719           - Added XErrorHandler delegate
8720           - Added XRequest enumeration (to suppor translation of errors)
8721
8722 2005-02-25  Jackson Harper  <jackson@ximian.com>
8723
8724         * PropertyManager.cs: Implement editing features
8725         * CurrencyManager.cs:
8726         * Binding.cs: First attempt at UpdateIsBinding
8727         * BindingManagerBase.cs: Call UpdateIsBinding before
8728         pushing/pulling data.
8729
8730 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8731
8732         * MenuAPI.cs: Respect disabled items
8733         * ThemeWin32Classic.cs
8734                 - Caches ImageAttributes creation for DrawImageDisabled
8735                 - Fixes vertical menu line drawing
8736                 - Draws disabled arrows in disable menu items
8737
8738 2005-02-24  Peter Bartok  <pbartok@novell.com>
8739
8740         * Hwnd.cs:
8741           - Added UserData property to allow associating arbitrary objects
8742             with the handle
8743           - Fixed leak; now removing Hwnd references from static windows array
8744         * XplatUIWin32.cs:
8745           - Fixed Graphics leak in PaintEventEnd
8746           - Removed usage of HandleData, switched over to Hwnd class
8747         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8748
8749 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8750
8751         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8752         * ScrollBar.cs: Fixes bug
8753         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8754          keyboard navigation enhancements
8755
8756 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8757
8758         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8759         * GroupBox.cs: Add control styles
8760         * Label.cs: Add control styles
8761         * UpDownBase.cs: Add control styles
8762         * ListBox.cs: Add control styles
8763         * XplatUIWin32.cs: Fixes wrong parameter order
8764
8765
8766 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8767
8768         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8769
8770 2005-02-23  Jackson Harper  <jackson@ximian.com>
8771
8772         * PropertyManager.cs: Implement property binding. This doesn't
8773         seem to work yet though as (I think) there are some bugs in
8774         System.ComponentModel.PropertyDescriptor.
8775         * BindingContext.cs: Use new PropertyManager constructor.
8776
8777 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8778
8779         * ProgressBar.cs: use clip region in ProgressBar
8780         * ThemeWin32Classic.cs: use clip region in ProgressBar
8781
8782 2004-02-22  Jackson Harper  <jackson@ximian.com>
8783
8784         * BindingsCollection.cs: Remove some debug code.
8785
8786 2005-02-22  Jackson Harper  <jackson@ximian.com>
8787
8788         * BindingContext.cs:
8789         * ControlBindingsCollection.cs:
8790         * CurrencyManager.cs:
8791         * Binding.cs:
8792         * BindingManagerBase.cs: Initial implementation
8793         * BindingsCollection.cs: Add an internal contains method that the
8794         BindingManagerBase uses to ensure bindings aren't added twice to
8795         the collection.
8796         * PropertyManager.cs: Stubbed out.
8797         * Control.cs:
8798         * ContainerControl.cs: Hook up databinding
8799         
8800 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8801
8802         * XplatUIOSX.cs:
8803           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8804           Fixed Invalidate/Update chain.
8805           Fixed tons of other minor bugs (this is almost a complete rewrite).
8806
8807 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8808
8809         * ComboBox.cs: do subcontrol creation when the control is created
8810
8811 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8812
8813         * Label.cs: fixes image drawing (image and imagelist)
8814         * ThemeWin32Classic.cs: cache brushes
8815         
8816 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8817
8818         * Form.cs: Move menu drawing code to Theme class
8819         * ComboBox.cs: Move ComboBox drawing code to Theme class
8820         * MenuItem.cs: Move menu drawing code to Theme class
8821         * MenuAPI.cs: Move menu drawing code to Theme class
8822         * ThemeWin32Classic.cs: New methods
8823         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8824         * ListBox.cs: Move Listbox drawing code to Theme class
8825         * Theme.cs: New methods
8826
8827 2005-02-20  Peter Bartok  <pbartok@novell.com>
8828
8829         * Control.cs:
8830           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8831             only process mnemonics on those)
8832           - Fixed event sequence for key handling; first calling
8833             ProcessKeyEventArgs now
8834         * TextBoxBase.cs:
8835           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8836             for processing non-character keys
8837           - Fixed WM_CHAR to generate proper event sequence before processing
8838         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8839           generation
8840
8841 2005-02-19  Peter Bartok  <pbartok@novell.com>
8842
8843         * UserControl.cs: Added TextChanged event; added attributes
8844         * SizeGrip.cs: Implemented resizing and optional display of grip
8845         * Form.cs: Fixed attribute
8846         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8847           Changed meaning of ScrollWindow bool argument; instead of the
8848           clear attribute (which will be true usually anyway), it gives the
8849           option of moving child controls as well.
8850         * XplatUIX11.cs:
8851           - Changed to match new ScrollWindow argument
8852           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8853             now handles the implicit parent window a WM puts around us
8854         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8855           to work)
8856         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8857         * TreeView.cs: Adjusted to new ScrollWindow arguments
8858
8859 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8860
8861         * Form.cs: Menu integration with non-client area
8862         * MenuItem.cs: Menu integration with non-client area
8863         * MenuAPI.cs: Menu integration with non-client area
8864
8865 2005-02-18  Peter Bartok  <pbartok@novell.com>
8866
8867         * MethodInvoker.cs: Added
8868         * MdiLayout.cs: Added
8869         * SendKeys.cs: Started implementation
8870         * ErrorIconAlignment.cs: Added
8871
8872 2005-02-18  Peter Bartok  <pbartok@novell.com>
8873
8874         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8875         * Form.cs: Added handling for Menu-related Non-client messages
8876
8877 2005-02-17  Peter Bartok  <pbartok@novell.com>
8878
8879         * UpDownBase.cs: Fixed typo, compilation errors
8880         * DomainUpDown.cs: Fixed attribute value
8881
8882 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8883
8884         * UpDownBase.cs: Attach entry events.
8885         Propagate events.
8886         Add ForeColor property, Focused, InterceptArrowKeys (interception
8887         does not work yet).
8888
8889 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8890
8891         * Form.cs:
8892                 - Redraw non client are on Setmenu
8893                 - Calc proper menu starting point
8894
8895 2005-02-17  Peter Bartok  <pbartok@novell.com>
8896
8897         * Application.cs: Fixed message_filter check
8898
8899 2005-02-17  Peter Bartok  <pbartok@novell.com>
8900
8901         * Application.cs: Now calls registered message filters
8902         * DockStyle.cs: Fixed attribute
8903         * Form.cs: Fixed attribute
8904         * Menu.cs: Fixed attribute
8905         * ToolTip.cs: Fixed attribute
8906         * TreeNode.cs: Added missing attributes and arranged in regions
8907         * PropertyGrid.cs: Fixed signatures
8908         * TreeNodeCollection.cs: Added attributes
8909         * Splitter.cs: Added missing attributes; arranged into regions
8910         * TabPage.cs: Added missing attributes; arranged into regions
8911         * TextBoxBase.cs: Added missing attributes
8912         * TextBox.cs: Added missing attributes
8913         * ArrangeDirection.cs: Added missing attributes
8914         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8915         * ToolBarButton.cs: Fixed attributes
8916         * AnchorStyles.cs: Fixed attribute
8917         * TrackBar.cs: Fixed attributes
8918         * TabControl.cs: Added missing attributes and arranged into regions
8919         * ToolBar.cs: Fixed attribute
8920         * StatusBar.cs: Fixed signature, organized into regions and added
8921           attributes
8922         * StatusBarPanel.cs: Fixed attributes
8923         * ContentsResizedEventArgs.cs: Implemented
8924         * ContentsResizedEventHandler.cs: Implemented
8925         * DateBoldEventArgs.cs: Implemented
8926         * DateBoldEventHandler.cs: Implemented
8927         * UpDownEventArgs.cs: Implemented
8928         * UpDownEventHandler.cs: Implemented
8929         
8930 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
8931
8932         * Form.cs: first Menu NC refactoring
8933         * MenuAPI.cs: first Menu NC refactoring
8934         
8935 2005-02-16  Peter Bartok  <pbartok@novell.com>
8936
8937         * ImeMode.cs: Added missing attributes
8938         * Menu.cs: Fixed attribute
8939         * GroupBox.cs: Fixed attribute
8940         * Label.cs: Fixed attribute
8941         * ColorDialog.cs (RunDialog): Removed TODO attribute
8942         * ComboBox.cs: Fixed attributes
8943         * ListControl.cs: Added missing attributes
8944         * PropertyGrid.cs: Fixed attributes
8945         * Control.cs: Fixed attributes
8946         * ListViewItem.cs: Added TypeConverter attribute
8947         * NotifyIcon.cs: Fixed attributes
8948         * ListView.cs: Fixed attributes
8949         * ButtonBase.cs: Fixed attribute
8950         * ImageList.cs: Added missing attributes
8951         * ContainerControl.cs: Fixed signature
8952         * CheckedListBox.cs: Fixed attribute; added missing attributes
8953         * Panel.cs: Fixed attributes
8954         * PropertyTabChangedEventArgs.cs: Added missing attribute
8955         * PropertyValueChangedEventArgs.cs: Added missing attribute
8956         * Binding.cs: Fixed attribute
8957         * ListViewItemConverter: Implemented ListViewSubItemConverter class
8958         * ListBox.cs: Fixed attribute; added missing attributes;
8959         * ScrollableControl.cs: Added missing attributes
8960         * PictureBox.cs: Added missing attributes; implemented missing property
8961         * DateTimePicker.cs: Added missing attributes
8962         * Theme.cs (ToolWindowCaptionHeight): Fixed type
8963         * MonthCalendar.cs: Fixed attributes
8964         * StatusBarPanel.cs: Added missing attributes
8965         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8966
8967 2005-02-16  Peter Bartok  <pbartok@novell.com>
8968
8969         * TextBoxBase.cs: The previous method to enforce height yet remember
8970           the requested high was less than ideal, this is an attempt to do
8971           it better.
8972         * Control.cs: Added comment about possible problem
8973         * Copyright: Updated format
8974         * GridItemType.cs: Fixed swapped values
8975
8976 2005-02-15  Jackson Harper  <jackson@ximian.com>
8977
8978         * BaseCollection.cs: Use property so we never access an
8979         uninitialized list. Also initialize the list in the property.
8980
8981 2005-02-15  Peter Bartok  <pbartok@novell.com>
8982
8983         * GroupBox.cs (ProcessMnemonic): Implemented
8984         * Label.cs (ProcessMnemonic): Implemented
8985         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8986           hotkeys
8987
8988 2005-02-15  Peter Bartok  <pbartok@novell.com>
8989
8990         * RadioButton.cs (ProcessMnemonic): Implemented
8991         * CheckBox.cs (ProcessMnemonic): Implemented
8992         * Control.cs:
8993           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8994             handling
8995           - Added internal method to allow calling ProcessMnemonic from other
8996             controls
8997         * ContainerControl.cs:
8998           - Started support for handling validation chain handling
8999           - Implemented ProcessMnemonic support
9000           - Added Select() call to Active, to make sure the active control
9001             receives focus
9002         * Form.cs: Setting toplevel flag for Forms (this was lost in the
9003           FormParent rewrite)
9004         * ThemeWin32Classic.cs:
9005           - DrawCheckBox(): Fixed stringformat to show hotkeys
9006           - DrawRadioButton(): Fixed stringformat to show hotkeys
9007         * CommonDialog.cs: Removed WndProc override, not needed
9008
9009 2005-02-14  Peter Bartok  <pbartok@novell.com>
9010
9011         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
9012           missed those in the rewrite
9013
9014 2005-02-14  Miguel de Icaza  <miguel@novell.com>
9015
9016         * NumericUpDown.cs (Increment, ToString): Add.
9017         (DecimalPlaces): implement.
9018         
9019         Add attributes.
9020         
9021         * UpDownBase.cs: Add the designer attributes.
9022
9023 2005-02-13  Peter Bartok  <pbartok@novell.com>
9024
9025         * Panel.cs: Removed border_style, now in Control
9026         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
9027           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
9028
9029 2005-02-13  Peter Bartok  <pbartok@novell.com>
9030
9031         * MouseButtons.cs: Added missing attributes
9032         * XplatUIStructs.cs: Added enumeration for title styles
9033         * LeftRightAlignment.cs: Added missing attributes
9034         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
9035           it compatible with Graphics.FromHwnd()
9036         * SelectedGridItemChangedEventArgs.cs: Fixed property type
9037         * Keys.cs: Added missing attributes
9038         * SelectionRange.cs: Added missing attributes
9039         * SelectionRangeConverter.cs: Added
9040         * XplatUI.cs:
9041           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
9042             ReleaseMenuDC methods
9043           - Renamed ReleaseWindow to UngrabWindow
9044           - Added proper startup notice to allow version identification
9045         * Form.cs:
9046           - Added missing attributes
9047           - Removed FormParent concept
9048         * Label.cs: Removed border_style field, now in Control
9049         * RadioButton.cs: Now properly selects RadioButton when focus is
9050           received
9051         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
9052         * Control.cs:
9053           - Added missing attributes
9054           - Added borderstyle handling
9055           - Removed FormParent concept support
9056           - Fixed calls to XplatUI to match changed APIs
9057           - Fixed bug that would case us to use disposed Graphics objects
9058           - Removed unneeded internal methods
9059           - PerformLayout(): Fixed to handle DockStyle.Fill properly
9060           - SelectNextControl(): Fixed to properly check common parents
9061         * TextBoxBase.cs: Removed border_style field (now in Control)
9062         * MessageBox.cs:
9063           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
9064             fixed calculations for form size
9065           - Added support for localized strings and icons
9066           - Improved form size calculations, added border
9067         * ListView.cs: Removed border_style field (now in Control)
9068         * X11Structs.cs: Moved several structs from X11 driver here
9069         * X11Keyboard.cs: Changed debug message
9070         * Application.cs: Removed FormParent concept support
9071         * CommonDialog.cs:
9072           - Resetting end_modal flag
9073           - Removed FormParent concept support
9074         * NativeWindow.cs: Removed FormParent concept support
9075         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
9076           Client area and Non-Client whole window to allow support for WM_NC
9077           messages
9078         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
9079           prevent using it until it supports Hwnd as per Geoff Norton's request
9080         * ToolBar.cs: Fixed drawing, was not doing proper drawing
9081         * PictureBox.cs: Removed border_style field, now in Control
9082         * XplatUIWin32.cs: Added new driver methods
9083
9084 2005-02-12  Peter Bartok  <pbartok@novell.com>
9085
9086         * OpacityConverter.cs: Implemented
9087         * Hwnd.cs: Internal class to support drivers that need to emulate
9088           client area/non-client area window behaviour
9089
9090 2005-02-11  Peter Bartok  <pbartok@novell.com>
9091
9092         * KeysConverter.cs: Implemented
9093
9094 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9095
9096         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9097         * LinkLabel: Added missing attributes
9098         * MainMenu.cs: fixes ToString
9099         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9100         * ListBox.cs: fixes event position
9101         * TrackBar.cs: adds missing attributes and events
9102         
9103 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9104
9105         * MenuItem.cs: Use SystemInformation and bug fixes
9106         * MenuAPI.cs: Use SystemInformation and bug fixes
9107
9108 2005-02-09  Jackson Harper  <jackson@ximian.com>
9109
9110         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9111         their keystate otherwise things like VK_MENU get stuck "on".
9112
9113 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
9114
9115         * ListBox.cs: Fixes AddRange bug
9116         
9117 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
9118
9119         * ProgressBar.cs
9120                 - Add missing attributes
9121                 - Add missing method
9122                 
9123         * CheckedListBox.cs: Added missing attributes
9124                 - Add missing attributes
9125                 - Remove extra method
9126         
9127         * ComboBox.cs: Added missing attributes
9128         * VScrollBar.cs: Added missing attributes
9129         * ScrollBar.cs:  Added missing attributes
9130         * ListBox.cs: Fixes signature, add missing consts
9131         * LinkArea.cs:   Added missing attributes
9132         
9133
9134 2005-02-08  Peter Bartok  <pbartok@novell.com>
9135
9136         * Menu.cs: Added missing attributes
9137         * MainMenu.cs: Added missing attributes
9138         * GroupBox.cs: Added missing attributes
9139         * Label.cs: Added missing attributes
9140         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
9141         * ColorDialog.cs:
9142           - Added Instance and Options properties
9143           - Added missing attributes
9144         * Cursor.cs: Made Serializable
9145         * NotifyIcon: Added missing attributes
9146         * MenuItem.cs: Added missing attributes
9147         * TextBoxBase.cs: Implemented AppendText() and Select() methods
9148         * Panel.cs: Added Missing attributes
9149         * MonthCalendar.cs: Fixed CreateParams
9150
9151 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9152         
9153         * LinkLabel.cs:
9154                 - Fixes signature
9155                 - Fixes issues with links
9156                 - Adds the class attributes
9157
9158 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9159         
9160         * ComboBox.cs:
9161                 - Fixes button when no items available in dropdown
9162                 - Fixes repainting problems
9163                 - Adds the class attributes
9164                 
9165 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9166
9167         * XplatUIOSX.cs: Detect the menu bar and title bar height from
9168         the current theme.  Cache these on startup.
9169
9170 2005-02-07  Jackson Harper  <jackson@ximian.com>
9171
9172         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
9173         the scrollbar buttons when they are depressed.
9174
9175 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9176
9177         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
9178         Get the display size from the main displayid.  We currently dont
9179         support multiple display configurations.
9180
9181 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9182
9183         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
9184
9185 2005-02-07  Miguel de Icaza  <miguel@novell.com>
9186
9187         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
9188
9189 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
9190
9191         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
9192
9193 2005-02-04  Jackson Harper  <jackson@ximian.com>
9194
9195         * ThemeWin32Classic.cs: Respect the clipping rect when
9196         drawing. Only fill the intersection of clips and rects so there
9197         isn't a lot of large fills.
9198         * ScrollBar.cs: Pass the correct clipping rect to the theme
9199         engine. Remove some debug code.
9200
9201 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9202         
9203         * DateTimePicker.cs:
9204                 - Fixed crash on DateTime.Parse, use Constructor instead
9205
9206 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9207         
9208         * MenuItem.cs:
9209         * MenuAPI.cs:
9210                 - Owner draw support (MeasureItem and DrawItem)
9211
9212 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9213         
9214         *  Menu.cs:
9215                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9216                 - Fixes MenuItems.Add range
9217         * MenuItem.cs:
9218                 - MergeMenu and Clone and CloneMenu functions
9219
9220 2005-02-03  Jackson Harper  <jackson@ximian.com>
9221
9222         * ScrollBar.cs: Make abstract
9223         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9224         is abstract.
9225
9226 2005-02-03  Jackson Harper  <jackson@ximian.com>
9227
9228         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9229         all the unneeded refreshes and uses invalidates with properly
9230         computed rects.
9231
9232 2005-02-03  Peter Bartok  <pbartok@novell.com>
9233
9234         * ComponentModel.cs: Added
9235         * IDataGridEditingService.cs: Added
9236         * Timer.cs: Added missing attributes
9237         * ToolTip.cs: Added missing attributes
9238
9239 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9240
9241         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9242
9243 2005-02-03  Peter Bartok  <pbartok@novell.com>
9244
9245         * ListBox.cs: Added missing attributes
9246
9247 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9248         
9249         * ListBox.cs:
9250                 - Fixes font height after font change
9251                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9252                 
9253 2005-02-02  Peter Bartok  <pbartok@novell.com>
9254
9255         * HandleData.cs: Introduced static methods to allow class
9256           to be more self-contained and track it's own HandleData objects
9257         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9258           HandleData to use new static methods
9259
9260 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9261
9262         * Combobox.cs:
9263                 - Fixes default size and PreferredHeight
9264                 - Missing events
9265                 - ObjectCollection.Insert implementation
9266                 
9267         * ListControl.cs
9268                 - Fixes signature
9269         * ListBox.cs:
9270                 - Several fixes
9271                 - ObjectCollection.Insert implementation
9272                 - No selection after clean
9273                 - Small fixes
9274
9275 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9276
9277         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9278
9279 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9280
9281         * Combobox.cs:
9282                 - Caches ItemHeight calculation for OwnerDrawVariable
9283                 - Handles dropdown properly
9284                 - Fixes several minor bugs
9285
9286 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9287
9288         * ListBox.cs:
9289                 - Fixes 71946 and 71950
9290                 - Fixes changing Multicolumn on the fly
9291                 - Fixes keyboard navigation on Multicolumn listboxes
9292
9293 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9294         
9295         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9296         crash reporter log.
9297
9298 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9299
9300         * XplatUIOSX.cs: Allow applications to actually exit.
9301
9302 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9303
9304         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9305         their parent at creation time rather than lazily later.  Fixes a major
9306         regression we were experiencing.
9307
9308 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9309
9310         * ThemeWin32Classic.cs: more date time picker painting fixes
9311         * DateTimePicker.cs: more monthcalendar drop down fixes
9312         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9313
9314 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9315
9316         * ScrollBar.cs:
9317                 - When moving the thumb going outside the control should stop the moving
9318                 - Adds the firing of missing events
9319                 - Fixes no button show if Size is not specified
9320                 - End / Home keys for keyboard navigation
9321
9322 2005-01-30  Peter Bartok  <pbartok@novell.com>
9323
9324         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9325           sanity check to prevent theoretical loop
9326         * XplatUIWin32.cs (SetVisible): Removed debug output
9327         * XplatUIX11.cs (SystrayChange): Added sanity check
9328         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9329         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9330           behaviour, valid until the X11 client window rewrite is done
9331         * TextBox.cs (ctor): Setting proper default foreground and background
9332           colors
9333
9334 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9335
9336         * Theme: Added DrawDateTimePicker to interface
9337         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9338         * DateTimePicker.cs: Created (still needs keys and painting code)
9339         * DateTimePickerFormat.cs: added
9340         * MonthCalendar.cs: fixed CreateParams for popup window mode
9341           
9342 2005-01-29  Peter Bartok  <pbartok@novell.com>
9343
9344         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9345           this should also the calculations for ligher/darker
9346         * Theme.cs: Fixed defaults for ScrollBar widths/heights
9347
9348 2005-01-29  Peter Bartok  <pbartok@novell.com>
9349
9350         * ArrangeDirection.cs: Added
9351         * ArrangeStartingPositon.cs: Added
9352         * SystemInformation.cs: Implemented
9353         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9354           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9355           used by SystemInformation class
9356         * X11Strucs.cs: Added XSizeHints structure
9357         * MenuAPI.cs:
9358           - Fixed CreateParams to make sure the menu window is always visible
9359           - TrackPopupMenu: Added check to make sure we don't draw the
9360             menu offscreen
9361
9362 2005-01-29  Peter Bartok  <pbartok@novell.com>
9363
9364         * HandleData.cs: Added method for altering invalid area
9365         * TextBoxBase.cs: Implemented TextLength
9366
9367 2005-01-28  Peter Bartok  <pbartok@novell.com>
9368
9369         * XplatUIX11.cs: Improvement over last patch, not sending
9370           the WM_PAINT directly anymore, instead we scroll any pending
9371           exposed areas and let the system pick out the WM_PAINT later
9372
9373 2005-01-28  Peter Bartok  <pbartok@novell.com>
9374
9375         * SWF.csproj: Deleted, no longer used. Instead,
9376           Managed.Windows.Forms/SWF.csproj should be used
9377         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9378           directly, to avoid a potential race condition with the next
9379           scroll
9380
9381 2005-01-28  Peter Bartok  <pbartok@novell.com>
9382
9383         * XplatUI.cs: Made class internal
9384
9385 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
9386
9387         * CheckedListBox.cs:
9388                 - Draw focus
9389                 - Fixed Drawing
9390                 - Missing methods and events
9391
9392 2005-01-27  Peter Bartok  <pbartok@novell.com>
9393
9394         * Application.cs (Run): Don't use form if we don't have one
9395
9396 2005-01-27  Peter Bartok  <pbartok@novell.com>
9397
9398         * TextBoxBase.cs (get_Lines): Fixed index off by one error
9399
9400 2005-01-27  Peter Bartok  <pbartok@novell.com>
9401
9402         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9403         * GridItem.cs: Added; Patch by Jonathan S. Chambers
9404         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9405         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9406         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9407         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9408         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9409         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9410         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9411         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9412         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9413         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9414
9415 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9416
9417         * Combobox.cs:
9418                 - Draw focus on Simple Combobox
9419                 - Fixes drawing issues
9420                 - fixes 71834
9421
9422 2005-01-27  Peter Bartok  <pbartok@novell.com>
9423
9424         * Form.cs:
9425           - Place window in default location, instead of hardcoded 0/0
9426           - Send initial LocationChanged event
9427         * Control.cs:
9428           - UpdateBounds after creation to find out where the WM placed us
9429           - Make sure that if the ParentForm changes location the Form
9430             is notified
9431         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9432             to the root, but to whatever the WM placed around us.
9433             Translate to root coordinates before returning toplevel
9434             coordinates
9435         * XplatUIWin32.cs: Removed debug output
9436         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9437           flag to GetWindowPos, to allow translation of coordinates on X11
9438
9439 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9440
9441         * ListBox.cs: connect LostFocus Event
9442
9443 2005-01-27  Peter Bartok  <pbartok@novell.com>
9444
9445         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9446           XplatUIX11.cs: Extended the Systray API
9447         * Form.cs: Removed debug output
9448         * Application.cs: Fixed focus assignment, always need to call
9449           XplatUI.Activate() since Form.Activate() has rules that may
9450           prevent activation
9451         * NotifyIcon.cs: Should be complete now
9452         * ToolTip.cs: Worked around possible timer bug
9453
9454 2005-01-27  Jackson Harper  <jackson@ximian.com>
9455
9456         * TabControl.cs:
9457         - Only invalidate the effected tabs when the
9458         selected index changes. This reduces drawing and gets rid of some
9459         flicker.
9460         - Only refresh if the tabs need to be shifted, otherwise only
9461         invalidate the slider button.
9462         - On windows the tabs are not filled to right if the slider is
9463         visible.
9464         
9465 2005-01-27  Jackson Harper  <jackson@ximian.com>
9466
9467         * TabControl.cs: Only refresh on mouseup if we are showing the
9468         slider. Also only invalidate the button whose state has changed.
9469
9470 2005-01-26  Peter Bartok  <pbartok@novell.com>
9471
9472         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9473         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9474           and SystrayRemove() methods
9475         * XplatUIOSX.cs: Stubbed Systray methods
9476         * XplatUIX11.cs:
9477           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9478             methods
9479           - Fixed broken XChangeProperty calls (marshalling messed up things)
9480         * X11Structs.cs: Added enums and structs required for Size hinting
9481         * NotifyIcon.cs: Added & implemented
9482
9483 2005-01-26  Jackson Harper  <jackson@ximian.com>
9484
9485         * TabControl.cs: Space vertically layed out tabs properly.
9486
9487 2005-01-26  Peter Bartok  <pbartok@novell.com>
9488
9489         * Form.cs (CreateClientParams): Always set the location to 0,0
9490           since we're a child window.
9491
9492         * Control.cs (SetVisibleCore): Always explicitly setting the location
9493           of a toplevel window, apparently X11 doesn't like to move windows
9494           while they're not mapped.
9495
9496 2005-01-26  Jackson Harper  <jackson@ximian.com>
9497
9498         * TabControl.cs: Implement FillToRight size mode with vertically
9499         rendered tabs.
9500
9501 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9502
9503         * ControlPaint.cs, ThemeWin32Classic.cs
9504                 - Fixes DrawFocusRectangle
9505
9506 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9507
9508         * MenuAPI.cs:
9509                 - MenuBar tracking only starts when item is first clicked
9510                 - Fixes menu hidding for multiple subitems
9511                 - Unselect item in MenuBar when item Executed
9512                 - Fixes bug 71495
9513
9514 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
9515
9516         * ListControl.cs:
9517                 - IsInputKey for ListBox
9518         * ListBox.cs:
9519                 - Focus item
9520                 - Shift and Control item selection
9521                 - Implement SelectionMode.MultiExtended
9522                 - Fixes RightToLeft
9523         * ComboBox.cs:
9524                 - IsInputKey implemented
9525                 - Do not generate OnTextChangedEdit on internal txt changes
9526                 
9527 2005-01-23  Peter Bartok  <pbartok@novell.com>
9528
9529         * AccessibleObject.cs: Partially implemented Select()
9530         * MonthCalendar.cs: Added missing attributes and events
9531         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9532           form can properly override CreateParams.
9533         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9534           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9535           Control performs Invalidate & Update
9536         * NativeWindow (CreateHandle): Added special handling for Form
9537           and Form.FormParent classes to allow overriding of From.CreateParams
9538         * Control.cs:
9539           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9540             name 'owner'
9541           - ControlNativeWindow: Added Owner property
9542           - Removed usage of Refresh() on property changes, changed into
9543             Invalidate(), we need to wait until the queue is processed for
9544             updates, direct calls might cause problems if not all vars for
9545             Paint are initialized
9546           - Added call to UpdateStyles() when creating the window, to set any
9547             styles that CreateWindow might have ignored.
9548           - Added support for Form CreateParent overrides to UpdateStyles()
9549         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9550           CreateParams are now properly overridable
9551         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9552           CreateParams are now properly overridable
9553
9554 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9555
9556         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9557         OnTextBoxChanged.
9558
9559         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9560         recursive invocation that I have not figured out yet.
9561
9562         Reset the timer when not using (it was accumulating).
9563
9564
9565         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9566         user has made changes that require validation.
9567
9568         Reset changing to avoid loops.
9569
9570 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9571
9572         * NumericUpDown.cs: Display value at startup.
9573
9574         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9575         ValidateEditText.
9576
9577         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9578         filled in.  Added some basic parsing of text.
9579
9580         Still missing the OnXXX method overrides, and figuring out the
9581         events that must be emitted.
9582
9583         * UpDownBase.cs: Handle UserEdit on the Text property.
9584         
9585 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9586
9587         * ComboBox.cs:
9588           - Fixes IntegralHeight
9589           - ToString method
9590
9591 2005-01-21  Jackson Harper  <jackson@ximian.com>
9592
9593         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9594         is set so that the page visibility is updated and the tabs are
9595         sized correctly.
9596
9597 2005-01-21  Jackson Harper  <jackson@ximian.com>
9598
9599         * TabControl.cs: Use cliping rectangle for blitting. Give the
9600         theme the clipping rect so we can do clipping while
9601         drawing. Remove some debug code.
9602
9603 2005-01-21  Jackson Harper  <jackson@ximian.com>
9604
9605         * TabPage.cs: Add a new method so tab pages can force the tab
9606         control to recalculate the tab page sizes.
9607         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9608         sizes.
9609
9610 2005-01-20  Jackson Harper  <jackson@ximian.com>
9611
9612         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9613
9614 2005-01-20  Jackson Harper  <jackson@ximian.com>
9615
9616         * TreeView.cs: Set the bounds for nodes properly. They were
9617         getting screwed up when checkboxes were not enabled, but images
9618         were.
9619
9620 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9621
9622         * ListBox.cs:
9623                 - Owner draw support
9624                 - Fixes
9625                 
9626 2005-01-20  Jackson Harper  <jackson@ximian.com>
9627
9628         * XplatUIStructs.cs: More misc keys
9629         * X11Keyboard.cs: Ignore some control keys.
9630
9631 2005-01-20  Jackson Harper  <jackson@ximian.com>
9632
9633         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9634         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9635
9636 2005-01-19  Peter Bartok  <pbartok@novell.com>
9637
9638         * Control.cs: Un-selecting the control when it is loosing focus
9639
9640 2005-01-19  Jackson Harper  <jackson@ximian.com>
9641
9642         * TreeView.cs: Hook up to the text controls leave event so we can
9643         end editing when the users clicks outside the text box.
9644         
9645 2005-01-19  Jackson Harper  <jackson@ximian.com>
9646
9647         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9648         get set in the conversion array.
9649
9650 2005-01-19  Peter Bartok  <pbartok@novell.com>
9651
9652         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9653           focus is properly set
9654         * Button.cs:
9655           - Added missing attributes
9656           - removed styles, those are already set in the base class
9657         * ButtonBase.cs:
9658           - Added missing attributes
9659           - Added clip window styles
9660         * CheckBox.cs: Added missing attributes
9661         * CommonDialog.cs:
9662           - FormParentWindow.CreateParams: Added required clip styles
9663         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9664           also filters modifier keys
9665         * MessageBox.cs:
9666           - Added assignment of Accept and Cancel button to enable Enter
9667             and Esc keys in MessageBox dialogs
9668           - FormParentWindow.CreateParams: Added required clip styles
9669         * RadioButton.cs: Added missing attributes
9670         * TextControl.cs: No longer draws selection if control does not
9671           have focus
9672         * TextBoxBase.cs:
9673           - Now draws simple rectangle around test area to make it obvious
9674             there's a control. This is a hack until we properly support borders
9675           - A few simple fixes to support selections better, now erases selected
9676             text when typing, and resets selection when using movement keys
9677
9678 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9679
9680         * UpDownBase.cs: Added some new properties.
9681
9682         * DomainUpDown.cs: Implement a lot to get my test working.
9683
9684 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9685
9686         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9687
9688 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9689
9690         * OSXStructs (WindowAttributes): Fixed csc complaints
9691
9692 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9693
9694         * XplayUIOSX.cs:
9695           OSXStructs.cs: Initial refactor to move enums and consts into
9696           OSXStructs and use them in the driver for greater readability.
9697
9698 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9699
9700         * XplatUIOSX.cs: Initial support for Standard Cursors.
9701         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9702
9703 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9704
9705         * ComboBox.cs: ability to change style when the ctrl is already
9706         created, missing methods and events, bug fixes, signature fixes
9707
9708 2005-01-19  Peter Bartok  <pbartok@novell.com>
9709
9710         * Cursors.cs (ctor): Added ctor to fix signature
9711
9712 2005-01-18  Peter Bartok  <pbartok@novell.com>
9713
9714         * Button.cs: Implemented DoubleClick event
9715         * ButtonBase.cs:
9716           - Fixed keyboard handling to behave like MS, where the press of
9717             Spacebar is equivalent to a mousedown, and the key release is
9718             equivalent to mouseup. Now a spacebar push will give the same
9719             visual feedback like a mouse click.
9720           - Added missing attributes
9721           - Added ImeModeChanged event
9722           - Added support for generating DoubleClick event for derived classes
9723         * CheckBox.cs:
9724           - Implemented DoubleClick event
9725           - Added missing attributes
9726         * CommonDialog.cs: Added missing attribute
9727         * ContextMenu.cs: Added missing attributes
9728         * RadioButton.cs:
9729           - AutoChecked buttons do not allow to be unselected when clicked
9730             (otherwise we might end up with no selected buttons in a group)
9731           - Added missing attributes
9732           - Implemented DoubleClickEvent
9733         * ThreadExceptionDialog.cs: Enabled TextBox code
9734
9735 2005-01-18  Peter Bartok  <pbartok@novell.com>
9736
9737         * Form.cs: Removed debug output
9738         * Button.cs: Added support for DoubleClick method
9739
9740 2005-01-18  Peter Bartok  <pbartok@novell.com>
9741
9742         * Form.cs:
9743           - Added method to parent window that allows triggering size
9744             calculations when a menu is added/removed
9745           - set_Menu: Cleaned up mess from early days of Form and Control,
9746             now properly triggers a recalc when a menu is added/removed
9747           - Added case to select form itself as focused form if no child
9748             controls exist
9749           - Added PerformLayout call when showing dialog, to ensure properly
9750             placed controls
9751         * Control.cs:
9752           - Select(): Made internal so Form can access it
9753           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9754             status
9755         * Application.cs (Run): Removed hack and calls PerformLayout instead
9756           to trigger calculation when Form becomes visible
9757
9758 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9759
9760         * ComboBox.cs: fixes for ownerdraw
9761
9762 2005-01-18  Peter Bartok  <pbartok@novell.com>
9763
9764         * TextControl.cs:
9765           - Sentinel is no longer static, each Document gets it's own, this
9766             avoids locking or alternatively overwrite problems when more
9767             than one text control is used simultaneously.
9768           - Switched to use Hilight and HilightText brushes for text selection
9769
9770         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9771
9772 2005-01-18  Peter Bartok  <pbartok@novell.com>
9773
9774         * Control.cs:
9775           - Hooked up the following events:
9776                 o ControlAdded
9777                 o ControlRemoved
9778                 o HandleDestroyed
9779                 o ImeModeChanged
9780                 o ParentChanged
9781                 o TabStopChanged
9782                 o Invalidated
9783                 o SystemColorsChanged
9784                 o ParentFontChanged
9785                 o Move
9786           - Removed debug output
9787           - Added a call to the current theme's ResetDefaults when a color change
9788             is detected
9789         * Form.cs: Now setting the proper ImeMode
9790         * Theme.cs: Defined a method to force recreation of cached resources
9791           and rereading of system defaults (ResetDefaults())
9792         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9793
9794 2005-01-17  Peter Bartok  <pbartok@novell.com>
9795
9796         * Control.cs: Added missing attributes
9797
9798 2005-01-17  Jackson Harper  <jackson@ximian.com>
9799
9800         * TreeNode.cs: Implement editing. Add missing properties selected
9801         and visible.
9802         * TreeView.cs: Implement node editing. Also some fixes to use
9803         Invalidate (invalid area) instead of Refresh when selecting.
9804
9805 2005-01-17  Peter Bartok  <pbartok@novell.com>
9806
9807         * Control.cs:
9808           - Implemented InvokeGotFocus() method
9809           - Implemented InvokeLostFocus() method
9810           - Implemented InvokePaint() method
9811           - Implemented InvokePaintBackground() method
9812           - Implemented InvokeClick() method
9813           - Implemented FindForm() method
9814           - Implemented RectangleToClient() method
9815           - Implemented ClientToRectangle() method
9816           - Implemented ResetBackColor() method
9817           - Implemented ResetCursor() method
9818           - Implemented ResetFont() method
9819           - Implemented ResteForeColor() method
9820           - Implemented ResetImeMode() method
9821           - Implemented ResetLeftToRight() method
9822           - Implemented ResetText() method
9823           - Implemented Scale() methods
9824           - Implemented ScaleCore() method
9825           - Implemented Update() method
9826           - Removed unused variables
9827           - Stubbed AccessibilityNotifyClients and
9828             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9829             with those yet)
9830           - Now setting proper default for RightToLeft property
9831           - Fixed bug in SetClientSizeCore that would cause windows to get
9832             really big
9833           - Now sending Click/DoubleClick events
9834           - Now selecting controls when left mouse button is clicked on
9835             selectable control
9836         * AccessibleEvents.cs: Added
9837         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9838         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9839         * XplatUIWin32.cs: Implemented UpdateWindow() method
9840         * XplatUIX11.cs: Implemented UpdateWindow() method
9841         * Form.cs: Removed stray semicolon causing CS0162 warning
9842         * ThemeWin32Classic.cs: Fixed unused variable warnings
9843         * ScrollableControl.cs: Now calls base method for ScaleCore
9844         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9845           style to avoid interference with internal click handler (which is
9846           different than standard Control click handling)
9847         * RadioButton.cs:
9848           - Now unchecks all sibling radio buttons when control is
9849             selected (Fixes #68756)
9850           - Removed internal tabstop variable, using the one inherited from
9851             Control
9852
9853 2005-01-17  Jackson Harper  <jackson@ximian.com>
9854
9855         * NavigateEventArgs.cs: Fix base type.
9856         * LinkLabel.cs: Sig fix
9857         
9858 2005-01-17  Jackson Harper  <jackson@ximian.com>
9859
9860         * TreeView.cs: Only invalidate the effected nodes bounds when
9861         selecting nodes.
9862
9863 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9864
9865         * XplatUIWin32.cs: fixes Win32 marshaling
9866         * XplatUIX11.cs: fixes method signature
9867
9868 2005-01-17  Peter Bartok  <pbartok@novell.com>
9869
9870         * XplatUIX11.cs: Clean up resources when we no longer need them
9871
9872 2005-01-17  Peter Bartok  <pbartok@novell.com>
9873
9874         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9875           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9876           and DestroyCursor() methods.
9877         * Cursor.cs: Partially implemented, now supports standard cursors;
9878           still contains some debug code
9879         * Cursors.cs: Implemented class
9880         * Control.cs:
9881           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9882             appropriate cursor
9883           - Implemented Cursor property
9884           - Replaced break; with return; more straightforwar and possibly
9885             faster
9886           - Now properly setting the result for WM_HELP
9887         * X11Structs.cs: Added CursorFontShape enum
9888         * XplatUIStructs.cs:
9889           - Added StdCursor enum (to support DefineStdCursor() method)
9890           - Added HitTest enum (to support sending WM_SETCURSOR message)
9891         * XplatUIX11.cs:
9892           - Now sends the WM_SETCURSOR message
9893           - Implemented new cursor methods
9894         * XplatUIOSX.cs: Stubbed new cursor methods
9895         * XplatUIWin32.cs:
9896           - Implemented new cursor methods
9897           - Added GetSystemMetrics function and associated enumeration
9898
9899 2005-01-15  Peter Bartok  <pbartok@novell.com>
9900
9901         * Control.cs:
9902           - WndProc(): Now handles EnableNotifyMessage
9903           - SelectNextControl(): Fixed bug where if no child or sibling
9904             controls exist we looped endlessly
9905
9906 2005-01-14  Jackson Harper  <jackson@ximian.com>
9907
9908         * TreeView.cs: Recalculate the tab pages when a new one is added
9909         so that the proper bounding rects are created.
9910
9911 2005-01-14  Jackson Harper  <jackson@ximian.com>
9912
9913         * TreeView.cs: Draw a gray box instead of a grip in the lower
9914         right hand corner when there are both horizontal and vertical
9915         scroll bars.
9916
9917 2005-01-14  Jackson Harper  <jackson@ximian.com>
9918
9919         * Control.cs: When erasing backgrounds use FromHwnd instead of
9920         FromHdc when there is a NULL wparam. This occurs on the X driver.
9921         * XplatUIX11.cs: Set the wparam to NULL.
9922
9923 2005-01-13  Jackson Harper  <jackson@ximian.com>
9924
9925         * PictureBox.cs: Implement missing methods (except ToString, need
9926         to test that on windows) and events. When visibility is changed we
9927         need to redraw the image because the buffers are killed. When size
9928         is changed refresh if the sizemode needs it.
9929
9930 2005-01-13  Peter Bartok  <pbartok@novell.com>
9931
9932         * Control.cs (SelectNextControl): Was using wrong method to select
9933           a control
9934
9935 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9936
9937         * ComboBox.cs: fixes dropstyle
9938
9939 2005-01-13  Peter Bartok  <pbartok@novell.com>
9940
9941         * Form.cs:
9942           - Implemented Select() override
9943           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9944           - Now sets keyboard focus on startup
9945         * Control.cs (SelectNextControl): Now properly handles directed=true
9946         * TextBoxBase.cs:
9947           - WndProc: Now passes tab key on to base if AcceptTabChar=false
9948           - Added (really bad) focus rectangle (mostly for testing)
9949         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9950           to enforce redraw on focus changes
9951         * ContainerControl.cs:
9952           - Fixed detection of Shift-Tab key presses
9953           - Fixed traversal with arrow keys
9954         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9955           gonna keep this or if it's complete yet
9956         
9957 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9958
9959         * ComboBox.cs: missing properties, fixes
9960
9961 2005-01-13  Peter Bartok  <pbartok@novell.com>
9962
9963         * Panel.cs (ctor): Setting Selectable window style to off
9964         * Splitter.cs (ctor): Setting Selectable window style to off
9965         * GroupBox.cs (ctor): Setting Selectable window style to off
9966         * Label.cs (ctor): Setting Selectable window style to off
9967
9968 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
9969
9970         * UpDownBase.cs (InitTimer): If the timer has been already
9971         created, enable it.
9972
9973         Use a TextBox instead of a Label.
9974
9975 2005-01-12  Jackson Harper  <jackson@ximian.com>
9976
9977         * TreeView.cs: Refresh the tree after sorting the nodes. Always
9978         draw the connecting node lines (when ShowLines is true).
9979         * TreeNode.cs: The nodes index can now be updated. This is used
9980         when a node collection is sorted.
9981         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9982         insert or an existing unsorted node collection can be sorted.
9983         
9984 2005-01-12  Peter Bartok  <pbartok@novell.com>
9985
9986         * ContainerControl.cs: Implemented ProcessDialogKeys()
9987
9988 2005-01-12  Peter Bartok  <pbartok@novell.com>
9989
9990         * Control.cs:
9991           - Implemented SelectNextControl() method
9992           - Several focus related bug fixes
9993           - Fixed Docking calculations to match MS documentation and
9994             behaviour
9995
9996 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
9997
9998         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9999         bug fixes
10000
10001 2005-01-12  Peter Bartok  <pbartok@novell.com>
10002
10003         * Control.cs:
10004           - Fixed broken Contains() method
10005           - Implemented GetNextControl() method. Finally. This is the pre-
10006             requisite for focus handling.
10007
10008 2005-01-12  Peter Bartok  <pbartok@novell.com>
10009
10010         * OSXStrucs.cs: Added
10011
10012 2005-01-12  Peter Bartok  <pbartok@novell.com>
10013
10014         * XplatUIWin32.cs:
10015           - Removed PeekMessageFlags
10016           - Implemented SetWindowStyle() method
10017         * XplatUIStructs.cs: Added PeekMessageFlags
10018         * X11Structs: Added missing border_width field to XWindowChanges struct
10019         * XplatUIX11.cs:
10020           - PeekMessage: Now throws exception if flags which are not yet
10021             supported are passed
10022           - Implemented SetWindowStyle() method
10023           - Fixed SetZOrder to handle AfterHwnd properly
10024         * XplatUI.cs: Added SetWindowStyle() method
10025         * XplatUIDriver.cs: Added SetWindowStyle() abstract
10026         * Control.cs:
10027           - Implemented UpdateStyles() method
10028           - Implemented UpdateZOrder() method
10029         * XplatUIOSX.cs: Added SetWindowStyle() stub
10030
10031 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
10032
10033         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
10034         button mouse).
10035
10036
10037 2005-01-11  Jackson Harper  <jackson@ximian.com>
10038
10039         * TreeView.cs: Still need to draw lines to siblings even if out of
10040         the current node is out of the clip.
10041
10042 2005-01-11  Jackson Harper  <jackson@ximian.com>
10043
10044         * TreeView.cs: When setting the hbar/vbar/grip position use
10045         SetBounds so that perform layout is only called once. Also suspend
10046         and resume layout so layout is only done once for all controls.
10047         - Removed some debug fluff
10048         * SizeGrip.cs: Call base implmentation in overriding methods.
10049         - When visibility is changed the drawing buffers are killed so we
10050         need to redraw.
10051
10052 2005-01-11  Jackson Harper  <jackson@ximian.com>
10053
10054         * TreeView.cs: Calculate the open node count while drawing. This
10055         saves us an entire tree traversal for every paint operation. Use
10056         a member var for the open node count so less vars are passed around.
10057
10058 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
10059
10060         * MonthCalendar.cs:
10061         - fixed selection to use mousemove, not mouse polling on timer
10062         * ThemeWin32Classic.cs
10063         - removed redundant unused variable "no_more_content"
10064         
10065 2005-01-11  Peter Bartok  <pbartok@novell.com>
10066
10067         * XplatUIX11.cs (DoEvents): Needs to return when no more events
10068           are pending, so it now calls PeekMessage instead of GetMessage;
10069           implemented a incomplete version of PeekMessage
10070         
10071 2005-01-11  Peter Bartok  <pbartok@novell.com>
10072
10073         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
10074           I18n issues
10075         * TextBoxBase.cs: Added sending of TextChanged event
10076
10077 2005-01-10  Jackson Harper  <jackson@ximian.com>
10078
10079         * TreeView.cs: Try not to draw outside the clipping rectangle on
10080         each node element.
10081
10082 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
10083
10084         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
10085
10086 2005-01-10  Jackson Harper  <jackson@ximian.com>
10087
10088         * TreeView.cs:
10089         - Implement fast scrolling. Now only the newly
10090         exposed nodes are drawn and the old image is moved using the
10091         XplatUI::ScrollWindow method.
10092         - Factor in height of nodes when calculating whether or not the
10093         node is in the clipping rect.
10094
10095 2005-01-10  Jackson Harper  <jackson@ximian.com>
10096
10097         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10098
10099 2005-01-10  Peter Bartok  <pbartok@novell.com>
10100
10101         * Application.cs: Added temporary hack to resolve all our resize
10102           required issues on startup. This will get fixed properly at
10103           some point in the future
10104
10105 2005-01-10  Jackson Harper  <jackson@ximian.com>
10106
10107         * SizeGrip.cs: New internal class that is used as a sizing
10108         grip control...hence the name.
10109
10110 2005-01-10  Peter Bartok  <pbartok@novell.com>
10111
10112         * Control.cs: Implemented proper TabIndex handling, now assigning
10113           a tabindex when a control is added to a container
10114         * GroupBox.cs (ctor): Now sets the Container style bit, required
10115           for Control.GetNextControl()
10116
10117 2005-01-09  Jackson Harper  <jackson@ximian.com>
10118
10119         * TextBoxBase.cs: Clear window when scrolling (fixes build).
10120
10121 2005-01-09  Peter Bartok <pbartok@novell.com>
10122
10123         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10124           XplatUIX11.cs: Added ability to control ScrollWindow expose and
10125           an overload for ScrollWindow to allow only scrolling a rectangle
10126
10127 2005-01-09  Peter Bartok <pbartok@novell.com>
10128
10129         * Form.cs:
10130           - Implemented SetDesktopBounds method
10131           - Implemented SetDesktopLocation method
10132
10133 2005-01-08  Jackson Harper  <jackson@ximian.com>
10134
10135         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
10136         the node count has changed, this removes to VScroll::Refresh calls
10137         when drawing.
10138
10139 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
10140
10141         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
10142
10143 2005-01-07  Jackson Harper  <jackson@ximian.com>
10144
10145         * TreeNode.cs: Just update the single node when it is
10146         checked. Don't refresh after toggling, the Expand/Collapse already
10147         handles this.
10148         * TreeView.cs: Respect clipping a little more when drawing. Try
10149         not to redraw things that don't need to be redrawn. Just hide the
10150         scrollbars when they are no longer needed instead of removing
10151         them, so they don't have to be created again and again.
10152         
10153 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
10154
10155         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
10156         coordinates to window space to place the caret properly, FIXED.
10157         Implement GetWindowState & SetWindowState
10158
10159 2005-01-06  Peter Bartok <pbartok@novell.com>
10160
10161         * Form.cs:
10162           - Implemented ClientSize property
10163           - Implemented DesktopBounds property
10164           - Implemented DesktopLocation property
10165           - Implemented IsRestrictedWindow property
10166           - Implemented Size property
10167           - Implemented TopLevel property
10168           - Implemented FormWindowState property
10169         * Control.cs:
10170           - Implemented GetTopLevel() method
10171           - Implemented SetTopLevel() method
10172         * X11Structs.cs (Atom):
10173           - Added AnyPropertyType definition
10174           - Added MapState definiton and updated XWindowAttribute struct
10175         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
10176         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
10177         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
10178         * XplatUIWin32.cs:
10179           - Implemented GetWindowState() and SetWindowState() methods
10180           - Fixed Win32GetWindowLong return type
10181         * XplatUIX11.cs:
10182           - Introduced central function for sending NET_WM messages
10183           - Implemented GetWindowState() and SetWindowState() methods
10184         * TextBoxBase.cs (set_Lines):
10185           - Now uses Foreground color for text added via Text property (Duh!)
10186           - Added code to remember programmatically requested size (fixes
10187             behaviour when Multiline is set after Size)
10188           - Added AutoSize logic
10189
10190 2005-01-06  Jackson Harper  <jackson@ximian.com>
10191
10192         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
10193
10194 2005-01-06  Jackson Harper  <jackson@ximian.com>
10195
10196         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10197         set to less then 0.
10198
10199 2005-01-06  Jackson Harper  <jackson@ximian.com>
10200
10201         * ScrollableControl.cs: Lazy init the scrollbars.
10202         
10203 2005-01-06  Jackson Harper  <jackson@ximian.com>
10204
10205         * Theme.cs: Speed up getting pens and solid brushes, by using
10206         their ARGB as a hash instead of tostring and not calling Contains.
10207
10208 2005-01-06  Peter Bartok <pbartok@novell.com>
10209
10210         * Form.cs:
10211           - Implemented OnActivated and OnDeactivate event trigger
10212           - Implemented Activate() method
10213           - Fixed ShowDialog() to activate the form that was active before
10214             the dialog was shown
10215         * XplatUIX11.cs:
10216           - Added global active_window var that tracks the currently active
10217             X11 window
10218           - Now always grabs Property changes from the root window to always
10219             catch changes on the active window property
10220           - Added code to PropertyNotify handler to send Active/Inactive
10221             messages when state changes. This puts X11 and Win32 en par on
10222             WM_ACTIVATE notifications (except for double notifications when
10223             the user clicks away from our modal window to another one of our
10224             windows)
10225
10226 2005-01-05  Jackson Harper  <jackson@ximian.com>
10227
10228         * ImageList.cs: Implment ctor
10229
10230 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10231
10232         * XplatUIOSX.cs: Implement Activate/SetTopmost
10233
10234 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10235
10236         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10237
10238 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10239
10240         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10241
10242 2005-01-05  Peter Bartok <pbartok@novell.com>
10243
10244         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10245           XplatUIOSX.cs: Added GetActive method to return the currently
10246           active window for the application (or null, if none is active)
10247         * Form.cs:
10248           - Implemented ActiveForm
10249           - Commented out owner assignment for modal dialogs (causes problems
10250             on Win32, since the owner will be disabled)
10251           - Reworked some Active/Focus handling (still incomplete)
10252         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10253           (causes problems on Win32, since the owner will be disabled)
10254         * IWin32Window: Added ComVisible attribute
10255
10256 2005-01-05  Peter Bartok <pbartok@novell.com>
10257
10258         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10259           required XplatUI functions.
10260
10261 2005-01-05  Peter Bartok <pbartok@novell.com>
10262
10263         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10264           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10265           to implement focus and activation handling; still incomplete and
10266           with debug output
10267
10268 2005-01-04  Peter Bartok <pbartok@novell.com>
10269
10270         * TextBoxBase.cs: Changed access level for Document property to
10271           match switch to internal for TextControl
10272
10273 2005-01-04  Peter Bartok <pbartok@novell.com>
10274
10275         * AccessibleObject: Added ComVisible attribute
10276
10277 2005-01-04  Jackson Harper  <jackson@ximian.com>
10278
10279         * X11Keyboard.cs: Remove unneeded var.
10280
10281 2005-01-04  Jackson Harper  <jackson@ximian.com>
10282
10283         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10284         but PAINT.
10285         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10286         ClientMessage. This makes apps exit cleanly (more often).
10287         
10288 2005-01-04  Jackson Harper  <jackson@ximian.com>
10289
10290         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10291         handling focus, return correct colors and fonts,
10292         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10293         handle selection, horizontal scrolling, and mouse interaction.
10294
10295 2005-01-04  Peter Bartok <pbartok@novell.com>
10296
10297         * ICommandExecutor.cs: Added
10298         * IDataGridColumnStyleEditingNotificationService.cs: Added
10299         * IFeatureSupport.cs: Added
10300         * IFileReaderService.cs: Added
10301         * IDataObject.cs: Added ComVisible attribute
10302         * AmbientProperties.cs: Added
10303         * BaseCollection.cs: Added missing attributes
10304         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10305         * BaseCollection.cs: Added missing attributes
10306         * Binding.cs: Added TypeConverter attribute
10307         * BindingContext.cs: Added DefaultEvent attribute
10308         * BindingsCollection.cs: Added DefaultEvent attribute
10309         * Button.cs: Added DefaultValue attribute
10310         * DragEventArgs.cs: Added ComVisible attribute
10311         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10312         * KeyEventArgs.cs: Added ComVisible attribute
10313         * KeyPressEventArgs.cs: Added ComVisible attribute
10314         * MouseEventArgs.cs: Added ComVisible attribute
10315         * NavigateEventArgs.cs: Added
10316         * NavigateEventHandler.cs: Added
10317         * FeatureSupport.cs: Added
10318         * OSFeature.cs: Added
10319         * Theme.cs: Added abstract Version property to support OSFeature
10320         * ThemeWin32Classic.cs: Added Version property to
10321           support OSFeature.Themes
10322         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10323           the proper styles to avoid background drawing are set, also doesn't
10324           match MS signature
10325         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10326         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10327         * ScrollEventArgs.cs: Added ComVisible attribute
10328         * SplitterEventArgs.cs: Added ComVisible attribute
10329         * AccessibleSelection.cs: Added Flags attribute
10330         * Appearance.cs: Added ComVisible attribute
10331         * Border3DSide.cs: Added ComVisible attribute
10332         * Border3DStyle.cs: Added ComVisible attribute
10333         * BorderStyle.cs: Added ComVisible attribute
10334         * DragAction.cs: Added ComVisible attribute
10335         * ErrorBlinkStyle.cs: Added
10336         * ScrollEventType.cs: Added ComVisible attribute
10337         * AnchorStyles.cs: Added Editor attribute
10338         * DockStyle.cs: Added Editor attribute
10339         * HorizontalAlignment.cs: Added ComVisible attribute
10340         * HelpEventArgs.cs: Added ComVisible attribute
10341         * PaintEventArgs.cs: Added IDisposable
10342
10343 2005-01-04  Peter Bartok <pbartok@novell.com>
10344
10345         * TextControl.cs: Switched Line, LineTag and Document classes to
10346           internal
10347
10348 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10349
10350         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10351         Simple mode, fixes, IntegralHeight, etc.
10352
10353 2005-01-04  Peter Bartok <pbartok@novell.com>
10354
10355         * TextBoxBase.cs: Using proper font variable now
10356
10357 2005-01-04  Peter Bartok <pbartok@novell.com>
10358
10359         * Form.cs (ShowDialog): Set parent to owner, if provided
10360         * GroupBox.cs: Removed unused vars
10361         * TextControl.cs:
10362           - Added GetHashCode() for Document and LineTag classes
10363           - Removed unused variables
10364           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10365             to allow translation between continuous char position and line/pos
10366         * CheckBox.cs: Removed vars that are provided by base class
10367         * RadioButton.cs: Removed vars that are provided by base class, added
10368           new keyword where required
10369         * LinkLabel.cs: Added new keyword where required
10370         * Control.cs (WndProc): Removed unused variable
10371         * TextBoxBase.cs:
10372           - Finished SelectionLength property
10373           - Implemented SelectionStart property
10374           - Implemented Text property
10375           - Removed unused vars
10376         * MessageBox.cs: Added new keyword where required
10377         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10378           WndProc signature
10379         * MenuAPI.cs: Added new keyword where required
10380         * ButtonBase.cs: Removed vars that are provided by base class, added
10381           new keyword where required
10382         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10383           argument to double, to allow compiling with csc 2.0 (Atsushi ran
10384           into this)
10385         * Application.cs (Run): Now triggers the ThreadExit event
10386         * CommonDialog.cs: Added new keyword where required; now properly sets
10387           parent (owner) for dialog
10388         * XplatUIX11.cs: Commented out unused vars
10389         * StatusBar.cs: Fixed signature for Text property
10390         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10391
10392 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10393
10394         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10395         TrackBar.cs, MonthCalendar.cs: remove unused vars
10396
10397 2005-01-03  Jackson Harper  <jackson@ximian.com>
10398
10399         * ThemeWin32Classic.cs:
10400         * X11Keyboard.cs: Remove unused vars.
10401
10402 2005-01-03  Peter Bartok  <pbartok@novell.com>
10403
10404         * TextBox.cs:
10405           - set_Text: Tied into TextControl
10406           - set_TextAlignment: Tied into TextControl
10407         * TextControl.cs:
10408           - Added alignment properties and implemented alignment handling
10409             and drawing (still has a bug, not generating proper expose events)
10410           - Added new Line() constructor to allow passing the line alignment
10411           - Fixed selection setting, properly handling end<start now
10412           - Added aligment considerations to RecalculateDocument()
10413         * TextBoxBase.cs:
10414           - Now properly enforces control height for single line controls
10415           - Added support for CharacterCasing
10416           - Added IsInputKey override
10417           - Fixed Keys.Enter logic
10418           - Added SetBoundsCore override
10419           - Fixed mouse selection handling
10420
10421 2005-01-03  Jackson Harper  <jackson@ximian.com>
10422
10423         * TreeView.cs:
10424           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10425           - Checkboxes are always aligned to the bottom of the node,
10426           regardless of item height.
10427           - Use the node bounds to draw the text so we can center it when
10428           the item height is greater then the font height.
10429           - Node::Bounds are only the text part of the node.
10430         * TreeNode.cs: New method to combine collapsing and unchecking all
10431           nodes recursively.
10432
10433 2005-01-02  Jackson Harper  <jackson@ximian.com>
10434
10435         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10436         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10437         tree when a check is changed. TODO: Only refresh the checked node.
10438
10439 2004-12-30  Jackson Harper  <jackson@ximian.com>
10440
10441         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10442         * TreeNode.cs: When collapsing make sure to never collapse the
10443         root node.
10444
10445 2004-12-29  Jackson Harper  <jackson@ximian.com>
10446
10447         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10448         
10449 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10450
10451         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10452
10453 2004-12-28  Peter Bartok  <pbartok@novell.com>
10454
10455         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10456           not yet assigned
10457
10458 2004-12-28  Peter Bartok  <pbartok@novell.com>
10459
10460         * Control.cs (WndProc): Added WM_HELP handler, now generates
10461           HelpRequested event
10462         * Form.cs: Added HelpButton property and required support code
10463         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10464
10465 2004-12-28  Peter Bartok  <pbartok@novell.com>
10466
10467         * CommonDialog.cs:
10468           - Made DialogForm.owner variable internal
10469           - Added check to ensure owner form is set before setting
10470             owner properties in CreateParams
10471
10472 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
10473
10474         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
10475           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
10476           GetCursorPos.  Fix major visibility issues.  Rework the windowing
10477           system to support borderless/titleless windows (implements menus).
10478           Fix GetWindowPos.  Implement initial background color support for
10479           views.
10480
10481 2004-12-28  Peter Bartok  <pbartok@novell.com>
10482
10483         * Form.cs (get_CreateParams): Make sure we have an owner before using
10484           the owner variable. Implement proper default if no owner exists
10485
10486 2004-12-28  Peter Bartok  <pbartok@novell.com>
10487
10488         * In preparation for making Managed.Windows.Forms the default build target
10489           for System.Windows.Forms, the following stubbed files were added.
10490           Dialogs are currently being implemented by contributors and are only
10491           short-term place holders.
10492         * ColorDialog.cs: Initial check-in (minmal stub)
10493         * DataGrid.cs: Initial check-in (minimal stub)
10494         * DataGridLineStyle.cs: Initial check-in (minimal stub)
10495         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10496         * DataGridTableStyle.cs: Initial check-in (minimal stub)
10497         * FontDialog.cs: Initial check-in (minimal stub)
10498         * FileDialog.cs: Initial check-in (minimal stub)
10499         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10500         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10501         * OpenFileDialog: Initial check-in (minimal stub)
10502         * IComponentEditorPageSite.cs: Initial check-in
10503         * Splitter.cs: Initial check-in (for Jackson)
10504         * SplitterEventArgs.cs: Initial check-in (for Jackson)
10505         * SplitterEventHandler.cs: Initial check-in (for Jackson)
10506         * TextBox.cs: Initial check-in; still needs some wiring to
10507           TextControl backend
10508         * Form.cs: Implemented ControlBox property
10509         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10510         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10511         * TextControl.cs: Added selection functionality; added todo header
10512         * TextBoxBase.cs:
10513           - Implemented Lines property
10514           - Implemented TextHeight property
10515           - Implemented SelectedText property
10516           - Implemented SelectionLength property
10517           - Implemented SelectAll method
10518           - Implemented ToString method
10519           - Removed and cleaned up some debug code
10520           - Implemented (still buggy) mouse text selection
10521
10522 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
10523
10524         * ComboBox.cs: Complete DropDownList implementation, fixes.
10525
10526 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10527
10528         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10529         * ComboBoxStyle.cs: ComboBoxStyle enum
10530         * ComboBox.cs: Initial work on ComboBox control
10531
10532 2004-12-21  Peter Bartok  <pbartok@novell.com>
10533
10534         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10535           forward so that anything that creates a window gets the default,
10536           also no longer uses Visible property in CreateParams to avoid
10537           walking up the parent chain and possibly get the wrong visible
10538           status. Fixed IsVisible to no longer walk up to the parent.
10539
10540 2004-12-21  Peter Bartok  <pbartok@novell.com>
10541
10542         * Form.cs (ShowDialog): Unset modality for the proper window
10543  
10544 2004-12-20  Peter Bartok  <pbartok@novell.com>
10545
10546         * CommonDialog.cs: Initial check-in
10547
10548 2004-12-20  Peter Bartok  <pbartok@novell.com>
10549
10550         * Control.cs (Visible): Now uses the parent window instead of the
10551           client area window for the property
10552
10553         * Form.cs
10554           - ShowDialog(): Now uses the proper window for modality
10555           - The default visibility state for the form parent is now false. This
10556             will prevent the user from seeing all the changes to the form and
10557             its controls before the application hits Application.Run()
10558           - Removed some stale commented out code
10559
10560         * NativeWindow.cs:
10561           - Added FindWindow() method to have a method to check for existence
10562             of a window handle
10563           - Added ability to override default exception handling (for example
10564             when debugging with VS.Net; to do this the ExternalExceptionHandler
10565             define must be set
10566           - Removed some useless debug output
10567
10568         * XplatUIX11.cs:
10569           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10570             not working as expected
10571           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10572             property to allow switching back to the modal window if focus is
10573             given to another one of our windows (Application Modal)
10574           - Now only sets override_redirect if we create a window
10575             without WS_CAPTION
10576           - Moved EventMask selection before mapping of newly created window
10577             so we can catch the map event as well
10578           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10579           - Added various Atom related DllImports
10580           - Implemented Exit() method
10581           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10582             in the CreateParams
10583
10584         * MessageBox.cs: Now properly deals with the FormParent window by
10585           providing an override the FormParent CreateParams property to
10586           set as POPUP instead of OVERLAPPED window.
10587
10588 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10589
10590         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10591         Minor code cleanup.
10592
10593 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10594         
10595         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10596
10597 2004-12-18  Peter Bartok  <pbartok@novell.com>
10598
10599         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10600           implementing SetModal() method
10601
10602 2004-12-18  Peter Bartok  <pbartok@novell.com>
10603
10604         * X11Structs.cs (XGCValues): Fixed type of function element
10605         * XplatUI.cs: Added ScrollWindow() method
10606         * XplatUIDriver.cs: Added ScrollWindow() abstract
10607         * XplatUIWin32.cs: Implemented ScrollWindow() method
10608         * XplatUIX11.cs: Implemented ScrollWindow() method
10609         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10610
10611 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10612
10613         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10614         Some more keyboard support (INCOMPLETE)
10615
10616 2004-12-17  Peter Bartok  <pbartok@novell.com>
10617
10618         * TextControl.cs:
10619         - Added color attribute to line tags.
10620         - Added color argument to all functions dealing with tags
10621         - Added color argument support to various functions
10622         - Fixed miss-calculation of baseline/shift in certain circumstances
10623
10624         * TextBoxBase.cs: Added new color option to test code
10625
10626 2004-12-17  Jackson Harper  <jackson@ximian.com>
10627
10628         * TreeNode.cs:
10629         * MonthCalendar.cs: Signature fixes
10630
10631 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10632
10633         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10634         keyboard event moved it.  Create a new graphics context for each paint resolves this
10635
10636 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10637
10638         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10639         Make caret exist and go blink blink.  Initial keyboard support.
10640         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10641         works.
10642
10643 2004-12-17  Jackson Harper  <jackson@ximian.com>
10644
10645         * XplatUIStructs.cs: Updated set of virtual keycodes.
10646         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10647
10648 2004-12-17  Jackson Harper  <jackson@ximian.com>
10649
10650         * XplatUIX11.cs: Prune old keyboard code.
10651
10652 2004-12-17  Jackson Harper  <jackson@ximian.com>
10653
10654         * XplatUIX11.cs: When generating mouse wparams get the modifier
10655         keys from the ModifierKeys property.
10656
10657 2004-12-17  Jackson Harper  <jackson@ximian.com>
10658
10659         * X11Keyboard.cs: Send up/down input when generating
10660         messages. Remove some unused vars.
10661
10662 2004-12-17  Jackson Harper  <jackson@ximian.com>
10663
10664         * TabControl.cs:
10665         * TreeView.cs: get rid of warnings.
10666
10667 2004-12-17  Jackson Harper  <jackson@ximian.com>
10668
10669         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10670
10671 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10672
10673         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10674           CheckedListBox.cs: Implementation
10675
10676 2004-12-17  Peter Bartok  <pbartok@novell.com>
10677
10678         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10679
10680 2004-12-16  Peter Bartok  <pbartok@novell.com>
10681
10682         * TextControl.cs:
10683           - InsertCharAtCaret(): Fixed start pos fixup
10684           - CaretLine_get: No longer derives the line from the tag, the tag
10685             could be stale if lines in the document have been added or deleted
10686           - RebalanceAfterDelete(): Fixed bug in balancing code
10687           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10688           - Line.Streamline(): Now can also elminate leading empty tags
10689           - DumpTree(): Added a few more tests and prevented exception on
10690             uninitialized data
10691           - Added Debug section for Combining lines
10692           - Delete(): Now copies all remaining properties of a line
10693           
10694         * TextBoxBase.cs:
10695           - Left mousebutton now sets the caret (and middle button still acts
10696             as formatting tester, which must go away soon)
10697           - Added Debug section for Deleting/Combining lines
10698           - Fixed calculations for UpdateView after Combining lines
10699
10700 2004-12-16  Peter Bartok  <pbartok@novell.com>
10701
10702         * TextControl.cs: Now properly aligns text on a baseline, using the
10703           new XplatUI.GetFontMetrics() method. Simplified several calculations
10704         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10705           defined
10706
10707 2004-12-16  Peter Bartok  <pbartok@novell.com>
10708
10709         * XplatUI.cs: Added GetFontMetrics() method
10710         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10711         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10712           into libgdiplus, our private GetFontMetrics function
10713         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10714         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10715
10716 2004-12-16  Jackson Harper  <jackson@ximain.com>
10717
10718         * XplatUIStruct.cs: Add enum for dead keys
10719         * X11Keyboard.cs: Map and unmap dead keys.
10720
10721 2004-12-16  Jackson Harper  <jackson@ximian.com>
10722
10723         * X11Keyboard.cs: Detect and use the num lock mask.
10724
10725 2004-12-16  Peter Bartok  <pbartok@novell.com>
10726
10727         * Control.cs (CreateGraphics): Added check to make sure the
10728           handle of the window exists before calling Graphics.FromHwnd()
10729
10730 2004-12-16  Peter Bartok  <pbartok@novell.com>
10731
10732         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10733           contains a lot of code that's not supposed to be there for the
10734           real thing, but required for developing/testing the textbox
10735           backend.
10736
10737 2004-12-16  Peter Bartok  <pbartok@novell.com>
10738
10739         * TextControl.cs:
10740         - Fixed Streamline method
10741         - Added FindTag method to Line
10742         - Added DumpTree method for debugging
10743         - Added DecrementLines() method for deleting lines
10744         - Fixed UpdateView to update the cursor to end-of-line on single-line
10745           updates
10746         - Added PositionCaret() method
10747         - Fixed MoveCaret(LineDown) to move into the last line, too
10748         - Added InsertChar overload
10749         - Fixed InsertChar tag offset calculations
10750         - Added DeleteChar() method
10751         - Added Combine() method for folding lines
10752         - Fixed Delete() method, no longer allocates wasted Line object and
10753           now copies all properties when swapping nodes
10754         - Delete() method now updates document line counter
10755
10756 2004-12-15  Jackson Harper  <jackson@ximian.com>
10757
10758         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10759         * X11Keyboard.cs: Expose the currently selected modifier keys
10760         through a property.
10761
10762 2004-12-15  Peter Bartok  <pbartok@novell.com>
10763
10764         * TextControl.cs: Initial check-in. Still incomplete
10765
10766 2004-12-15  Jackson Harper  <jackson@ximian.com>
10767
10768         * TreeNode.cs:
10769         * TreeView.cs: Fix build on csc (second time today ;-))
10770
10771 2004-12-15  Jackson Harper  <jackson@ximian.com>
10772
10773         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10774         is calculated and use this for click testing.
10775         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10776
10777 2004-12-15  Jackson Harper  <jackson@ximian.com>
10778
10779         * TreeView.cs: Pass the nodes image index to the image list when
10780         drawing that image.
10781
10782 2004-12-15  Jackson Harper  <jackson@ximian.com>
10783
10784         * X11Keyboard.cs: Set messages hwnd.
10785         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10786         post_message calls.
10787
10788 2004-12-15  Jackson Harper  <jackson@ximian.com>
10789
10790         * X11Keyboard.cs: Fix to compile with csc.
10791         
10792 2004-12-15  Jackson Harper  <jackson@ximian.com>
10793
10794         * X11Structs.cs: Add key mask values
10795         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10796         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10797         down/up foo into WM_CHAR foo
10798         * KeyboardLayouts.cs: Common keyboard layouts
10799         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10800         post messages into the main queue.
10801
10802 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10803
10804         * Button.cs: implement ProcessMnemonic
10805         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10806           brushes everytime
10807         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10808         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10809
10810 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10811         
10812         * MonthCalendar.cs: Implemented click-hold for next/previous month
10813           and date selection
10814           
10815 2004-12-11  Peter Bartok  <pbartok@novell.com>
10816
10817         * X11Structs.cs:
10818           - Added XKeyboardState (moved from XplatUIX11.cs)
10819           - Added XCreateGC related enums and structures
10820           - Added GXFunction for XSetFunction
10821
10822         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10823
10824         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10825           CaretVisible() calls
10826
10827         * ToolTip.cs: Added code to prevent stealing focus from app windows
10828
10829         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10830           DestroyCaret, SetCaretPos and CaretVisible)
10831
10832         * XplatUIX11.cs:
10833           - Added implementation for caret functions
10834           - Moved hover variables into a struct, to make it a bit easier
10835             on the eyes and to debug
10836           - Removed XKeyboardState (moved to XplatUIX11.cs)
10837           - Moved Keyboard properties into the properties region
10838
10839         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10840           call to get a graphics context for our control
10841
10842         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10843
10844         * TreeView.cs: Fixed bug. No matter what color was set it would always
10845           return SystemColors.Window
10846
10847         * XplatUIWin32.cs: Implemented caret overrides
10848
10849 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10850
10851         * ListBox.cs: fire events, implement missing methods and properties,
10852         sorting.
10853
10854 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10855
10856         * MonthCalendar.cs: invalidation bug fixing
10857         * ThemeWin32Classic.cs: paint fixing
10858
10859 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10860
10861         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10862         prepare the CGContextRef there now.
10863
10864 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10865
10866         * MonthCalendar.cs:
10867           - optimisationL only invalidate areas that have changed
10868         * ThemeWin32Classic.cs:
10869           - only paint parts that intersect with clip_area
10870
10871 2004-12-09  Peter Bartok  <pbartok@novell.com>
10872
10873         * Application.cs: Undid changes from r37004 which cause problems
10874         on X11
10875
10876 2004-12-09  Ravindra  <rkumar@novell.com>
10877
10878         * ToolBar.cs: Added support for displaying ContextMenu
10879         attached to a button on ToolBar.
10880         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10881         property.
10882
10883 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10884
10885         * Label.cs: autosize works in text change and removes unnecessary
10886         invalidate
10887
10888 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10889
10890         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10891         remove warnings
10892
10893 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10894
10895         * XplatUIOSX.cs: Added mouse move/click/grab support
10896         Remove some debugging WriteLines not needed anymore.
10897         Add window resizing/positioning.
10898         Fix visibility on reparenting.
10899
10900 2004-12-08  Peter Bartok  <pbartok@novell.com>
10901
10902         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10903
10904 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10905
10906         * XplatUIOSX.cs: Initial checkin
10907         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10908
10909 2004-12-03  Ravindra <rkumar@novell.com>
10910
10911         * ListView.cs: Added some keybindings and fixed scrolling.
10912         ScrollBars listen to ValueChanged event instead of Scroll
10913         Event. This would let us take care of all changes being
10914         done in the scrollbars' values programmatically or manually.
10915         * ListView.cs (CanMultiselect): Added a check for shift key.
10916         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10917         * ListViewItem.cs (Clone): Fixed. We need to make a copy
10918         of ListViewSubItemCollection as well.
10919
10920 2004-12-06  Peter Bartok <pbartok@novell.com>
10921
10922         * Control.cs (Parent): Added check and exception to prevent
10923         circular parenting
10924
10925 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
10926
10927         * ListBox.cs: implemented clipping, selection single and multiple,
10928         bug fixing
10929
10930 2004-12-03  Ravindra <rkumar@novell.com>
10931
10932         * ListView.cs (ListView_KeyDown):
10933         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10934         when CTRL key is pressed.
10935         * ListViewItem.cs (Selected): Fixed setting the property.
10936
10937 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10938
10939         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10940
10941         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10942         MinimizeBox, ShowInTaskbar, TopMost properties.
10943
10944         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10945         will be implemented).
10946
10947 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10948
10949         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10950
10951         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10952         tests.
10953         
10954         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10955         
10956         * TreeView.cs: BackColor is Colors.Window.
10957
10958 2004-12-01  Jackson Harper  <jackson@ximian.com>
10959
10960         * TreeView.cs: When resizing the tree if the user is making it
10961         smaller we don't get expose events, so we need to handle adding
10962         the horizontal scrollbar in the size changed handler as well as
10963         the expose handler.
10964
10965 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
10966
10967         * DrawItemState.cs: fixes wrong enum values
10968
10969 2004-12-01  Jackson Harper  <jackson@ximian.com>
10970
10971         * TreeView.cs: Resize the hbar as well as the vbar on resize.
10972
10973 2004-12-01  Jackson Harper  <jackson@ximian.com>
10974
10975         * NodeLabelEditEventArgs.cs:
10976         * NodeLabelEditEventHandler.cs:
10977         * OpenTreeNodeEnumerator.cs:
10978         * TreeNode.cs:
10979         * TreeNodeCollection.cs:
10980         * TreeView.cs:
10981         * TreeViewAction.cs:
10982         * TreeViewCancelEventArgs.cs:
10983         * TreeViewCancelEventHandler.cs:
10984         * TreeViewEventArgs.cs:
10985         * TreeViewEventHandler.cs: Initial implementation.
10986
10987 2004-12-01  Ravindra <rkumar@novell.com>
10988
10989         * ListView.cs (CalculateListView): Fixed scrolling related
10990         calculations. Also, removed some debug statements from other
10991         places.
10992         * ListViewItem.cs: Changed access to 'selected' instance variable
10993         from private to internal.
10994         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10995
10996 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
10997
10998         * ThemeWin32Classic.cs: remove cache of brush and pens for
10999         specific controls and use the global system, fixes scrollbutton
11000         bugs (for small sizes, disabled, etc)
11001         
11002         * ScrollBar.cs: does not show the thumb for very small controls
11003         (as MS) and allow smaller buttons that the regular size
11004
11005 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
11006
11007         * UpDownBase.cs: Add abstract methods for the interface.
11008         Add new virtual methods (need to be hooked up to TextEntry when it
11009         exists).
11010         Add override methods for most features.
11011         Computes the size, forces the height of the text entry.
11012
11013         * NumericUpDown.cs: Put here the current testing code.
11014
11015         * Set eol-style property on all files that do not have mixed line
11016         endings, to minimize the future problems.  There are still a few
11017         files with mixed endings, and someone should choose whether they
11018         want to move it or not.
11019
11020 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
11021
11022         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
11023         System.Colors
11024         
11025 2004-11-30  Ravindra <rkumar@novell.com>
11026
11027         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
11028         drawing and replaced use of SystemColors by theme colors.
11029         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
11030         * ListView.cs (ListViewItemCollection.Add): Throw exception when
11031         same ListViewItem is being added more than once.
11032
11033 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
11034
11035         * MonthCalendar.cs:
11036           - ControlStyles love to make the control not flicker
11037           
11038 2004-11-30  Peter Bartok  <pbartok@novell.com>
11039
11040         * CharacterCasing.cs: Added
11041
11042 2004-11-29  Peter Bartok  <pbartok@novell.com>
11043
11044         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11045           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
11046           I am removing these files as they conflict with already completed
11047           work. While it is fantastic to get contributions to MWF, I
11048           respectfully ask that everyone please coordinate their contributions
11049           through mono-winforms-list or #mono-winforms at this time. We're
11050           explicitly avoiding stubbing and don't want controls that don't have
11051           their basic functionality implemented in svn. Please also see
11052           http://www.mono-project.com/contributing/winforms.html
11053
11054
11055 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
11056
11057         * Application.cs (ModalRun): Don't hang after exit.
11058
11059         * Theme.cs: New TreeViewDefaultSize property.
11060
11061         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
11062         with less hardcoded SystemColors constant.
11063         Implemented TreeViewDefaultSize.
11064
11065         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
11066         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
11067
11068
11069 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
11070
11071         * MonthCalendar.cs:
11072           - Fix NextMonthDate and PrevMonthDate click moving calendar
11073
11074 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11075
11076         * MonthCalendar.cs:
11077           - Fix usage of ScrollChange Property when scrolling months
11078
11079 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
11080
11081         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
11082          - Fixes menu destroying
11083          - Support adding and removing items on already created menus
11084
11085 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11086
11087         * MonthCalendar.cs:
11088           - Re-worked all bolded dates handling to match win32
11089         * ThemeWin32Classic.cs:
11090           - Fixed rendering with bolded dates
11091
11092 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11093
11094         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11095         - Horizontal scroolbar
11096         - Multicolumn
11097         - Fixes
11098
11099
11100 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11101
11102         * MonthCalendar.cs:
11103           - Fix Usage of MaxSelectionCount from SelectionRange
11104           - Fixed Shift + Cursor Selection
11105           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11106           - Fixed normal cursor selection to be compat with win32
11107           - Fixed Shift + Mouse Click selection
11108
11109 2004-11-24  Peter Bartok <pbartok@novell.com>
11110
11111         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
11112         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
11113         * XplatUIX11.cs:
11114           - CreatedKeyBoardMsg now updates keystate with Alt key
11115           - Added workaround for timer crash to CheckTimers, Jackson will
11116             develop a proper fix and check in later
11117           - Implemented DispatchMessage
11118           - Removed calling the native window proc from GetMessage (call
11119             now moved to DispatchMessage)
11120
11121         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
11122           the keydata (Fixes bug #69831)
11123
11124         * XplatUIWin32.cs:
11125           - (DispatchMessage): Switched to return IntPtr
11126           - Added DllImport for SetFocus
11127
11128 2004-11-24  Ravindra <rkumar@novell.com>
11129
11130         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
11131         background drawing.
11132         * ListViewItem.cs: Fixed various properties, calculations
11133         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
11134         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
11135         and some internal properties. Fixed MouseDown handler and Paint
11136         method.
11137
11138 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11139
11140         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
11141
11142 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11143
11144         * ContainerControl.cs: correct accidental check in of local changes
11145
11146 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11147
11148         * ThemeWin32Classic.cs:
11149                 - Fixed Drawing Last month in grid (sometimes not showing)
11150         * MonthCalendar.cs:
11151                 - Fixed title width calculation bug (makeing title small)
11152
11153 2004-11-23  Peter Bartok <pbartok@novell.com>
11154
11155         * XplatUIX11.cs:
11156           - Added generation of WM_MOUSEHOVER event
11157           - Added missing assignment of async_method atom
11158           - Fixed WM_ERASEBKGND; now only redraws the exposed area
11159
11160 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11161
11162         * ThemeWin32Classic.cs:
11163                 - Fixed Drawing of today circle when showtodaycircle not set
11164                 - fixed drawing of first and last month in the grid (gay dates)
11165         * MonthCalendar.cs:
11166                 - Fixed Drawing of today circle
11167                 - Fixed drawing of grady dates
11168                 - Fixed HitTest for today link when ShowToday set to false
11169                 - Fixed DefaultSize to obey ShowToday
11170
11171 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11172
11173         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
11174         * System.Windows.Forms/Theme.cs
11175         * MonthCalendar.cs: added for MonthCalendar
11176         * SelectionRange.cs: added for MonthCalendar
11177         * Day.cs: added for MonthCalendar: added for MonthCalendar
11178         * DateRangeEventArgs.cs: added for MonthCalendar
11179         * DateRangeEventHandler.cs: added for MonthCalendar
11180
11181 2004-11-22  Ravindra <rkumar@novell.com>
11182
11183         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
11184         property.
11185
11186 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
11187
11188         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
11189         event handler.
11190         
11191         * NumericUpDown.cs: Added new implementation.
11192         * UpDownBase.cs: Added new implementation.
11193
11194         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11195         implementations.
11196         
11197         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11198         implementations.
11199
11200         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11201         methods.
11202
11203 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11204
11205         * Timer.cs  (Dispose): Should call the base dispose when
11206         overriding.
11207
11208 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11209
11210         * ScrollBar.cs: updates thumb position when max, min or increment
11211         is changed
11212
11213 2004-11-21  Ravindra <rkumar@novell.com>
11214
11215         * ListView.cs: Implemented item selection, activation and
11216         column header style. Fixed properties to do a redraw, if
11217         required. Added support for MouseHover, DoubleClick, KeyDown
11218         and KeyUp event handling and some minor fixes.
11219         * ListViewItem.cs: Fixed constructor.
11220         * ThemeWin32Classic.cs: Improved drawing for ListView.
11221
11222 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11223
11224         * ThemeWin32Classic.cs: initial listbox drawing code
11225         * DrawMode.cs: new enumerator
11226         * ListControl.cs: stubbed class
11227         * ListBox.cs: initial implementation
11228         * Theme.cs: new methods definitions
11229         * SelectionMode.cs: new enumerator
11230
11231 2004-11-17  Peter Bartok  <pbartok@novell.com>
11232
11233         * XplatUIWin32.cs: Added double-click events to the class style
11234         * Control.cs (WndProc):
11235           - Added handling of click-count to MouseDown/ MouseUp events.
11236           - Added handling of middle and right mouse buttons
11237           - Removed old debug code
11238
11239 2004-11-17  Jackson Harper  <jackson@ximian.com>
11240
11241         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11242
11243 2004-11-17  Ravindra <rkumar@novell.com>
11244
11245         * ListView.cs: Added event handling for MouseMove/Up/Down.
11246         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11247         * ThemeWin32Classic.cs: We need to clear the graphics context and
11248         draw column header in a proper state.
11249
11250
11251 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11252
11253         *  Menu.cs: fixes signature
11254
11255 2004-11-16  Peter Bartok  <pbartok@novell.com>
11256
11257         * XplatUIX11.cs (GetMessage): Implemented generation of
11258           double click mouse messages
11259
11260 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11261
11262         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11263         not by menu
11264
11265 2004-11-11  Peter Bartok  <pbartok@novell.com>
11266
11267         * HandleData.cs: Added Visible property
11268         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11269           HandleData
11270         * XplatUIX11.cs: Removed old debug leftovers
11271         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11272         * Control.cs (WndProc): Removed old debug leftovers,
11273           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11274           needed WM_SIZE handling
11275
11276 2004-11-11  Jackson Harper  <jackson@ximian.com>
11277
11278         * OwnerDrawPropertyBag.cs:
11279         * TreeViewImageIndexConverter.cs: Initial implementation
11280
11281 2004-11-10  Jackson Harper  <jackson@ximian.com>
11282
11283         * ThemeWin32Classic.cs:
11284         * TabControl.cs: instead of moving tabs by the slider pos just
11285         start drawing at the tab that is offset by the slider. This way
11286         scrolling always moves by exactly one tab.
11287
11288 2004-11-10  Jackson Harper  <jackson@ximian.com>
11289
11290         * TabControl.cs: You can only scroll left when the slider has
11291         already ben moved right.
11292         
11293 2004-11-10  Jackson Harper  <jackson@ximian.com>
11294
11295         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11296         the clip area.
11297         
11298 2004-11-10  Jackson Harper  <jackson@ximian.com>
11299
11300         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11301         clip area.
11302         
11303 2004-11-09  Jackson Harper  <jackson@ximian.com>
11304
11305         * TabControl.cs (CalcXPos): New helper method so we can determine
11306         the proper place to start drawing vertical tabs.
11307         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11308         
11309 2004-11-09  Jackson Harper  <jackson@ximian.com>
11310
11311         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11312         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11313         and Bottom, left and right are illegal values for this and
11314         multiline is enabled when the alignment is set to left or right.
11315         (DrawTab): Each alignment block should draw the text itself now
11316         because Left requires special love. Also add rendering for Left
11317         aligned tabs.
11318         
11319 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11320
11321         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11322         does not destroy the windows, removes debugging messages
11323
11324 2004-11-09  jba  <jba-mono@optusnet.com.au>
11325
11326         * ThemeWin32Classic.cs
11327         (DrawButtonBase): Fix verticle text rect clipping in windows
11328         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11329         rendering and incorrect text rect clipping
11330         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11331         rendering and incorrect text rect clipping
11332         
11333 2004-11-08  Jackson Harper  <jackson@ximian.com>
11334
11335         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11336         bottom when they are bottom aligned so the bottoms of the tabs get
11337         displayed.
11338         * TabControl.cs (DropRow): Move rows up instead of down when the
11339         tab control is bottom aligned.
11340
11341 2004-11-08 13:59  pbartok
11342
11343         * XplatUIX11.cs:
11344           - Added handling for various window styles
11345           - Added handling for popup windows
11346           - Added SetTopmost handling
11347
11348 2004-11-08 13:55  pbartok
11349
11350         * XplatUIWin32.cs:
11351           - Added argument to SetTopmost method
11352           - Fixed broken ClientToScreen function
11353
11354 2004-11-08 13:53  pbartok
11355
11356         * XplatUIStructs.cs:
11357           - Added missing WS_EX styles
11358
11359 2004-11-08 13:53  pbartok
11360
11361         * XplatUI.cs, XplatUIDriver.cs:
11362           - Added argument to SetTopmost
11363
11364 2004-11-08 13:52  pbartok
11365
11366         * X11Structs.cs:
11367           - Added XSetWindowAttributes structure
11368           - Improved XWindowAttributes structure
11369           - Added SetWindowValuemask enum
11370           - Added window creation arguments enum
11371           - Added gravity enum
11372           - Added Motif hints structure
11373           - Added various Motif flags and enums
11374           - Added PropertyMode enum for property functions
11375
11376 2004-11-08 13:50  pbartok
11377
11378         * Form.cs:
11379           - Fixed arguments for updated SetTopmost method
11380
11381 2004-11-08 13:49  pbartok
11382
11383         * ToolTip.cs:
11384           - Fixed arguments for updated SetTopmost function
11385           - Fixed usage of PointToClient
11386
11387 2004-11-08 13:44  pbartok
11388
11389         * MenuAPI.cs:
11390           - Added Clipping of children and siblings
11391
11392 2004-11-08 13:41  pbartok
11393
11394         * MainMenu.cs:
11395           - Removed SetMenuBarWindow call. We do this in Form.cs
11396
11397 2004-11-08 13:40  jackson
11398
11399         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11400           scrolling jimmi in the correct location with bottom aligned tabs
11401
11402 2004-11-08 13:36  pbartok
11403
11404         * ContainerControl.cs:
11405           - Implemented BindingContext
11406           - Implemented ParentForm
11407
11408 2004-11-08 12:46  jackson
11409
11410         * TabControl.cs: Put bottom rendered tabs in the right location
11411
11412 2004-11-08 07:15  jordi
11413
11414         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11415           removes dead code
11416
11417 2004-11-05 17:30  jackson
11418
11419         * TabControl.cs: When selected tabs are expanded make sure they
11420           don't go beyond the edges of the tab control
11421
11422 2004-11-05 14:57  jackson
11423
11424         * TabControl.cs: Reset show_slider so if the control is resized to
11425           a size where it is no longer needed it's not displayed anymore
11426
11427 2004-11-05 13:16  jackson
11428
11429         * TabControl.cs: Make tab pages non visible when added to the
11430           control
11431
11432 2004-11-05 12:42  jackson
11433
11434         * TabControl.cs: Implement SizeMode.FillToRight
11435
11436 2004-11-05 12:16  jackson
11437
11438         * Control.cs: Do not call CreateHandle if the handle is already
11439           created
11440
11441 2004-11-05 11:46  jackson
11442
11443         * TabControl.cs: Remove superflous call to CalcTabRows
11444
11445 2004-11-05 09:07  jackson
11446
11447         * XplatUIX11.cs: Update for Mono.Posix changes
11448
11449 2004-11-05 07:00  ravindra
11450
11451         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11452           scrolling.
11453
11454 2004-11-04 22:47  jba
11455
11456         * ThemeWin32Classic.cs:
11457           - Fix Button rendering for FlatStyle = Flat or Popup
11458           - Fix RadioButton and CheckBox rendering when Appearance = Button
11459             (normal and flatstyle).
11460           - Correct outer rectangle color when drawing focus rectangle
11461           - Adjust button bounds to be 1 px smaller when focused
11462           - Make button not draw sunken 3d border when pushed (windows compat)
11463           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11464           - Offset the text in RadioButton and Checkbox when being rendered as
11465           a button.
11466           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11467           radiobuttons
11468           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11469           - Fixed disabled text rendering for normally rendered radiobuttons
11470
11471 2004-11-04 10:26  jackson
11472
11473         * TabControl.cs: Recalculate tab rows when resizing
11474
11475 2004-11-04 07:47  jordi
11476
11477         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11478           collection completion, drawing issues, missing features
11479
11480 2004-11-04 05:03  ravindra
11481
11482         * ScrollBar.cs:
11483                 - We need to recalculate the Thumb area when
11484                 LargeChange/maximum/minimum values are changed.
11485           - We set the 'pos' in UpdatePos() method to minimum, if it's less
11486                 than minimum. This is required to handle the case if large_change is
11487                 more than max, and use LargeChange property instead of large_change
11488                 variable.
11489           - We return max+1 when large_change is more than max, like MS does.
11490
11491 2004-11-04 04:29  ravindra
11492
11493         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11494                 - Changed default value signatures (prefixed all with ListView).
11495                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11496                 ListView.
11497           - Fixed calculations for ListViewItem and implemented Clone()
11498           method.
11499
11500 2004-11-04 04:26  ravindra
11501
11502         * Theme.cs, ThemeWin32Classic.cs:
11503                 - Changed default ListView values signatures (prefixed all with
11504                 ListView).
11505           - Fixed default size values for VScrollBar and HScrollBar.
11506                 - Fixed DrawListViewItem method.
11507
11508 2004-11-04 04:05  ravindra
11509
11510         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11511
11512 2004-11-04 04:04  ravindra
11513
11514         * ImageList.cs: Implemented the missing overload for Draw method.
11515
11516 2004-11-03 19:29  jackson
11517
11518         * TabControl.cs: Handle dropping rows on selection properly
11519
11520 2004-11-03 11:59  jackson
11521
11522         * TabControl.cs: remove debug code
11523
11524 2004-11-03 11:52  jackson
11525
11526         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11527           the scrolly widgerywoo
11528
11529 2004-11-02 13:52  jackson
11530
11531         * TabControl.cs: Resize the tab pages and tabs when the tab control
11532           is resized
11533
11534 2004-11-02 13:40  jackson
11535
11536         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11537           selected tab to the bottom
11538
11539 2004-11-02 13:39  jackson
11540
11541         * TabPage.cs: Store the tab pages row
11542
11543 2004-11-02 12:33  jordi
11544
11545         * MenuItem.cs: fixes handle creation
11546
11547 2004-11-02 11:42  jackson
11548
11549         * TabControl.cs: signature fix
11550
11551 2004-11-02 08:56  jackson
11552
11553         * TabControl.cs: Calculate whether the tab is on an edge properly.
11554           Remove top secret debugging code
11555
11556 2004-11-01 19:57  jackson
11557
11558         * TabControl.cs: Add click handling, and proper sizing
11559
11560 2004-11-01 19:47  jackson
11561
11562         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11563           tab controls
11564
11565 2004-11-01 19:39  jackson
11566
11567         * TabPage.cs: add internal property to store the bounds of a tab
11568           page
11569
11570 2004-10-30 04:23  ravindra
11571
11572         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11573           values.
11574
11575 2004-10-30 04:21  ravindra
11576
11577         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11578           fixed calculations.
11579
11580 2004-10-30 03:06  pbartok
11581
11582         * XplatUIX11.cs:
11583           - Removed extension of DllImported libs
11584
11585 2004-10-29 09:55  jordi
11586
11587         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11588           navigation, itemcollection completion, menu fixes
11589
11590 2004-10-27 22:58  pbartok
11591
11592         * XplatUIX11.cs:
11593           - Now throws a nice error message when no X display could be opened
11594
11595 2004-10-26 13:51  jordi
11596
11597         * ListView.cs: removes warning
11598
11599 2004-10-26 03:55  ravindra
11600
11601         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11602           ThemeWin32Classic.cs: Some formatting for my last checkins.
11603
11604 2004-10-26 03:36  ravindra
11605
11606         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11607           control and default values.
11608
11609 2004-10-26 03:35  ravindra
11610
11611         * Theme.cs: Added some default values for ListView control.
11612
11613 2004-10-26 03:33  ravindra
11614
11615         * ToolBar.cs: ToolBar should use the user specified button size, if
11616           there is any. Added a size_specified flag for the same.
11617
11618 2004-10-26 03:33  ravindra
11619
11620         * ColumnHeader.cs: Added some internal members and calculations for
11621           ColumnHeader.
11622
11623 2004-10-26 03:32  ravindra
11624
11625         * ListViewItem.cs: Calculations for ListViewItem.
11626
11627 2004-10-26 03:31  ravindra
11628
11629         * ListView.cs: Added some internal members and calculations for
11630           ListView.
11631
11632 2004-10-22 13:31  jordi
11633
11634         * MenuAPI.cs: speedup menus drawing
11635
11636 2004-10-22 13:16  jackson
11637
11638         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11639           expose event
11640
11641 2004-10-22 11:49  jackson
11642
11643         * Control.cs: oops
11644
11645 2004-10-22 11:41  jackson
11646
11647         * Control.cs: Check to see if the window should have its background
11648           repainted by X when drawing.
11649
11650 2004-10-22 11:31  jackson
11651
11652         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11653           clear is true, this way we do not get flicker from X repainting the
11654           background
11655
11656 2004-10-22 11:28  jackson
11657
11658         * XEventQueue.cs: Queue properly
11659
11660 2004-10-21 09:38  jackson
11661
11662         * XEventQueue.cs: Fix access modifier
11663
11664 2004-10-21 09:36  jackson
11665
11666         * XEventQueue.cs: Don't loose messages
11667
11668 2004-10-21 09:22  jackson
11669
11670         * XEventQueue.cs: Don't loose messages
11671
11672 2004-10-20 04:15  jordi
11673
11674         * BootMode.cs: enum need it by SystemInfo
11675
11676 2004-10-19 21:58  pbartok
11677
11678         * XplatUIWin32.cs:
11679           - Small sanity check
11680
11681 2004-10-19 21:56  pbartok
11682
11683         * Form.cs:
11684           - Added private FormParentWindow class which acts as the container
11685             for our form and as the non-client area where menus are drawn
11686           - Added/Moved required tie-ins to Jordi's menus
11687           - Fixed/Implemented the FormStartPosition functionality
11688
11689 2004-10-19 21:52  pbartok
11690
11691         * Control.cs:
11692           - Removed unneeded locals
11693           - Added code to all size and location properties to understand and
11694             deal with the parent container of Form
11695
11696 2004-10-19 21:33  pbartok
11697
11698         * Application.cs:
11699           - Fixed to deal with new Form subclasses for menus
11700
11701 2004-10-19 17:48  jackson
11702
11703         * XEventQueue.cs: commit correct version of file
11704
11705 2004-10-19 16:50  jackson
11706
11707         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11708
11709 2004-10-19 16:15  jordi
11710
11711         * MenuAPI.cs: MenuBarCalcSize returns the height
11712
11713 2004-10-19 08:31  pbartok
11714
11715         * Control.cs:
11716           - Added missing call to PreProcessMessage before calling OnXXXKey
11717           methods
11718
11719 2004-10-19 00:04  ravindra
11720
11721         * ToolTip.cs: Fixed constructor.
11722
11723 2004-10-18 09:31  jordi
11724
11725         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11726
11727 2004-10-18 09:26  jordi
11728
11729         * MenuItem.cs: fixes MenuItem class signature
11730
11731 2004-10-18 08:56  jordi
11732
11733         * MenuAPI.cs: prevents windows from showing in the taskbar
11734
11735 2004-10-18 00:28  ravindra
11736
11737         * ToolTip.cs: Suppressed a warning message.
11738
11739 2004-10-18 00:27  ravindra
11740
11741         * Control.cs: Default value of visible property must be true.
11742
11743 2004-10-17 23:19  pbartok
11744
11745         * ToolTip.cs:
11746           - Complete implementation
11747
11748 2004-10-17 23:19  pbartok
11749
11750         * XplatUIX11.cs:
11751           - Added EnableWindow method
11752           - Added SetModal stub
11753           - Added generation of WM_ACTIVATE message (still needs testing)
11754           - Added SetTopMost stub
11755           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11756
11757 2004-10-17 23:17  pbartok
11758
11759         * XplatUIWin32.cs:
11760           - Removed VirtualKeys to XplatUIStructs
11761           - Implemented SetTopMost method
11762           - Implemented EnableWindow method
11763           - Bugfix in ScreenToClient()
11764           - Bugfixes in ClientToScreen()
11765
11766 2004-10-17 22:51  pbartok
11767
11768         * XplatUIStructs.cs:
11769           - Added WS_EX styles to WindowStyles enumeration
11770
11771 2004-10-17 22:50  pbartok
11772
11773         * XplatUI.cs, XplatUIDriver.cs:
11774           - Added method for enabling/disabling windows
11775           - Added method for setting window modality
11776           - Added method for setting topmost window
11777
11778 2004-10-17 22:49  pbartok
11779
11780         * ThemeWin32Classic.cs:
11781           - Added ToolTip drawing code
11782
11783 2004-10-17 22:49  pbartok
11784
11785         * Theme.cs:
11786           - Added ToolTip abstracts
11787
11788 2004-10-17 22:47  pbartok
11789
11790         * Form.cs:
11791           - Fixed Form.ControlCollection to handle owner relations
11792           - Added Owner/OwnedForms handling
11793           - Implemented Z-Ordering for owned forms
11794           - Removed unneeded private overload of ShowDialog
11795           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11796             so I hope)
11797           - Fixed Close(), had wrong default
11798           - Added firing of OnLoad event
11799           - Added some commented out debug code for Ownership handling
11800
11801 2004-10-17 22:16  pbartok
11802
11803         * Control.cs:
11804           - Fixed/implemented flat list of controls
11805
11806 2004-10-17 22:14  pbartok
11807
11808         * Application.cs:
11809           - Added code to simulate modal dialogs on Win32
11810
11811 2004-10-17 16:11  jordi
11812
11813         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11814           mouse event
11815
11816 2004-10-17 13:39  jordi
11817
11818         * MenuAPI.cs: menu drawing fixes
11819
11820 2004-10-15 09:10  ravindra
11821
11822         * StructFormat.cs: General Enum.
11823
11824 2004-10-15 09:09  ravindra
11825
11826         * SizeGripStyle.cs: Enum for Form.
11827
11828 2004-10-15 09:08  ravindra
11829
11830         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11831           in Theme for ListView.
11832
11833 2004-10-15 09:06  ravindra
11834
11835         * ColumnHeader.cs: Flushing some formatting changes.
11836
11837 2004-10-15 09:05  ravindra
11838
11839         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11840           style.
11841
11842 2004-10-15 09:03  ravindra
11843
11844         * ListView.cs: Implemented Paint method and fixed coding style.
11845
11846 2004-10-15 07:34  jordi
11847
11848         * MenuAPI.cs: fix for X11
11849
11850 2004-10-15 07:32  ravindra
11851
11852         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11853                 - Renamed Paint() method to Draw() for clarity. Also, moved
11854                 DrawImage() to OnPaint().
11855
11856 2004-10-15 07:25  ravindra
11857
11858         * CheckBox.cs, RadioButton.cs:
11859                 - Removed Redraw (), we get it from ButtonBase.
11860                 - Implemented Paint (), to do class specific painting.
11861
11862 2004-10-15 07:16  ravindra
11863
11864         * ButtonBase.cs:
11865                 - Redraw () is not virtual now.
11866                 - Added an internal virtual method Paint (), so that
11867                 derived classes can do their painting on their own.
11868                 - Modified OnPaint () to call Paint ().
11869
11870 2004-10-15 06:43  jordi
11871
11872         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11873           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11874
11875 2004-10-15 00:30  ravindra
11876
11877         * MessageBox.cs:
11878                 - MessageBox on windows does not have min/max buttons.
11879                 This change in CreateParams fixes this on Windows. We
11880                 still need to implement this windowstyle behavior in
11881                 our X11 driver.
11882
11883 2004-10-14 05:14  ravindra
11884
11885         * ToolBar.cs:
11886                 - Changed Redraw () to do a Refresh () always.
11887                 - Fixed the MouseMove event handling when mouse is pressed,
11888                 ie drag event handling.
11889                 - Replaced the usage of ToolBarButton.Pressed property to
11890                 ToolBarButton.pressed internal variable.
11891
11892 2004-10-14 05:10  ravindra
11893
11894         * ToolBarButton.cs:
11895                 - Added an internal member 'inside' to handle mouse move
11896                 with mouse pressed ie mouse drag event.
11897                 - Changed 'Pressed' property to return true only when
11898                 'inside' and 'pressed' are both true.
11899                 - Some coding style love.
11900
11901 2004-10-14 00:17  ravindra
11902
11903         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11904           public method.
11905
11906 2004-10-14 00:15  ravindra
11907
11908         * ButtonBase.cs: Redraw () related improvements.
11909
11910 2004-10-14 00:14  ravindra
11911
11912         * MessageBox.cs: Moved InitFormSize () out of Paint method and
11913           removed unnecessary calls to Button.Show () method.
11914
11915 2004-10-13 17:50  pbartok
11916
11917         * XplatUIX11.cs:
11918           - Formatting fix
11919           - Removed destroying of window until we solve the problem of X
11920             destroying the window before us on shutdown
11921
11922 2004-10-13 16:32  pbartok
11923
11924         * ButtonBase.cs:
11925           - Now Redraws on MouseUp for FlatStyle Flat and Popup
11926
11927 2004-10-13 14:18  pbartok
11928
11929         * XplatUIX11.cs:
11930           - Added code to destroy the X window
11931
11932 2004-10-13 14:18  pbartok
11933
11934         * XplatUIWin32.cs:
11935           - Added code to destroy a window
11936
11937 2004-10-13 14:12  pbartok
11938
11939         * ButtonBase.cs:
11940           - Added the Redraw on Resize that got dropped in the last rev
11941
11942 2004-10-13 09:06  pbartok
11943
11944         * ThemeWin32Classic.cs:
11945           - Path from John BouAntoun:
11946             * Fix check rendering (centre correctly for normal style, offset
11947               correctly for FlatStyle).
11948             * Fix border color usage (use backcolor) for FlatStyle.Popup
11949             * Use checkbox.Capture instead of checkbox.is_pressed when
11950               rendering flatstyle states.
11951
11952 2004-10-12 21:48  pbartok
11953
11954         * ThemeWin32Classic.cs:
11955           - Removed all occurences of SystemColors and replaced them with the
11956             matching theme color
11957
11958 2004-10-12 21:41  pbartok
11959
11960         * ThemeWin32Classic.cs:
11961           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11962             him using the function for flatstyle drawing
11963           - Changed functions to use the new version of CPDrawBorder3D
11964
11965 2004-10-12 21:15  pbartok
11966
11967         * ControlPaint.cs:
11968           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11969             match MS documentation. They need to return defined colors if the
11970             passed color matches the configured control color. Thanks to John
11971             BouAntoun for pointing this out.
11972
11973 2004-10-12 20:57  pbartok
11974
11975         * Control.cs:
11976           - Fix from John BouAntoun: Raise ForeColorChanged event when text
11977             color is changed
11978
11979 2004-10-12 20:46  pbartok
11980
11981         * CheckBox.cs:
11982           - Fix from John BouAntoun: Now properly sets the Appearance property
11983
11984 2004-10-12 20:45  pbartok
11985
11986         * ThemeWin32Classic.cs:
11987           - Fixes from John BouAntoun: now handles forecolors and backcolors
11988             for flatstyle rendered controls much better; It also fixes normal
11989             checkbox rendering when pushed or disabled.
11990
11991 2004-10-08 02:50  jordi
11992
11993         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11994           work
11995
11996 2004-10-07 08:56  jordi
11997
11998         * ThemeWin32Classic.cs: Removes deletion of cached brushes
11999
12000 2004-10-06 03:59  jordi
12001
12002         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
12003           XplatUIWin32.cs: removes warnings from compilation
12004
12005 2004-10-05 12:23  jackson
12006
12007         * RadioButton.cs: Fix ctor
12008
12009 2004-10-05 11:10  pbartok
12010
12011         * MessageBox.cs:
12012           - Partial implementation by Benjamin Dasnois
12013
12014 2004-10-05 10:15  jackson
12015
12016         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
12017           by John BouAntoun
12018
12019 2004-10-05 03:07  ravindra
12020
12021         * ToolBar.cs:
12022                 - Removed a private method, Draw ().
12023                 - Fixed the ButtonDropDown event handling.
12024                 - Fixed MouseMove event handling.
12025
12026 2004-10-05 03:04  ravindra
12027
12028         * ThemeWin32Classic.cs:
12029                 - Added DrawListView method and ListViewDefaultSize property.
12030                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
12031                 - Changed DOS style CRLF to Unix format (dos2unix).
12032
12033 2004-10-05 03:03  ravindra
12034
12035         * Theme.cs:
12036                 - Added DrawListView method and ListViewDefaultSize property.
12037
12038 2004-10-05 02:42  ravindra
12039
12040         * ToolBarButton.cs: Added an internal member dd_pressed to handle
12041           clicks on DropDown arrow.
12042
12043 2004-10-04 22:56  jackson
12044
12045         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
12046           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
12047           Control handle the buffers, derived classes should not have to
12048           CreateBuffers themselves.
12049
12050 2004-10-04 21:20  jackson
12051
12052         * StatusBar.cs: The control handles resizing the buffers now.
12053
12054 2004-10-04 21:18  jackson
12055
12056         * Control.cs: When resizing the buffers should be invalidated. This
12057           should be handled in Control not in derived classes.
12058
12059 2004-10-04 14:45  jackson
12060
12061         * TabPage.cs: oops
12062
12063 2004-10-04 02:14  pbartok
12064
12065         * LeftRightAlignment.cs:
12066           - Initial check-in
12067
12068 2004-10-04 01:09  jordi
12069
12070         * ThemeWin32Classic.cs: fixes right button position causing right
12071           button not showing on horizontal scrollbars
12072
12073 2004-10-02 13:12  pbartok
12074
12075         * XplatUIX11.cs:
12076           - Simplified the Invalidate method by using an X call instead of
12077             generating the expose ourselves
12078           - Added an expose when the window background is changed
12079           - Implemented ClientToScreen method
12080
12081 2004-10-02 13:08  pbartok
12082
12083         * XplatUIWin32.cs:
12084           - Added Win32EnableWindow method (test for implementing modal
12085           dialogs)
12086           - Added ClientToScreen method and imports
12087
12088 2004-10-02 13:07  pbartok
12089
12090         * XplatUI.cs, XplatUIDriver.cs:
12091           - Added ClientToScreen coordinate translation method
12092
12093 2004-10-02 13:06  pbartok
12094
12095         * KeyPressEventArgs.cs:
12096           - Fixed access level for constructor
12097
12098 2004-10-02 13:06  pbartok
12099
12100         * NativeWindow.cs:
12101           - Changed access level for the window_collection hash table
12102
12103 2004-10-02 13:05  pbartok
12104
12105         * Form.cs:
12106           - Added KeyPreview property
12107           - Added Menu property (still incomplete, pending Jordi's menu work)
12108           - Implemented ProcessCmdKey
12109           - Implemented ProcessDialogKey
12110           - Implemented ProcessKeyPreview
12111
12112 2004-10-02 13:02  pbartok
12113
12114         * Control.cs:
12115           - Added private method to get the Control object from the window
12116           handle
12117           - Implemented ContextMenu property
12118           - Implemented PointToScreen
12119           - Implemented PreProcessMessage
12120           - Implemented IsInputChar
12121           - Implemented IsInputKey
12122           - Implemented ProcessCmdKey
12123           - Completed ProcessKeyEventArgs
12124           - Fixed message loop to call the proper chain of functions on key
12125           events
12126           - Implemented ProcessDialogChar
12127           - Implemented ProcessDialogKey
12128           - Implemented ProcessKeyMessage
12129           - Implemented ProcessKeyPreview
12130           - Added RaiseDragEvent stub (MS internal method)
12131           - Added RaiseKeyEvent stub (MS internal method)
12132           - Added RaiseMouseEvent stub (MS Internal method)
12133           - Added RaisePaintEvent stub (MS Internal method)
12134           - Added ResetMouseEventArgs stub (MS Internal method)
12135           - Implemented RtlTranslateAlignment
12136           - Implemented RtlTranslateContent
12137           - Implemented RtlTranslateHorizontal
12138           - Implemented RtlTranslateLeftRight
12139           - Added generation of KeyPress event
12140
12141 2004-10-02 05:57  ravindra
12142
12143         * ListViewItem.cs: Added attributes.
12144
12145 2004-10-02 05:32  ravindra
12146
12147         * ListView.cs: Added attributes.
12148
12149 2004-10-01 11:53  jackson
12150
12151         * Form.cs: Implement the Close method so work on MessageBox can
12152           continue.
12153
12154 2004-09-30 14:06  pbartok
12155
12156         * XplatUIX11.cs:
12157           - Bug fixes
12158
12159 2004-09-30 11:34  jackson
12160
12161         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
12162
12163 2004-09-30 07:26  ravindra
12164
12165         * ListViewItemConverter.cs: Converter for ListViewItem.
12166
12167 2004-09-30 07:26  ravindra
12168
12169         * SortOrder.cs: Enum for ListView control.
12170
12171 2004-09-30 07:25  ravindra
12172
12173         * ColumnHeader.cs: Supporting class for ListView control.
12174
12175 2004-09-30 07:24  ravindra
12176
12177         * ListView.cs, ListViewItem.cs: Initial implementation.
12178
12179 2004-09-30 07:20  ravindra
12180
12181         * ItemActivation.cs: Enum for ListView Control.
12182
12183 2004-09-29 20:29  pbartok
12184
12185         * XplatUIX11.cs:
12186           - Added lookup of pixel value for background color; tries to get a
12187             color 'close' to the requested color, it avoids having to create a
12188             colormap.  Depending on the display this could mean the used color
12189             is slightly off the desired color. Might have to change it to a more
12190             resource intensive colormap approach, but it will work as a
12191           workaround to avoid red screens.
12192
12193 2004-09-29 14:27  jackson
12194
12195         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12196
12197 2004-09-28 12:44  pbartok
12198
12199         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12200           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12201           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12202           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12203           TrackBar.cs, VScrollBar.cs:
12204           - Streamlined Theme interfaces:
12205             * Each DrawXXX method for a control now is passed the object for
12206               the control to be drawn in order to allow accessing any state the
12207               theme might require
12208
12209             * ControlPaint methods for the theme now have a CP prefix to avoid
12210               name clashes with the Draw methods for controls
12211
12212             * Every control now retrieves it's DefaultSize from the current
12213             theme
12214
12215 2004-09-28 12:17  jackson
12216
12217         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12218           drawing
12219
12220 2004-09-24 14:57  jackson
12221
12222         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12223           Gives us a nice little performance boost.
12224
12225 2004-09-24 12:02  jackson
12226
12227         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12228           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12229           Control and supporting classes. Initial checkin
12230
12231 2004-09-23 13:08  jackson
12232
12233         * Form.cs: Temp build fixage
12234
12235 2004-09-23 01:39  ravindra
12236
12237         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12238           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12239           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12240           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12241           EventHandlers needed by ListView Control.
12242
12243 2004-09-22 14:12  pbartok
12244
12245         * ScrollableControl.cs:
12246           - Implemented DockPadding property
12247           - Implemented AutoScroll property
12248           - Implemented AutoScrollMargin property
12249           - Implemented AutoScrollMinSize property
12250           - Implemented AutoScrollPosition property
12251           - Implemented DisplayRectangle property (still incomplete)
12252           - Implemented CreateParams property
12253           - Implemented HScroll property
12254           - Implemented VScroll property
12255           - Implemented OnVisibleChanged property
12256
12257 2004-09-22 14:09  pbartok
12258
12259         * Form.cs:
12260           - Added Form.ControllCollection class
12261           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12262             RemoveOwnedForm (still incomplete, missing on-top and common
12263             minimize/maximize behaviour)
12264           - Added StartPosition property (still incomplete, does not use when
12265             creating the form)
12266           - Added ShowDialog() methods (still incomplete, missing forcing the
12267             dialog modal)
12268
12269 2004-09-22 14:05  pbartok
12270
12271         * Application.cs:
12272           - Added message loop for modal dialogs
12273
12274 2004-09-22 14:02  pbartok
12275
12276         * GroupBox.cs:
12277           - Fixed wrong types for events
12278
12279 2004-09-22 14:00  pbartok
12280
12281         * Shortcut.cs, FormWindowState.cs:
12282           - Fixed wrong values
12283
12284 2004-09-22 12:01  jackson
12285
12286         * Control.cs: Text is never null
12287
12288 2004-09-20 22:14  pbartok
12289
12290         * XplatUIWin32.cs:
12291           - Fixed accessibility level for Idle handler
12292
12293 2004-09-20 18:54  jackson
12294
12295         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12296           XplatUIX11.cs: New message loop that uses poll so we don't get a
12297           busy loop
12298
12299 2004-09-17 10:43  pbartok
12300
12301         * ScrollBar.cs:
12302           - Fixed behaviour of arrow buttons. Now properly behaves like
12303             Buttons (and like Microsoft's scrollbar arrow buttons)
12304
12305 2004-09-17 10:14  pbartok
12306
12307         * ScrollBar.cs:
12308           - Added missing release of keyboard/mouse capture
12309
12310 2004-09-17 06:18  jordi
12311
12312         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12313           Theme.cs: Very early menu support
12314
12315 2004-09-16 17:45  pbartok
12316
12317         * XplatUIWin32.cs:
12318           - Fixed sending a window to the front
12319           - Added overload for SetWindowPos to avoid casting
12320
12321 2004-09-16 17:44  pbartok
12322
12323         * Control.cs:
12324           - Added SendToBack and BringToFront methods
12325
12326 2004-09-16 07:00  ravindra
12327
12328         * Copyright: Added Novell URL.
12329
12330 2004-09-16 07:00  ravindra
12331
12332         * ToolBar.cs: Invalidate should be done before redrawing.
12333
12334 2004-09-15 21:19  ravindra
12335
12336         * ColumnHeaderStyle.cs: Enum for ListView Control.
12337
12338 2004-09-15 21:18  ravindra
12339
12340         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12341           ListView Control.
12342
12343 2004-09-13 18:26  jackson
12344
12345         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12346           properly
12347
12348 2004-09-13 18:13  jackson
12349
12350         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12351           a second thread and post messages into the main threads message
12352           queue. This makes timing much more consistent. Both win2K and XP
12353           have a minimum timer value of 15 milliseconds, so we now do this
12354           too.
12355
12356 2004-09-13 15:18  pbartok
12357
12358         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12359           XplatUIX11.cs:
12360           - Added Z-Ordering methods
12361
12362 2004-09-13 10:56  pbartok
12363
12364         * Form.cs:
12365           - Fixed #region names
12366           - Moved properties and methods into their proper #regions
12367
12368 2004-09-13 10:51  pbartok
12369
12370         * Form.cs:
12371           - Added Accept and CancelButton properties
12372           - Added ProcessDialogKey() method
12373
12374 2004-09-13 08:18  pbartok
12375
12376         * IWindowTarget.cs:
12377           - Initial check-in
12378
12379 2004-09-10 21:50  pbartok
12380
12381         * Control.cs:
12382           - Added DoDragDrop() [incomplete]
12383           - Properly implemented 'Visible' handling
12384           - Added SetVisibleCore()
12385           - Implemented FindChildAtPoint()
12386           - Implemented GetContainerControl()
12387           - Implemented Hide()
12388
12389 2004-09-10 19:28  pbartok
12390
12391         * Control.cs:
12392           - Moved methods into their appropriate #regions
12393           - Reordered methods within regions alphabetically
12394
12395 2004-09-10 18:57  pbartok
12396
12397         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12398           - Added method to retrieve text from window
12399
12400 2004-09-10 18:56  pbartok
12401
12402         * Control.cs:
12403           - Moved some internal functions into the internal region
12404           - Implemented FontHeight
12405           - Implemented RenderRightToLeft
12406           - Implemented ResizeRedraw
12407           - Implemented ShowFocusCues
12408           - Implemented ShowKeyboardCues
12409           - Implemented FromChildHandle
12410           - Implemented FromHandle
12411           - Implemented IsMnemonic
12412           - Implemented ReflectMessage
12413           - All public and protected Static Methods are now complete
12414
12415 2004-09-10 16:54  pbartok
12416
12417         * Control.cs:
12418           - Implemented remaining missing public instance properties
12419           - Alphabetized some out of order properties
12420
12421 2004-09-10 05:51  ravindra
12422
12423         * PictureBox.cs: Added a check for null image.
12424
12425 2004-09-10 00:59  jordi
12426
12427         * GroupBox.cs: remove cvs tag
12428
12429 2004-09-09 05:25  ravindra
12430
12431         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12432
12433 2004-09-09 05:23  ravindra
12434
12435         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12436           parent redraw.
12437
12438 2004-09-09 02:28  pbartok
12439
12440         * ThemeWin32Classic.cs:
12441           - Improve disabled string look
12442
12443 2004-09-09 01:15  jordi
12444
12445         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12446           args and handler
12447
12448 2004-09-08 23:56  ravindra
12449
12450         * ItemBoundsPortion.cs: It's enum, not a class!
12451
12452 2004-09-08 23:47  ravindra
12453
12454         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12455           Enums for Form.
12456
12457 2004-09-08 21:13  ravindra
12458
12459         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12460           ListView control.
12461
12462 2004-09-08 21:03  ravindra
12463
12464         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12465           avoid crash.
12466
12467 2004-09-08 21:01  ravindra
12468
12469         * ScrollableControl.cs: Removed unreachable code.
12470
12471 2004-09-08 06:45  jordi
12472
12473         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12474
12475 2004-09-08 01:00  jackson
12476
12477         * XplatUIX11.cs: Only run the timers when updating the message
12478           queue. This effectively gives X messages a higher priority then
12479           timer messages. Timers still need love though
12480
12481 2004-09-07 14:01  jackson
12482
12483         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12484           this for us and the handle is no longer valid.
12485
12486 2004-09-07 13:59  jackson
12487
12488         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12489           loop that manages to not crash. TODO: Add poll and cleanup timers
12490
12491 2004-09-07 11:12  jordi
12492
12493         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12494
12495 2004-09-07 03:40  jordi
12496
12497         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12498           fixes, methods, multiple links
12499
12500 2004-09-06 06:55  jordi
12501
12502         * Control.cs: Caches ClientRectangle rectangle value
12503
12504 2004-09-05 02:03  jordi
12505
12506         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12507           certain situations
12508
12509 2004-09-04 11:10  jordi
12510
12511         * Label.cs: Refresh when font changed
12512
12513 2004-09-02 16:24  pbartok
12514
12515         * Control.cs:
12516           - Added sanity check to creation of double buffer bitmap
12517
12518 2004-09-02 16:24  pbartok
12519
12520         * ButtonBase.cs:
12521           - Fixed selection of text color
12522           - Fixed handling of resize event; now properly recreates double
12523             buffering bitmap
12524           - Added missing assignment of TextAlignment
12525           - Added proper default for TextAlignment
12526
12527 2004-09-02 14:26  pbartok
12528
12529         * RadioButton.cs:
12530           - Added missing RadioButton.RadioButtonAccessibleObject class
12531
12532 2004-09-02 14:26  pbartok
12533
12534         * Control.cs:
12535           - Added missing Control.ControlAccessibleObject class
12536           - Started to implement Select()ion mechanisms, still very incomplete
12537
12538 2004-09-02 14:25  pbartok
12539
12540         * AccessibleObject.cs:
12541           - Added missing methods
12542
12543 2004-09-02 14:23  pbartok
12544
12545         * AccessibleNavigation.cs, AccessibleSelection.cs:
12546           - Initial check-in
12547
12548 2004-09-02 10:32  jordi
12549
12550         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12551           pool for pens, brushes, and hatchbruses
12552
12553 2004-09-01 15:30  jackson
12554
12555         * StatusBar.cs: Fix typo
12556
12557 2004-09-01 14:44  pbartok
12558
12559         * RadioButton.cs:
12560           - Fixed state
12561
12562 2004-09-01 14:39  pbartok
12563
12564         * Button.cs, RadioButton.cs:
12565           - Functional initial check-in
12566
12567 2004-09-01 14:01  pbartok
12568
12569         * CheckBox.cs:
12570           - Added missing default
12571           - Added missing region mark
12572
12573 2004-09-01 09:10  jordi
12574
12575         * Label.cs: fixes method signatures, new methods, events, fixes
12576           autosize
12577
12578 2004-09-01 07:19  jordi
12579
12580         * Control.cs: Init string variables with an empty object
12581
12582 2004-09-01 04:20  jordi
12583
12584         * Control.cs: fires OnFontChanged event
12585
12586 2004-08-31 20:07  pbartok
12587
12588         * ButtonBase.cs:
12589           - Enabled display of strings
12590
12591 2004-08-31 20:05  pbartok
12592
12593         * Form.cs:
12594           - Added (partial) implementation of DialogResult; rest needs to be
12595             implemented when the modal loop code is done
12596
12597 2004-08-31 19:55  pbartok
12598
12599         * CheckBox.cs:
12600           - Fixed to match the removal of the needs_redraw concept
12601
12602 2004-08-31 19:55  pbartok
12603
12604         * ButtonBase.cs:
12605           - Removed the rather odd split between 'needs redraw' and redrawing
12606           - Now handles the events that require regeneration (ambient
12607             properties and size)
12608
12609 2004-08-31 19:41  pbartok
12610
12611         * Control.cs:
12612           - Added firing of BackColorChanged event
12613           - Added TopLevelControl property
12614           - Fixed handling of WM_ERASEBKGRND message
12615
12616 2004-08-31 12:49  pbartok
12617
12618         * ButtonBase.cs:
12619           - Removed debug
12620           - Minor fixes
12621
12622 2004-08-31 12:48  pbartok
12623
12624         * CheckBox.cs:
12625           - Finished (famous last words)
12626
12627 2004-08-31 04:35  jordi
12628
12629         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12630           scrolling bugs, adds new methods
12631
12632 2004-08-30 14:42  pbartok
12633
12634         * CheckBox.cs:
12635           - Implemented CheckBox drawing code
12636
12637 2004-08-30 14:42  pbartok
12638
12639         * ButtonBase.cs:
12640           - Made Redraw() and CheckRedraw() virtual
12641           - Improved mouse up/down/move logic to properly track buttons
12642
12643 2004-08-30 09:44  pbartok
12644
12645         * CheckBox.cs:
12646           - Updated to fix broken build. Not complete yet.
12647
12648 2004-08-30 09:28  pbartok
12649
12650         * CheckState.cs:
12651           - Initial checkin
12652
12653 2004-08-30 09:17  pbartok
12654
12655         * Appearance.cs:
12656           - Initial check-in
12657
12658 2004-08-27 16:12  ravindra
12659
12660         * ToolBarButton.cs: Added TypeConverter attribute.
12661
12662 2004-08-27 16:07  ravindra
12663
12664         * ImageIndexConverter.cs: Implemented.
12665
12666 2004-08-27 14:17  pbartok
12667
12668         * Control.cs:
12669           - Removed unneeded stack vars
12670           - First attempt to fix sizing issues when layout is suspended
12671
12672 2004-08-25 15:35  jordi
12673
12674         * ScrollBar.cs: more fixes to scrollbar
12675
12676 2004-08-25 14:04  ravindra
12677
12678         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12679           Added the missing divider code and grip for ToolBar Control.
12680
12681 2004-08-25 13:20  pbartok
12682
12683         * Control.cs:
12684           - Control now properly passes the ambient background color to child
12685             controls
12686
12687 2004-08-25 13:20  jordi
12688
12689         * ScrollBar.cs: small bug fix regarding bar position
12690
12691 2004-08-25 12:33  pbartok
12692
12693         * Timer.cs:
12694           - Now only calls SetTimer or KillTimer if the enabled state has
12695           changed
12696
12697 2004-08-25 12:33  pbartok
12698
12699         * XplatUIWin32.cs:
12700           - Fixed timer handling, now seems to work
12701           - Improved error message for window creation
12702
12703 2004-08-25 12:32  pbartok
12704
12705         * Control.cs:
12706           - Fixed generation of MouseUp message
12707
12708 2004-08-25 12:29  jordi
12709
12710         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12711           and fixes for progressbar
12712
12713 2004-08-24 18:43  ravindra
12714
12715         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12716           in ToolBar control.
12717
12718 2004-08-24 17:15  pbartok
12719
12720         * Panel.cs:
12721           - Added #region
12722           - Added missing events
12723           - Alphabetized
12724
12725 2004-08-24 17:14  pbartok
12726
12727         * StatusBar.cs, PictureBox.cs:
12728           - Now uses Control's CreateParams
12729
12730 2004-08-24 16:36  pbartok
12731
12732         * XplatUIX11.cs:
12733           - Fixed background color handling
12734           - Fixed sending of enter/leave events on a grab
12735
12736 2004-08-24 16:35  pbartok
12737
12738         * X11Structs.cs:
12739           - Refined definitions for CrossingEvent
12740
12741 2004-08-24 12:37  jordi
12742
12743         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12744           formmating, methods signature, and adds missing events
12745
12746 2004-08-24 12:24  jordi
12747
12748         * Control.cs: fire OnEnabledChanged event
12749
12750 2004-08-24 11:17  pbartok
12751
12752         * XplatUIWin32.cs:
12753           - Implemented SetTimer() and KillTimer()
12754
12755 2004-08-24 11:16  pbartok
12756
12757         * XplatUIX11.cs:
12758           - Now uses Remove instead of Add to kill the timer
12759
12760 2004-08-24 10:16  jackson
12761
12762         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12763           picture boxes in the theme now. Draw picture box borders and obey
12764           sizing modes
12765
12766 2004-08-24 05:49  jackson
12767
12768         * Timer.cs: Remove top secret debugging code
12769
12770 2004-08-24 05:34  jackson
12771
12772         * PictureBox.cs: Temp hack to make picture boxes draw their full
12773           image
12774
12775 2004-08-24 05:29  jackson
12776
12777         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12778           XplatUIX11.cs: Move timers to the driver level. On X they are
12779           queued by the driver and checked on idle.
12780
12781 2004-08-24 01:07  jackson
12782
12783         * XplatUIX11.cs: Use a queue for async messages instead of passing
12784           them as ClientMessages since that was totally broken. Also simply
12785           check for events and return an idle message if none are found. This
12786           gives us an idle handler, and prevents deadlocking when no messages
12787           are in the queue.
12788
12789 2004-08-23 18:19  ravindra
12790
12791         * XplatUIWin32.cs: Removed the unwanted destructor.
12792
12793 2004-08-23 17:27  pbartok
12794
12795         * ButtonBase.cs:
12796           - Finishing touches. Works now, just needs some optimizations.
12797
12798 2004-08-23 16:53  jordi
12799
12800         * ScrollBar.cs: small fix
12801
12802 2004-08-23 16:45  pbartok
12803
12804         * Application.cs:
12805           - Removed debug output
12806           - Simplifications
12807
12808 2004-08-23 16:43  jordi
12809
12810         * ScrollBar.cs: [no log message]
12811
12812 2004-08-23 16:10  pbartok
12813
12814         * Form.cs:
12815           - Fixed handling of WM_CLOSE message
12816           - Removed debug output
12817
12818 2004-08-23 16:09  pbartok
12819
12820         * Application.cs:
12821           - Added handling of Idle event
12822           - Added handling of form closing
12823           - Fixed reporting of MessageLoop property
12824           - Removed some unneeded code, should provide a bit of a speedup
12825
12826 2004-08-23 15:22  pbartok
12827
12828         * Control.cs:
12829           - Added InitLayout() method
12830           - Added code to properly perform layout when Anchor or Dock property
12831             is changed
12832           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12833             LAMESPEC, tried to do it in a way that makes sense
12834
12835 2004-08-23 14:10  jordi
12836
12837         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12838           properties and methods
12839
12840 2004-08-23 13:55  pbartok
12841
12842         * Control.cs:
12843           - Properly fixed Jordi's last fix
12844           - Now uses Cursor's Position property instead of calling XplatUI
12845           directly
12846
12847 2004-08-23 13:44  jordi
12848
12849         * PaintEventHandler.cs: Adding missing attribute
12850
12851 2004-08-23 13:39  pbartok
12852
12853         * Cursor.cs:
12854           - Implemented Position property
12855
12856 2004-08-23 13:39  pbartok
12857
12858         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12859           - Added method to move mouse cursor
12860
12861 2004-08-23 13:39  pbartok
12862
12863         * XplatUIX11.cs:
12864           - Fixed setting of background color
12865           - Added method to move mouse cursor
12866
12867 2004-08-23 13:16  jordi
12868
12869         * Control.cs: avoids null exception
12870
12871 2004-08-22 17:46  jackson
12872
12873         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12874           PictureBox
12875
12876 2004-08-22 17:40  jackson
12877
12878         * XplatUIX11.cs: Add some missing locks
12879
12880 2004-08-22 15:10  pbartok
12881
12882         * Control.cs, Form.cs:
12883           - Removed OverlappedWindow style from Control, instead it's default
12884             now is child
12885           - Made form windows OverlappedWindow by default
12886
12887 2004-08-22 13:34  jackson
12888
12889         * ScrollBar.cs: Update the position through the Value property so
12890           the OnValueChanged event is raised.
12891
12892 2004-08-22 12:04  pbartok
12893
12894         * SWF.csproj:
12895           - Added Cursor.cs and UserControl.cs
12896
12897 2004-08-22 12:03  pbartok
12898
12899         * Cursor.cs:
12900           - Started implementation, not usable yet
12901
12902 2004-08-22 12:00  pbartok
12903
12904         * UserControl.cs:
12905           - Implemented UserControl (complete)
12906
12907 2004-08-21 19:20  ravindra
12908
12909         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12910
12911 2004-08-21 18:49  ravindra
12912
12913         * ToolBar.cs: Probably this completes the missing attributes in
12914           toolbar control.
12915
12916 2004-08-21 18:03  ravindra
12917
12918         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12919           Fixed toolbar control signatures.
12920
12921 2004-08-21 16:32  pbartok
12922
12923         * LinkLabel.cs:
12924           - Signature Fixes
12925
12926 2004-08-21 16:30  pbartok
12927
12928         * Label.cs:
12929           - Signature fixes
12930
12931 2004-08-21 16:19  pbartok
12932
12933         * Control.cs, Label.cs:
12934           - Signature fixes
12935
12936 2004-08-21 15:57  pbartok
12937
12938         * ButtonBase.cs:
12939           - Added loads of debug output for development
12940           - Fixed typo in method name
12941
12942 2004-08-21 15:52  pbartok
12943
12944         * ToolBarButtonClickEventArgs.cs:
12945           - Added missing base class
12946
12947 2004-08-21 14:53  pbartok
12948
12949         * Control.cs:
12950           - Updated to match new GrabWindow signature
12951
12952 2004-08-21 14:51  pbartok
12953
12954         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12955           - Added method to get default display size
12956
12957 2004-08-21 14:23  pbartok
12958
12959         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12960           - Added method to query current grab state
12961           - Added argument to allow confining a grab to a window
12962
12963 2004-08-21 14:22  pbartok
12964
12965         * Keys.cs:
12966           - Added [Flags] attribute so that modifiers can be used in bitwise
12967           ops
12968
12969 2004-08-21 14:21  pbartok
12970
12971         * TrackBar.cs, ScrollBar.cs:
12972           - Replaced direct XplatUI calls with their Control counterpart
12973
12974 2004-08-21 13:32  pbartok
12975
12976         * Control.cs:
12977           - Implemented Created property
12978
12979 2004-08-21 13:28  pbartok
12980
12981         * Control.cs:
12982           - Implemented ContainsFocus
12983
12984 2004-08-21 13:26  pbartok
12985
12986         * Control.cs:
12987           - Implemented CausesValidation
12988
12989 2004-08-21 13:21  pbartok
12990
12991         * Control.cs:
12992           - Implemented CanFocus
12993           - Implemented CanSelect
12994           - Implemented Capture
12995
12996 2004-08-21 12:35  pbartok
12997
12998         * XplatUIWin32.cs:
12999           - Fixed bug with Async message handling
13000           - Implemented getting the ModifierKeys
13001
13002 2004-08-21 12:32  jackson
13003
13004         * AsyncMethodResult.cs: Make sure we have the mutex before we
13005           release it. Fixes BeginInvoke on windows
13006
13007 2004-08-21 11:31  pbartok
13008
13009         * XplatUIWin32.cs, XplatUIX11.cs:
13010           - Drivers now return proper mouse state
13011
13012 2004-08-21 10:54  jackson
13013
13014         * Control.cs: Implement EndInvoke
13015
13016 2004-08-21 10:48  jackson
13017
13018         * Timer.cs: Remove unneeded finalizer
13019
13020 2004-08-20 19:52  ravindra
13021
13022         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
13023           in mouse event handling in the ToolBar control.
13024
13025 2004-08-20 19:50  ravindra
13026
13027         * ImageList.cs: Changed draw method to use the arguments passed in
13028           to draw the image.
13029
13030 2004-08-20 18:58  pbartok
13031
13032         * XplatUIStructs.cs:
13033           - Added private message for async communication
13034
13035 2004-08-20 17:38  ravindra
13036
13037         * Control.cs: Made RightToLeft property virtual and removed a
13038           Console.WriteLine.
13039
13040 2004-08-20 14:39  jordi
13041
13042         * ThemeGtk.cs: use style_attach
13043
13044 2004-08-20 14:39  pbartok
13045
13046         * XplatUIWin32.cs:
13047           - Added jackson's Async code from X11 to Win32
13048
13049 2004-08-20 14:09  pbartok
13050
13051         * SWF.csproj:
13052           - Added all new files
13053
13054 2004-08-20 14:09  pbartok
13055
13056         * Control.cs:
13057           - Added call to set window background color
13058
13059 2004-08-20 14:03  pbartok
13060
13061         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13062           - Added method for setting the window background
13063
13064 2004-08-20 14:02  pbartok
13065
13066         * XplatUIWin32.cs:
13067           - Added method for setting the background color
13068           - Added handling for erasing the window background
13069
13070 2004-08-20 13:45  jordi
13071
13072         * TrackBar.cs: fixes timer, new properties and methods
13073
13074 2004-08-20 13:34  jackson
13075
13076         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
13077           correct thread
13078
13079 2004-08-20 13:22  jackson
13080
13081         * Timer.cs: Timer Tick events are now handed through Controls Async
13082           mechanism so the callbacks are executed in the same thread as X
13083
13084 2004-08-20 13:19  jackson
13085
13086         * XplatUIDriver.cs: Expose functionality to send async messages
13087           through the driver
13088
13089 2004-08-20 13:18  jackson
13090
13091         * Control.cs: Implement Begininvoke
13092
13093 2004-08-20 13:14  jackson
13094
13095         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13096           messages through the driver
13097
13098 2004-08-20 13:12  jackson
13099
13100         * XplatUIX11.cs: Lock before all X operations. Also added Async
13101           method functionality through XSendEvent
13102
13103 2004-08-20 13:11  jackson
13104
13105         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13106           This will screw up on 64 bit systems)
13107
13108 2004-08-20 13:10  jackson
13109
13110         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13111           Async messages through X/Win32
13112
13113 2004-08-19 19:39  pbartok
13114
13115         * XplatUIX11.cs:
13116           - Updated code to match new HandleData.DeviceContext type
13117
13118 2004-08-19 19:38  pbartok
13119
13120         * HandleData.cs:
13121           - Made DeviceContext a generic object to allow usage from various
13122           drivers
13123           - Added support for queueing Windows messages
13124
13125 2004-08-19 19:37  pbartok
13126
13127         * XplatUIWin32.cs:
13128           - Added generation of MouseEnter, MouseLeave and MouseHover events
13129           - Added cleanup on EndPaint
13130
13131 2004-08-19 19:17  pbartok
13132
13133         * Control.cs:
13134           - Added handling of WM_MOUSEHOVER
13135           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
13136           code
13137
13138 2004-08-19 18:55  jordi
13139
13140         * ThemeGtk.cs: fixes button order
13141
13142 2004-08-19 18:12  jordi
13143
13144         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
13145
13146 2004-08-19 17:09  pbartok
13147
13148         * Control.cs:
13149           - Added Right property
13150           - Added RightToLeft property
13151
13152 2004-08-19 16:27  jordi
13153
13154         * ThemeGtk.cs: experimental GTK theme support
13155
13156 2004-08-19 16:26  jordi
13157
13158         * ITheme.cs, Theme.cs: move themes from an interface to a class
13159
13160 2004-08-19 16:25  jordi
13161
13162         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
13163           theme enhancaments
13164
13165 2004-08-19 16:04  pbartok
13166
13167         * XplatUIX11.cs:
13168           - Added colormap basics
13169           - Added a way to re-initialize with a different display handle
13170           - Fixed setting of the window background color
13171           - Added various X11 imports related to colors and colormaps
13172
13173 2004-08-19 15:51  pbartok
13174
13175         * X11Structs.cs:
13176           - Removed packing hints (Paolo suggested this a while back)
13177           - fixed colormap type
13178           - Added default Atom types
13179           - Added Screen and color structs and enums
13180
13181 2004-08-19 15:39  pbartok
13182
13183         * ImageList.cs:
13184           - Added missing Draw() method
13185           - Added missing RecreateHandle event
13186
13187 2004-08-19 15:30  pbartok
13188
13189         * Form.cs:
13190           - Added handling of WM_CLOSE
13191
13192 2004-08-18 13:16  jordi
13193
13194         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13195           a table
13196
13197 2004-08-18 09:56  jordi
13198
13199         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13200
13201 2004-08-17 15:31  ravindra
13202
13203         * SWF.csproj: Updated project.
13204
13205 2004-08-17 15:25  pbartok
13206
13207         * Control.cs:
13208           - Drawing improvement; don't call UpdateBounds if we are not visible
13209             (or have been minimized)
13210
13211 2004-08-17 15:24  pbartok
13212
13213         * XplatUIWin32.cs:
13214           - Finished IsVisible
13215           - Added Win32GetWindowPlacement
13216
13217 2004-08-17 15:08  jackson
13218
13219         * Panel.cs: Initial checkin of the Panel
13220
13221 2004-08-17 14:25  pbartok
13222
13223         * Control.cs:
13224           - Fixed broken handling of default window sizes
13225
13226 2004-08-17 13:29  jackson
13227
13228         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13229           has a large startup time.
13230
13231 2004-08-17 10:25  jackson
13232
13233         * HandleData.cs: union areas properly
13234
13235 2004-08-17 10:12  jackson
13236
13237         * HandleData.cs: union areas properly
13238
13239 2004-08-16 20:00  ravindra
13240
13241         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13242
13243 2004-08-16 18:48  ravindra
13244
13245         * ToolBar.cs: Added attributes.
13246
13247 2004-08-16 17:17  ravindra
13248
13249         * SWF.csproj: Updated project.
13250
13251 2004-08-16 17:16  jackson
13252
13253         * XplatUIX11.cs: Check for more expose events before sending a
13254           WM_PAINT so they can all be grouped together. This makes dragging a
13255           window across another window redraw in a sane way.
13256
13257 2004-08-16 15:47  pbartok
13258
13259         * Control.cs:
13260           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13261             support OnMouseEnter/Leave()
13262           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13263             exposure handling
13264
13265 2004-08-16 15:46  pbartok
13266
13267         * XplatUIStructs.cs, XplatUIX11.cs:
13268           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13269           OnMouseEnter/Leave()
13270
13271 2004-08-16 15:34  jackson
13272
13273         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13274           sure messages get the message field set to WM_NULL if they are not
13275           handled.
13276
13277 2004-08-16 15:24  jackson
13278
13279         * HandleData.cs: HandleData is used for storing message information
13280           for window handles
13281
13282 2004-08-15 17:23  ravindra
13283
13284         * ColorDepth.cs: Added attribute.
13285
13286 2004-08-15 17:23  ravindra
13287
13288         * SWF.csproj: Updated project for ToolBar Control.
13289
13290 2004-08-15 17:20  ravindra
13291
13292         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13293           control and also dos2unix format.
13294
13295 2004-08-15 17:13  ravindra
13296
13297         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13298           ToolBarButtonClickEventArgs.cs,
13299           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13300           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13301
13302 2004-08-15 15:31  pbartok
13303
13304         * ButtonBase.cs:
13305           - First (mostly) working version
13306
13307 2004-08-13 16:15  pbartok
13308
13309         * Control.cs:
13310           - Fixed Anchor default
13311
13312 2004-08-13 15:43  pbartok
13313
13314         * Control.cs:
13315           - Changed GetCursorPos signature
13316
13317 2004-08-13 15:42  pbartok
13318
13319         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13320           - Changed signature for GetCursorPos
13321
13322 2004-08-13 15:25  pbartok
13323
13324         * XplatUIX11.cs:
13325           - Cleanup
13326           - Fixed resizing/exposure handling
13327
13328 2004-08-13 15:22  jordi
13329
13330         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13331           with tickposition
13332
13333 2004-08-13 14:55  jordi
13334
13335         * TrackBar.cs: change from wndproc to events
13336
13337 2004-08-13 13:00  jordi
13338
13339         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13340           XplatUIX11.cs: implements PointToClient (ScreenToClient)
13341
13342 2004-08-13 12:53  pbartok
13343
13344         * XplatUIWin32.cs:
13345           - Changed GetWindowPos to also provide client area size
13346           - Fixed broken prototypes for several win32 functions
13347
13348 2004-08-13 12:53  pbartok
13349
13350         * XplatUI.cs, XplatUIDriver.cs:
13351           - Changed GetWindowPos to also provide client area size
13352
13353 2004-08-13 12:52  pbartok
13354
13355         * XplatUIX11.cs:
13356           - Added generation of WM_POSCHANGED
13357           - Changed GetWindowPos to also provide client area size
13358
13359 2004-08-13 12:52  pbartok
13360
13361         * Control.cs:
13362           - Added Dispose() and destructor
13363           - Fixed resizing and bounds calculation
13364           - Fixed Layout
13365           - Added memory savings for invisible windows
13366
13367 2004-08-13 12:46  jordi
13368
13369         * TrackBar.cs: adds timer and grap window
13370
13371 2004-08-13 10:25  jackson
13372
13373         * Timer.cs: SWF Timer
13374
13375 2004-08-12 16:59  pbartok
13376
13377         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13378           - Implemented method to get current mouse position
13379
13380 2004-08-12 14:29  jordi
13381
13382         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13383           enhancement, fix mouse problems, highli thumb, etc
13384
13385 2004-08-12 13:31  pbartok
13386
13387         * Control.cs:
13388           - Fixed Anchoring bugs
13389
13390 2004-08-12 13:01  jackson
13391
13392         * StatusBar.cs: Don't forget things
13393
13394 2004-08-12 12:54  jackson
13395
13396         * ThemeWin32Classic.cs: Handle owner draw status bars
13397
13398 2004-08-12 12:54  jackson
13399
13400         * StatusBar.cs: Implement missing properties, events, and methods.
13401           Handle mouse clicking
13402
13403 2004-08-12 10:19  jackson
13404
13405         * StatusBarPanelClickEventArgs.cs,
13406           StatusBarPanelClickEventHandler.cs: Classes for handling status
13407           bar panel click events
13408
13409 2004-08-12 10:10  jackson
13410
13411         * Control.cs: Add missing properties
13412
13413 2004-08-12 09:46  pbartok
13414
13415         * BindingsManagerBase.cs:
13416           - Name changed to BindingManagerBase.cs
13417
13418 2004-08-12 09:25  jordi
13419
13420         * ScrollableControl.cs: calls ctrlbase instead of exeception
13421
13422 2004-08-11 16:28  pbartok
13423
13424         * InputLanguageChangingEventArgs.cs:
13425           - Never check in before compiling. Fixes the last check-in
13426
13427 2004-08-11 16:26  pbartok
13428
13429         * InputLanguageChangingEventArgs.cs:
13430           - More signature fixes
13431
13432 2004-08-11 16:20  pbartok
13433
13434         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13435           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13436           ImageListStreamer.cs, InputLanguage.cs,
13437           InputLanguageChangedEventArgs.cs,
13438           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13439           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13440           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13441           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13442           - Signature fixes
13443
13444 2004-08-11 16:16  pbartok
13445
13446         * Application.cs:
13447           - Fixed Signature
13448           - Added .Net 1.1 method
13449
13450 2004-08-11 15:25  pbartok
13451
13452         * SWF.csproj:
13453           - Fixed BindingManagerBase.cs filename
13454
13455 2004-08-11 15:22  pbartok
13456
13457         * BindingManagerBase.cs:
13458           - Was checked in with wrong filename
13459
13460 2004-08-11 14:50  pbartok
13461
13462         * SWF.csproj:
13463           - Updated
13464
13465 2004-08-11 13:41  jordi
13466
13467         * XplatUIWin32.cs: Fixes ClientRect
13468
13469 2004-08-11 13:19  pbartok
13470
13471         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13472           XplatUIX11.cs:
13473           - We had SetWindowPos and MoveWindow to set window positions and
13474             size, removed MoveWindow. We have GetWindowPos, so it made sense to
13475             keep SetWindowPos as matching counterpart
13476           - Added some X11 sanity checking
13477
13478 2004-08-11 12:59  pbartok
13479
13480         * Control.cs:
13481           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13482             (It seems that SetBounds is just a front for SetBoundsCore and
13483              SetBoundsCore updates the underlying window system and
13484              UpdateBounds is responsible for updating the variables associated
13485              with the Control and sending the events)
13486           - Major cleanup of Size handling; we now have two sizes, client_size
13487             and bounds. Bounds defines the window with decorations, client_size
13488             without them.
13489
13490 2004-08-11 12:55  pbartok
13491
13492         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13493           - Added method to calculate difference between decorated window and
13494             raw client area
13495
13496 2004-08-11 12:54  pbartok
13497
13498         * Label.cs:
13499           - Forcing redraw on resize
13500
13501 2004-08-11 11:43  pbartok
13502
13503         * ImageList.cs:
13504           - Removed disposing of the actual images when the list is disposed
13505
13506 2004-08-11 09:13  pbartok
13507
13508         * Control.cs:
13509           - Now properly reparents windows
13510
13511 2004-08-11 08:37  pbartok
13512
13513         * Control.cs:
13514           - Duh!
13515
13516 2004-08-11 07:47  pbartok
13517
13518         * Control.cs:
13519           - Rewrote the collection stuff. Might not be as fast now, not
13520             keeping the number of children around and accessible directly, but
13521             it's more straightforward
13522
13523 2004-08-11 07:44  pbartok
13524
13525         * AccessibleObject.cs:
13526           - Fixed to match ControlCollection rewrite
13527
13528 2004-08-11 07:43  pbartok
13529
13530         * ImageList.cs:
13531           - Added missing creation of the collection list
13532
13533 2004-08-10 20:08  jackson
13534
13535         * StatusBar.cs: Get the paint message from WndProc
13536
13537 2004-08-10 19:31  jackson
13538
13539         * ThemeWin32Classic.cs: Create Brushes as little as possible
13540
13541 2004-08-10 19:20  jackson
13542
13543         * UICues.cs: Add Flags attribute
13544
13545 2004-08-10 19:19  jackson
13546
13547         * StatusBarPanel.cs: Signature cleanup
13548
13549 2004-08-10 19:10  jackson
13550
13551         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13552           Initial implementation of status bar item drawing
13553
13554 2004-08-10 17:27  jordi
13555
13556         * TrackBar.cs: add missing methods, properties, and restructure to
13557           hide extra ones
13558
13559 2004-08-10 16:24  jackson
13560
13561         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13562           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13563           attribute
13564
13565 2004-08-10 13:21  jordi
13566
13567         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13568           enhancements and standarize on win colors defaults
13569
13570 2004-08-10 12:52  jackson
13571
13572         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13573           ThemeWin32Classic.cs: Implement DrawItem functionality
13574
13575 2004-08-10 12:47  jordi
13576
13577         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13578
13579 2004-08-10 12:32  jordi
13580
13581         * Control.cs: throw ontextchange event
13582
13583 2004-08-10 11:43  pbartok
13584
13585         * Control.cs:
13586           - Added more to the still unfinished Dock/Anchor layout code
13587
13588 2004-08-10 11:39  pbartok
13589
13590         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13591           - Added GetWindowPos method
13592
13593 2004-08-10 11:36  pbartok
13594
13595         * XplatUIWin32.cs:
13596           - Implemented several methods
13597
13598 2004-08-10 09:47  jackson
13599
13600         * TrackBar.cs: Allow control to handle buffering
13601
13602 2004-08-10 09:41  jackson
13603
13604         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13605
13606 2004-08-10 09:24  jackson
13607
13608         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13609
13610 2004-08-10 09:09  jackson
13611
13612         * StatusBar.cs: Let Control handle all the buffering.
13613
13614 2004-08-10 09:08  jackson
13615
13616         * Control.cs: Control will now handle the buffering code, so each
13617           control does not have to implement this.
13618
13619 2004-08-10 08:34  jackson
13620
13621         * XplatUIDriver.cs: Use default colors from the theme
13622
13623 2004-08-09 17:12  pbartok
13624
13625         * ImageList.cs:
13626           - Fixed several bugs Ravindra pointed out
13627
13628 2004-08-09 16:11  pbartok
13629
13630         * Control.cs:
13631           - Added incomplete dock layout code
13632           - Added support for mouse wheel
13633
13634 2004-08-09 16:09  pbartok
13635
13636         * XplatUIX11.cs:
13637           - Added handling for middle and right mousebutton
13638           - Added handling for mouse wheel
13639           - Added handling for key state and mouse state and position
13640           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13641           messages
13642
13643 2004-08-09 15:40  jackson
13644
13645         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13646           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13647           checkin
13648
13649 2004-08-09 15:37  jackson
13650
13651         * StatusBar.cs: Initial implementation of StatusBar
13652
13653 2004-08-09 15:36  jackson
13654
13655         * ITheme.cs: Add support for drawing status bar and getting status
13656           bar item sizes
13657
13658 2004-08-09 15:35  pbartok
13659
13660         * MouseButtons.cs:
13661           - Fixed values
13662
13663 2004-08-09 15:34  jackson
13664
13665         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13666           status bar item sizes
13667
13668 2004-08-09 15:21  jackson
13669
13670         * ThemeWin32Classic.cs: Use known colors for default control
13671           colours
13672
13673 2004-08-09 15:12  jackson
13674
13675         * ThemeWin32Classic.cs: Make the default font static, it is static
13676           in control so this doesn't change functionality and creating fonts
13677           is sloooooow.
13678
13679 2004-08-09 14:56  pbartok
13680
13681         * X11Structs.cs:
13682           - Added GrabMode enum
13683
13684 2004-08-09 14:55  pbartok
13685
13686         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13687           - Removed Run method, was only required for initial development
13688
13689 2004-08-09 14:51  pbartok
13690
13691         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13692           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13693           capture
13694
13695 2004-08-09 13:48  pbartok
13696
13697         * XplatUIX11.cs:
13698           - Fixed default sizing for child windows
13699
13700 2004-08-09 12:56  pbartok
13701
13702         * XplatUIX11.cs:
13703           - Added generation of WM_DESTROY message
13704           - Added handling of window manager induced shutdown
13705
13706 2004-08-09 11:31  jackson
13707
13708         * ThemeWin32Classic.cs: New names for control properties
13709
13710 2004-08-09 11:25  jackson
13711
13712         * Control.cs: Use new color names
13713
13714 2004-08-09 11:02  jackson
13715
13716         * XplatUI.cs: Get default window properties from the theme
13717
13718 2004-08-09 11:01  jackson
13719
13720         * ITheme.cs: The theme engine now controls default window
13721           properties
13722
13723 2004-08-09 11:00  jackson
13724
13725         * ThemeWin32Classic.cs: Add default window color properties
13726
13727 2004-08-09 10:17  jackson
13728
13729         * ThemeWin32Classic.cs: Use correct default back color
13730
13731 2004-08-09 10:05  jackson
13732
13733         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13734           the theme now.
13735
13736 2004-08-09 09:56  jackson
13737
13738         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13739
13740 2004-08-09 09:54  jackson
13741
13742         * Control.cs: Get default properties from the theme.
13743
13744 2004-08-09 09:53  jackson
13745
13746         * ITheme.cs: Themes now handle default control properties
13747
13748 2004-08-09 09:53  jackson
13749
13750         * ThemeWin32Classic.cs: Themes now handle default control
13751           properties so coloring will be consistent
13752
13753 2004-08-08 16:54  jordi
13754
13755         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13756
13757 2004-08-08 15:08  jordi
13758
13759         * XplatUIX11.cs: fixes keyboard crash
13760
13761 2004-08-08 13:47  jordi
13762
13763         * Label.cs: add cvs header info
13764
13765 2004-08-08 12:09  jackson
13766
13767         * ThemeWin32Classic.cs: Add pen_buttonface
13768
13769 2004-08-08 11:52  jordi
13770
13771         * Label.cs, LinkLabel.cs: [no log message]
13772
13773 2004-08-08 11:34  jordi
13774
13775         * ThemeWin32Classic.cs: Use Windows Standard Colours
13776
13777 2004-08-07 17:32  jordi
13778
13779         * TrackBar.cs: throw exceptions of invalid enums values
13780
13781 2004-08-07 17:31  jordi
13782
13783         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13784           draw method name
13785
13786 2004-08-07 16:56  jackson
13787
13788         * HorizontalAlignment.cs: Initial checkin
13789
13790 2004-08-07 13:16  jordi
13791
13792         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13793           methods
13794
13795 2004-08-07 13:05  jordi
13796
13797         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13798           GetSysColor defines
13799
13800 2004-08-06 18:01  pbartok
13801
13802         * ThemeWin32Classic.cs:
13803           - Fixed some rounding issues with float/int
13804
13805 2004-08-06 18:00  jackson
13806
13807         * DockStyle.cs, AnchorStyles.cs:
13808
13809                   Add flags and serializable attributes.
13810
13811 2004-08-06 17:46  pbartok
13812
13813         * XplatUIX11.cs:
13814           - Implemented GetParent
13815
13816 2004-08-06 17:18  pbartok
13817
13818         * TrackBar.cs:
13819           - Fixed some rounding issues with float/int
13820
13821 2004-08-06 17:17  pbartok
13822
13823         * X11Structs.cs, XplatUIX11.cs:
13824           - Fixed Refresh and Invalidate
13825
13826 2004-08-06 15:30  pbartok
13827
13828         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13829           - Fixed recursive loop when resizing
13830           - Improved/fixed redrawing on expose messages
13831
13832 2004-08-06 09:53  jordi
13833
13834         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13835           keyboard navigation
13836
13837 2004-08-06 08:02  pbartok
13838
13839         * X11Structs.cs, XplatUIX11.cs:
13840           - Fixed reparenting
13841           - Fixed window border creation
13842
13843 2004-08-05 15:38  pbartok
13844
13845         * XplatUIX11.cs:
13846           - Attempted fix for reparenting problems
13847
13848 2004-08-04 15:14  pbartok
13849
13850         * Control.cs:
13851           - Fixed Invalidation bug (calculated wrong client area)
13852           - Added ClientSize setter
13853
13854 2004-08-04 15:13  pbartok
13855
13856         * Form.cs:
13857           - Added AutoScale properties
13858
13859 2004-08-04 15:13  pbartok
13860
13861         * SWF.csproj:
13862           - Added latest files
13863
13864 2004-08-04 14:11  pbartok
13865
13866         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13867           XplatUIX11.cs:
13868           - Added Invalidate handling
13869
13870 2004-08-03 17:09  jordi
13871
13872         * XplatUIDriver.cs: fixes spelling mistake
13873
13874 2004-07-27 09:53  jordi
13875
13876         * TrackBar.cs: fixes trackbar events, def classname, methods
13877           signature
13878
13879 2004-07-27 09:29  jordi
13880
13881         * ScrollBar.cs: fixes scrollbar events
13882
13883 2004-07-27 04:38  jordi
13884
13885         * Control.cs: changes to be able to run winforms samples
13886
13887 2004-07-26 11:42  jordi
13888
13889         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13890           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13891
13892 2004-07-26 05:41  jordi
13893
13894         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13895           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13896           implementation
13897
13898 2004-07-22 09:22  jordi
13899
13900         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13901           check link overlapping, implement events, and fixes
13902
13903 2004-07-21 10:28  jordi
13904
13905         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13906
13907 2004-07-21 10:19  jordi
13908
13909         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13910           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13911           LinkLabelLinkClickedEventArgs.cs,
13912           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13913           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13914           implementation
13915
13916 2004-07-19 13:09  jordi
13917
13918         * Control.cs, Label.cs: label control re-written: added missing
13919           functionlity, events, and properties
13920
13921 2004-07-19 10:49  jordi
13922
13923         * Control.cs: fixes SetBounds logic
13924
13925 2004-07-19 01:29  jordi
13926
13927         * Control.cs: Call RefreshWindow only if the window has created
13928
13929 2004-07-15 14:05  pbartok
13930
13931         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13932           - Implemented ImageList and ImageList.ImageCollection classes
13933           - Added ColorDepth enumeration
13934           - Updated SWF VS.Net project
13935
13936 2004-07-15 11:06  jordi
13937
13938         * XplatUIStructs.cs: added MsgButons enum
13939
13940 2004-07-15 11:03  jordi
13941
13942         * Control.cs: added basic mouse handeling events
13943
13944 2004-07-15 03:38  jordi
13945
13946         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13947           Vertical TrackBar control implementation
13948
13949 2004-07-13 09:33  jordi
13950
13951         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13952
13953 2004-07-13 09:31  jordi
13954
13955         * Control.cs, Form.cs: commit: new properties and fixes form size
13956           problems
13957
13958 2004-07-09 14:13  miguel
13959
13960         * ProgressBar.cs: Spelling
13961
13962 2004-07-09 11:25  pbartok
13963
13964         * ProgressBar.cs:
13965           - Removed usage of Rectangle for drawing. Miguel pointed out it's
13966           faster
13967
13968 2004-07-09 11:17  miguel
13969
13970         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
13971
13972                 * ProgressBar.cs: Fixed spelling for `block'
13973
13974                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13975                 style guidelines.
13976
13977                 Avoid using the += on rect.X, that exposed a bug in the compiler.
13978
13979 2004-07-08 23:21  pbartok
13980
13981         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13982           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13983           BaseCollection.cs, Binding.cs, BindingContext.cs,
13984           BindingMemberInfo.cs, BindingsCollection.cs,
13985           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13986           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13987           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13988           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13989           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13990           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13991           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13992           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13993           FrameStyle.cs, GiveFeedbackEventArgs.cs,
13994           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13995           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13996           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13997           InputLanguageChangedEventArgs.cs,
13998           InputLanguageChangedEventHandler.cs,
13999           InputLanguageChangingEventArgs.cs,
14000           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
14001           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
14002           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
14003           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
14004           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
14005           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
14006           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
14007           QueryAccessibilityHelpEventArgs.cs,
14008           QueryAccessibilityHelpEventHandler.cs,
14009           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
14010           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
14011           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
14012           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
14013           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
14014           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
14015           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
14016           XplatUIX11.cs, lang.cs:
14017           - Initial check-in
14018