5b4962ba684442ed5be37e079365ee7d43917efb
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
2
3         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
4           than WM_SYSKEY, don't throw if get something unexpected (#78507)
5
6 2006-05-26  Jackson Harper  <jackson@ximian.com>
7
8         * ControlPaint.cs:
9         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
10         values, it's faster and it's all we care about (we don't care if
11         the names aren't equal).
12         * KeyboardLayouts.cs: Eliminate some dead code.
13
14 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
15
16         * XplatUIX11.cs: Once again, attempting to get layout just right.
17
18 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
19
20         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
21           the sizes of each link section, that will result in sizes that
22           match DrawString's layout (Fixes #78391)
23
24 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
25
26         * FileDialog.cs: If AddExtension property is true autocomplete the
27           extensions in SaveFileDialog correctly. Fixes bug #78453.
28           Set MyNetwork and MyComputer to "C:\" for windows. This should
29           fix part 8 of bug #78446 for now.
30
31 2006-05-26  Chris Toshok  <toshok@ximian.com>
32
33         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
34         invalidate the current row header if we need to, but presumably
35         we'll invalidate the row corrsponding to the bounds or
36         editingControl.
37         (GridHScrolled): switch back to this method, as it's part of the
38         public api.  *sigh*.
39         (GridVScrolled): same.
40         (OnMouseWheel): hack up something that more or less works.  Call
41         GridHScrolled/GridVScrolled directly, instead of duplicating much
42         of their code here.
43         (EnsureCellVisibility): reinstate a bunch of this code, since we
44         can't just set the scrollbar Value and expect to do all the work
45         in the ValueChanged handler.  Also, Call Update() after scrolling
46         in one direction so the other XplatX11.ScrollWindow call has the
47         proper stuff in the proper places.
48         (EditCell): set is_editing to true before calling .Edit.
49
50         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
51         don't bother comparing first.
52         (OnKeyPress): call grid.ColumnStartedEditing before calling
53         base.OnKeyPress.  this will set is_changing and invalidate the row
54         header if necessary.
55         (ProcessKeyMessage): for WM_CHAR messages, call
56         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
57         and WM_KEYDOWN.
58         
59         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
60         it's done in the DataGrid.
61         (NextState): call grid.ColumnStartedEditing, which takes care of
62         invalidating the row header (and setting is_changing).
63
64         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
65         here.  it's done in the DataGrid.
66
67 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
68
69         * Control.cs: allow changing the cursor when the mouse position is
70         out of bounds but Capture is set.
71         * LinkLabel.cs: handle the case when the mouse button is pressed on the
72         linklabel but released somewhere else.
73
74 2006-05-25  Jackson Harper  <jackson@ximian.com>
75
76         * TreeView.cs: When we get focus if there is no selected node make
77         it the top node
78         - Remove some uneeded setup code from Draw.
79         * TreeNodeCollection.cs: If the tree doesn't have a top node when
80         a new node is inserted make the new node the top.
81         * XplatUIX11.cs:
82         * Timer.cs: Use Utc time so that no local time zone stuff needs to
83         be used (should be faster).
84         
85 2006-05-25  Chris Toshok  <toshok@ximian.com>
86
87         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
88         problem with the last commit.
89
90 2006-05-25  Chris Toshok  <toshok@ximian.com>
91
92         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
93         need the invalidate call here, while scrolling right-to-left via
94         the left arrow key (i.e. moving the editing cell while scrolling).
95
96         * DataGrid.cs (.ctor): remove the initialization of
97         ctrl_pressed/shift_pressed.  We no longer track them using key
98         up/down handlers, but by using Control.ModifierKeys.  Also, switch
99         to using ValueChanged handlers on the scrollbars instead of
100         Scrolled event handlers.  This simplifies a bunch of the scrolling
101         code.
102         (GridHValueChanged): rename from GridHScrolled, and change it to
103         work with the new event args.
104         (GridVValueChanged): same.
105         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
106         (OnMouseWheel): actually scroll the datagrid.  Don't change the
107         selected cell.
108         (ProcessGridKey): correct all the keyboard navigation stuff I
109         could find.  Ctrl up/down/left/right/home/end work now.
110         (EnsureCellVisibility): correct method name spelling.  Also,
111         simplify this a touch by not explicitly calling the
112         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
113         scrollbar value.
114         (OnKeyUpDG): no need for this method now.
115         
116 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
117
118         * LinkLabel.cs: display the OverrideCursor when hovering the label.
119         Fixes bug #78392.
120
121 2006-05-25  Chris Toshok  <toshok@ximian.com>
122
123         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
124         r61019.
125
126 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
127
128         * Application.cs: Moved setting of is_modal and closing to before
129           we create the control, to allow the event handlers called as a
130           result of creation affect closing. Also removed Gonzalo's previous
131           change to setting DialogResult, the behaviour has been moved to 
132           Form.ShowDialog()
133         * Form.cs: 
134           - ShowDialog(): Removed explicit creation of the form, let RunLoop
135             handle it instead
136           - ShowDialog(): If no dialog result is set, we need to return Cancel
137           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
138             the close is cancelled
139
140 2006-05-25  Jackson Harper  <jackson@ximian.com>
141
142         * StatusBar.cs: We only need to update the sizes of the other
143         panels when we have auto size contents.  Also we are only updating
144         the contents of the panel, not the borders, so compensate for the
145         border width (TODO: get this width from the theme somehow).
146         * TreeView.cs: Scrollable is true by default
147         - Use invalidate instead of refresh where needed
148         - Factor the scrollable value into scrollbar updating
149         - Update the scrollbars if the Scrollable property is altered
150         - Update the selected node if its ImageIndex is changed
151         - Handle null nodes in UpdateNode (mainly so we don't have to
152         check if selected is null when updating it
153         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
154         are factored into the visible count
155         - Use VisibleCount for clarity in the code
156         - When the font is changed we need to recurse through all the
157         nodes and invalidate their sizes
158         
159 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
160
161         * Application.cs: set the DialogResult to fixed when the main form is
162         hidden or destroyed while being modal.
163
164 2006-05-25  Miguel de Icaza  <miguel@novell.com>
165
166         * Theme.cs: Use Tangoified messagebox icons. 
167
168         (GetSizedResourceImage): Also cope with width = 0 and do not
169         trigger a warning in that case (0 means "give me your icon from
170         the resouce, no special size needed).
171
172 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
173
174         * Application.cs: Leave runloop if the the main modal form is 
175           hidden (fixes #78484)
176
177 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
178
179         * BindingContext.cs : reject null datasource in Contains() and
180           Item[].
181         * CurrencyManager.cs : check data_member validity when data_source
182           is dataset. When it is late binding, the initial position is -1.
183
184 2006-05-24  Jackson Harper  <jackson@ximian.com>
185
186         * TreeNodeCollection.cs: Dont't recalculate the visible order on
187         inserted nodes that aren't visible.  This changes the
188         max_visible_order which confuses scrollbar settings.
189         - Use the enumerator to get the prev node instead of duplicating
190         code.
191         * TreeView.cs: Use new method for setting scrollbar values
192         - Don't set the bounds every time the scrollbar is updated
193         - When updating below the root node use an invalidate instead of a
194         refresh to prevent the child controls (scrollbars) from being
195         refreshed. (UpdateBelow still needs to be reworked anyways).
196         - Reenable SetBottom now that visible orders are set correctly,
197         added some debug code incase we ever get bad values there again.
198         - Set the scrollbar max to 2 less then the max value, this
199         compensates for the max value being one above the node count, and
200         for scrollbars adding one extra "notch".
201         - When drawing image nodes if there is an imagelist we draw the
202         first image in the list if the supplied image index is out of the
203         image list's bounds.
204         
205 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
206
207         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
208           we receive a size change from the WM (Fixes #78503)
209
210 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
211
212         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
213           rectangle (Fixes #78501)
214
215 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
216
217         * ButtonBase.cs: 
218           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
219             as a bitfield.
220           - Fixed MouseMove to no longer switch pressed state unless the left
221             mouse button is pressed. Atsushi provided the original patch (#78485)
222           
223 2006-05-24  Jackson Harper  <jackson@ximian.com>
224
225         * ScrollBar.cs: New internal methods that allow us to change a
226         couple values on the scrollbar (the most common case is maximum
227         and large change) without getting multiple invalidates.
228
229 2006-05-24  Chris Toshok  <toshok@ximian.com>
230
231         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
232         (Edit): save off the original state in oldState, and set
233         grid.is_editing to true.
234         (OnKeyDown): abort editing if escape is pressed.  also, call
235         NextState if space is pressed.
236         (OnMouseDown): call NextState.
237         (NextState): factor out shared code from OnKeyDown and OnMouseDown
238         here.  Also, only invalidate the row header once (on the initial
239         is_changing switch) to save on redraws.
240
241 2006-05-24  Chris Toshok  <toshok@ximian.com>
242
243         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
244         if the value in the cell is different than it was before.  This
245         keeps us from triggering a layout when we move around a datarid
246         with a highlighted cell.
247         (Edit): suspend layout when creating/positining the text box, and
248         resume passing false so we don't ever actually re-layout.
249         (ReleaseHostedControl): same.
250         (EnsureTextBox): reformat slightly, and set WordWrap to false.
251
252         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
253         control-key sequences should go to the datagrid - remove that
254         lock.  Also, modify the conditions under which we move between
255         cells when moving the cursor within a cell, and remove the "this"
256         and "base" from field accesses.  We weren't even consistent, given
257         they all were in the base class.
258
259 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
260
261         * Binding.cs : (.ctor)
262           An obvious NRE fix for BindingTest.CtorNullTest().
263
264 2006-05-23  Chris Toshok  <toshok@ximian.com>
265
266         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
267         them between lines.  This fixes some quirks editing cells in the
268         datagrid.
269
270 2006-05-23  Jackson Harper  <jackson@ximian.com>
271
272         * TreeView.cs: Use begin/end update when doing expand/collapse all
273         so that we don't get flicker on the scrollbar.
274
275 2006-05-23  Jackson Harper  <jackson@ximian.com>
276
277         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
278         treenode calculations to be independant of the painting code. To
279         do this nodes track a visible order which is calculated by the
280         treeview.
281         - Call new methods for expanding/collapsing nodes.  These methods
282         use scrollwindow so we don't have to update everything below the
283         node.
284         * TreeView.cs: Refactored drawing and scrolling code.  We don't
285         need to update nodes when drawing anymore or calculate scrollbar
286         stuff.
287         - Added new methods for expanding/collapsing nodes. These methods
288         use ScrollWindow so as to not have to redraw all the nodes below.
289         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
290         we add/remove nodes or sort.
291         - Handle removing the selected and the top node properly.
292
293 2006-05-23  Chris Toshok  <toshok@ximian.com>
294
295         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
296         maybe this should actually happen in the datagrid code?
297         (EndEdit): no need to invalidate anything, given that
298         ReleaseHostedControl causes the datagrid to relayout, which
299         invalidates everything anyway.
300
301         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
302         in SetCurrentCell).
303         (set_SelectionBackColor): call InvalidateSelection instead of
304         Refresh.
305         (set_SelectionForeColor): same.
306         (BeginEdit): Flesh this out a bit.
307         (CancelEditing): only do any of this if we're editing/adding.
308         (EndEdit): same.
309         (OnMouseDown): there's no need to cancel editing here, it's done
310         in SetCurrentCell.
311         (SetCurrentCell): only invalidate the current row header if it's a
312         different row than the new one.
313         (ShiftSelection): fix this to work like MS does.
314         (ResetSelection): factor out the invalidation of selected_rows to
315         InvalidateSelection.
316         (SetDataSource): cancel any editing that's going on.
317
318         * DataGridColumnStyle.cs
319         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
320         call the non-interface version.
321
322         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
323         header rectangle with the clip rectangle so we don't redraw the
324         entire header for just a small area.  Gets rid of the last flicker
325         when horizontally scrolling.
326         (DataGridPaintRow): same.
327
328 2006-05-23  Mike Kestner  <mkestner@novell.com>
329
330         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
331         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
332         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
333         Critical bug report.
334
335 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
336
337         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
338           and this fixes #78493
339
340 2006-05-23  Miguel de Icaza  <miguel@novell.com>
341
342         * Theme.cs (GetSizedResourceImage): Scale images if the proper
343         size is not found.  
344         
345         * FileDialog.cs: Do not change the background for the side bar as
346         it wont work nicely with the theme, and also reduces the artifacts
347         in rendering the icons (which I want to fix too).
348
349         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
350         resources, not resgen resources. 
351
352         (PlatformDefaultHandler): Pull images using the new API.
353
354 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
355
356         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
357           a reference to the hwnd and will not remove it unless there are
358           no pending exposures (fixes #78341)
359         * XplatUI.cs: Improved debug
360
361 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
362
363         * MenuAPI.cs : don't handle OnClick event when it was not the left
364           button. Fixed bug #78487.
365
366 2006-05-23  Mike Kestner  <mkestner@novell.com>
367
368         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
369         prefer submenus to the top menu for item lookup, to avoid popping down
370         top-row items.
371
372 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
373
374         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
375           Graphics.FillRectangle as the visual results are really bad (even
376           on win). We now draw perfect arrows (and perfect shadows when the
377           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
378           Pen.DashPattern to draw the dots of each line.
379
380 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
381
382         * FileDialog.cs: Update the filename combobox when navigating through
383           the ListView with the cursor keys. Fixes part 7 of bug #78446.
384
385 2006-05-22  Mike Kestner  <mkestner@novell.com>
386
387         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
388         Fixes #78463.
389
390 2006-05-22  Mike Kestner  <mkestner@novell.com>
391
392         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
393         requests. Fix a misspelled parameter and a copy paste exception error
394         in Select.
395
396 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
397
398         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
399           to get the same width/height (5/13) on X11 as the default font has on
400           win32. This means that our DefaultFont emSize is smaller than the 
401           the MS SWF equivalent (even thought the width/height stays the same)
402
403 2006-05-20  Jackson Harper  <jackson@ximian.com>
404
405         * MdiClient.cs:
406         * MdiWindowManager.cs:
407         * InternalWindowManager.cs: Make sure to use the border width from
408         the theme.
409
410 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
411
412         * PrintDialog.cs: Implements printer details
413
414 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
415
416         * FileDialog.cs: Added focus handling for PopupButtonPanel.
417           Fixes part 1 and 2 of bug #78446
418
419 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
420
421         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
422           instead of sticking to the first ever calculated value
423
424 2006-05-19  Mike Kestner  <mkestner@novell.com>
425
426         * ComboBox.cs: fix mouse motion selection to use MousePosition and
427         PointToClient, since Capture is set. Fixes #78344.
428
429 2006-05-19  Mike Kestner  <mkestner@novell.com>
430
431         * ListView.cs: match MS behavior in Details view where items are not
432         drawn if Columns.Count == 0. 
433         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
434         Use a separate pen to draw the check, since changing the width affects
435         the box as well.  Fixes #78454.
436
437 2006-05-18  Miguel de Icaza  <miguel@novell.com>
438
439         * ListView.cs: ArgumentOutOfRangeException, single versions of the
440         exception should throw the name of the invalid argument.
441
442         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
443         there are no files listed. 
444
445 2006-05-18  Jackson Harper  <jackson@ximian.com>
446
447         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
448         up.
449
450 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
451
452         * Control.cs: Brought back our old UpdateZOrder method as a private
453           function and switched our calls from UpdateZOrder to the new one.
454           This fixes the Paint.Net canvas disappearing bug.
455
456 2006-05-18  Jackson Harper  <jackson@ximian.com>
457
458         * Theme.cs:
459         * ThemeWin32Classic.cs:
460         * InternalWindowManager.cs: Move the drawing into the theme,
461         expose everything the theme should need from the window manager.
462
463 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
464
465         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
466           from the call to NativeWindow to avoid walking up the parent chain
467           further than needed (speeds up setting cursors and avoids setting
468           the wrong cursor if a parent has another cursor defined)
469         * Cursor.cs: When loading an icon as cursor, MS uses the center of
470           the icon as hotspot, not what's contained as hotspot in the icon
471           file. This fixes the perceived drawing offset seen with Paint.Net
472         
473 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
474
475         * XplatUIX11.cs: 
476           - Store the calculated rectangle in Hwnd object and use it when 
477             setting the client size
478           - Force Toolwindows to always be type Dock, to ensure they're on top
479
480 2006-05-18  Mike Kestner  <mkestner@novell.com>
481
482         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
483         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
484         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
485         Substantial refactoring to remove confusing nested classes. Coding
486         standard and Get+Set->property refactorings.  Shift to index based
487         highlighting in ComboListBox instead of constantly using IndexOf and
488         Items[]. Add invalidations on resize for DropDownList to fix ugliness
489         in FileDialog growth.  Draw borders manually since Simple mode needs
490         to look like two independent controls.  Make listbox border
491         conditional to DropDownStyle.  Improved OwnerDraw support.
492
493 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
494
495         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
496         Don't set the disposed graphics to null, so we can throw the "right"
497         exception if the graphics is reused later (added a flag to avoid 
498         double disposing). Some behaviours are different under 2.0 and are
499         filled under bug #78448.
500
501 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
502
503         * Control.cs: When double-buffering is enabled, we need to reset
504           our graphics context between paint calls. Otherwise, any 
505           transformations and other alterations on the context will 
506           become cumulative (#77734)
507
508 2006-05-18  Mike Kestner  <mkestner@novell.com>
509
510         * ListView.cs: do focused item selection like MS on clicks. 
511         Rework focus handling for ItemControl so LostFocus invalidates as
512         well.
513         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
514         the ListView ItemControl has focus.
515
516 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
517
518         * XplatUIX11.cs: If client_window ends up being width or height zero
519           due to border settings, move it off window inside whole_window (#78433)
520
521 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
522
523         * Mime.cs: Shrink the mime file cache correctly.
524
525 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
526
527         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
528
529 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
530
531         * XplatUIX11.cs (AddExpose): More sanity checks
532
533 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
534
535         * XplatUIX11.cs:
536           - AddExpose: Don't add expose ranges outside the size of our
537             window
538           - Cast opacity values to Int32 to avoid crashes with certain
539             values
540           - Added disabled code paths that protect against illegal cross-
541             thread painting (Developers.exe)
542
543 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
544
545         * ProgressBar.cs: Invalidate the control when it's resized
546           since block size is based on control size. (#78388)
547
548 2006-05-16  Miguel de Icaza  <miguel@novell.com>
549
550         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
551         of setting the incoming argument to the "reset" value, we set the
552         this.datamember to string.empty (before we were invalidating the
553         incoming data).   
554
555         Fixes 78420
556
557 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
558
559         * Form.cs: Only apply transparency settings after the form
560           is created. (Fixes #77800)
561
562 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
563
564         * ApplicationContext.cs: Grab the HandleDestroyed event so
565           we know when to fire OnMainFormClosed 
566
567 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
568
569         * Application.cs: Introduced sub-class to allow tracking of
570           threads and centralized triggering of the event mess for
571           ThreadExit, AppExit, etc..  (#76156)
572
573 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
574
575         * MimeIcon.cs:
576           - Do not return a null icon index value for a mime subclass.
577             Instead try the main mime type class too.
578           - Seems that some newer distributions don't have a link to some
579             gnome default icons anymore. So check the default gnome dir too.
580           
581
582 2006-05-16  Jackson Harper  <jackson@ximian.com>
583
584         * MdiClient.cs: Don't paint the parent background image if we have
585         our own background image.
586
587 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
588
589         * Control.cs:
590           - PerformLayout: Do not shrink space filled by DockStyle.Fill
591             controls, all filled controls are supposed to overlap (#78080)
592           - UpdateZOrder is supposed to update the control's z-order in the
593             parent's z-order chain. Fixed to behave like that
594           - BringToFront: Removed obsolete code
595           - SendToBack: Simplyfied
596           - SetChildIndex: Trigger layout calculations when Z-order changes
597             since layout is done by z-order
598
599 2006-05-16  Chris Toshok  <toshok@ximian.com>
600
601         [ fixes bug #78410 ]
602         * DataGrid.cs (set_AlternatingBackColor): use
603         grid_drawing.InvalidateCells instead of Refresh().
604         (set_BackColor): call grid_drawing.InvalidateCells.
605         (set_BackgroundColor): use Invalidate instead of Refresh.
606
607         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
608         invalidate the cell area.
609
610 2006-05-15  Chris Toshok  <toshok@ximian.com>
611
612         [ fixes bug #78011 ]
613         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
614         on to DataGridPaintRow.
615         (DataGridPaintRow): take a clip argument, and only draw the cells
616         which intersect it.  same with the not_usedarea.
617
618         * Theme.cs (DataGridPaintRow) add @clip parameter.
619
620         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
621         XplatUI.ScrollWindow.
622         (ScrollToRow): same.
623
624         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
625         with last column which was causing a gray swath to appear with the
626         XplatUI.ScrollWindow code.
627
628 2006-05-15  Chris Toshok  <toshok@ximian.com>
629
630         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
631         use XplatUI.ScrollWindow.
632         (VerticalScrollEvent): use XplatUI.ScrollWindow.
633
634 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
635
636         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
637
638 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
639
640         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
641           file since there are no equivalent X11 cursors
642
643 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
644
645         * MonthCalendar.cs : DateTimePicker should reflect selected date
646           on mouse*up*, not mouse*down*. Fixed originally reported part of
647           bug #76474.
648
649 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
650
651         * TabControl.cs : When argument index is equal or more than tab
652           count, just ignore. Fixed bug #78395.
653
654 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
655
656         * Control.cs: Dispose all child controls when control is diposed (#78394)
657
658 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
659
660         * ColorDialog.cs: Finally it is possible to select the color with
661           the text boxes
662
663 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
664
665         * PrintDialog.cs: Fix typo
666
667 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
668
669         * PrintDialog.cs: PrintDialog is not resizable
670         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
671           color. Made some ToolBar drawing methods protected virtual.
672
673 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
674
675         * PrintDialog.cs: Implementation of the PrintDialog
676
677 2006-05-12  Chris Toshok  <toshok@ximian.com>
678
679         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
680         thumb, instead use MoveThumb.  This has the side effect of making
681         most of the other thumb moving machinery use MoveThumb as well.
682         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
683         need to actually invalidate the rectangle where the new thumb will
684         go.
685         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
686         We force an Update() after, so it's not as fast as it could be,
687         but at least there's zero flicker and no droppings.
688         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
689         (UpdateThumbPos): add another argument (dirty), which says whether
690         or not to calculate/add dirty regions which we later invalidate.
691         For cases where we know we're going to use MoveThumb, we pass
692         false for this.  Otherwise, pass true.
693
694 2006-05-12  Jackson Harper  <jackson@ximian.com>
695
696         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
697         the status bar.
698         
699 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
700
701         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
702           and GetClipRegion methods and UserClipWontExposeParent property.
703         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
704           overriding UserClipWontExposeParent property, setting to false, since
705           Win32 handles the required expose messages to draw our clipped parent
706           areas internally
707         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
708           PaintEventStart to set the user clip region if set.
709         * Control.cs: 
710           - Now internally tracking the Region for the control since we need to
711             store it if the handle is not yet created and only set it when it
712             becomes created. Before setting the region forced handle creation
713           - Added code to draw the parents underneath a user-clipped region
714         * Hwnd.cs: Added UserClip property
715
716 2006-05-12  Chris Toshok  <toshok@ximian.com>
717
718         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
719         (set_Maximum): same.
720         (set_Minimum): same.
721         (set_SmallChange): same.
722         (OnMouseUpSB): remove the call to refresh when releasing the
723         thumb.  We shouldn't need it.
724         
725 2006-05-12  Miguel de Icaza  <miguel@novell.com>
726
727         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
728         AutoSize set to None, we do not need to relayout everything, we
729         just need to invalidate the current region.
730
731         (Draw): Do not draw the entire ClientArea, just redraw the
732         clip area being passed.
733
734         * MdiClient.cs: Make MdiClient constructor with the Form argument
735         internal. 
736
737 2006-05-12  Jackson Harper  <jackson@ximian.com>
738
739         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
740         parents background image,  but strangely not their own.
741         - (DrawStatusBarPanel): Take into account horizontal alignment
742         when drawing the strings and icons.
743
744 2006-05-12  Mike Kestner  <mkestner@novell.com>
745
746         * ListBox.cs: avoid invalidations for focus when the collection is
747         empty. 
748
749 2006-05-12  Chris Toshok  <toshok@ximian.com>
750
751         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
752         invalidate the entire thumb area.  Call InvalidateDirty which
753         limits the redraw to the thumb itself and surrounding pixels.
754
755         * XplatUIX11.cs (ScrollWindow): optimize copying.
756         
757 2006-05-12  Chris Toshok  <toshok@ximian.com>
758
759         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
760         Figure out the positioning/layout in a single pass instead of
761         multiple recursive invocations.  Speeds up the initial display of
762         the data grid.  Also, make many things private that were
763         originally public but unused outside this class.
764
765 2006-05-11  Jackson Harper  <jackson@ximian.com>
766
767         * MdiClient.cs: Improved layout code.
768
769 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
770
771         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
772           not SelectedObject.
773
774 2006-05-11  Chris Toshok  <toshok@ximian.com>
775
776         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
777         union of that will always be {0,0,width,height}.
778
779 2006-05-11  Jackson Harper  <jackson@ximian.com>
780
781         * Form.cs: Match MS's DefaultSize for forms (they must have
782         changed the size in sp2).
783
784 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
785
786         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
787
788 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
789
790         * TextControl.cs : Fixed bug #78109. This incorrect position
791           comparison caused crash on automatic line split.
792         * TextBoxBase.cs : reduce duplicate code.
793
794 2006-05-10  Jackson Harper  <jackson@ximian.com>
795
796         * MdiClient.cs: Active form is only sent to the back when using
797         the Next form functionality, when a form is clicked the current
798         active shouldn't be sent to the back.
799         - Layout the mdi windows when the container is first made visible.
800         * Form.cs: Give the MdiClient a ref to the containing form when we
801         create it.
802         
803 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
804
805         * LinkLabel.cs : link_font could be uninitialized, so populate one
806           before actual use. Fixed bug #78340.
807
808 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
809
810         * XplatUIX11.cs : clipboard format native value is IntPtr.
811           Fixed bug #78283.
812
813 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
814
815         * Control.cs: 
816           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
817             which is passed up the parent chain by DefWndProc
818           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
819             to DefWndProc (#77956)
820         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
821
822 2006-05-10  Jackson Harper  <jackson@ximian.com>
823
824         * MdiClient.cs: We need to remove the controls from the mdi
825         collection, when we close the window.
826         * MdiWindowManager.cs: Special handling of closing mdi windows.
827         * InternalWindowManager.cs: Make the close method virtual so the
828         mdi window manager can handle it specially.
829
830 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
831
832         * DataGrid.cs:
833           - Recalculate grid when the data source has changed
834           - Matches styles provided by user from all data sources types
835         * DataGridTableStyle.cs: For columns that provided by the user set the
836         with the preferred value is there was unassigned.
837         * CurrencyManager.cs: throw OnItemChanged event
838
839 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
840
841         * PictureBox.cs: Don't animate until handle is created. Start animation
842           when handle is created.
843
844 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
845
846         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
847           current codebase.
848         * XEventQueue.cs: We don't need to provide the extra info
849
850 2006-05-10  Jackson Harper  <jackson@ximian.com>
851
852         * MdiClient.cs: If the mdi clients parent form has a background
853         image set, we draw that background image for the mdi area's
854         background.
855
856 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
857
858         * TextBoxBase.cs: Set IBeam cursor (#78347)
859
860 2006-05-10  Mike Kestner  <mkestner@novell.com>
861
862         * ToolBar.cs: fix some text padding issues with ButtonSize
863         calculation. Update the default size to match MS documentation.
864         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
865         button size. Fixes #78296.
866
867 2006-05-10  Mike Kestner  <mkestner@novell.com>
868
869         * ListBox.cs: use is_visible for scrollbar positioning in case the
870         control isn't on screen yet.  Fix off by one with Right vs Width
871         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
872         
873 2006-05-10  Jackson Harper  <jackson@ximian.com>
874
875         * X11Dnd.cs: Drop to a control with another control on top of it.
876         * ToolBar.cs: Work on a copy of the buttons list, so that it can
877         be modified in click handlers. TODO: Look for similar problems in
878         other controls.
879
880 2006-05-09  Jackson Harper  <jackson@ximian.com>
881
882         * Form.cs: Window managers need the old window state when setting
883         window state now.
884         * InternalWindowManager.cs: Allow the base mdi window manager to
885         handle more of the MDI only stuff (like maximize buttons).
886         * MdiWindowManager.cs: Fix some snafus in changing the window
887         state.  Add all the menu functionality, for both popup and
888         maximized menus.
889         * MdiClient.cs: When a new form is selected the currently
890         activated form is sent to the back, this matches MS.
891         - Implement a new method to activate the next mdi child window.
892
893 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
894
895         * Control.cs: 
896           - Added new InternalCapture method to allow controls to prevent
897             the capture behaviour on the click handlers
898           - Switched to use InternalCapture
899         * ComboBox.cs:
900           - Using InternalCapture to prevent mouse captures from being released
901             on mouse button release (Fixes #78100)
902         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
903           returns Form borders if a caption is present. (Fixes #78310)
904
905 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
906
907         * TreeNode.cs: Changed serialization .ctor to not require every field
908           to be present. (#78265)
909         * OwnerDrawPropertyBag.cs: Added serialization .ctor
910
911 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
912
913         * MimeIcon.cs: for is faster than foreach for strings.
914
915 2006-05-05  Mike Kestner  <mkestner@novell.com>
916
917         * CheckedListBox.cs: update check handling code to not use selected.
918         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
919         behavior for visual feedback, motion response, shift/ctrl handling,
920         and properly deal with all 4 selection modes. Updates to bounds
921         handling logic.  Add scroll wheel support. [Fixes #77842]
922
923 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
924
925         * ListView.cs:
926           - Moved adding of Implicit controls into .ctor. That way, subsequent
927             creation of the controls will not cause them to think they are 
928             toplevel windows (fixes #78200 header problem)
929           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
930           - Switched visibility setting of header control to use internal field
931             to avoid triggering handle creation
932           - Now checking if handle is created before causing a refresh when items
933             are added (This makes us now match handle creation time with MS)
934         * Splitter.cs: Removed loading of private splitter cursor, switched to
935           Cursors version now that that is loading the right ones
936         * Cursors.cs: Load proper splitter cursors from resources
937         * Cursor.cs: Added second method of loading resource cursors for the 
938           VS.Net users amongst us
939
940 2006-05-05  Mike Kestner  <mkestner@novell.com>
941
942         * ListView.cs: give header_control a minimum size based on the
943         ListView size.
944
945 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
946
947         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
948           window seems to do that with metacity, so set that type. (#78120)
949
950 2006-05-05  Mike Kestner  <mkestner@novell.com>
951
952         * ListViewItem.cs: fix Details mode checkbox layout bug.
953         * ThemeWin32Classic.cs: draw a ListView column header for unused space
954         at the end of the header, if it exists. [Fixes for #78200]
955
956 2006-05-04  Jackson Harper  <jackson@ximian.com>
957
958         * MdiClient.cs: Add a helper property to get the container form.
959         * MdiWindowManager.cs: We have to make sure to use the menu origin
960         when drawing the icons and buttons, this fixes maximized window
961         icons/buttons on win32.
962         * InternalWindowManager.cs: Reset the restore captions when a
963         window goes from Maximized to Minimized and vice versa. Move the
964         DrawMaximizedButtons into the MdiWindowManager source, tool
965         windows can't be maximized. NOTE: This could use a little
966         refactoring if time ever permits.
967         
968 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
969
970         * TextBox.cs: Add MWFCategoryAttributes
971         * TextBoxBase.cs: Add MWFCategoryAttributes
972         * Form.cs: Add MWFCategoryAttributes
973
974 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
975
976         * Control.cs: Add MWFCategoryAttributes
977         * ScrollableControl.cs: Add MWFCategoryAttributes
978
979 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
980
981         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
982           Divider is true. Fix a little glitch in PropertyToolBar
983           drawing code
984
985 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
986
987         * Control.cs:
988           - Dispose: Call base.Dispose, this causes the disposed event
989             to be fired (and probably other, more important stuff)
990           - SetVisibleCore: Set is_visible to true after creating the
991             window so that the window still gets created invisible (if
992             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
993             to generate a WM_ACTIVE message
994         * Form.cs: Call Dispose when we want to destroy the window, instead of
995           just destroying the handle (Dispose will do that for us)
996         * XplatUIX11.cs:
997           - RootWindow also needs a queue, so we can properly process the
998             property change events from RootWindow (like Activate)
999           - Generatic synthetic WM_ACTIVE message when the active window is
1000             being destroyed
1001
1002 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1003
1004         * LinkLabel.cs: Trigger a recalc of our label dimensions when
1005           bounds are changed
1006
1007 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
1008
1009         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
1010           for determining width and height (image might not be assigned if
1011           we're drawing an imagelist)
1012
1013 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
1014
1015         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
1016         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
1017           height from system
1018         * Theme.cs: No longer returns hardcoded menu height, instead calls
1019           new driver method
1020         * Form.cs (OnLoad): Scaling happens before triggering Load events 
1021           on MS (# 78257)
1022
1023 2006-05-01  Mike Kestner  <mkestner@novell.com>
1024
1025         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
1026
1027 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
1028
1029         * TextBoxBase.cs: Removed Fixme
1030         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
1031
1032 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
1033
1034         * XplatUIX11.cs:
1035           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
1036             the rectangle relative to the parent, considering borders. We
1037             don't really want that.
1038           - ScrollWindow: Fixed warning to be more understandable
1039         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
1040           scrollbars and scroll only the visible area
1041         * RichTextBox.cs: Removed debug output
1042
1043 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1044
1045         * NumericUpDown.cs (Text): Just use base
1046         * UpDownBase.cs: Ensure txtView is created before using it
1047
1048 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1049
1050         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
1051           casting to IntPtr to avoid 64bit overflow errors
1052
1053 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1054
1055         * Control.cs:
1056           - AllowDrop: Don't force handle creation.
1057           - CreateHandle: Added call to tell driver if we're allowed to drop
1058
1059 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1060
1061         * FileDialog.cs: Remember the last directory not only for the
1062           current instance but also for new FileDialog instances.
1063
1064 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
1065         
1066         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
1067           broke sending async messages
1068
1069 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
1070
1071         * XplatUIX11.cs:
1072           - ScrollWindow: Fixed method. We finally generate expose events again
1073             for scrolled areas. This was causing 'garbage' when scrolling
1074             textbox and other controls that used ScrollWindow
1075           - Switched from using the regular queue for paint events to the MS 
1076             model of 'generating' paint events when the queue is empty.
1077             We use the new XQueueEvent.Paint subclass to store which windows
1078             need painting.
1079           - AddExpose now takes the x/y/width/height of the exposed area
1080             and inserts the window into the paint queue if not already there
1081           - InvalidateWholeWindow: Switched to use new AddExpose method
1082           - UpdateMessageQueue: Added which queue to monitor for paint events
1083           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
1084             the unlikely case nothing above handles it. We reset the expose
1085             pending states to get them off the queue.
1086           - GetMessage: Now pulls a paint event if no other events are in the
1087             queue
1088           - Invalidate: Switched to new AddExpose method
1089           - PeekMessage: Updated to understand pending paint events
1090           - UpdateWindow: Fixed logic bug. We were only updating if the window
1091             didn't need updating. Also switched to sending WM_PAINT directly,
1092             like MS does.
1093         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
1094           and random access Remove(). The random access is needed to handle
1095           UpdateWindow() where a WM_PAINT is sent directly without accessing
1096           the queue.
1097         * ScrollBar.cs: Added Update() calls to cause immediate updates to
1098           allow for better feedback when scrolling. Scrollbars are small and
1099           the immediate update should make it 'feel' more responsive without
1100           slowing things down. ScrollBar still needs it's invaliate logic
1101           updated to not always invalidate the whole bar on certain changes.
1102
1103 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1104
1105         * Control.cs:
1106         (BackColor): if the control does not support a transparent background,
1107         return the default backcolor when the parent backcolor is transparent.
1108
1109 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
1110
1111         * Application.cs: Updated to new StartLoop/GetMessage API
1112         * RichTextBox.cs: Provide some output on RTF parsing errors
1113         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
1114           new queue_id argument to GetMessage and PeekMessage to allow faster
1115           handling of per-thread queues in drivers.
1116         * Hwnd.cs: Added Queue tracking and property
1117         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
1118         * XEventQueue.cs: Added thread trackingA
1119         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
1120         * XplatUIX11.cs:
1121           - Implemented new per-thread queue
1122           - GetMessage: Fixed return/break behaviour on several cases. We were
1123             returning stale messages in some cases, instead of just processing
1124             the next message
1125
1126 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1127
1128         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
1129
1130 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
1131
1132         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
1133           fixed off-by-one comparisons between Width/Height and Right/Bottom.
1134
1135 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
1136
1137         * PropertyGridView.cs: Fix drop down width.
1138
1139 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1140
1141         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
1142           a mess in DrawToolBar, so I removed one of them.
1143
1144 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
1145
1146         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
1147           needed (clip). Otherwise we get artifacts.
1148
1149 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1150
1151         * FixedSizeTextBox.cs: Added constructor to allow specifying which
1152           dimension is fixed
1153         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
1154           and switched FixedSizeTextBox to only be fixed vertical (#78116)
1155         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
1156           if it matches the scale base font (avoids unneeded scaling)
1157
1158 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1159
1160         * X11DesktopColors.cs: One gtk_init_check should be enough
1161
1162 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
1163
1164         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
1165           match MS behaviour
1166
1167 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
1168
1169         * TextBoxBase.cs: 
1170           - Generate OnTextChanged for Backspace even if we're only deleting
1171             the current selection
1172           - When setting the Text property, only select all text if the
1173             control does not have focus when it is being set. Otherwise
1174             just place the cursor at the beginning of the control
1175
1176 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
1177
1178         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
1179           Added a little helper to draw PropertyGrid ToolBar with a different
1180           border and a different BackColor.
1181         * PropertyGrid.cs: Some background parts didn't get painted with the
1182           correct background color. Added a class that helps us to draw the
1183           correct border for PropertyGridView and a class that helps us to
1184           draw ToolBars with a different backcolor
1185         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
1186
1187 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
1188
1189         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
1190         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
1191
1192 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1193
1194         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
1195           into the palette entries. Also, since we're working on a copy
1196           we needed to copy the palette back onto the bitmap.
1197         * Cursor.cs: Same fix as XplatUIWin32.cs.
1198
1199 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
1200
1201         * ImageListStreamer.cs: Need to read the var (or we're off)
1202
1203 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
1204
1205         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
1206           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
1207           TextBoxBase.cs: Unused var fixes
1208         * AxHost.cs: Small 2.0 fix
1209         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
1210           as it seems that is what at least Metacity expects. This will make
1211           icons show up on 64bit platforms. We still have some 64bit size
1212           issues, though, since the startup app window size still won't match.
1213
1214 2006-04-25  Mike Kestner  <mkestner@novell.com>
1215
1216         * *.cs: cleanup newly reported exception var unused warnings.
1217
1218 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1219
1220         * ThemeWin32Classic.cs: Button image alignment now matches exactly
1221           ms
1222
1223 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1224
1225         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
1226           image. The image position is always the same, no matter if the
1227           button is pressed or not.
1228
1229 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
1230
1231         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
1232           selection and set the correct filename for SaveFileDialog.
1233           Patch by Emery Conrad.
1234
1235 2006-04-24  Mike Kestner  <mkestner@novell.com>
1236
1237         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
1238         check for item.X outside the ClientRect instead of item.Y. Fixes
1239         #78151.
1240
1241 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1242
1243         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
1244         trust that value blindly and do some sanity check. Fixes bug #77814.
1245
1246 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1247
1248         * ImageListStreamer.cs: save the mask as a 1bpp image.
1249
1250 2006-04-21  Mike Kestner  <mkestner@novell.com>
1251
1252         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
1253         pass Checked and Indeterminate to the Theme Engine. Improve
1254         encapsulation with ListBox.
1255         * ListBox.cs: Keep a StringFormat instead of calculating it every item
1256         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
1257         nested types.  Move all CheckState functionality to CheckedListBox.
1258         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
1259         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
1260         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
1261         single base list. Fix scrollbar sizing and placement to mirror MS.
1262         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
1263         used.
1264         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
1265         for CheckedListBox by using new DrawItemState info.  Center the
1266         checkboxes on the items. Use new StringFormat property.
1267
1268 2006-04-18  Jackson Harper  <jackson@ximian.com>
1269
1270         * Form.cs: MdiChildren don't do default locations the same way as
1271         regular forms.  This prevents a crash when trying to position the
1272         mdi windows.
1273
1274 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
1275
1276         * PropertyGridTextBox.cs: Formatting, copyright
1277         * PropertiesTab.cs: Formatting
1278         * PropertyGrid.cs: Formatting
1279         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
1280           click toggling of values
1281           
1282 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
1283
1284         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
1285         * Control.cs (.ctor): verify_thread_handle is static, don't reset
1286           every time a control is created
1287         * Application.cs: Removed obsolete EnableRTLMirroring method
1288
1289 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
1290
1291         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
1292         SelectedIndex to -1. Fixes bug #78121.
1293
1294 2006-04-17  Jackson Harper  <jackson@ximian.com>
1295
1296         * Binding.cs: Handle null values for Current and BindingContext.
1297         This occurs when binding is a little delayed.
1298         * CurrencyManager.cs: return null for Current when there are no
1299         items in the list.
1300         - Hookup to the listchanged event on the DataView and update
1301         bindings when the list is changed.  This fixes late binding of
1302         controls.
1303
1304 2006-04-17  Jackson Harper  <jackson@ximian.com>
1305
1306         * X11Dnd.cs:
1307         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
1308         Ringenbach.
1309
1310 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
1311
1312         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
1313           place
1314         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
1315           with the correct ButtonState
1316
1317 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
1318
1319         * XplatUIX11.cs: Improved distinguishing between window types to
1320           tell the WM a type closer to what the app wants (Fixes #78107)
1321
1322 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1323
1324         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
1325           GrabHandle
1326
1327 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
1328
1329         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
1330           drawing code to reflect the size grip changes
1331
1332 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1333
1334         * ImageListStreamer.cs: fix handling of the mask that follows the main
1335         bitmap when deserializing and serialize it properly. The generated mask
1336         should better be a 1bpp image, but I'll do that later.
1337
1338 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1339
1340         * FileDialog.cs: Show something in the DirComboBox on *nix if the
1341           path doesn't fit into some of our Current.Places
1342
1343 2006-04-13  Jackson Harper  <jackson@ximian.com>
1344
1345         * ComboBox.cs: Use borders instead of drawing our own decorations,
1346         try to obey correct rules for heights.
1347         * Theme.cs:
1348         * ThemeNice.cs:
1349         * ThemeClearLooks.cs:
1350         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
1351         this is now handled by borders.
1352         - Remove unused DrawListBoxDecorationSize method.
1353         
1354 2006-04-13  Mike Kestner  <mkestner@novell.com>
1355
1356         * MenuAPI.cs: null guarding for the disbled click check fixes crash
1357         reported by Alex.
1358
1359 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
1360
1361         * ThemeWin32Classic.cs: 
1362           - Fixed CPDrawStringDisabled
1363           - Corrected drawing of disabled menu items
1364           - Fixed drawing of disabled radio buttons (bug #78095)
1365           - Draw check in a disabled CheckBox with color ControlDark 
1366
1367 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1368
1369         * Form.cs: Use the provided width when calculating the menu size;
1370           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
1371           and ClientSize.Width won't be updated yet
1372         * Application.cs: Use Visible instead of Show() to make form visible,
1373           this way we create the handle later and menusize is considered
1374
1375 2006-04-12  Mike Kestner  <mkestner@novell.com>
1376
1377         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
1378         reporting.
1379
1380 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1381
1382         * TextBox.cs: Implemented context menu
1383
1384 2006-04-12  Mike Kestner  <mkestner@novell.com>
1385
1386         * ListView.cs: implement box selection. fixes #77838.
1387         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
1388
1389 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1390
1391         * XplatUIX11.cs: Added setting of window type when transient window
1392           is created (metacity would move it otherwise)
1393         * X11Structs.cs: Added WINDOW_TYPE atoms
1394         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
1395           background (the control is Opaque but still wants transparent
1396           backgrounds)
1397
1398 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1399
1400         * Control.cs: Added OnPaintBackgroundInternal to allow controls
1401           that set Opaque but don't mean it (like all ButtonBase-derived
1402           controls) to still draw their background
1403         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
1404           the background
1405
1406 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
1407
1408         * Control.cs (PaintControlBackground): Set the graphics object
1409           on our PaintEvent to null to prevent it from being disposed
1410           when the PaintEvent gets disposed
1411
1412 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
1413
1414         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
1415         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
1416
1417 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
1418
1419         * Control.cs: 
1420           - Added transparency check to BackColor property. Transparent
1421             backgrounds are only allowed if the control styles permit it
1422           - Added recursive painting of parent control background and
1423             foreground if a control with a transparent backcolor is drawn
1424             (Thanks to Tim Ringenback for providing his 'hack' as a base
1425              for this patch) Fixes #77985 and #78026.
1426           - Added Opaque style check before calling OnPaintBackground, no
1427             need to draw the background if the control is opaque
1428           - Removed ControlAccessibleObject owner variable (inherited from
1429             base, no need to define again)
1430           - Added some documentation links explaining the drawing events
1431             and styles
1432
1433 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1434
1435         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
1436           that the affected control is the located at the left border of our
1437           parent (Fixes #77936)
1438
1439 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1440
1441         * TextBoxBase.cs: When rendering disabled or readonly controls,
1442           draw the background with 'Control' instead of 'Window' color as
1443           long as the user hasn't specifically set a color
1444
1445 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
1446
1447         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
1448           since that won't be updated if the user types text (only if it's
1449           programatically set)
1450
1451 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1452
1453         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
1454           layout changes do to app-triggered resizes will have the proper
1455           display rectangle for layout
1456
1457 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
1458
1459         * ThemeWin32Classic.cs:
1460           - Make use of the SystemBrushes and SystemPens wherever possible
1461           - Corrected some highlight colors
1462           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
1463             drawing
1464         * Theme.cs: Added Empty field to CPColor struct
1465
1466 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
1467
1468         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
1469           is displayed when calculating the display rectangle. Thanks to Mike
1470           for teaching me the err of my ways.
1471
1472 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
1473
1474         * ScrollableControl.cs:
1475           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
1476             (instead of 0,0) and we now return the real width/height instead of
1477             just the clientrectangle, adjusted for padding. The rectangle is
1478             now cached and created by the new CalculateDisplayRectangle method.
1479           - Created new CalculateDisplayRectange method, which basically does
1480             what get_DisplayRectangle() did originally, but now using the 
1481             right edge instead of DisplayRectangle to determine the size of
1482             our scrollbars
1483           - get_Canvas(): Fixed it to properly calculate canvas for 
1484             right/bottom controls which seem to be placed to the right/bottom
1485             of any controls that have a fixed location
1486           - Removed TODO that's taken care of
1487           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
1488             and SetDisplayRectLocation according to new MSDN2 docs
1489           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
1490             event when that is called, this is added for compatibility
1491           - ScrollControlIntoView(): Implemented.
1492           - Switched scrollbars to be implicit, they shouldn't be selectable
1493         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
1494           call it when the active control is set/changed
1495         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
1496         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
1497           implicit_control variable (used for native Win32 message generation)
1498         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
1499           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
1500         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
1501         * XplatUIStructs.cs: Added ScrollBarCommands enum
1502
1503 2006-04-10  Jackson Harper  <jackson@ximian.com>
1504
1505         * ButtonBase.cs:
1506         * CheckedListBox.cs:
1507         * ComboBox.cs:
1508         * DataGrid.cs:
1509         * DataGridView.cs:
1510         * Form.cs:
1511         * GroupBox.cs:
1512         * ListBox.cs:
1513         * PrintPreviewControl.cs:
1514         * ProgressBar.cs:
1515         * PropertyGrid.cs:
1516         * Splitter.cs:
1517         * StatusBar.cs:
1518         * TrackBar.cs:
1519         * UpDownBase.cs: Fixup base event overrides.
1520         
1521 2006-04-06  Mike Kestner  <mkestner@novell.com>
1522
1523         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
1524         all user-initiated value changes to min <= value <= max-thumbsz+1.
1525         (set_Value): check for vert/horiz when calculating new thumb position.
1526         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
1527         like MS does.
1528         (OnMouseMoveSB): refactor the thumb dragging code and refine
1529         invalidation logic to reduce flicker.
1530         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
1531         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
1532         (UpdateThumbPosition): small code readability cleanup
1533
1534 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
1535
1536         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
1537           different
1538
1539 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1540
1541         * ThemeNice.cs: Use a better graphics effect when a button is pressed
1542
1543 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
1544
1545         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
1546         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
1547           This dramatically reduces the number of Pen.Dispose calls. 
1548           Where possible call ResPool methods only once instead of calling it
1549           over and over again (for example for the same color).
1550
1551 2006-04-06  Mike Kestner  <mkestner@novell.com>
1552
1553         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
1554         Also remove an unused private field on the collection. Fixes #77972.
1555
1556 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1557
1558         * ThemeNice.cs: Added ToolBar drawing code
1559
1560 2006-04-06  Mike Kestner  <mkestner@novell.com>
1561
1562         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
1563         I'm assuming that means we need to look up the toplevel for the
1564         provided control. Fixes the crash trace in #77911 but exposes another
1565         crash in some strange reflection usage in NDocGui.
1566
1567 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
1568
1569         * ThemeNice.cs: Gave it a little silver touch and added Images
1570           method
1571         * FontDialog.cs: FontDialog is not resizable
1572         * FileDialg.cs: Added SizeGripStyle.Show
1573
1574 2006-04-05  Jackson Harper  <jackson@ximian.com>
1575
1576         * KeyboardLayouts.cs: Remove warning.
1577
1578 2006-04-05  Jackson Harper  <jackson@ximian.com>
1579
1580         * Control.cs: Enable OnPaintInternal so we can use it for drawing
1581         all of our controls instead of Paint +=.
1582         * ListBox.cs:
1583         * ListView.cs:
1584         * MenuAPI.cs:
1585         * MessageBox.cs:
1586         * NotifyIcon.cs:
1587         * ProgressBar.cs:
1588         * ScrollBar.cs:
1589         * Splitter.cs:
1590         * StatusBar.cs:
1591         * TabControl.cs:
1592         * TextBoxBase.cs:
1593         * ToolBar.cs:
1594         * TrackBar.cs:
1595         * UpDownBase.cs:
1596         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
1597         use OnPaintInternal. Remove Width/Height and Visible checks in
1598         paint handler, this is done at a higher level now.
1599         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
1600         * PaintEventArgs.cs: Add a handled flag so controls that don't
1601         want anymore painting after OnPaintInternal can make sure OnPaint
1602         isn't called.
1603
1604 2006-04-05  Mike Kestner  <mkestner@novell.com>
1605
1606         * Form.cs: fix the menu WndProc hacks to respect the native enabled
1607         state of the form, so that we don't process events when Modal dialogs
1608         are up. Fixes #77922.
1609
1610 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
1611
1612         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
1613           checking is done.
1614
1615 2006-04-05  Mike Kestner  <mkestner@novell.com>
1616
1617         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
1618
1619 2006-04-05  Mike Kestner  <mkestner@novell.com>
1620
1621         * ListView.cs (HeaderMouseMove): null guarding for the over column
1622         when setting up the drag_to_index.  Fixes #78015.
1623
1624 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
1625
1626         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
1627           in the taskbar. Transient windows seem to accomplish that.
1628
1629 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
1630
1631         * Form.cs:
1632           - Re-enabled CreateParams.X/Y code for FormStartPosition
1633           - Added code for manual placement when creating the Control
1634           - Incomplete patch to treat MDI forms differently when
1635             setting the ClientSizeCore. (Still need to figure out handling
1636             x/y coords there)
1637         * XplatUIX11.cs:
1638           - When we're explicitly setting the X/Y position of a non-Child
1639             window, let the WM know. Metacity really wants this.
1640
1641 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1642
1643         * ThemeNice.cs: Added CPDrawButton
1644
1645 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1646
1647         * ThemeNice.cs: Changed the color for focused buttons and activated
1648           the arrows for small scroll buttons.
1649
1650 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
1651
1652         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
1653           anymore. Changed some method modifiers to protected (virtual)
1654         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
1655           changes
1656         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
1657           Updated drawing of menus, buttons and progressbars; added
1658           CPDrawBorder3D 
1659
1660 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1661
1662         * ImageListStreamer.cs: implemented serialization/deserialization
1663         of the images.
1664
1665 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
1666
1667         * ThemeWin32Classic.cs:
1668           - Removed all the DrawFrameControl stuff; CPDrawButton,
1669             CPDrawCheckBox and CPDrawRadioButton are now handled directly
1670             inside the methods
1671           - Updated and corrected the drawing code of CPDrawButton,
1672             CPDrawCheckBox and CPDrawRadioButton to better match ms
1673           - Updated theme checkbox and radiobutton code to use the CP*
1674             methods
1675
1676 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1677
1678         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
1679           bug is fixed
1680
1681 2006-03-31  Jackson Harper  <jackson@ximian.com>
1682
1683         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
1684         sometimes.
1685         * UpDownBase.cs: Don't CreateGraphics manually, use a
1686         Refresh. Ideally we would invalidate the correct areas here.
1687
1688 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
1689
1690         * XplatUIX11.cs: 
1691           - We now track the mapping state of windows. If a window (or 
1692             one of it's parents) is not mapped we no longer permit
1693             WM_PAINT messages to be generated since we'd otherwise get 
1694             lots of BadMatch X errors. Jackson did all the work figuring
1695             out the problem.
1696           - Destroying the caret if the window it's contained in is 
1697             destroyed. Can't use regular DestroyCaret method since it
1698             might fall into a drawing function (trying to remove the
1699             caret) and with that generate new BadMatch errors. Again,
1700             Jackson tracked this down.
1701           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
1702             make sure we send the messages to all windows. (The old code
1703             would send the WM_DESTROY to the window, and then all child
1704             windows would be 'gone' because the WM_DESTROY handle lookup
1705             would no longer find the destroyed window)
1706         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
1707         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
1708
1709 2006-03-31  Jackson Harper  <jackson@ximian.com>
1710
1711         * ScrollableControl.cs: Dont recalc if we are not visible.
1712
1713 2006-03-31  Mike Kestner  <mkestner@novell.com>
1714
1715         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
1716         the visibility branch.
1717
1718 2006-03-31  Jackson Harper  <jackson@ximian.com>
1719
1720         * ScrollBar.cs: Cap values when incrementing/decrementing.
1721
1722 2006-03-31  Mike Kestner  <mkestner@novell.com>
1723
1724         * MenuAPI.cs: setup menu.tracker for popup/context menus.
1725         * ToolTip.cs: guard against timer expirations with no active control.
1726         Not sure why it happened.
1727
1728 2006-03-31  Mike Kestner  <mkestner@novell.com>
1729
1730         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
1731         text.
1732         * ToolTip.cs: Position the tooltip based on where the cursor is at
1733         popup time, not at MouseEnter time.  Add a Down state so that we don't
1734         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
1735         positioning offset. Lookup DisplaySize at positioning time, since it
1736         can theoretically change during invocation.
1737         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
1738         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
1739
1740 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1741
1742         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
1743           Fixes behaviour when the Text property of the box is String.Empty
1744
1745 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
1746
1747         * XplatUIX11.cs: Only send mouseleave for our client windows, not
1748           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
1749           a window)
1750
1751 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1752
1753         * FileDialog.cs: Visual enhancement for the popup buttons in 
1754           PopupButtonPanel
1755
1756 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
1757
1758         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
1759           code
1760
1761 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
1762
1763         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
1764           highlighted menu items to match ms
1765
1766 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
1767
1768         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
1769
1770 2006-03-30  Mike Kestner  <mkestner@novell.com>
1771
1772         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
1773         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
1774         go active to account for HotLight to Selected transition.
1775         * MenuItem.cs: add internal Selected prop. Fill out the Status
1776         property by calculating it from item info. Add HotLight,
1777         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
1778
1779 2006-03-30  Mike Kestner  <mkestner@novell.com>
1780
1781         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
1782
1783 2006-03-29  Jackson Harper  <jackson@ximian.com>
1784
1785         * Form.cs: Implement TODO.
1786
1787 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
1788
1789         * PrintPreviewDialog.cs: Implemented missing methods and events; still
1790           missing proper dialog setup in the constructor
1791
1792 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
1793
1794         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
1795         * Control.cs:
1796           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
1797           - Fixed ResetBindings and removed TODO
1798           - Added check for cross-thread calls to get_Handle()
1799           - Added Marshaller attribute for set_Font to satisfy class status
1800         * FontDialog.cs: Removed TODOs that seemed implemented
1801         * UpDownBase.cs: Removed unneeded TODO and Fixme
1802         * MessageBox.cs: Implemented support for Default button and removed TODO
1803         * FileDialog.cs: Removed obsolete TODO
1804         * DomainUpDown.cs: Removed obsolete TODO
1805         * ButtonBase.cs: Removed obsolete TODO
1806         * XplatUIWin32.cs: Removed obsolete TODO
1807         * Form.cs:
1808           - Removed obsolete TODO
1809           - Calling CheckAcceptButton when the acceptbutton is changed to allow
1810             internal status updates
1811           - Making sure the active control is selected when the control is created
1812         * CurrencyManager.cs: Removed obsolete TODO
1813
1814 2006-03-29  Mike Kestner  <mkestner@novell.com>
1815
1816         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
1817         of PrintPreviewDialog and RichTextBox.
1818
1819 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1820
1821         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
1822           DarkDark, Light and LightLight colors for a specific color
1823         * ThemeWin32Classic.cs:
1824           - Use Button drawing code to draw RadioButtons and CheckBoxes with
1825             Appearance = Button 
1826           - Make use of the new ResPool helper CPColor
1827           - Draw ProgressBar and StatusBar with correct 3D borders
1828
1829 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
1830
1831         * ColorDialog.cs: Return selected color. Fixes bug #77940.
1832
1833 2006-03-28  Mike Kestner  <mkestner@novell.com>
1834
1835         * ListView.cs: fix Icon layout to plan for scrollbar widths when
1836         calculating col/row counts.
1837
1838 2006-03-28  Mike Kestner  <mkestner@novell.com>
1839
1840         * ColumnHeader.cs:
1841         * ListView.cs:
1842         * ListViewItem.cs:
1843         * Menu.cs: 
1844         switch to explicit interface method implementation for some methods
1845         corcompare identifies as inconsistent with MS.
1846
1847 2006-03-28  Mike Kestner  <mkestner@novell.com>
1848
1849         * MainMenu.cs: 
1850         * Menu.cs:
1851         add a few missing methods from the class status output.
1852
1853 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
1854
1855         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
1856           correct.
1857
1858 2006-03-28  Mike Kestner  <mkestner@novell.com>
1859
1860         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
1861
1862 2006-03-27  Mike Kestner  <mkestner@novell.com>
1863
1864         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
1865         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
1866
1867 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
1868
1869         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
1870
1871 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1872
1873         * ThemeWin32Classic.cs:
1874           - GroupBox: Inserted a little gap between the text and the lines
1875             on the right side
1876           - Made the code in CPDrawBorder3D more readable
1877           - Corrected the drawing location of the up and down arrows in 
1878             CPDrawScrollButton
1879
1880 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1881
1882         * ControlPaint.cs: Corrected line widths in DrawBorder for
1883           ButtonBorderStyle Inset and Outset
1884
1885 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1886
1887         * ThemeWin32Classic.cs:
1888           - Rewrote the totally broken CPDrawBorder3D method. That was
1889             one of the main problems for the terrific ThemeWin32Classic
1890             look
1891           - Updated and corrected Button drawing
1892           - Correct the dimensions of the SizeGrip to match ms ones
1893           - Removed a small drawing glitch in DrawComboBoxEditDecorations
1894         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
1895           Border3DStyle.Sunken to match ms.
1896
1897 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
1898
1899         * ThemeWin32Classic.cs: First small part of the "de-uglify
1900           ThemeWin32Classic" effort, SizeGrip
1901
1902 2006-03-24  Jackson Harper  <jackson@ximian.com>
1903
1904         * XplatUIX11.cs: Give a max idle time of one second, this matches
1905         MS and forces an Idle event every second when there are no other
1906         events in the queue.
1907
1908 2006-03-24  Mike Kestner  <mkestner@novell.com>
1909
1910         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
1911         * ListView.Item.cs: fix layout issues with null image lists and images
1912         smaller than checkbox size.
1913         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
1914         mode like MS does.  It's weird, but consistent.  ;-)
1915         Fixes #77890.
1916
1917 2006-03-24  Mike Kestner  <mkestner@novell.com>
1918
1919         * ListView.cs: Scroll wheel support for the item control.  Fixes
1920         #77839.
1921
1922 2006-03-23  Jackson Harper  <jackson@ximian.com>
1923
1924         * ScrollableControl.cs: Special case negative sized areas, not
1925         zero.
1926         * MonthCalendar.cs: Save the rect of the clicked date so we can
1927         use it for invalidation.
1928         - Try to cut down on the number of invalidates
1929         - Invalidate the rect the mouse is over and was over when moving
1930         the mouse, so we get the focus box following the cursor.
1931
1932 2006-03-23  Mike Kestner  <mkestner@novell.com>
1933
1934         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
1935         focus rectangle drawing. Fixes #77835.
1936
1937 2006-03-23  Mike Kestner  <mkestner@novell.com>
1938
1939         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
1940         the if and else if and reverting back to the original == check on the
1941         None conditional.
1942
1943 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1944
1945         * FontDialog.cs: Update the example panel if the selected index of
1946           the fontListBox changes.
1947
1948 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
1949
1950         * FileDialog.cs: Make FileDialog remember which directory it was in
1951           last in the same execution.
1952
1953 2006-03-22  Mike Kestner  <mkestner@novell.com>
1954
1955         * FileDialog.cs: make the DropDownMenu on the toolbar display
1956         RadioChecks since they are mutually exclusive and that's what MS does.
1957
1958 2006-03-22  Mike Kestner  <mkestner@novell.com>
1959
1960         * Theme.cs: add Color param to CPDrawMenuGlyph.
1961         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
1962         checks and radio marks and arrows are visible on highlighted items.
1963         * ControlPaint.cs: update to use new Theme signature.
1964
1965 2006-03-22  Mike Kestner  <mkestner@novell.com>
1966
1967         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
1968         is active. Fixes #77870.
1969
1970 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1971
1972         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
1973           to be focused/selected after startup
1974
1975 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
1976
1977         * ColorDialog.cs: 
1978           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
1979             CustomColors and ShowHelp properties
1980           - Some internal rewrites to get better results when using the
1981             ColorMatrix
1982
1983 2006-03-22  Mike Kestner  <mkestner@novell.com>
1984
1985         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
1986         HoverSelection.  Fixes #77836.
1987
1988 2006-03-22  Mike Kestner  <mkestner@novell.com>
1989
1990         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
1991         ToggleButtons.  (De)Sensitize the Back button around a stack count of
1992         1, not 0.  Update ButtonSize based on a pixel count of the win32
1993         control.  Adjust the toolbar size/location for new button size.
1994
1995 2006-03-22  Jackson Harper  <jackson@ximian.com>
1996
1997         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
1998         true.
1999         * ScrollBar.cs: When doing increments and decrements we need to
2000         set the Value property so that ValueChanged gets raised. A
2001         possible optimization here would be to make an internal SetValue
2002         that doesn't invalidate immediately.
2003         * ToolTip.cs: Tooltips get added to their container (when
2004         supplied) so they get disposed when the container is disposed.
2005         - Don't create tooltips for String.Empty. This prevents all these
2006         little 2-3 pixel windows from showing up when running nunit-gui
2007         and driving me mad.
2008         * Form.cs: Don't set topmost when setting the owner if the handles
2009         haven't been created yet.  The topmost set will happen when the
2010         handles are created.
2011
2012 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
2013
2014         * XplatUIX11.cs:
2015           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
2016           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
2017             visible (to allow them to recalculate their sizes)
2018
2019 2006-03-21  Mike Kestner  <mkestner@novell.com>
2020
2021         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
2022         methods. Removed a ton of redundant code.  Still not really happy with
2023         the border rendering, but I think that's mainly because of the
2024         ControlDarkDark being black instead of a dark grey. Depending on how 
2025         close we want to be, we might want to revisit those color choices.
2026         Among the new features added during the refactor were DropDownArrow
2027         pressed rendering, Disabled image rendering.  Proper flat appearance
2028         boundary rendering.  Removed the Divider and Wrapping dividers since I
2029         can't figure out any combination of themes and conditions to make the
2030         MS control draw a horizontal line on a toolbar despite what the
2031         Divider property docs indicate.
2032         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
2033         conditions and incorrect layout.  Updated to coding standard.
2034         * ToolBarButton.cs: refactored layout and positioning code from
2035         ToolBar to here.  Invalidate wherever possible instead of forcing
2036         redraws of the whole toolbar. 
2037         (Known remaining issues: explicit ButtonSize smaller than provided
2038         images.)
2039
2040 2006-03-21  Mike Kestner  <mkestner@novell.com>
2041
2042         * ContextMenu.cs (Show): use the position parameter instead of just
2043         showing at the MousePosition.
2044
2045 2006-03-21  Jackson Harper  <jackson@ximian.com>
2046
2047         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
2048         control handle this.
2049         * TreeNodeCollection.cs: If we are clearing the root node we need
2050         to reset top_node so calcs can still happen.
2051         * ThemeWin32Classic.cs: This is a Flags so we need to check
2052         properly.
2053         
2054 2006-03-21  Jackson Harper  <jackson@ximian.com>
2055
2056         * DataGrid.cs: Create columns when the binding context has been
2057         changed.
2058         * X11Structs.cs: Keysyms are uints.
2059         - Add size to fix build.
2060
2061 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
2062
2063         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2064           XplatUIOSX.cs: 
2065           - Added ResetMouseHover method to allow controls to retrigger
2066             hovering if they need it more than once
2067           - Implemented MouseHoverTime and MouseHoverSize properties
2068         * Timer.cs: Start() must reset the interval
2069         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
2070           properties
2071
2072 2006-03-21  Jackson Harper  <jackson@ximian.com>
2073
2074         * X11Keyboard.cs: improved layout detection. Move the nonchar
2075         tables into this file.
2076         * KeyboardLayouts.cs: Move the tables into resource files.
2077
2078 2006-03-21  Mike Kestner  <mkestner@novell.com>
2079
2080         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
2081
2082 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
2083
2084         * Mime.cs: Various speed optimizations. Looking up mime types
2085           is now 2 times faster than before
2086
2087 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
2088
2089         * CreateParams.cs: Added internal menu field
2090         * Control.cs: 
2091           - Switched call order for UpdateBounds; now we always call
2092             the one that also takes ClientSize, and we're calculating the 
2093             client size via driver method in the others. The previous
2094             method of tracking client size by difference wasn't working
2095             for forms where even the starting client size wouldn't match
2096             the overall form size (due to borders) (Part of fix for #77729)
2097           - CreateParams(): Do not use parent.Handle unless the handle is
2098             already created. Causes havoc with Nexxia and throws off our
2099             creation of controls
2100         * XplatUIX11.cs:
2101           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
2102           - Switched handling of ConfigureNotify over to new PerformNCCalc 
2103             method (consolidates code)
2104           - Changed RequestNCRecalc to use new PerformNCCalc method
2105           - Added calls to RequestNCRecalc when menus and borders are changed
2106             to allow app to set NC size. (Part of fix for #77729) This matches
2107             when MS send a WM_NCRECALC on Win32 windows.
2108           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
2109             (Part of fix for #77729). This matches what MS does, they also
2110             send that message when the form is made visible.
2111           - XException.GetMessage: Improved usability of X errors by including
2112             a translation of the window into Hwnd and Control class
2113           - Improved debug info for window creation, reparenting and destruction
2114           - Created helper method WindowIsMapped() [Currently not used]
2115         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
2116         * Form.cs:
2117           - CreateParams: Now setting our menu on the new internal menu field
2118           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
2119             avoid calculating the same property twice
2120         * Hwnd.cs:
2121           - Improved usability of ToString() for debugging purposes
2122           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
2123             determine the height of the menu, instead of just the font. This
2124             required to also create a graphics context and to keep a bmp 
2125             around (for performance reasons)
2126
2127 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
2128
2129         * MenuAPI.cs: Added OnMouseUp method
2130         * Form.cs:
2131           - Now remembering the requested client size, avoids size errors
2132           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
2133             instead of base if the menu is active. This is required due to
2134             control now capturing and releasing on down/up and it would
2135             prematurely release our menu capture
2136
2137 2006-03-17  Jackson Harper  <jackson@ximian.com>
2138
2139         * KeyboardLayouts.cs: Add the czech layouts.
2140
2141 2006-03-16  Jackson Harper  <jackson@ximian.com>
2142
2143         * Control.cs: Use the viewport space when sizing not the controls
2144         client size, so things like ScrollableControl that effect the
2145         viewport size (when scrollbars are added) are computed correctly.
2146         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
2147         of ManagerEntrys.
2148         - Handle creating BindingManagers for null data sources.
2149         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
2150         source, otherwise when rows are added they are added to the 'fake'
2151         datasource and we will crash when trying to set the position in
2152         those rows.
2153         - Use Implicit scrollbars on the datagrid so they arent
2154         selectable.
2155         
2156 2006-03-16  Jackson Harper  <jackson@ximian.com>
2157
2158         * Binding.cs:
2159         * InternalWindowManager.cs:
2160         * MdiWindowManager.cs:
2161         * X11Keyboard.cs: I really want Mike to love me again (fix
2162         compiler warnings).
2163
2164 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
2165
2166         * DataGrid.cs:
2167           - OnMouseDown: Switch to editing mode when clicking on the cell
2168                          even if we're clicking on the cell that's currently 
2169                          selected
2170           - ProcessGridKey: Left/Right now wrap like MS.Net does
2171           - ProcessGridKey: Tab now knows to add a new row when tab is
2172                             pressed in the cell of the last column of the 
2173                             last row
2174           - ProcessGridKey: Enter now adds another row  if pressed in the last
2175                             row and selectes the new row, same column cell
2176           - ProcessGridKey: Home/End navigate columns, not rows, like 
2177                             originally implemented
2178           - Broke ProcessKeyPreview code out into an extra Internal method
2179             so it can be called from the edit code
2180         * DataGridTextBox.cs (ProcessKeyMessage):
2181           - Switched to accept Tab keypresses
2182           - Added F2 handling to allow jumping to the end of the edited cell
2183           - Added logic to allow moving caret left/right inside edited cell
2184             and making the edited cell jump when the caret hits cell borders
2185           - Tab and Enter are now passed to the datagrid after being handled
2186         * TextBoxBase.cs:
2187           - Removed capture code now that Control handles it
2188           - set_SelectionStart now ensures caret is visible
2189
2190 2006-03-16  Jackson Harper  <jackson@ximian.com>
2191
2192         * TrackBar.cs: Debackwards the increment/decrement for handling
2193         mouse clicks on the bar with vertical trackbars.
2194         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
2195         bottom to match MS.
2196
2197 2006-03-16  Mike Kestner  <mkestner@novell.com>
2198
2199         * ListView.cs: make shift/ctrl keyboard and mouse selection 
2200         consistent with the MS control. Fix a bug in
2201         SelectedListViewItemCollection.Clear that was pissing me off for the
2202         better part of a day because the collection was being altered
2203         underneath us as we walked the list.
2204
2205 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
2206
2207         * Control.cs: Not sure how we could miss this so long, but it seems
2208           that MS.Net has Capture set all the way from before calling 
2209           OnMouseDown through sending the mouse events until after
2210           OnMouseUp. This will fix DataGrid's selection being set to end
2211           at the location of the MouseUp.
2212
2213 2006-03-15  Jackson Harper  <jackson@ximian.com>
2214
2215         * BindingContext.cs: Check the binding after its added so that it
2216           can initialize the binding managers and hookup to events.
2217         * Binding.cs: Data members seem to sometimes include rows/cols in
2218           the format Row.Column we now take this into account.
2219           - Hookup to the position changed event so we can update the
2220           control when the position has changed in the data set.
2221         * CurrencyManager.cs: Take into account the row/col naming
2222           convention when creating dataset tables.
2223         * BindingContext.cs: Using a newer better way of storing
2224           datasource/datamember pairs.  Hopefully this better matches MS for
2225           looking up binding managers.
2226
2227
2228 2006-03-15  Jackson Harper  <jackson@ximian.com>
2229
2230         * BindingContext.cs: The currency manager needs the data member
2231         name, if the member is a data set we use the name to find the
2232         correct table.
2233         * CurrencyManager.cs: When creating the list prefer an IList over
2234         an IListSource.
2235         - Attempt to create a DataTable from a DataSet (TODO: might need
2236         some better error checking here, although MS doesn't seem to have much)
2237         - If we have a DataTable create a view and use it as our list.
2238
2239 2006-03-15  Mike Kestner  <mkestner@novell.com>
2240
2241         * ListView.cs: keep a matrix of the icon mode layout to facilitate
2242         keyboard navigation. Support Up/Down/Left/Right selection correctly
2243         for all 4 View modes.
2244         * ListViewItem.cs: add internal row/col fields for icon layouts.
2245
2246 2006-03-15  Jackson Harper  <jackson@ximian.com>
2247
2248         * TabControl.cs: Redraw the tabs when we resize so their newly
2249         calculated sizes are drawn on screen.
2250         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
2251         composite characters.
2252         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
2253         - filter events so that composite characters can be created
2254         patches by peter
2255         * X11Structs.cs: Add XIMProperties enum.
2256
2257 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2258
2259         * Control.cs (BringToFront, SendToBack): Don't use window or handle
2260           unless it's created
2261
2262 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2263
2264         * Control.cs (PerformLayout): We don't need to consider visiblity
2265           for anchoring, only for docking. This fixes 'whacky' alignment
2266           in listbox and other controls that use implicit scrollbars after
2267           the previous PerformLayout patch
2268         * ListBox.cs: Switched to use implicit scrollbars
2269           
2270 2006-03-14  Mike Kestner  <mkestner@novell.com>
2271
2272         * ToolBar.cs: 
2273         * VScrollBar.cs:
2274         - chain up the "new event" overrides to base and use
2275         OnEvent to raise them.  Part of fix for bug #76509.
2276
2277 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
2278
2279         * FileDialog.cs: Do not select an item in the parent directory
2280           on backspace
2281
2282 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
2283
2284         * Control.cs (PerformLayout): It would seem that we considered
2285           invisible windows for our layout. Not quite the right thing
2286           to do. Now we don't any longer, thereby fixing bug #76889.
2287
2288 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
2289
2290         * Control.cs (CanFocus): I goofed. A control can have focus 
2291           even though it's not selectable. Made it match MS docs.
2292
2293 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2294
2295         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
2296           center by default (fixes #76895)
2297         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
2298           all uses of Border3DSides.All with the explicit ORd together
2299           Left|Right|Top|Bottom because I assume that nobody was aware 
2300           that All also implies a center fill. Most places I checked had
2301           a fill right above.
2302         * ProgressBarStyle.cs: Added
2303
2304 2006-03-13  Mike Kestner  <mkestner@novell.com>
2305
2306         * ListView.cs: fix breakage in drag shadow header positioning 
2307         from Peter's csc compilation fix.
2308
2309 2006-03-13  Mike Kestner  <mkestner@novell.com>
2310
2311         * ListView.cs: fix NRE produced by backspacing twice in a focused
2312         FileDialog.
2313
2314 2006-03-13  Mike Kestner  <mkestner@novell.com>
2315
2316         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
2317
2318 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2319
2320         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
2321           be changed
2322         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
2323           the allowed size before making programmatic size changes
2324
2325 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
2326
2327         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
2328           set, metacity is broken and will still use the emty sizes in 
2329           the struct. (Fix for #77089)
2330
2331 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
2332
2333         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
2334           WindowExStyles and marked both enums as Flags
2335         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
2336           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
2337           to match WindowStyles split
2338         * XplatUIX11.cs:
2339           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
2340           - Updated to match WindowStyles split
2341         * XplatUIWin32.cs:
2342           - Fixed FosterParent creation, was using ExStyle on the Style field
2343             (This should help with Popup focus issues)
2344           - Updated to match WindowStyles split
2345
2346 2006-03-13  Jackson Harper  <jackson@ximian.com>
2347
2348         * MdiWindowManager.cs: Use the system menu height. Fixes some
2349         strange sizing issues.
2350
2351 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2352
2353         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
2354         * TextBoxBase.cs:
2355           - Scroll to caret after inserting text (#77672)
2356           - Make scroll range one pixel higher, fixes off-by-one error (and
2357             makes underlines visible on the last line)
2358
2359 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
2360
2361         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
2362           the keyboard state from being stuck with keys in 'pressed' state when
2363           focus is switched away via keyboard
2364         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
2365           reset the keyboard if no X11 KeyUp events are expected to come
2366         * X11Structs.cs: Switched type of Visible to bool to match driver
2367
2368 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
2369
2370         * TextControl.cs:
2371           - Switched caret to be just 1 pixel wide, matches MS and looks less
2372             clunky
2373           - Moved caret display 1 pixel down from the top of the control
2374             to improve view
2375           - InsertCharAtCharet: Update the selection start if moving the caret
2376             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
2377           - No longer always creating the caret when the caret methods are
2378             called. Only the actual ShowCaret/HideCaret will do that now
2379           - Only setting caret visible if the owner control has focus
2380           - UpdateView: Added invalidation-shortcut logic for center and right 
2381             aligned text. Previously we'd update all according to the left
2382             logic which caused drawing errors. Also fixed height of invalidated
2383             areas, now properly invalidating the whole area (was off-by-one)
2384           - owner_HandleCreated: Always generate the document when the
2385             handle is created; this ensures that 
2386         * TextBoxBase.cs:
2387           - Fixed situation where caret would disappear under the right
2388             window border, also improved scrolling behaviour on left-
2389             aligned textboxes
2390           - Fixed right-aligned textboxes to have a border to the
2391             right instead of the caret being under the right border
2392         * XplatUIX11.cs:
2393           - Switched from 'nested' to simple visible/not visible tracking 
2394             for caret (part of fix for #77671)
2395           - No longer passing through translated FocusIn/FocusOut messages
2396             since we were notifying too often and the wrong windows. Instead
2397             we just notify our focussed window of receiving or loosing focus
2398         * XplatUIWin32.cs: Switched from 'nested' show/hide 
2399           counting for caret to simple visible yes/no behaviour (part of 
2400           fix for #77671)
2401
2402 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2403
2404         * Mime.cs: Remove debug code...
2405
2406 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
2407
2408         * MimeGenerated.cs: Removed
2409         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
2410           and subclasses) from /usr/(local/)share/mime and
2411           $HOME/.local/share/mime.
2412
2413 2006-03-10  Jackson Harper  <jackson@ximian.com>
2414
2415         * MdiWindowManager.cs: Recalc the NC area when a window is
2416         maximized/restored so that the menu area is drawn on forms that
2417         don't have a menu.
2418
2419 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2420
2421         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
2422           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
2423           us to force a WM_NCCALCRESIZE message being sent. This is needed
2424           for MDI maximizing.
2425
2426 2006-03-10  Jackson Harper  <jackson@ximian.com>
2427
2428         * Form.cs: We need to use the ActiveMenu when calculating menu
2429         height.
2430         - Fix nullref when the window manager hasn't been created yet.
2431         * Control.cs: Fix nullref when we try to bring a control to the
2432         front that has no parent.
2433         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
2434         height.
2435         - Add a dummy item to the maximized menu so it always has the
2436         correct height. Otherwise when there are no menus we don't get our
2437         icon and buttons.
2438         
2439
2440 2006-03-10  Jackson Harper  <jackson@ximian.com>
2441
2442         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
2443         stuff.
2444         * Form.cs: Make the window_state internal so the window managers
2445         can track it.
2446         - When an MDI child is maximized let its window manager create the
2447         main menu (so it can add its icon).
2448         - Notify the window managers of state changes
2449         - Let the window manager paint its buttons and handle button
2450         clicks on the menu when it is maximized.
2451         * InternalWindowManager.cs: Move the prev_bounds into the mdi
2452         window manager, since tool windows don't use it, only mdi windows.
2453         - Tell the main form that we don't want it to handle NCPAINT
2454         itself to avoid extra painting.
2455         - Handle clicks on a maximized windows menu.
2456         - Handle window state changes
2457         - Handle minimize/maximize clicks correctly by setting the window state.
2458         * MdiWindowManager.cs: Add an icon menu that (the menu you get
2459         when clicking on the forms icon).
2460         - New method to create a forms maximized menu. This is its normal
2461         menu + an icon.
2462         - Handle window state changes.
2463         - Handle sizing of maximized windows.  Maximized windows are just
2464         drawn bigger then the parent visible area. All controls are still
2465         there, they are just outside the visible area (this matches windows).
2466         * MdiClient.cs: No scrollbars when a child window is maximized.
2467         - Let the children windows figure out how big they should be when
2468         sizing maximized windows.
2469         - Implement a version of ArrangeIconicWindows somewhat similar to
2470         Windows version.  There are some little differences, but I don't
2471         think any app will rely on the layout of minimized mdi windows.
2472
2473 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2474
2475         * Padding.cs: Several fixes to allow compiling with csc 2.0
2476
2477 2006-03-09  Jackson Harper  <jackson@ximian.com>
2478
2479         * Menu.cs:
2480         * MenuItem.cs: Cheap hack so we can add items to the list without
2481         the events being raised.  This allows adding mdi items during
2482         drawing. TODO: Should probably find a better time to add the items.
2483
2484 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2485
2486         * ThemeWin32Classic.cs:
2487           - CheckBox_DrawText: Added logic to not wrap if not enough space
2488             is available (Fix for bug #77727)
2489           - RadioButton_DrawText: Added logic not to wrap if not enough
2490             space is available (Fix for bug #77727). Also removed some
2491             duplicate code, DrawString always drawing the regular text
2492             before hitting the if statement.
2493
2494 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
2495
2496         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
2497
2498 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
2499
2500         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
2501         * ContainerControl.cs: Partial implementation of some 2.0 scaling
2502           methods. Moved the new 2.0 properties into alphabetical order with
2503           other properties and added MonoTODO tags
2504
2505 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2506
2507         * AutoScaleMode.cs: Added. Fix build.
2508
2509 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2510
2511         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2512           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
2513           and was requiring premature handle creation for calls from above
2514         * Form.cs, Control.cs: Removed handle arguments from calls to
2515           CalculateClientRect()
2516
2517 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2518
2519         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
2520           drag_column.column_rect is MarshalByRef and can't be used that way
2521
2522 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2523
2524         * AxHost.cs: Added deserialization constructor for 
2525           AxHost+State (fixes 77743)
2526
2527 2006-03-09  Mike Kestner  <mkestner@novell.com>
2528
2529         * ListView.cs: 
2530         - Added column drag reordering for details view.
2531         - fixed behavior when mouse is dragged off column and
2532         AllowColumnReorder is false.
2533         * ColumnHeader.cs: clone the format too in Clone.
2534         * Theme.cs: add DrawListViewHeaderDragDetails method.
2535         * ThemeWin32Classic.cs:
2536         - impl new method for drawing drag column shadows and targets.
2537         - support column offset for details mode in DrawListViewItem.
2538
2539 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2540
2541         * TextControl.cs: Reset the char_count when the document is cleared
2542           (Fixes bug reported on mono-winforms mailing list)
2543
2544 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
2545
2546         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
2547           of calling base we simply process the key ourselves, since both
2548           DefWindowProc and the handled method would set m.Result. 
2549           (Fixes #77732)
2550
2551 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
2552
2553         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
2554           method also moves the window; instead implemented a copy of
2555           Control.ScaleCore (Part of fix for #77456)
2556         * TextBoxBase.cs: 
2557           - Created new CreateGraphicsInternal method to allow providing
2558             a graphics context when no handle is created without triggering
2559             handle creation. (Part of fix for #77456)
2560           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2561         * TextControl.cs: 
2562           - Switched Constructor to require TextBoxBase instead of Control (to
2563             allow uncast access to CreateGraphicsInternal)
2564           - Safeguarded use of owner.Handle property. No longer accessing it
2565             unless the handle is already created.
2566           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
2567           - Now triggering a recalc when owning control becomes visible
2568         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
2569           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
2570           premature handle creation (Part of fix for #77456)
2571         * Control.cs:
2572           - We now only destroy our double-buffering buffers when the
2573             control is resized or disposed, but not when visibility
2574             changes. (The code even re-created them twice every time)
2575           - Now requiring a redraw of the buffer on visibility changes
2576             (fixes bug 77654 part 2)
2577           - Not passing OnParentVisibleChanged up unless the control
2578             is visible
2579           - CanFocus: Fixed to match MS documentation
2580           - Focus: Fixed to return actual focus state and to check if
2581             setting focus is legal before setting it
2582
2583 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
2584
2585         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
2586           when to draw focus rectangle by looking at parent focus and
2587           selected state instead. This fixes TabPages on Linux sometimes
2588           having none or multiple focus rectangles.
2589         * XplatUIX11.cs (SetFocus): 
2590           - Don't set the focus if the same window already has focus
2591           - Use SendMessage instead of PostMessage (like it's Win32
2592             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
2593             to match MS behaviour
2594         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
2595           are not selectable.
2596
2597 2006-03-07  Jackson Harper  <jackson@ximian.com>
2598
2599         * PictureBox.cs: Revert line I accidently committed last week.
2600
2601 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
2602
2603         * Control.cs: 
2604           - Added new IsRecreating and ParentIsRecreating properties to
2605             allow testing if RecreateHandle has been called on ourselves
2606             or one of our parents
2607           - WndProc(WM_DESTROY): If our control handle is being recreated
2608             we immediately need to create the handle when receiving the
2609             destroy, that way our child windows find a valid parent handle
2610             when they themselves are being recreated upon WM_DESTROY receipt
2611             (fix for bug #77654 part 1)
2612         * XplatUIX11.cs:
2613           - DestroyWindow: WM_DESTROY must be sent to our own window before
2614             notifying any child windows. MS documents that child windows
2615             are still valid when WM_DESTROY is received. (Control now relies on
2616             this behaviour)
2617           - Added some fine-grain debug options
2618
2619 2006-03-06  Jackson Harper  <jackson@ximian.com>
2620
2621         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
2622         box and base calculations off this.
2623         * MdiChildContext.cs:
2624         * MdiWindowManager.cs: Don't need to ensure scrollbars here
2625         anymore.
2626         
2627 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
2628
2629         * Splitter.cs: In situations where the affected control is added
2630           to the parent's control list after the splitter, we would not
2631           populate affected. Now we try populating it on mousedown, if
2632           it's not already set, and force it to be re-set whenever our
2633           parent changes.
2634
2635 2006-03-03  Matt Hargett  <matt@use.net>
2636
2637         * Control.cs: implement Control.Padding
2638         * Padding.cs: -Padding.All returns -1 when constructing with the
2639         implicit default ctor
2640         -Padding.ToString() matches MS.NET
2641         * ContainerControl.cs: implement
2642         ContainerControl.AutoScaleDimensions
2643         * ListControl.cs: implement ListControl.FormattingEnabled
2644         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
2645         * ButtonBase.cs:
2646         * TabPage.cs: Implement UseVisualStyleBackColor.
2647         * PictureBox.cs: Implement PictureBox.InitialImage.
2648
2649 2006-03-03  Mike Kestner  <mkestner@novell.com>
2650
2651         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
2652         event declarations to proxy to base event.
2653         * ListViewItem.cs: update to use ItemControl.
2654         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
2655         * ThemeWin32Classic.cs: update to new ListView theme API and fix
2656         column header label rendering for 0 width columns.
2657
2658 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
2659
2660         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
2661           that causes the control to be created. Fixes #77476.
2662
2663 2006-03-02  Jackson Harper  <jackson@ximian.com>
2664
2665         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
2666         expose_pending.
2667
2668 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
2669
2670         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
2671           passed in for the EventArgs (fixes #77690)
2672
2673 2006-03-01  Jackson Harper  <jackson@ximian.com>
2674
2675         * ScrollBar.cs: Refresh afterbeing resized.
2676
2677 2006-02-28  Mike Kestner  <mkestner@novell.com>
2678
2679         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
2680         Clean up a tracker compile warning.
2681         * MenuItem.cs: add internal PerformPopup method.
2682         [Fixes #77457]
2683
2684 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2685
2686         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
2687           implicit expose) when the text is set to null
2688
2689 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
2690
2691         * RichTextBox.cs (FlushText): When newline is true, we always
2692           need to split the line, even if no text is on it and we may
2693           never eat newlines. (Fixes #77669)
2694
2695 2006-02-28  Mike Kestner  <mkestner@novell.com>
2696
2697         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
2698         and set Selected instead.
2699         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
2700         collections.
2701
2702 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
2703
2704         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
2705
2706 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
2707
2708         * FontDialog.cs:
2709           - Got rid of the panel. All controls are now directly added to
2710             the dialog form
2711           - It is now possible to set a font with the Font property
2712           - MinSize and MaxSize property do now what they should
2713           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
2714           - Searching and selecting a font with the font textbox works now,
2715             the same applies to the style and size textbox
2716           - Draw the correct 3D border in the example panel
2717           - Fixed a little mem leak (unused fonts didn't get disposed)
2718           - Many other internal updates/rewrites...
2719           - Fix typo
2720
2721 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2722
2723         * TextControl.cs: 
2724           - InsertRTFFromStream: Added 'number of characters inserted' argument
2725           - set_SelectedRTF: Now using the number of characters to calculate
2726             the new location for the selection and cursor (x/y cannot be used
2727             due to potentially already wrapped text)
2728
2729 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
2730
2731         * TextControl.cs: Added property and implemented means to allow 
2732           disabling recalculation of a document (can be used to speed up
2733           multiple inserts and is needed to make RTF inserts predictable, see
2734           bug #77659)
2735         * RichTextBox.cs: Using the new NoRecalc property of Document to
2736           keep x/y insert locations predictable. Also makes it faster inserting
2737           large chunks of RTF
2738
2739 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
2740
2741         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
2742           it's easier for a child control to handle the other messages without
2743           having to duplicate the special functionality
2744         * TextBoxBase.cs
2745           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
2746             code to handle processing the key ourselves, in order to get 
2747             access to the result of KeyEventArgs.Handled. We now only call 
2748             ProcessKey if they key hasn't been handled already. Fixes #77526.
2749           - set_Text: If null or empty string is given, just clear the 
2750             document. Fixes part of #77526
2751
2752 2006-02-27  Jackson Harper  <jackson@ximian.com>
2753
2754         * SizeGrip.cs: Paint the background color before painting the grip
2755         so things look right.
2756         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
2757
2758 2006-02-27  Mike Kestner  <mkestner@novell.com>
2759
2760         * ListView.cs:
2761           - Restructure layout and invalidation model to remove a ton of
2762           flicker from the control and speed up performance in general.
2763           - Add manual column resize, flickers like crazy, but I already have
2764           some ideas on how I'll fix that. (#76822)
2765           - Merge the three Icon-based views into a single layout method.
2766           - Move item selection interaction logic from the item since 
2767           interaction with the collections is more appropriate to the view.
2768           - Deselection on non-item clicks.
2769         * ListViewItem.cs:
2770           - Encapsulate most of the layout. Add some internal props to trigger
2771           layout.  Move to a model where Items invalidate themselves instead
2772           of just invalidating the whole control every time something changes.
2773           - Invalidate on Text/Caption changes.
2774           - switch to an offset based layout model to avoid having to absolute
2775           position every element on item moves.
2776           - correct checkbox layout to conform to MS layout.
2777         * ThemeWin32Classic.cs:
2778           - refactor some column header drawing code.
2779           - fix string justification for column headers (#76821)
2780           - make SmallIcon labels top justified for compat with MS impl.
2781         * ThemeClearlooks.cs:
2782           - adjust to new ListViewItem internal checkbox bounds api.
2783
2784 2006-02-27  Jackson Harper  <jackson@ximian.com>
2785
2786         * Control.cs:  Change where implicit controls fall in the zorder.
2787         They are now on top of all children.
2788         - Synced AddImplicit code with Add
2789         - Removed unused enumerator.
2790         * SizeGrip.cs: Remove the TODO as its been TODONE.
2791
2792 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
2793
2794         * TextControl.cs(Insert): Combine the last lines unless the insertion
2795           string ends with \n\n, otherwise we leave one line too many (Fixes
2796           something I noticed with the testapp for #77526; the bug itself was
2797           already fixed in the previous checkin)
2798
2799 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
2800
2801         * RichTextBox.cs:
2802           - SelectionColor and SelectionFont methods no longer set absolute
2803             styles. Instead, the keep font or color respectively (This 
2804             resolves a long-standing FIXME in the code)
2805           - When flushing RTF text, the insert code now considers text trailing
2806             behind the insertion point (Fixes the bug where when replacing
2807             the selected text via SelectedRTF the remainder of the line behind 
2808             the selection would stay on the first insertion line)
2809         * TextBoxBase.cs:
2810           - AppendText now updates the selection points after inserting text
2811           - AppendText now ensures that the last tag (sometimes 0-length) of
2812             the document is used for the style information (Fixes part of 
2813             bug #77220)
2814         * TextControl.cs:
2815           - Created new FontDefiniton class to allow describing partial style
2816             changes
2817           - StreamLine() now takes a lines argument, to allow it to decide
2818             whether an encountered zero-length tag is the last in the document
2819             (which must be kept to not loose the font/color contained in it,
2820             for later appends)
2821           - Created Combine() and Split() methods for Marker structs, to 
2822             support marker updates due to reformatted documents (soft line
2823             wraps)
2824           - Implemented Document.CaretTag setter
2825           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
2826             of the last line (Not the cause, but also exposed by bug #77220)
2827           - Added LineTag argument to InsertString method, to allow callers
2828             to force a certain tag to be used (required to force use of the
2829             trailing zero-length tag of a document)
2830           - Now updating markers in Combine(), to avoid stale tag markers
2831           - Added some method descriptions to aid maintenance
2832           - Implemented new FormatText concept, allowing additive/subtractive
2833             formatting by only specifying the components that are to be 
2834             changed. This was needed for resolving the RTB.SelectedColor/
2835             RTB.SelectedFont fixmes
2836           - Added Break() support method to allow breaking up linetags (used
2837             for partial formatting)
2838           - Added GenerateTextFormat() method. It is used for partial 
2839             formatting and allows to generate a full font/color from given
2840             attributes and an existing tag.
2841
2842 2006-02-26  Jackson Harper  <jackson@ximian.com>
2843
2844         * XplatUIX11.cs:  Use the correct caption height.
2845         - Translate hittest coordinates to screen coords to match MS.
2846         * XplatUIWin32.cs: When we create MDI windows we need to reset
2847         some of the style flags, so we get a nice blank window, and can
2848         draw all the decorations ourselves.
2849         - Set a clipping rectangle on the non client paint event, the
2850         window manager drawing code needs one.
2851         * Form.cs: The window manager needs to know when the window state
2852         has been updated.
2853         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
2854         don't need to factor in border and title sizes in these
2855         methods. TODO: Remove the args and fix the call points.
2856         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
2857         properly.
2858         - Let the driver set the cursors.
2859         - Improve active window handling
2860         - Correct sizes for title bars and buttons.
2861         - Match MS drawing better
2862         * MdiWindowManager.cs: We don't need to handle border style
2863         updates specially anymore.
2864         - Check for scrollbars when windows are done moving
2865         - Handle Active properly.
2866         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
2867         correctly. I am spewing the exception though, so we don't hide the
2868         bugs.
2869         
2870 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
2871
2872         * DataGridViewRowPostPaintEventArgs.cs,
2873           DataGridViewCellPaintingEventArgs.cs,
2874           DataGridViewRowCollection.cs,
2875           DataGridViewRowPrePaintEventArgs.cs,
2876           DataGridViewCell.cs: Clear a few warnings and implement a few
2877           exceptions that should be thrown.
2878
2879 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2880
2881         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
2882           'inheriting' our parent's (non-default) cursor. (Part of
2883            the fix for #77479)
2884
2885 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
2886
2887         * XplatUIX11.cs: Fixed cast to make csc happy
2888
2889 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
2890
2891         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
2892           it's for the client area (part of fix for #77479 and needed
2893           for MDI window cursor handling)
2894         * XplatUIX11.cs
2895           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
2896             the appropriate default cursors and also passing the message
2897             up the parent chain 
2898           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
2899             for non-client areas
2900
2901 2006-02-15  Jackson Harper  <jackson@ximian.com>
2902
2903         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
2904         is a real MDI window
2905
2906 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
2907
2908         * X11DesktopColors.cs: Instead of checking the desktop session
2909           string for "KDE" check if it starts with "KDE"
2910
2911 2006-02-10  Jackson Harper  <jackson@ximian.com>
2912
2913         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
2914         systems).
2915
2916 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2917
2918         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
2919           errors
2920         * ColorDialog.cs:
2921           - Got rid of the panel. All controls are now directly added to
2922             the dialog form
2923           - Changed to mono coding style
2924
2925 2006-02-10  Jackson Harper  <jackson@ximian.com>
2926
2927         * InternalWindowManager.cs: We don't need the set visibility to
2928         false hack anymore now that peter has written beautiful shutdown
2929         code.
2930
2931 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
2932
2933         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
2934           where already explicitly destroyed
2935
2936 2006-02-10  Jackson Harper  <jackson@ximian.com>
2937
2938         * MdiClient.cs: Handle the case where windows are too high or to
2939         the left and we need scrollbars.
2940
2941 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
2942
2943         * MimeIcon.cs: Added some icons
2944         * FileDialog.cs:
2945           - Fixed bug #77477
2946           - Got rid of the panel. All controls are now directly added to
2947             the dialog form
2948           - Changed to mono coding style
2949           - On Linux "My Computer" and "My Network" will now show some
2950             more usefull information. A new class, MasterMount, gathers
2951             this information from /proc/mount. Updated MWFFileView to make
2952             use of this information
2953           - Fixed a bug that caused FileDialog to crash when
2954             ".recently_used" file had a zero size
2955           - FilterIndex does now what it should
2956           - Some Refactoring
2957         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
2958             FileDialog changes
2959
2960 2006-02-09  Jackson Harper  <jackson@ximian.com>
2961
2962         * ComboBox.cs: Don't touch if null.
2963
2964 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
2965
2966         * Cursor.cs: 64bit safeness fix
2967         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
2968
2969 2006-02-09  Jackson Harper  <jackson@ximian.com>
2970
2971         * Form.cs: If a form is made into an MDI form update the styles so
2972         all the props can get set correctly.
2973         - Kill the mdi_container when we dont need it anymore.
2974         * InternalWindowManager.cs: Add missing NOT
2975
2976 2006-02-08  Jackson Harper  <jackson@ximian.com>
2977
2978         * InternalWindowManager.cs: Respek clipping when drawing MDi
2979         decorations.
2980
2981 2006-02-08  Jackson Harper  <jackson@ximian.com>
2982
2983         * Hwnd.cs: Add bits to track non client expose events.
2984         * XplatUIX11.cs: Track non client expose events on the hwnd. This
2985         gives us a proper invalid rect and will allow for some nice
2986         optimizations with NC client drawing
2987         - MDI windows are children windows, so move their style handling
2988         into the child window block.
2989         * InternalWindowManager.cs: Remove a state reset that was
2990         getting invoked at the wrong time. Fixes managed windows getting
2991         into a 'stuck' captured state.
2992
2993 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
2994
2995         * TextControl.cs (Document.ctor): Now initializing 
2996           selection_anchor. Fixes #77493
2997
2998 2006-02-07  Jackson Harper  <jackson@ximian.com>
2999
3000         * TrackBar.cs: The increment/decrements were backwards.
3001
3002 2006-02-07  Mike Kestner  <mkestner@novell.com>
3003
3004         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
3005         to the instance itself.
3006
3007 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
3008
3009         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
3010           on ulongs and pointers, the size differs between 32bit and 64bit
3011           systems. 
3012
3013 2006-02-07  Mike Kestner  <mkestner@novell.com>
3014
3015         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
3016         for 64 bit platforms to work around a metacity bug. 
3017
3018 2006-02-07  Jackson Harper  <jackson@ximian.com>
3019
3020         * TrackBar.cs: Process the input keys we need, and hookup to
3021         KeyDown instead of using WndProc, so we get key messages.
3022
3023 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
3024
3025         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
3026           machine we're on. 
3027         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
3028           we need to translate the XdndVersion atoms array before sending it
3029
3030 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
3031
3032         * XplatUIX11.cs: 
3033           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
3034             number of bits for the property, not the number of bytes. The
3035             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
3036             but would not crash since it specified 8 bits instead of 4 bits)
3037           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
3038             defined as XID -> long in the C headers)
3039           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
3040             references since those are now IntPtr to begin with
3041           - Switched all Atom.XXX 'int' casts to IntPtr casts
3042           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
3043           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
3044           - Added XChangeActivePointerGrab DllImport (for X11DnD)
3045         * X11Structs.cs:
3046           - Changed 'int' type for Atoms in XEvent structures to IntPtr
3047           - Changed atom in HoverStruct to be IntPtr
3048         * X11DnD.cs:
3049           - Removed local DllImports, switched code to use those from XplatUIX11
3050           - Removed/fixed casts related to the switch of Atom to be a IntPtr
3051
3052 2006-02-06  Mike Kestner  <mkestner@novell.com>
3053
3054         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
3055         method signatures in the import region.  There may still be some
3056         lingering struct marshaling issues, as I didn't drill down into those.
3057         Yet.
3058
3059 2006-02-06  Jackson Harper  <jackson@ximian.com>
3060
3061         * ComboBox.cs: Dont manually set the top_item, this is computed
3062         when the scrollbar position is set.
3063
3064 2006-02-06  Mike Kestner  <mkestner@novell.com>
3065
3066         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
3067         startup crashes on amd64.  There's other fixes needed.  All pinvoke
3068         usage of Atom needs to be mapped to IntPtr for example.  And there are
3069         likely other int/long issues to be addressed.
3070
3071 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
3072
3073         * FileDialog.cs: One more...
3074
3075 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3076
3077         * FileDialog.cs: Next try
3078
3079 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3080
3081         * FileDialog.cs: First part of fix for #77464
3082
3083 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
3084
3085         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
3086           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
3087           AcceptButton border drawing.
3088
3089 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
3090
3091         * Form.cs: Moved positioning of form after auto scaling is applied,
3092           otherwise it would possibly use wrong form size.
3093
3094 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
3095
3096         * Control.cs (RecreateHandle): No need to re-create any child
3097           controls, the child windows will get destroyed automatically by
3098           the windowing system or driver, and re-created when the handle
3099           is being accessed the first time. Fixes #77456
3100         * Form.cs: No longer setting the form to closing if the handle is 
3101           being recreated. This seems like the right thing to do, don't
3102           have a bug or testcase for this, though.
3103
3104 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3105
3106         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
3107           controls to avoid unwanted side effects
3108
3109 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
3110
3111         * Control.cs: 
3112           - ScaleCore needs to scale the bounds, not the ClientSize of the 
3113             control. Fixes #77416.
3114           - DefaultSize is 0,0 for control
3115         * TextBoxBase.cs: 
3116           - DefaultSize is 100, 20
3117           - SetBoundsCore: Now enforcing the height, no matter if the provided
3118             height is more or less than the preferred one, as long as AutoSize
3119             is on
3120         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
3121
3122 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
3123
3124         * Control.cs:
3125           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
3126             call unless both performLayout is true *and* we have a pending
3127             layout change
3128           - ResumeLayout: MS does not completely nest Suspend and Resume,
3129             they bottom out at 0, fixed our code to match that.
3130           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
3131             SetBoundsCore, we were updating even when we shouldn't. This fixes
3132             swf-anchors mis-anchoring when resizing the app fast and lots.
3133           - UpdateDistances: Now only setting the left and top distance if 
3134             we have a parent and are not suspended, this is based on
3135             a suggestion by Don Edvaldson in bug #77355.
3136           - OnVisibleChanged: Fixed logic when to create the control. We may
3137             not create the control if we have no parent or if it's not visible;
3138             switched to using Visible property instead of is_visible field 
3139             since the property also considers parent states. This fixes a bug
3140             when starting Paint.Net
3141
3142 2006-02-02  Jackson Harper  <jackson@ximian.com>
3143
3144         * Form.cs: If the forms handle hasn't been created yet don't call
3145         into xplatui to make it top most, just set the topmost flag on the
3146         form in CreateParams
3147         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
3148
3149 2006-02-01  Jackson Harper  <jackson@ximian.com>
3150
3151         * ScrollableControl.cs: Refactored the Recalculate method a
3152         little, this wasn't handling all the variants of bottom and right
3153         bars needed to be added and added/removed based on their
3154         counterparts being added/removed (which changes the drawable
3155         size). Also we special case client widths and heights of 0 and
3156         don't add the scrollbar for those.
3157
3158 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
3159
3160         * XplatUIX11.cs: 
3161           - Added method to get AbsoluteGeometry(); currently unused, but might
3162             be used in the future, if we try again to figure out toplevel
3163             coordinates with some more crappy window managers
3164           - Added FrameExtents() method to retrieve the WM set decoration size
3165           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
3166             to deal with at least KDE, FVWM and metacity (Fixes #77092)
3167         * Hwnd.cs: 
3168           - Added whacky_wm tracking var for metacity
3169           - Added logic to have default menu height if the actual menu height
3170             has not yet been calculated (part of fix for #77426)
3171         * Form.cs: Keep track whether client size has been set and re-set 
3172           it if a menu is added/removed afterwards (Fixes #77426)
3173
3174 2006-01-31  Jackson Harper  <jackson@ximian.com>
3175
3176         * Control.cs: When a new Site is set on the component attempt to
3177         pull the AmbientProperties from it.
3178
3179 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
3180
3181         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
3182           in the background of the owning form. Fixes #77332
3183
3184 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3185
3186         * MimeIcon.cs: Fix for #77409
3187
3188 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
3189
3190         * XplatUIX11GTK.cs: Initial import
3191
3192 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
3193
3194         * FixedSizeTextBox: fixes class signature
3195
3196 2006-01-30  Jackson Harper  <jackson@ximian.com>
3197
3198         * FixedSizeTextBox.cs: New internal class that represents a
3199         textBox that will not be scaled.
3200         * TreeView.cs:
3201         * ComboBox.cs:
3202         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
3203         standard TextBox.
3204                 
3205 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
3206
3207         * XplatUIX11.cs: Retrieve default screen number instead of
3208           assuming 0. Attempted fix for #77318
3209
3210 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
3211
3212         * XplatUIWin32.cs: 
3213           - GetWindowPos: When a window is parented by FosterParent, use 
3214             the desktop instead of FosterParent as the base to get coordinates
3215           - CreateWindow: Don't make FosterParent the parent window for Popups
3216             if we don't want a taskbar entry, Popups automatically don't get one
3217         * Hwnd.cs: Need to call remove to actually remove the key from the
3218           hash table
3219
3220 2006-01-30  Mike Kestner  <mkestner@novell.com>
3221
3222         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
3223
3224 2006-01-30  Jackson Harper  <jackson@ximian.com>
3225
3226         * TreeView.cs:
3227         * TreeNode.cs: Raise events no matter how the treenode is
3228         checked. Patch by Don Edvalson.
3229
3230 2006-01-30  Jackson Harper  <jackson@ximian.com>
3231
3232         * TreeNode.cs: Signature fix.
3233
3234 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
3235
3236         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
3237
3238 2006-01-20  Mike Kestner  <mkestner@novell.com>
3239
3240         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
3241         event forwarding when menus are active.
3242         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
3243         Most of the patch is pdb's with a little rework.
3244
3245 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3246
3247         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
3248           Removed GetMenuDC and ReleaseMenuDC methods; replaced
3249           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
3250         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
3251         * InternalWindowManager.cs: Added use of PaintEventStart/End to
3252           handling of WM_NCPAINT message, now passing the PaintEventArgs to
3253           the PaintWindowDecorations method
3254         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
3255         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
3256         * MenuAPI.cs: Made tracker window invisible
3257         * XplatUIWin32.cs:
3258           - Removed GetMenuDC and ReleaseMenuDC methods
3259           - Implemented the client=false path for PaintEventStart and
3260             PaintEventEnd
3261
3262 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3263
3264         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
3265         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
3266           styles
3267         * Form.cs: 
3268           - MaximizeBox, MinimizeBox: Recreate the handle when setting
3269             the style
3270           - CreateParams: Reworked the styles to match MS look'n'feel,
3271             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
3272             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
3273
3274 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
3275
3276         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
3277           window is not mapped, since otherwise every form that's being 
3278           created is considered minimized, which is wrong.
3279         * Form.cs: Catching the exception and returning our internal value
3280           instead
3281
3282 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
3283
3284         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
3285           SetWindowMinMax() to have means to tell the driver about the minimum,
3286           maximum and maximized state window sizes. (Part of the fix for #76485)
3287         * Form.cs:
3288           - Implemented tracking of minimum and maximum window size, now calling
3289             new SetWindowMinMax() driver method to tell the driver (Part of the
3290             fix for #76485)
3291           - Finished handling of WM_GETMINMAXINFO method, now setting all values
3292             (Completes fix for #76485)
3293           - Calling new SetWindowMinMax driver method when the handle for a 
3294             form is created, to make sure the driver knows about it even if
3295             the values have been set before the window was created
3296           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
3297             to avoid messing up our anchoring calculations (partial fix
3298             for #77355)
3299         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
3300         * XplatUIX11.cs:
3301           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
3302           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
3303             (and presumably other freedesktop.org compliant WMs). Left the
3304             assumption unmapped=minimized, needed for SetVisible to work.
3305           - Now setting the window state when creating windows
3306           - Fixed SetVisible to consider/set the window state when mapping
3307             a Form. We cannot set the state before it's mapped, and we cannot
3308             use Form.WindowState once it's mapped (since it would ask the
3309             driver and get 'normal'. Therefore, we grab the state before
3310             mapping, map, and then set state.
3311           - Implmemented SetWindowMinMax method; Metacity does not seem to
3312             honor the ZoomHints, though.
3313         * XplatUIWin32.cs:
3314           - Removed MINMAXINFO (moved to XplatUIStructs)
3315           - Added SetWindowMinMax stub (on Win32 the only way to set that
3316             information is in response to the WM_GETMINMAXINFO message, which
3317             is handled in Form.cs)
3318           - Added logic to SetVisible to set the proper window state when a 
3319             form is made visible (fixes #75720)
3320
3321 2006-01-26  Jackson Harper  <jackson@ximian.com>
3322
3323         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
3324         same way we handle them with Invoke.
3325
3326 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
3327
3328         * Form.cs:
3329           - Added tracking of window state so CreateParams can return
3330             the appropriate style
3331           - Moved setting of WS_CAPTION style in CreateParams to allow
3332             styles without caption
3333         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
3334           control if the TextBox property is accessed. Fixes #77345
3335         * Control.cs:
3336           - get_Created: now uses is_disposed and is_created to determine
3337             return value (suggested by Jackson)
3338           - CreateHandle: No longer exits if the handle is being recreated
3339           - RecreateHandle: If the handle is not yet created call the 
3340             appropriate method to create either control or handle. If the
3341             control is already created CreateHandle will simply exit instead
3342             of just creating the handle
3343         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
3344           now SendMessage WM_DESTROY directly to the control when DestroyWindow
3345           is called.
3346         * XplatUIX11.cs: 
3347           - When DestroyWindow is called, instead of waiting for the 
3348             DestroyNotification from X11, we directly post it to the WndProc
3349             and immediately dispose the hwnd object.
3350             Same applies to DestroyChildWindows, and this obsoletes the
3351             expose_pending tracking. Contrary to Win32 behaviour we destroy our
3352             child windows before our own, to avoid X11 errors.
3353           - Removed the direct sending of WM_PAINT on UpdateWindow
3354         * XplatUIWin32.cs:
3355           - Reworked DoEvents and GetMessage to allow access to internal queue
3356             even when trying non-blocking access to the queue.  Fixes #77335. 
3357             Based on a patch suggestion by Don Edvalson. The new private
3358             GetMessage can now also be used as a backend for a PeekMessage
3359             frontend version.
3360         * XplatUI.cs: Improved debug output for CreateWindow
3361
3362 2006-01-25  Jackson Harper  <jackson@ximian.com>
3363
3364         * Help.cs: Allow param to be null. Patch by Don Edvalson.
3365
3366 2006-01-24  Jackson Harper  <jackson@ximian.com>
3367
3368         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
3369         when we have a MaxDropItems lower then the selected index.
3370
3371 2006-01-24  Jackson Harper  <jackson@ximian.com>
3372
3373         * Control.cs: Don't allow selection of non visible controls, allow
3374         selection of controls without parents.
3375
3376 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3377
3378         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
3379         * DataGridDrawingLogic.cs: Add editing row only when is necessary
3380
3381 2006-01-23  Jackson Harper  <jackson@ximian.com>
3382
3383         * UpDownBase.cs: Make the textbox handle all the selection and
3384         tabbing. This fixes tabing to updown controls.
3385
3386 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
3387
3388         * TextBoxBase.cs: fixes exception thown the object was null
3389
3390 2006-01-23  Jackson Harper  <jackson@ximian.com>
3391
3392         * ButtonBase.cs: Just use the base CreateParams. They set
3393         visibility and enabled correctly.
3394         * ComboBox.cs:
3395         * TrackBar.cs:
3396         * MonthCalendar.cs: Lets let the base set as much of the
3397         createparams as possible so we don't have duplicate code all over
3398         the place.
3399
3400 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
3401
3402         * ThemeGtk.cs: Added TrackBar and some experimental code to
3403           get double buffering back
3404
3405 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
3406
3407         * DataGrid.cs: Allows row number set internally higher than the last
3408         when creating a new row. Restores the editing functionality.
3409
3410 2006-01-20  Mike Kestner  <mkestner@novell.com>
3411
3412         * MimeIcon.cs: delay Image creation until the icons are accessed
3413         instead of creating 190 scaled images on GnomeHandler startup.
3414
3415 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
3416
3417         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
3418           first call base before processing the event. Fixes #77279
3419
3420 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
3421
3422         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
3423           that the stride for the GDI bitmap would match the stride of
3424           a DIB or a Cursor.
3425
3426 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
3427
3428         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
3429
3430 2006-01-19  Jackson Harper  <jackson@ximian.com>
3431
3432         * ComboBox.cs: Hookup the text controls keydown event so we get
3433         those when the text control has the focus.
3434
3435 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3436
3437         * Label.cs: Now using the base events instead of defining new ones;
3438           this allows us to just call the base properties without having to
3439           duplicate all base property logic 
3440
3441 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3442
3443         * Label.cs: A label by default is not a tabstop (Fixes one of our
3444           failing nunit tests)
3445
3446 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
3447
3448         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
3449         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
3450
3451 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
3452
3453         * Cursor.cs: Reimplemented creating cursor bitmaps without using
3454           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
3455           This fixes #77218
3456         * XplatUIWin32.cs: 
3457           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
3458             constructor creates images that can't be saved. Part of the fix
3459             for #76103
3460           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
3461           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
3462             bug fix for handling window state in forms properly)
3463
3464 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3465
3466         * ThemeGtk.cs: Simplify ScrollBar drawing
3467
3468 2006-01-18  Jackson Harper  <jackson@ximian.com>
3469
3470         * Splitter.cs: Set the default dock style for the splitter control
3471         in the constructor.
3472
3473 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3474
3475         * ThemeGtk.cs: Corrected StateType and ShadowType for
3476           gtk_paint_box
3477
3478 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3479
3480         * Control.cs: Make use of Theme.DoubleBufferingSupported
3481         * ThemeGtk.cs:
3482           - Added drawing for flat style buttons
3483           - Added ScrollBar drawing
3484
3485 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
3486
3487         * ThemeClearlooks.cs: Removed some unneeded code.
3488         * ThemeGtk.cs: First part of ThemeGtk enhancements.
3489
3490 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3491
3492         * LinkLabel.cs: We need to update the hover drawing when
3493           leaving the control as well.
3494
3495 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
3496
3497         * DataGrid.cs: Clicking on non empty areas in the columns
3498            area was giving an exception
3499
3500 2006-01-17  Jackson Harper  <jackson@ximian.com>
3501
3502         * ThemeWin32Classic.cs:
3503         * ListView.cs: Do not draw/clip the headers when the header style
3504         is None.
3505
3506 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3507
3508         * DataGrid.cs: Fixes 77260
3509         
3510 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
3511
3512         * DataGrid.cs: Clicking on a column on a empty grid was giving
3513           an exception
3514
3515 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
3516
3517         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
3518           or any keypress will crash the grid.
3519
3520 2006-01-17  Mike Kestner  <mkestner@novell.com>
3521
3522         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
3523         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
3524         invisible/previously-visible items.
3525         [Fixes #76909]
3526
3527 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
3528
3529         * ThemeClearlooks.cs:
3530         - Added CL_Draw_Button method; now other theme controls that are 
3531           not derived from button or do not have a button can draw buttons
3532           too
3533         - Updated ComboBox drawing
3534         - Beautified RadioButton drawing
3535         - Corrected drawing of bottom and left tabs
3536         - Beautified DateTimePicker and MonthCalendar
3537         - Added CPDrawButton and CPDrawRadioButton
3538
3539 2006-01-16  Jackson Harper  <jackson@ximian.com>
3540
3541         * ComboBox.cs: Set the initial value of the scrollbar to the
3542         current index. Reduce the numbers of refreshs and IndexOfs called.
3543
3544 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
3545
3546         * FileDialog.cs: When the file listview is focused hitting the
3547           backspace key moves the fileview to the parent directory
3548
3549 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3550
3551         * Form.cs: 
3552           - Added RecreateHandle call when changing taskbar visibility to 
3553             trigger reparenting in Win32 driver (Fixes #75719)
3554           - If a window has minimize or maximize buttons, it cannot have
3555             a help button
3556         * XplatUIWin32.cs:
3557           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
3558             the toplevel form with FosterParent (A toolwindow not on the
3559             taskbar) (Fixes #75719)
3560           - Made FosterParent a toolwindow
3561
3562 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3563
3564         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
3565
3566 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3567
3568         * ToolTip.cs: If SetToolTip is called from a control and the mouse
3569           is currently over that control, make sure that tooltip_window.Text
3570           gets updated
3571
3572 2006-01-13  Mike Kestner  <mkestner@novell.com>
3573
3574         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
3575
3576 2006-01-13  Jackson Harper  <jackson@ximian.com>
3577
3578         * TreeView.cs: On MS GetNodeAt never actually factors in the X
3579         value passed.  Also redraw the selected node when we recieve
3580         focus, so tabbing between trees works correctly.
3581
3582 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
3583
3584         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
3585           ~/.gconf/%gconf-tree.xml, so use
3586           .gconf/desktop/gnome/interface/%gconf.xml
3587
3588 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3589
3590         * TextControl.cs: Draw text in gray if control is disabled
3591
3592 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
3593
3594         * TreeView.cs: Draw the focus rectangle outside the highlight, to
3595           make sure it's always visible. Fixes #76680.
3596
3597 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
3598
3599         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
3600
3601 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
3602
3603         * PageSetupDialog.cs: Added.
3604         * PrintDialog.cs: Attributes.
3605         * PrintPreviewControl.cs: Updates.
3606         * PrintPreviewDialog.cs: Updates.
3607         
3608 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3609
3610         * Control.cs: Undid my selection check fix, since it's not needed
3611         * TextBoxBase.cs:
3612           - Now considering the presence of hscroll/vscroll when sizing
3613             vscroll/hscroll respectively. Fixed bug #77077
3614           - Added Left/Up/Down/Right to IsInputKey list to prevent
3615             ContainerControl from stealing them. This fixes what I broke
3616             with my last checkin.
3617
3618 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
3619
3620         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
3621           I finally understand how the property can be set without a setter :-)
3622
3623 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3624
3625         * Application.cs:
3626           - Switched RunLoop to use static Message.Create to create a 
3627             Message object
3628           - Added PreProcessMessage call in runloop for keyboard events; this
3629             is part of the fix for #77219, I overlooked this originally in the
3630             MSDN doc for PreProcessMessage
3631         * Control.cs:
3632           - Removed call to PreProcessMessage from handling of keyboard 
3633             messages; it's supposed to be done in the message pump
3634           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
3635             per MSDN documentation.
3636           - IsInputChar: All chars are input chars by default; removed the 
3637             parent calling chain, MS does not document that
3638           - PreProcessMessage: If IsInputChar is true, we want to return false
3639             to allow dispatching of the message
3640           - When selecting the next control, now also check that we're not
3641             selecting ourselves again and therefore return a false positive.
3642         * TextBoxBase.cs:
3643           - Tried to match return values for IsInputKey and ProcessDialogKey
3644             to what MS returns; moved processing of our special keys outside
3645             ProcessDialogKey since MS does not seem to return true on those.
3646           - Moved code that previously was in ProcessDialogKey into new private
3647             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
3648           - Reworked handling of WM_CHAR to not have to duplicate code from
3649             Control.cs anymore, instead we simply call down to base.
3650            
3651 2006-01-12  Jackson Harper  <jackson@ximian.com>
3652
3653         * ComboBox.cs: We always need to refresh the text area when
3654         EndUpdate is called. Fixes the combobox in the file dialog.
3655         * Control.cs: Don't create the creator_thread until the controls
3656         handle is created.  Also in InvokeRequired we check if the
3657         creator_thread is null. This gives the effect of InvokeRequired
3658         returning true if the controls handle is not created yet, and
3659         matches MS.
3660
3661 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3662
3663         * XplatUI.cs:
3664           - Added StartLoop() driver method. This is used to allow drivers to
3665             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
3666             loop for a particular thread
3667           - Added EndLoop() driver method. This is called once the message
3668             pump for the thread is shut down
3669           - Added SupportsTransparency method to allow the driver to indicate
3670             opacity support for windows
3671         * Form.cs:
3672           - Removed TODO attribute, completed AllowTransparency property
3673           - Added documented logic to Opacity
3674         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
3675           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
3676           versions of CompatibleTextRendering
3677         * X11Structs.cs: Added opacity atom to our atom enumeration
3678         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
3679           of a form might be set before it's reparented by the WM, and we need
3680           the opacity value without calling up to Form)
3681         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
3682           SupportsTransparency() driver methods
3683         * Application.cs: Now calling StartLoop and EndLoop driver methods
3684         * XplatUIX11.cs:
3685           - Added opacity atom registration
3686           - Added StartLoop()/EndLoop() methods. They're empty right now but
3687             will need to get implemented when we switch to a per-thread queue
3688           - Implemented SupportsTransparency() method
3689           - Implemented SetWindowTransparency() method
3690           - Added support for setting the opacity value when a window is
3691             reparented (since the opacity needs to be set on the WM frame)
3692         * XplatUIOSX.cs, XplatUIWin32.cs:
3693           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
3694
3695 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3696
3697         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
3698
3699 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
3700
3701         * FileDialog.cs: Added ToolTip for MWFFileView
3702         * MimeIcon.cs: Rewrote GnomeHandler.
3703           - Get currently used gnome icon theme from
3704             ($HOME)/.gconf/%gconf-tree.xml
3705           - Make use of inherited icon themes
3706           - Support SVG icon themes like Tango via librsvg
3707
3708 2006-01-12  Miguel de Icaza  <miguel@novell.com>
3709
3710         Revert's Jackson's revert which broke 2.0 builds.   Fix both
3711         builds. 
3712         
3713         * Application.cs: Move the use_compatible_text_rendering outside
3714         the NET_2_0 define.  If we ever need to use the
3715         use_compatible_text_rendering on the individual controls they will
3716         access the variable from the common shared code paths.
3717
3718 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
3719
3720         * XplatUI.cs:
3721           - Added more granular debug options
3722           - Added method to print both window text and id
3723           - Switched debug output to use new Window() debug method
3724           - Added IsEnabled() driver method
3725           - Added EnableWindow() driver method
3726         * Form.cs:
3727           - Removed end_modal; no longer needed, new loop handles termination
3728             via 'closing' variable
3729           - If form is modal, setting DialogResult will now initiate loop
3730             termination via 'closing' variable
3731           - Added support for is_enabled/WS_DISABLED to CreateParams
3732           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
3733             does all the work
3734           - Removed code that's now in RunLoop from ShowDialog()
3735           - Added various documented sanity checks to ShowDialog()
3736           - Added handling of WM_DESTROY message; we set 'closing' on getting
3737             the message to indicate the message pump to terminate
3738           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
3739             send by the Application.ExitThread method. (We send the message
3740             to destroy the window after all other events have been
3741             processed through the queue, instead of destroying the handle 
3742             directly)
3743           - Moved code from Close() method to WM_CLOSE handler; added logic
3744             to only send close-related events if the form is not displayed
3745             modal
3746         * Splitter.cs (..ctor): Fixed typo in resource name
3747         * Control.cs:
3748           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
3749             brush now
3750           - set_Cursor: Now only setting calling into XplatUI if the handle for
3751             the control is already created; this avoids implict handle creation
3752             or crashes if it's not created
3753           - set_Enabled: Now setting the enabled state via the new driver method
3754             instead of just tracking it
3755           - CreateParams: Added logic to set WS_DISABLED based on enabled state
3756           - CreateControl: Reordered event firing and method calls to more
3757             closely fire events in the order MS does. Now setting the
3758             enabled state in the driver when creating the control.
3759           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
3760             match MS order
3761         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
3762           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
3763         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
3764         * Hwnd.cs:
3765           - Added tracking of window enabled state (get_Enabled/set_Enabled)
3766           - Added EnabledHwnd property to easily allow a driver to find the
3767             handle of the first enabled window in the parent chain (this is
3768             used by drivers to pass up input events of disabled windows)
3769         * XplatUIDriver.cs: Added IsEnabled() method
3770         * Application.cs:
3771           - Removed crude and obsolete exiting tracking variable
3772           - Removed internal ModalRun(); replaced by RunLoop()
3773           - Implemented private CloseForms() method to allow closing all 
3774             windows owned by a particular (or all) threads
3775           - Exit() now properly closes all windows without forcing the message
3776             pump to quit
3777           - Removed obsolete InternalExit() method
3778           - Changed Run() methods to use new RunLoop() message pump
3779           - Implemented new RunLoop() method for both modal and non-modal forms
3780         * CommonDialog.cs:
3781           - get_CreateParams: Added setting of WS_DISABLED
3782           - Simplified ShowDialog(); now all the work is done in RunLoop(),
3783             invoked via Form.ShowDialog()
3784         * NativeWindow.cs: We don't remove the window from the collection when
3785           the handle is destroyed; there might still be messages for it in the
3786           queue (mainly the resulting WM_DESTROY); instead it will be removed
3787           when Control calls InvalidateHandle in the WM_DESTROY handler
3788         * XplatUIX11.cs:
3789           - CreateWindow: Added logic to handle the WS_DISABLED window style
3790           - EnableWindow: Implemented based on Hwnd.Enabled
3791           - GetMessage: Reset PostQuitState so the method can be called again
3792           - Implemented support for disabled windows (passing messages to the
3793             first enabled parent) in handling all input messages
3794           - Added optimizations for handling Expose events
3795           - Implemeted new driver method IsEnabled()
3796           - Now always resetting paint pending tracking vars when we start paint
3797           - Re-implemented UpdateWindow via just sending a WM_PAINT message
3798         * XplatUIOSX.cs: Added IsEnabled method stub
3799         * XplatUIWin32.cs: Implemented new IsEnabled() method
3800
3801 2006-01-11  Jackson Harper  <jackson@ximian.com>
3802
3803         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3804         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
3805         variables a little.
3806         * ColorDialog.cs: Clear out the old form before adding the new
3807         panel.  
3808
3809 2006-01-11  Jackson Harper  <jackson@ximian.com>
3810
3811         * X11Dnd.cs: Make sure to add all the text formats when adding
3812         strings to the data object.
3813         * TreeNodeCollection.cs: When adding to a sorted tree we need to
3814         do some redrawing too.  Also change the UpdateNode to an
3815         UpdateBelow so the newly added node gets painted.
3816         
3817 2006-01-11  Miguel de Icaza  <miguel@novell.com>
3818
3819         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
3820         LinkLabel.cs, PropertyGrid.cs: Implement the
3821         UseCompatibleTextRendering property for 2.x
3822
3823         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
3824
3825 2006-01-11  Jackson Harper  <jackson@ximian.com>
3826
3827         * TreeView.cs: Use the property for setting the selected node so
3828         the correct events get raised.
3829         * TreeNode.cs: Update the tree when the fore/back colours of a
3830         node are set.
3831
3832 2006-01-10  Jackson Harper  <jackson@ximian.com>
3833
3834         * TreeView.cs: Allow setting SelectedNode to null.
3835
3836 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3837
3838         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
3839
3840 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3841
3842         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
3843
3844 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3845
3846         * PrintDialog.cs: Added attributes and set default property values.
3847
3848 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3849
3850         * PrintControllerWithStatusDialog.cs: 
3851         Added PrintControllerWithStatusDialog.
3852
3853 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3854
3855         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
3856         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
3857
3858 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
3859
3860         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
3861
3862 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
3863
3864         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
3865         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
3866
3867 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3868
3869         * MimeIcon.cs: Added internal class SVGUtil.
3870
3871 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
3872
3873         * FileDialog.cs: Don't crash if there are two files with the
3874           same name but different locations.
3875
3876 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
3877
3878         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
3879         dates across multiple month grids. Used to not highlight entire 
3880         month, but does now.
3881         
3882 2006-01-06  Jackson Harper  <jackson@ximian.com>
3883
3884         * MonthCalendar.cs: Removed DoEvents call to prevent a running
3885         message loop. Change timer intervals to numbers that seem more
3886         natural.
3887
3888 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
3889
3890         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
3891           object for location info since screen object is now implemented.
3892
3893 2006-01-05  Jackson Harper  <jackson@ximian.com>
3894
3895         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
3896         * AsyncMethodResult.cs: We no longer use a WeakReference for the
3897         AsyncMethodResult, this is because we ALWAYS want the
3898         ManualResetEvent to get set.
3899         * Control.cs: When disposing use an async invoke to call shutdown
3900         code, so that thigns don't block on the finalizer thread.  Also
3901         check if we even have a message loop before trying to send
3902         messages, if we don't then don't bother sending messages.
3903         - No more weak references for async methods
3904         * XplatUIDriver.cs: No more weak references for async methods.
3905
3906 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3907
3908         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
3909           returns two FontFamily with the same name
3910
3911 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3912
3913         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
3914           drawing disabled text. Instead using the ColorGrayText color
3915
3916 2006-01-04  Jackson Harper  <jackson@ximian.com>
3917
3918         * TreeNode.cs: redraw the node when its image index is changed.
3919
3920 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
3921
3922         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
3923           time I checked there are no others like it.
3924
3925 2006-01-04  Jackson Harper  <jackson@ximian.com>
3926
3927         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
3928         this gives the behavoir I was looking for.
3929         * Control.cs: Special case Invoking EventHandlers, this matches MS
3930         and fixes part of bug #76326.
3931
3932 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3933
3934         * ThemeClearlooks.cs, FileDialog.cs:
3935           - Reflect the latest Theme class changes
3936           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
3937             with DateTime
3938             
3939 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
3940
3941         * Theme.cs: Cache UI resource images and resize them if needed
3942
3943 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3944
3945         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
3946           is called. This fixes the crash in Nexxia when setting the font
3947           attributes in the chat. [However, RTF needs a look-over to make sure
3948           that all SelectionXXX methods handle the special case that selection
3949           is empty and therefore the change must be applied to all text starting
3950           at the cursor/selection start]
3951
3952 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
3953
3954         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
3955           XplatUIOSX.cs: Added SendMessage and PostMessage methods
3956         * X11Keyboard.cs: Switched to new way of calling PostMessage
3957
3958 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
3959
3960         * Theme.cs: Added theme interface for images to allow the theme to
3961           control what images are used for things like FileDialog, MessageBox
3962           icons, etc.
3963         * MessageBox.cs: Now uses the new Theme icon/image interfaces
3964
3965 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
3966
3967         * FileDialog.cs:
3968           - Removed some dead code
3969           - Opening a recently used file does work now
3970           - Small UI enhancements
3971           - Refactoring
3972
3973 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3974
3975         * FileDialog.cs: Forgot too add __MonoCS__
3976
3977 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
3978
3979         * FileDialog.cs: We are able to read recently used files now let's
3980           go on and write them.
3981
3982 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
3983
3984         * FileDialog.cs: Breathe some life into "last open"/"recently used"
3985           button
3986         * MimeIcon.cs: Do a check for the top level media type also
3987
3988 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3989
3990         * ThemeClearlooks.cs:
3991           - Added CPDrawStringDisabled
3992           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
3993             some chars if the text doesn't fit into text_rect
3994           - DrawListViewItem: If View = View.LargeIcon center the image;
3995             rewrote the drawing of ListViewItem.Text if View = 
3996             View.LargeIcon
3997
3998 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
3999
4000         * MimeIcon.cs: Use default KDE icon theme if there is no
4001           "48x48" directory for the current icon theme, fixes #77114
4002         * Mime.cs: Disable not working and actually not used code. 
4003         * ThemeWin32Classic.cs:
4004           - Replace "new SolidBrush" in GetControlBackBrush and
4005             GetControlForeBrush with ResPool.GetSolidBrush
4006           - Changed DrawListViewItem from private to protected virtual
4007         * FileDialog.cs:
4008           - Added form.MaximizeBox = true
4009           - Don't throw an exception if there is a broken symbolic link
4010
4011 2005-12-23  Jackson Harper  <jackson@ximian.com>
4012
4013         * TabControl.cs: Give the panels focus, keyboard navigation is
4014         fixed so this works correctly now.
4015         - We need these key events also.
4016         * ToolBar.cs: Remove some of the poor mans double buffering.
4017         
4018 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
4019
4020         * ComboBox.cs: The internal TextBox now returns the focus.
4021
4022 2005-12-23  Jackson Harper  <jackson@ximian.com>
4023
4024         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
4025
4026 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4027
4028         * Control.cs: Removed debug code
4029         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
4030           implicit children
4031
4032 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
4033
4034         * Control.cs: When creating the control, update the Z-order after
4035           all it's children are created, too. (Fixes nexxia not showing
4036           picturebox bug)
4037
4038 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
4039
4040         * Control.cs: Do not update the anchoring distances if layout is
4041           suspended, instead do it once layout is resumed
4042
4043 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
4044
4045         * Control.cs: 
4046           - After many hours of debugging, for both Jackson and
4047             myself, it turns out that it helps to set the parent of a control
4048             if you want to actually see it onscreen. In the spirit of that
4049             discovery, we're now setting the parent of the control and
4050             it's children when the control's handle is created. This fix
4051             will make Lutz Roeder's Reflector run happily. 
4052           - now just creating the handle instead of the whole control when
4053             getting a graphics context for the control.
4054
4055 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4056
4057         * ScrollableControl.cs: When calculating the canvas, don't consider
4058           the scrollbar widths. Instead, predict if horizontal scrollbar
4059           will affect canvas when deciding on vertical display and vice versa.
4060
4061 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
4062
4063         * RichTextBox.cs: Set default RTF font for documents that don't
4064           have a font table (Fixes #77076)
4065
4066 2005-12-22  Jackson Harper  <jackson@ximian.com>
4067
4068         * TextBoxBase.cs: It's difficult to do, but you can have an empty
4069         clipboard. This prevents a NullRef in that case.
4070         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
4071         clipboard. PRIMARY is for the currently selected text only. (We
4072         should implement PRIMARY at some point.
4073
4074 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4075
4076         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
4077           a Unicode function with a structure that was defined in Ansi way.
4078           This fixes #76942.
4079
4080 2005-12-21  Jackson Harper  <jackson@ximian.com>
4081
4082         * StatusBar.cs: Statusbar handles its fore/back colours on it's
4083         on. Because thats how it rolls. (and this avoids it using ambient
4084         colours).
4085         * ThemeWin32Classic.cs: Use the proper back color for filling.
4086         * Menu.cs: Use the system menu bar color for drawing menu
4087         bars. Using the window back color will bring ambient colours into
4088         the picture.
4089
4090 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
4091
4092         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
4093           Bitmaps were created and not disposed.
4094
4095 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4096
4097         * Control.cs (CreateControl): Don't do anything if the control is
4098           already created, otherwise we'd fire the OnCreated event more than
4099           once
4100
4101 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4102
4103         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
4104           will always match. Instead return -1. Fixes #76464.
4105
4106 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
4107
4108         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
4109           neither the beginning nor the end of the line (Fixes bug #76479)
4110
4111 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
4112
4113         * Control.cs:
4114           - ControlNativeWindow.ControlFromHandle(): Now handling situation
4115             where handle is invalid
4116           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
4117             instead of slower linear search
4118         * NativeWindow.cs: Don't remove the window from the hashtable until
4119           after the driver has destroyed it (since the driver might use
4120           Control.FromHandle to lookup the control object
4121         * Hwnd.cs: Added DestroyPending property to track if a window is 
4122           already destroyed as far as the driver is concerned and only hasn't
4123           yet notified the control
4124         * XplatUIX11.cs:
4125           - Activate(): Check if the window is still valid before using the 
4126             handle
4127           - Implemented DestroyChildWindow() method to mark child windows as
4128             destroyed when a window is destroyed. This prevents situations 
4129             where we might call an X method based on queued events for a
4130             window that already has been destroyed but we haven't yet pulled
4131             the destroy method from the queue.
4132           - Added a call to the new DestroyChildWindow() method to the drivers
4133             DestroyWindow code. Also now marking the destroyed window itself
4134             as pending
4135
4136 2005-12-20  Jackson Harper  <jackson@ximian.com>
4137
4138         * StatusBar.cs:
4139         * StatusBarPanel.cs: Don't calculate panel sizes on draw
4140         anymore. Just do them when needed, also track the rects of panels
4141         so that we can optimize refreshing more in the future.
4142
4143 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
4144
4145         * ColorDialog.cs: Fixed focus drawing in small color controls
4146
4147 2005-12-19  Jackson Harper  <jackson@ximian.com>
4148
4149         * InternalWindowManager.cs:
4150         * MdiWindowManager.cs: Cleanup some coordinate system changes so
4151         moving windows works properly.
4152
4153 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
4154
4155         * Control.cs: 
4156           - Removed call to InitLayout() from SetBoundsCore(); doc says
4157             it's only called when a control is added to a container
4158           - Split InitLayout logic, moved to separate UpdateDistances() method
4159             since we need to perform those calculations more often than just
4160             when adding the control to a container. (Needed to fix #77022)
4161           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
4162           - Reduced the OnBindingContextChanged events count, don't send them
4163             unless the control is created, we still aren't totally matching
4164             MS, but I can't quite figure out some of their rules
4165
4166 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4167
4168         * ThemeClearlooks.cs: Corrected distance between ProgressBar
4169           stripes
4170
4171 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4172
4173         * ThemeClearlooks.cs:
4174           - Updated ProgressBar drawing
4175           - Corrected drawing of ScrollBars and scroll buttons
4176           - Some temporary fixes for minor pixel artefacts
4177
4178 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
4179
4180         * Control.cs:
4181           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
4182             cause events to be sent in the same order as MS does.
4183           - Added ChangeParent() method to trigger various OnXXXChanged events
4184             that need to be fired when a parent changes (This is a reworking
4185             of the patch from r54254, with the X11 errors fixed)
4186           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
4187             since on MS we get OnLayoutChanged events when calling Clear()
4188           - Changed Enabled property to consider parent state as well, if a
4189             parent is not enabled, the control will not be either
4190           - Changed Parent property to simply call Controls.Add() since that
4191             now does all the work required, this way we avoid code duplication
4192           - Threw in a few OnBindingsContextChanged calls to try and match
4193             when MS sends them. We seem to send a few too many, though.
4194           - Added call to CreateControl when adding the control to a parent.
4195             We were never calling CreateControl. Still needs some work, in
4196             some places we treat HandleCreated and ControlCreated as equal, 
4197             which is wrong
4198           - Removed obsolete commented out code from UpdateZOrder()
4199
4200 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
4201
4202         * ThemeClearlooks.cs: Updated TrackBar drawing.
4203
4204 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4205
4206         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
4207
4208 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
4209
4210         * FileDialog.cs: Add the Help button and the open readonly
4211           checkbox only if needed
4212
4213 2005-12-16  Jackson Harper  <jackson@ximian.com>
4214
4215         * Control.cs: Make sure we have an active menu before trying to
4216         process commands on it. Prevents menu-less forms from crashing
4217         when Alt is pressed.
4218         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
4219         Dieter Bremes.
4220         * RichTextBox.cs: Expand statement to help out gmcs and fix the
4221         2.0 build.
4222
4223 2005-12-16  Jackson Harper  <jackson@ximian.com>
4224
4225         * InternalWindowManager.cs: Don't translate tool windows screen
4226         coordinates. This fixes windows 'bouncing' around when being moved.
4227
4228 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4229
4230         * TextBoxBase.cs:
4231           - MaxLength now treats 2^31-1 equal to unlimited length (this is
4232             not quite MS compatible, MS uses that number only for single line
4233             and 2^32-1 for multi-line, but I figure it won't hurt keeping
4234             the limit at 2GB)
4235           - Now enforcing the MaxLength limit when entering characters
4236           - Added argument to internal Paste() method to track if it's called
4237             from programatically or via keyboard, since keyboard driven pastes
4238             need to enforce max-length
4239           - Added logic to Paste to only paste as many chars as MaxLength 
4240             allows
4241         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
4242         * TextControl.cs:
4243           - Added Length property to return number of characters in document
4244           - Added private CharCount property which only tracks actual chars
4245             in the document (no linefeeds) and fires event when CharCount
4246             changes
4247           - Added tracking of character count to all methods that alter it
4248           - Added LengthChanged event to allow applications to subscribe
4249             to any changes to the document
4250
4251 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
4252
4253         * TextBox.cs: 
4254           - Removed local password_char field (moved to TextBoxBase)
4255           - Now setting the document's password var when password is
4256             set
4257         * TextBoxBase.cs:
4258           - Added password_char field (needed here so MultiLine can
4259             access it)
4260           - Added logic to MultiLine property setter to set the document's
4261             variable when password display is allowed
4262           - Removed debug code and made some debug code conditional
4263         * TextControl.cs:
4264           - Added RecalculatePasswordLine() method to handle special password
4265             char only lines
4266           - Added PasswordChar property, also added related tracking vars
4267           - Draw() method now uses local text var for grabbing text to draw,
4268             this var is set to line.text unless we're doing password display,
4269             then it is set to the pre-generated all-password-chars line
4270           - Added calling RecalculatePasswordLine() method for password lines
4271
4272 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4273
4274         * Hwnd.cs: 
4275           - Added Reparented property to allow tracking of Window Manager
4276             reparenting actions (which affect X/Y calculations of toplevel 
4277             windows)
4278           - Made ToString() print window handles in hex
4279         * XplatUIX11.cs:
4280           - AddConfigureNotify(): Now uses reparented state off Hwnd to
4281             determine if X/Y needs offsetting
4282           - AddConfigureNotify(): Fixed offset calculations
4283           - Now adds ReparentNotify messages into the queue
4284           - Now processes ReparentNotify messages and causes a 
4285             WM_WINDOWPOSCHANGED message to be sent upstream if a window
4286             is reparented (as most likely it's X/Y coordinates are changed
4287             due to that)
4288
4289 2005-12-14  Jackson Harper  <jackson@ximian.com>
4290
4291         * XplatUIX11.cs: Tool windows still need to respek focus.
4292
4293 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
4294
4295         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
4296           have a working release
4297
4298 2005-12-13  Jackson Harper  <jackson@ximian.com>
4299
4300         * Form.cs: Update styles after setting the border style regardless
4301         of whether or not the window is using a window manager.
4302
4303 2005-12-13  Jackson Harper  <jackson@ximian.com>
4304
4305         * Form.cs: We now hook into an internal window manager instead of just an
4306         MDI subsystem, this is so we can have properly behaving tool windows.
4307         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
4308         * InternalWindowManager.cs: New internal class that acts as a
4309         window manager for tool windows and as a base for mdi windows.
4310         * MdiWindowManager.cs: New class that acts as a window manager for
4311         mdi windows.
4312
4313 2005-12-12  Jackson Harper  <jackson@ximian.com>
4314
4315         * Control.cs: Updates so we match behavoir for for implicit
4316         controls. Fixes explosions in MDI.
4317
4318 2005-12-12  Jackson Harper  <jackson@ximian.com>
4319
4320         * Control.cs: Implement Invalidate (Region).
4321
4322 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
4323
4324         * Control.cs: 
4325           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
4326             the same events as MS does. MS fires events for each property 
4327             except, for unknown reasons, Cursor, when the control is reparented. 
4328             I can't seem to totally match add/remove since MS also fires some 
4329             VisibleChanged events, which makes no sense. Consolidated the
4330             parenting code into a separate method so it can be called from
4331             both Add and Remove. set_Parent no longer needs any special logic
4332             as it calls the parent's add method which implicitly fires
4333             all events
4334           - Removed some obsolete code and debug output
4335           - Enabled state is inherited from parents, if this is enabled
4336
4337 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
4338
4339         * Form.cs: Removed commented out code
4340
4341 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
4342
4343         * Control.cs:
4344           - Added internal version of Invoke, with additional argument 
4345             indicating if we're calling it from a Dispose() handler. That
4346             way we can avoid BeginInvoke throwing an exception if we're
4347             calling for an already destroyed window.
4348           - Added a dispose argument to BeginInvokeInternal, and made the
4349             check if a valid window handle chain exists conditional on
4350             it not being a dispose call
4351           - Removed code in DestroyHandle to destroy our children. Since we
4352             now handle the WM_DESTROY message we will catch all our children
4353             being destroyed.
4354           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
4355         * Form.cs:
4356           - Added a field to track the application context of the form.
4357           - No need to set closing variable as response to WM_CLOSE, instead
4358             we destroy the window. We also call PostQuitMessage if the form
4359             has an application context (which makes it the main app form,
4360             which, when closed terminates the app)
4361         * XplatUI.cs:
4362           - Dropped Exit() method, it's naming was confusing
4363           - Added PostQuitMessage() which causes GetMessage to return false
4364             once the message queue is empty
4365         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
4366           PostQuitMessage()
4367         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
4368           no longer a valid XplatUI method, but left it in since it's used
4369           internally. Added empty PostQuitMessage() method.
4370         * MenuAPI.cs: Replaced call to Exit() with call to
4371           PostQuitMessage, even though this is probably no longer needed.
4372         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
4373         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
4374         * Application.cs:
4375           - Replaced call to XplatUI.Exit() with PostQuitMessage()
4376           - Removed old debug code that would call XplatUI for exception
4377             display, enabled standard exception handling (Still not enabled
4378             though, until NativeWindow's ExternalExceptionHandler define
4379             is removed
4380         * NativeWindow.cs:
4381           - Added internal method to allow control to update NativeWindow
4382             after a window has been destroyed
4383           - Added handling of already destroyed windows when calling i
4384             DestroyWindow
4385           - Added removal of handle from list on ReleaseHandle
4386         * XplatUIX11.cs:
4387           - Dropped GetMessageResult var and related code
4388           - Added PostQuitState to field to track if PostQuitMessage has been
4389             called
4390           - Dropped Exit() method
4391           - Added PostQuitMessage() method
4392           - GetMessage now will return false if PostQuitState is set and no
4393             more messages are in the queue.
4394           - Expose handler will no longer generate WM_PAINT messages if we are
4395             in PostQuitState since it's very likely any windows have already
4396             been destroyed, and since Hwnd won't get updated until we have
4397             processed the DestroyNotify we'd be causing X errors.
4398         
4399 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4400
4401         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
4402           Thanks to Mike for pointing out the err of my ways.
4403
4404 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4405
4406         * Control.cs(PreProcessMessage): Moved menu handling back, but
4407           after all other key handling, to match MS (who handles Menu in
4408           DefWndProc)
4409         * Menu.cs (WndProc): Removed my brainfart
4410
4411 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4412
4413         * Control.cs(PreProcessMessage): Removed special menu handling 
4414         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
4415
4416 2005-12-07  Mike Kestner  <mkestner@novell.com>
4417
4418         * Control.cs : special case SYSKEYUP so that we can adjust keynav
4419         state according in tracker.
4420         * Menu.cs : promote tracker field to base class and provide a tracker
4421         lookup capability.  Add/Remove shortcuts dynamically if the top menu
4422         has a tracker. Unparent items that are removed from the collection.
4423         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
4424         * Theme*.cs: add always_show_hotkeys field to support configurability
4425         of mnemonic display.  win32 doesn't show mnemonics until Alt is
4426         pressed.
4427
4428 2005-12-07  Jackson Harper  <jackson@ximian.com>
4429
4430         * MdiChildContext.cs: Use Control.ResetCursor.
4431         * Control.cs: ResetCursor needs to set the property so that the
4432         correct XplatUI call gets made.
4433
4434 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4435
4436         * Control.cs: More fixes to make our key events match MS. We
4437           were not setting the modifier state on KeyData, and we were
4438           not generating any events when Alt was pressed with a key
4439           since handling of WM_SYSxxx was missing for the OnKey methods.
4440
4441 2005-12-07  Jackson Harper  <jackson@ximian.com>
4442
4443         * MdiChildContext.cs: reenable the sizing code.
4444         - When the mouse leaves a window reset its cursor.
4445
4446 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4447
4448         * ThemeClearlooks.cs: Reflect latest Hwnd changes
4449
4450 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
4451
4452         * Hwnd.cs: Now using the theme 3d bordersize to calculate
4453           widths of Fixed3D borders
4454
4455 2005-12-07  Jackson Harper  <jackson@ximian.com>
4456
4457         * MdiClient.cs: Fix warnings. Earn Mike's love.
4458
4459 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
4460
4461         * ThemeClearlooks.cs:
4462           - Adjusted mouse over button color
4463           - Added first parts of CheckBox drawing
4464           - Added correct color for selected text background
4465           - Fixed ComboBox drawing
4466           - Added CPDrawBorder3D and CPDrawBorder
4467
4468 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4469
4470         * XplatUIX11.cs: Added call to XBell for AudibleAlert
4471
4472 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
4473
4474         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
4475           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
4476           alert users via sound. We could add an enum arg with different
4477           types of alerts in the future
4478
4479 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
4480
4481         * Control.cs: Fix behaviour problems pointed out by Mike
4482
4483 2005-12-05  Mike Kestner  <mkestner@novell.com>
4484
4485         * StatusBarPanel.cs: add Invalidate method and hook it into all the
4486         prop setters.  Calls parent.Refresh for now, but could be maybe be
4487         optimized with an internal method on StatusBar at some point.
4488         [Fixes #76513]
4489
4490 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
4491
4492         * RichTextBox.cs: Implemented get_SelectionColor
4493
4494 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
4495
4496         * ThemeClearlooks.cs:
4497           - Removed dead code
4498           - Draw black button border only if button is Form.AcceptButton
4499           - Draw correct button color for pressed RadioButton if the mouse 
4500             has entered the button
4501           - Updated ProgressBar drawing!
4502           - Updated CPDrawSizeGrip drawing
4503           - Updated StatusBarPanel drawing
4504
4505 2005-12-05  Mike Kestner  <mkestner@novell.com>
4506
4507         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
4508         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
4509
4510 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
4511
4512         * ThemeClearlooks.cs: Initial check-in, activate with
4513           export MONO_THEME=clearlooks
4514         * ThemeEngine.cs: Added ThemeClearlooks
4515
4516 2005-12-03  Mike Kestner  <mkestner@novell.com>
4517
4518         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
4519         [Fixes #76897]
4520
4521 2005-12-02  Jackson Harper  <jackson@ximian.com>
4522
4523         * Form.cs: If the child form has no menu the default main menu is
4524         used as the active menu.
4525
4526 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
4527
4528         * ListBox.cs: Check if any items exist before trying to resolve 
4529           coordinates into items
4530
4531 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4532
4533         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
4534           as the second color for the background hatch
4535
4536 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
4537
4538         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
4539         * RichTextBox.cs: FormatText position arguments are 1-based, now making
4540           sure that what we pass to FormatText is always 1-based. Fixes #76885
4541
4542 2005-11-29  Miguel de Icaza  <miguel@novell.com>
4543
4544         * NumericUpDown.cs (EndInit): When we are done initializing,
4545         reflect any updates on the UI.
4546
4547 2005-12-02  Jackson Harper  <jackson@ximian.com>
4548
4549         * ImplicitHScrollBar.cs:
4550         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
4551         their container controls.
4552         * TreeView.cs: Use the new implicit scrollbars.
4553
4554 2005-12-02  Jackson Harper  <jackson@ximian.com>
4555
4556         * TreeView.cs: Make top_node internal so the TreeNodeCollections
4557         can play with it.
4558         * TreeNodeCollection.cs: If we remove the topnode we need to
4559         update topnode to the next node in line.
4560         - When clearing nodes go through the same process as removing
4561         them, so they get depareneted and checked if they are top node.
4562
4563 2005-12-01  Jackson Harper  <jackson@ximian.com>
4564
4565         * TreeView.cs: When imagelists are used the image area is
4566         selectable as well as the text.
4567         - If there are no selected nodes select the first one.
4568         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
4569         so don't do it more then we need to.
4570
4571 2005-12-01  Jackson Harper  <jackson@ximian.com>
4572
4573         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
4574         that arrows can be scaled.
4575
4576 2005-12-01  Jackson Harper  <jackson@ximian.com>
4577
4578         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
4579         fail. Patch by Dieter Bremes
4580
4581 2005-11-30  Jackson Harper  <jackson@ximian.com>
4582
4583         * Form.cs: Property is 2.0 only
4584         * PrintDialog.cs: Signature fix.
4585
4586 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4587
4588         * TextControl.cs: 
4589           - No longer artificially moves text 2 pixels down (now that we have
4590             borders this is no longer needed)
4591           - Added calcs for left, hanging and right indent
4592
4593 2005-11-23  Mike Kestner  <mkestner@novell.com>
4594
4595         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
4596
4597 2005-11-30  Jackson Harper  <jackson@ximian.com>
4598
4599         * MdiChildContext.cs: Set the cloned menus forms, as these don't
4600         get cloned as part of CloneMenu ().
4601         * Menu.cs: Make sure the parent of the items get set correctly
4602         when they are added.  And the owners are notified of the changes.
4603         * Form.cs: Create an ActiveMenu property, so that when MDI is used
4604         we can change the menu being displayed/handled by the form without
4605         changing the menu assosciated with the form.
4606         - Don't let Mdi children draw/handle menus.
4607         
4608 2005-11-30  Jackson Harper  <jackson@ximian.com>
4609
4610         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
4611         a MenuChanged event. Just to make the API a little more
4612         consistent.
4613         * MainMenu.cs:
4614         * MenuItem.cs: Use the new OnMenuChanged
4615         * MdiChildContext.cs: Handle menu merging.
4616         * Form.cs: Implement MergedMenu.
4617         
4618 2005-11-30  Jackson Harper  <jackson@ximian.com>
4619
4620         * Menu.cs: We were misusing Add. Add goes behind the specified
4621         index according to the docs, and does not replace the specified
4622         index. So I added an Insert method.
4623
4624 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
4625
4626         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
4627           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
4628           is for Jackson
4629         * RichTextBox.cs: Added calls to base for DnD events
4630
4631 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
4632
4633         * TextControl.cs:
4634           - Fixed drag-selection related crash; style fixes
4635           - Implemented undo class
4636             o Implemented method to capture document state for specified
4637               range in document tree
4638             o Implemented method to restore captured document state
4639             o Implemented cursor tracking
4640             o Implemented basic undo stack
4641           - Added undo cursor tracking to methods altering cursor location
4642           - Added undo tracking to selection deletion (still missing
4643             other text-altering hookups)
4644         * RichTextBox.cs:
4645           - Added SelectionLength property
4646           - Implemented CanPaste()
4647           - Implemented Paste()
4648           - Added missing protected methods
4649           - Fixed RTF->Document conversion; now uses font index 0 and color 
4650             index 0 as the default font for the parsed text
4651           - Fixed RTF<->Document font size translation
4652           - Fixed RTF generation, now properly handles cross-tag boundaries
4653             for single line selection
4654           - No longer always appends blank line to generated RTF
4655           - Removed TODOs
4656           - Added missing attributes
4657           - Hooked up undo-related methods
4658         * TextBoxBase.cs:
4659           - Implemented Copy()
4660           - Implemented Paste()
4661           - Implemented Cut()
4662           - Fixed caret mis-behaviour on backspace across line-boundaries
4663
4664 2005-11-29  Jackson Harper  <jackson@ximian.com>
4665
4666         * MdiClient.cs: Add a method for activating mdi children. Very
4667         basic right now. I imagine someday it might need more girth.
4668         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
4669         children windows names are added to the menu item.
4670         * ThemeWin32Classic.cs: Draw the arrow if the item is an
4671         mdilist. This happens regardless of whether or not there are any
4672         mdi windows to see in the list, and according to my tests happens
4673         before the items are even added. Also happens if there isn't even
4674         an mdi client to get windows from.
4675
4676 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
4677
4678         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
4679         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
4680
4681 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
4682
4683         * DataGridTableStyle.cs:
4684           - Create always the styles for the missing columns even if they are
4685             provided by the user (not default table style)
4686         * DataGrid.cs:
4687           - Fixes bug 76770
4688           - Fixes SetDataBinding (always re-attach source)
4689           - Fixes SetNewDataSource (only clear styles if they are not for 
4690             this source)
4691          -  Expands OnTableStylesCollectionChanged to handle style refresh 
4692             and remove properly
4693
4694 2005-11-29  Jackson Harper  <jackson@ximian.com>
4695
4696         * FileDialog.cs: Implement missing bits, remove some dead
4697         code.
4698         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
4699         creation of the panel so that the options set on the dialog are
4700         seen when the panel is created.
4701         * TreeView.cs: raise a click when items are clicked.
4702         
4703 2005-11-29  Jackson Harper  <jackson@ximian.com>
4704
4705         * MdiClient.cs: Pass some signature methods through to base.
4706
4707 2005-11-28  Jackson Harper  <jackson@ximian.com>
4708
4709         * ListView.cs: Raise the click event when items are clicked.
4710
4711 2005-11-28  Jackson Harper  <jackson@ximian.com>
4712
4713         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
4714         a nullref.
4715
4716 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
4717
4718         * ThemeNice.cs: - Removed 1 pixel bitmaps
4719           - Use SmoothingMode.AntiAlias where it makes sense
4720             (ScrollButton arrow for example)
4721           - Enhanced Button focus drawing
4722           - Fixed ComboBox drawing (no artefacts anymore, focus
4723             rectangle is back again, reduced size of ComboButton, etc.)
4724           - Fixed RadioButton focus drawing for Appearence.Button
4725           - Slight ScrollButton redesign
4726           - Some LinearGradientBrush size fixes
4727           - GroupBoxes have now rounded edges
4728           - Fixed StatusBar drawing
4729
4730 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
4731
4732         * ThemeNice.cs: - Remove dead code
4733           - use correct background colors for menus, etc.
4734           - Fake pixel drawing with 1 pixel bitmaps
4735
4736 2005-11-24  Jackson Harper  <jackson@ximian.com>
4737
4738         * MdiClient.cs: Size the scrollbars when resizing the window.
4739         - Resize the maximized windows when the client is resized
4740         * Form.cs: Make the child context available
4741         
4742 2005-11-23  Jackson Harper  <jackson@ximian.com>
4743
4744         * MdiChildContext.cs: Don't size windows if they are maximized.
4745
4746 2005-11-23  Mike Kestner  <mkestner@novell.com>
4747
4748         * ContextMenu.cs: use MenuTracker.
4749         * Control.cs: remove menu handle usage.
4750         * Form.cs: remove menu handle usage.
4751         * Hwnd.cs: remove menu handle usage.
4752         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
4753         motion and clicks to the new Tracker handlers.
4754         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
4755         and handle usage.
4756         * MenuAPI.cs: refactored to combine popup and menubar event handling.
4757         Killed the MENU and MENUITEM data types and associated collections
4758         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
4759         MenuTracker class that exposes the leftovers from the old MenuAPI
4760         static methods. Restructured Capture handling so that only one grab is
4761         done for the entire menu hierarchy instead of handing off grabs to
4762         submenus. Tracker now has an invisible control to Capture when active.
4763         * MenuItem.cs: add sizing accessors, kill Create
4764         and handle usage.
4765         * Theme.cs: remove menu handle and MENU(ITEM) usage.
4766         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
4767         MENU(ITEM). remove menu handle usage, use Menu directly.
4768         * XplatUIDriver.cs: remove menu handle usage.
4769         * XplatUIOSX.cs: remove menu handle usage.
4770         * XplatUIWin32.cs: remove menu handle usage.
4771         * XplatUIX11.cs: remove menu handle usage.
4772
4773 2005-11-22  Jackson Harper  <jackson@ximian.com>
4774
4775         * Hwnd.cs: Don't compute the menu size for
4776         DefaultClientRectangle.
4777         - Reenable menu sizes being computed for GetClienRectangle.
4778         * Form.cs: Remove comment of trechery
4779         
4780 2005-11-22  Jackson Harper  <jackson@ximian.com>
4781
4782         * Hwnd.cs: The adjustments for the menu bar are made when it is
4783         attached to the form.
4784
4785 2005-11-19  Jackson Harper  <jackson@ximian.com>
4786
4787         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
4788         (just like on windows).
4789
4790 2005-11-19  Jackson Harper  <jackson@ximian.com>
4791
4792         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
4793         use real buttons anymore because they are in non client area. The
4794         one TODO here is that I need to somehow invalidate a section of
4795         the non client area.
4796
4797 2005-11-18  Jackson Harper  <jackson@ximian.com>
4798
4799         * Control.cs: Put the enum check back in now that MDI doesnt have
4800         to use this to set border styles.
4801         * Form.cs: Only set mdi child windows borders if the handle has
4802         been created.
4803         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
4804         this directly on to the driver.
4805         - Get the move start position before adjusting for the titlebar
4806         height, this fixes the windows "skipping" when they are first
4807         moved.
4808
4809 2005-11-18  Jackson Harper  <jackson@ximian.com>
4810
4811         * XplatUIX11.cs: Just compute the mdi borders separately as they
4812         don't totally match up with normal form borders.
4813
4814 2005-11-18  Jackson Harper  <jackson@ximian.com>
4815
4816         * Control.cs: Set WS_ styles for borders, so that the driver does
4817         not have to retrieve the control instance to figure out what kind
4818         of borders it should have.
4819         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
4820         driver can know its an mdi child easily.
4821         * XplatUIX11.cs: Get the border styles and whether the window is
4822         MDI from the Styles and ExStyles params instead of having to get a
4823         control. This prevents a chicken and egg problem.       
4824
4825 2005-11-18  Jackson Harper  <jackson@ximian.com>
4826
4827         * MdiClient.cs: Fix typo so scrollbars show up correctly.
4828
4829 2005-11-18  Jackson Harper  <jackson@ximian.com>
4830
4831         * MdiClient.cs: Calculate when to add and remove scrollbars
4832         correctly.
4833         * MdiChildContext.cs: Adjust the y position to take the titlebar
4834         into account.
4835         - No height for FormBorderStyle.None
4836
4837 2005-11-18  Jackson Harper  <jackson@ximian.com>
4838
4839         * Control.cs: Allow non enum values to be used for
4840         InternalBorderStyle.  MDI does this to set a special border style.
4841         - New utility methods for converting points to/from client coords
4842         - Add the newly created control to the Controls collection before
4843         updating its style. This way UpdateStyle can walk the control
4844         heirarchy to find the control if needed.
4845         so I don't need to create a new Point object all the time.
4846         * Form.cs: Let MDI windows handle their border styles.
4847         - Set styles on MDI windows so the correct title style is derived.
4848         * MdiChildContext.cs: Move all the painting and window handling
4849         into the non client area.
4850         - Use correct sizing and put correct buttons on frames based on
4851         the FormBorderStyle.
4852         - Notify the mdi client about scrolling
4853         - Need to handle the buttons ourselves now, because they are all
4854         in non client areas and we can't add controls there.
4855         * MdiClient.cs: Halfway to scrolling, this implementation is
4856         somewhat broken though, we need to check to make sure other
4857         windows aren't causing scrolling before removing the bars. Also
4858         the bars need to be drawn on top, maybe I can switch implicit
4859         controls to be on top.
4860         * Hwnd.cs: caption_height and tool_caption_height are now
4861         properties of an hwnd, this way they can be set by the driver
4862         based on the type of window they are.  In X11 the window manager
4863         handles the decorations so caption_height is zero unless its an
4864         MDI window.
4865         - Add 3 pixel borders for MDI windows (0xFFFF).
4866         - Get rid of some code duplication, have DefaultClientRectanle
4867         just call GetClientRectangle.
4868         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
4869         Hwnd now.
4870         - Set border styles differently for mdi windows.
4871         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
4872         Hwnd now.
4873         
4874 2005-11-15  Mike Kestner  <mkestner@novell.com>
4875
4876         * Menu.cs: when adding an item to the collection, if item is already 
4877         parented, remove it from the parent.
4878
4879 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
4880
4881         * X11DesktopColors.cs: Added KDE support
4882
4883 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
4884
4885         * XplatUIWin32.cs: 
4886           - Clipboard methods now can translate Rtf format
4887           - No longer removes clipboard contents whenever a new format is added
4888             to allow placing multiple formats on the clipboard
4889         * Clipboard.cs: Clipboard now supports getting a IDataObject and
4890           will place all formats contained in it onto the clipboard. Also
4891           now cleans the clipboard before placing a new object onto it
4892         * RichTextBox.cs:
4893           - Implemented set_Rtf
4894           - Implemented set_SelectedRtf
4895           - Created InsertRTFFromStream() method to allow single code base
4896             for all properties and methods that insert RTF into document
4897           - Removed debug output
4898         * TextControl.cs:
4899           - Fixed Delete(int) to fix up line numbers
4900           - Fixed ReplaceSelection to combine start and end line
4901           - Fixed serious DeleteChars bug that would leave the document tree
4902             broken
4903           - Improved DumpTree with several logic checks to detect broken
4904             document trees
4905           - Removed debug lines
4906           - Fixed Caret.WordForward/WordBack moving code, now always also 
4907             updates caret.tag (fixes crash when word-selecting across tag
4908             boundaries via keyboard)
4909           - Added Insert() method for inserting multiline text into documents
4910           - Fixed DeleteChars() calculation errors that would cause a broken
4911             tag chain with multiple tag lines
4912           - DeleteChars() no longer crashes on multi-tag lines if not all tags
4913           - Split() no longer moves caret if split is at caret location
4914           - ReplaceSelection() now updates the cursor and re-displays it
4915           - ReplaceSelection() now uses new Insert() method to avoid code
4916             duplication
4917           - FormatText() can now handle formatting partial lines
4918         * TextBoxBase.cs:
4919           - Append now uses new TextControl.Insert() method (this avoids 
4920             duplicate code)
4921           - Implemented Ctrl-X (Cut) (
4922           - Implemented Ctrl-C (Copy)
4923           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
4924             regeneration when pasting text; roundtripping Copy&Paste within
4925             edit control still fails due to some calculation bugs in GenerateRTF)
4926           - The Delete key will now remove the current selection if it is visible
4927         * TextBox.cs: Removed debug lines
4928         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
4929           driver to be initialized and can't therefore be done via a static ctor)
4930
4931 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
4932
4933         * TextControl.cs: Added backend code for finding char arrays and strings
4934         * TextBoxBase.cs:
4935           - Added mouse wheel scroll support
4936           - Added support for VScroll and HScroll events
4937         * RichTextBox.cs:
4938           - Implemented all seven Find() variants
4939           - Implemented GetCharFromPosition()
4940           - Implemented GetCharIndexFromPosition()
4941           - Implemented GetLineFromIndex()
4942           - Implemented GetPositionFromCharIndex();
4943           - Implemented SaveFile for PlainText and UnicodeText
4944           - Fixed set_Font, now setting a new font applies that font to
4945             the whole document
4946           - Implemented generic Document to RTF converter
4947           - Implemented SaveFile for RichText format (still missing unicode
4948             conversion for non-ansi chars)
4949           - Implemented get_Rtf
4950           - Implemented get_SelectedRtf
4951
4952 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
4953
4954         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
4955           to allow any captures to be released before triggering OnClick. This
4956           way a click handler may capture the mouse without interference.
4957         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
4958           This way we send them even though X may not allow a grab (if the window
4959           isn't visible, for example)
4960
4961 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
4962
4963         * DataGridViewRowEventArgs.cs: DataGridView implementation
4964         * DataGridViewElement.cs: DataGridView implementation
4965         * DataGridViewComboBoxCell.cs: DataGridView implementation
4966         * DataGridViewDataErrorContexts.cs: DataGridView implementation
4967         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
4968         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
4969         * ImageLayout.cs: DataGridView implementation
4970         * DataGridViewComboBoxColumn.cs: DataGridView implementation
4971         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
4972         * DataGridViewSelectionMode.cs: DataGridView implementation
4973         * IDataGridViewEditingControl.cs: DataGridView implementation
4974         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
4975         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
4976         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
4977         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
4978         * DataGridViewColumnSortMode.cs: DataGridView implementation
4979         * DataGridView.cs: DataGridView implementation
4980         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
4981         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
4982         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
4983         * Padding.cs: DataGridView implementation
4984         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
4985         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
4986         * DataGridViewRowEventHandler.cs: DataGridView implementation
4987         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
4988         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
4989         * DataGridViewButtonCell.cs: DataGridView implementation
4990         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
4991         * DataGridViewEditMode.cs: DataGridView implementation
4992         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
4993         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
4994         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
4995         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
4996         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
4997         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
4998         * DataGridViewCellEventHandler.cs: DataGridView implementation
4999         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
5000         * DataGridViewCellStyleConverter.cs: DataGridView implementation
5001         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
5002         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
5003         * DataGridViewColumnEventArgs.cs: DataGridView implementation
5004         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
5005         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
5006         * QuestionEventArgs.cs: DataGridView implementation
5007         * IDataGridViewEditingCell.cs: DataGridView implementation
5008         * DataGridViewTriState.cs: DataGridView implementation
5009         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
5010         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
5011         * DataGridViewColumnCollection.cs: DataGridView implementation
5012         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
5013         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
5014         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
5015         * DataGridViewColumn.cs: DataGridView implementation
5016         * DataGridViewCellBorderStyle.cs: DataGridView implementation
5017         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
5018         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
5019         * DataGridViewRow.cs: DataGridView implementation
5020         * DataGridViewImageCellLayout.cs: DataGridView implementation
5021         * DataGridViewImageCell.cs: DataGridView implementation
5022         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
5023         * DataGridViewCheckBoxCell.cs: DataGridView implementation
5024         * DataGridViewHeaderCell.cs: DataGridView implementation
5025         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
5026         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
5027         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
5028         * DataGridViewTextBoxColumn.cs: DataGridView implementation
5029         * QuestionEventHandler.cs: DataGridView implementation
5030         * DataGridViewCellStyleScopes.cs: DataGridView implementation
5031         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
5032         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
5033         * DataGridViewCell.cs: DataGridView implementation
5034         * DataGridViewCellEventArgs.cs: DataGridView implementation
5035         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
5036         * DataGridViewCellStyle.cs: DataGridView implementation
5037         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
5038         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
5039         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
5040         * TextFormatFlags.cs: DataGridView implementation
5041         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
5042         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
5043         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
5044         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
5045         * DataGridViewButtonColumn.cs: DataGridView implementation
5046         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
5047         * HandledMouseEventArgs.cs: DataGridView implementation
5048         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
5049         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
5050         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
5051         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
5052         * DataGridViewRowCollection.cs: DataGridView implementation
5053         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
5054         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
5055         * DataGridViewHitTestType.cs: DataGridView implementation
5056         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
5057         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
5058         * DataGridViewColumnEventHandler.cs: DataGridView implementation
5059         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
5060         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
5061         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
5062         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
5063         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
5064         * DataGridViewContentAlignment.cs: DataGridView implementation
5065         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
5066         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
5067         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
5068         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
5069         * DataGridViewPaintParts.cs: DataGridView implementation
5070         * DataGridViewCellCollection.cs: DataGridView implementation
5071         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
5072         * DataGridViewImageColumn.cs: DataGridView implementation
5073         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
5074         * DataGridViewElementStates.cs: DataGridView implementation
5075         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
5076         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
5077         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
5078         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
5079         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
5080         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
5081         * DataGridViewRowHeaderCell.cs: DataGridView implementation
5082         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
5083         * DataGridViewTextBoxCell.cs: DataGridView implementation
5084         * DataGridViewBand.cs: DataGridView implementation
5085         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
5086         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
5087         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
5088         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
5089         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
5090         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
5091         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
5092         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
5093         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
5094         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
5095         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
5096
5097 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
5098
5099         * ThemeWin32Classic.cs: 
5100           - Draw the outside focus rectangle around buttons
5101           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
5102             doesn't use end caps for every dash of a line anymore. This
5103             workaround ignores the forecolor.
5104
5105 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
5106
5107         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
5108           endian safe.
5109
5110 2005-11-07  Jackson Harper  <jackson@ximian.com>
5111
5112         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
5113
5114 2005-11-07  Jackson Harper  <jackson@ximian.com>
5115
5116         * ScrollableControl.cs: Calculate the maximum and change vars
5117         (more) correctly so that scrollbars appear as a sensible size.
5118
5119 2005-11-04  Jackson Harper  <jackson@ximian.com>
5120
5121         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
5122         collection.
5123         * TreeView.cs: When the tree is sorted null out the top_node so
5124         that it is recalculated.
5125         - Use dotted lines instead of dashed lines to match MS better.
5126
5127 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
5128
5129         * ListView.cs: 
5130           - Implements key search for items. Useful when browsing files with FileDialog
5131           - When changing view mode or when clear the items reset scrollbar positions
5132
5133 2005-11-04  Jackson Harper  <jackson@ximian.com>
5134
5135         * CurrencyManager.cs: Implement the MetaDataChanged event, the
5136         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
5137         as to what the method may do as there is no real way of creating a
5138         derived CurrencyManager and calling the method. 
5139
5140 2005-11-03  Jackson Harper  <jackson@ximian.com>
5141
5142         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
5143         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
5144         method which seems to just be used internally to refresh the tabs.
5145
5146 2005-11-03  Jackson Harper  <jackson@ximian.com>
5147
5148         * TabControl.cs: Implement the remove method. Fix some broken
5149         comments.
5150
5151 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5152
5153         * DateTimePicker.cs:
5154           - Added missing DateTimePickerAccessibleObject class
5155           - Added missing events
5156           - Added OnFontChanged method
5157         * Form.cs: Added missing attributes
5158         * TreeView.cs: Added missing attributes
5159
5160 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
5161
5162         * GridItemCollection.cs: Fix signatures
5163
5164 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5165
5166         * XplatUI.cs: Updated build rev/date
5167         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
5168           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
5169         * Application.cs: Trigger context-specific ExitThread events
5170
5171 2005-11-03  Jackson Harper  <jackson@ximian.com>
5172
5173         * Menu.cs:
5174         * MainMenu.cs:
5175         * GridTableStylesCollection.cs:
5176         * Timer.cs:
5177         * TabPage.cs:
5178         * HelpProvider.cs:
5179         * StatusBar.cs:
5180         * MonthCalendar.cs: Signature fixes
5181
5182 2005-11-03  Jackson Harper  <jackson@ximian.com>
5183
5184         * TreeNodeCollection.cs: Remove should not be virtual.
5185         * TreeView.cs: Implement the last of the missing methods.
5186
5187 2005-11-03  Jackson Harper  <jackson@ximian.com>
5188
5189         * TreeNodeConverter.cs: Implement to get off my class-status back.
5190
5191 2005-11-03  Jackson Harper  <jackson@ximian.com>
5192
5193         * TreeView.cs: Hookup the bits for drag and drop.
5194         * TreeNode.cs: Don't cache the tree_view or index anymore, now
5195         that nodes can be moved from tree to tree easily this just causes
5196         all sorts of problems.
5197         * TreeNodeCollection: Don't need to give treenodes an index and
5198         treeview anymore when they are added, these are computed on the
5199         fly. Also make sure to remove a node before its added.
5200
5201 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
5202
5203         * TextControl.cs:
5204           - Added CaretSelection enum
5205           - Added comparison methods to Marker struct, makes selection code
5206             more readable
5207           - Added SelectionStart and SelectionEnd as 'moveable' location for
5208             the CaretDirection enum and handler
5209           - Added selection_prev variable to track optimized invalidation for
5210             word and line selection
5211           - Added SelectionVisible property (returns true if there is a valid 
5212             selection)
5213           - Switched CaretHasFocus to only display the caret if there is no
5214             visible selection
5215           - Avoiding StringBuilder.ToString to retrieve a single char, instead
5216             using the direct character index; should be much faster
5217           - Added various conditional debug statements
5218           - Fixed invalidation calculation for selection ranges
5219           - Added ExpandSelection() method to support word and line selection
5220           - Switched SetSelectionToCaret to use new Marker compare overloads
5221           - Added central IsWordSeparator() method to determine word 
5222             separators/whitespace and FindWordSeparator() to streamline common
5223             usage of IsWordSeparator()
5224         * TextBoxBase.cs:
5225           - Removed unneeded grabbed variable, it was just mirroring
5226             Control.Capture
5227           - No longer firing OnTextChanged event when Text setter is called,
5228             since the base will fire the event for us
5229           - Added handling of Ctrl-Up/Down selection
5230           - Added handling of Shift-Cursorkey selection
5231           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
5232             words
5233           - Added handling of Shift and Ctrl-Shift-Home/End selection
5234           - Removed some debug output
5235           - Added handling for single/double/tripple-click to place caret/
5236             select word/select line respectively (Fixes bug #76031)
5237           - Added support for drag expansion of word/line selection
5238         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
5239           current selection
5240
5241 2005-11-02  Jackson Harper  <jackson@ximian.com>
5242
5243         * X11Dnd.cs: If the drag is going to and from a MWF window just
5244         copy the data instead of sending it out through the X Selection
5245         mechanism.
5246
5247 2005-11-02  Jackson Harper  <jackson@ximian.com>
5248
5249         * X11Dnd.cs:
5250         * XplatUIX11.cs: When in a drag we don't want motion notify
5251         messages to get passed on to the other controls. This prevents
5252         mouse move messages from showing up in the drag source.
5253
5254 2005-11-02  Jackson Harper  <jackson@ximian.com>
5255
5256         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
5257         the correct button is release to end a drag.
5258         * XplatUIX11.cs: Make the button state internal so the drag system
5259         can access it.  Dragging needs to know about all button releases,
5260         not just left button.
5261
5262 2005-11-02  Miguel de Icaza  <miguel@novell.com>
5263
5264         * Form.cs (Icon): If the icon is null, reset the icon to the
5265         default value. 
5266
5267         * Cursor.cs: When writing the AND-mask bitmap do not include the
5268         number of colors, but hardcode those to two (black and white),
5269         fixes the loading of color cursors (Paint Dot Net).
5270
5271         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
5272         turn off autoscaling.
5273
5274         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
5275
5276 2005-11-02  Jackson Harper  <jackson@ximian.com>
5277
5278         * X11Dnd.cs: Make sure to send a status message if the pointer
5279         enters a control that can not accept a drop, otherwise the cursor
5280         isn't updated correctly. Also tried to compress the lines of code
5281         a bit.
5282
5283 2005-11-02  Jackson Harper  <jackson@ximian.com>
5284
5285         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
5286         set actions correctly.  This isn't perfect as XDND and win32 have
5287         some differences on how you allow actions. I'll clear this up by
5288         adding a path for drag from MWF to MWF windows.
5289         * XplatUIX11.cs: Hook into the dnd system.
5290
5291 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
5292
5293         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
5294         previously shown but they are no longer need it. Very obvious when 
5295         browsing files with FileDialog.
5296
5297 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
5298
5299         * Control.cs: We always need to call OnPaintBackground. We pretty much
5300           ignore AllPaintingInWmPaint and always do the painting there, whether 
5301           it's set or not, since we always ignore the WM_ERASEBKGND message 
5302           (which we don't generate on X11). This fixes #76616.
5303         * Panel.cs: Removed unneeded background painting. This happens properly
5304           in Control.cs already
5305
5306 2005-10-31  Mike Kestner  <mkestner@novell.com>
5307
5308         * Menu.cs: Add items to collection before setting their index.
5309         * MenuItem.cs : add range checking with ArgumentException like MS.
5310         [Fixes #76510]
5311
5312 2005-10-31  Jackson Harper  <jackson@ximian.com>
5313
5314         * ListBox.cs: Invalidate if the area is visible at all not just
5315         contained in the visible rect. Fixes unselection of semi visible
5316         items.
5317
5318 2005-10-31  Jackson Harper  <jackson@ximian.com>
5319
5320         * Control.cs: Consistently name the dnd methods. Make them
5321         internal so we can override them to match some MS behavoir
5322         internally.
5323         * Win32DnD.cs: Use the new consistent names.
5324
5325 2005-10-31  Jackson Harper  <jackson@ximian.com>
5326
5327         * TreeView.cs: Don't draw the selected node when we lose focus.
5328
5329 2005-10-31  Jackson Harper  <jackson@ximian.com>
5330
5331         * X11Dnd.cs: We still need to reset the state even though a full
5332         reset isn't being done, otherwise status's still get sent all over
5333         the place.
5334
5335 2005-10-31  Jackson Harper  <jackson@ximian.com>
5336
5337         * Control.cs: Make the dnd_aware flag internal so the dnd
5338         subsystem can check it. Catch exceptions thrown in dnd handlers to
5339         match MS behavoir.
5340         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
5341         * X11Dnd.cs: Handle null data in the converters. Set the XDND
5342         version when sending a XdndEnter. Use the control/hwnd dnd_aware
5343         flags to reduce the number of dnd enters/status's sent.
5344
5345 2005-10-31  Jackson Harper  <jackson@ximian.com>
5346
5347         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
5348
5349 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
5350
5351         * PictureBox.cs: Fixes 76512
5352
5353 2005-10-28  Jackson Harper  <jackson@ximian.com>
5354
5355         * X11Dnd.cs: Early implementation to support winforms being a drag
5356         source for data on X11. Also restructured the converters so they
5357         can go both ways now.
5358         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
5359         
5360 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
5361
5362         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
5363           clipboard requests
5364
5365 2005-10-27  Jackson Harper  <jackson@ximian.com>
5366
5367         * TreeNode.cs: Implement serialization so my DnD examples will work.
5368
5369 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
5370
5371         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
5372           TreeView.cs: Don't dispose objects that are not owned.
5373           
5374 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
5375
5376         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
5377           should retrieve the current cursor and report that, but XplatUI
5378           doesn't (yet) have an interface for that (and I'm not sure I even
5379           can, on X11)
5380         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
5381           until any message loop processing is done (and the WM_SETCURSOR
5382           replaces the cursor to the proper one)
5383         * XplatUIX11.cs: 
5384           - Fixed override behaviour, we can't set the cursor globally on X11, 
5385             just for our windows.
5386           - Invalidating the System.Drawing X11 display handle when we are
5387             shutting down
5388         * Control.cs: Fix to make csc happy
5389
5390 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
5391
5392         * TextBoxBase.cs: 
5393           - get_Text: Add last line (without trailing newline) to returned
5394             value (Fixes 76212)
5395           - get_TextLength: Count last line in returned length
5396           - ToString: Call Text property instead of duplicating code
5397
5398 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
5399
5400         * ImageList.cs: Dispose ImageAttributes objects.
5401
5402 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5403
5404         * ImageList.cs: Use attribute constructors with less arguments where
5405           possible.
5406
5407 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
5408
5409         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
5410           Use typeof instead of strings when assembly is referenced. Added
5411           some more comments.
5412
5413 2005-10-21  Jackson Harper  <jackson@ximian.com>
5414
5415         * ListView.cs: Raise a double click event. Also tried to somewhat
5416         fix when the selectedindexchanged event is raised. Its still
5417         broken though.
5418
5419 2005-10-21  Jackson Harper  <jackson@ximian.com>
5420
5421         * TreeView.cs: New method to invalidate the plus minus area of a
5422         node without invalidating the whole node (maybe this can be used
5423         in some more places).
5424         * TreeNodeCollection.cs: When adding to an empty node we need to
5425         invalidate its plus minus area so the little block shows up.
5426         
5427 2005-10-21  Jackson Harper  <jackson@ximian.com>
5428
5429         * TreeView.cs: Make sure that when we invalidate a node the bounds
5430         are big enough to cover the selected box and the focus
5431         rectangle. Use a different colour for the lines connecting nodes
5432         so they show up with all themes.
5433
5434 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5435
5436         * NativeWindow.cs: Don't call anything that could call into the driver,
5437           we might be on a different thread.
5438
5439 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
5440
5441         * Control.cs(Dispose): Since Dispose might run on a different thread,
5442           make sure that we call methods that could call into the driver via
5443           invoke, to avoid thread issues
5444
5445 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
5446
5447         * XplatUI.cs: Removed finalizer
5448         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
5449           not allowing to be called on the finalizer thread.
5450
5451 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
5452
5453         * ImageList.cs:
5454           - Reverted r51889 and r51891.
5455           - Added ImageListItem class that stores unmodified image items and image
5456             properties required to create list images until handle is created.
5457           - Added AddItem and moved image creation logic to AddItemInternal.
5458           - Added CreateHandle method that creates images based on unmodified items.
5459           - Added DestroyHandle that changes state to store unmodified items.
5460           - Add and AddStrip methods no more create handle.
5461           - ReduceColorDepth has no return value.
5462           - Dispose destroys handle.
5463           - Modified other methods to reflect the above changes.
5464           - Implemented key support.
5465           - Added profile 2.0 members and attributes.
5466           - Added private Reset and ShouldSerialize methods that provide the same
5467             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
5468             them as they are private.
5469           - Added some more comments about implementation details.
5470
5471 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5472
5473         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
5474
5475 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5476
5477         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
5478
5479 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
5480
5481         * DataGridDrawingLogic.cs: Fixes column hit calcultation
5482         * DataGridColumnStyle.cs: Remove debug message
5483
5484 2005-10-20  Jackson Harper  <jackson@ximian.com>
5485
5486         * TreeView.cs: We can always get input keys regardless of whether
5487         or not editing is enabled. They are used for navigation.
5488
5489 2005-10-20  Jackson Harper  <jackson@ximian.com>
5490
5491         * TreeNode.cs: Use the viewport rect for determining if a node
5492         needs to be moved for visibility. Don't use Begin/End edit. This
5493         calls a full refresh when its done.
5494         * TreeView.cs: New SetBottom works correctly.  Make the viewport
5495         rect property internal so the treenodes can see it. When clicking
5496         on a node we need to ensure that its visible because it might just
5497         be partly visible when clicked.
5498
5499 2005-10-20  Jackson Harper  <jackson@ximian.com>
5500
5501         * TreeNodeCollection.cs: Remove debug code.
5502
5503 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5504
5505         * Datagrid.cs: Implements column sorting in Datagrid
5506         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
5507
5508 2005-10-20  Jackson Harper  <jackson@ximian.com>
5509
5510         * TreeNodeCollection.cs: Remove items properly. Update the correct
5511         area after removing them.
5512
5513 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
5514
5515         * Datagrid.cs: Should not call base.OnPaintBackground
5516
5517 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5518
5519         * XplatUIX11.cs (GetMessage):
5520           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
5521             window instead of client window
5522           - Now properly calculates NC_xBUTTONUP message coordinates
5523           - ScreenToMenu now properly calculates it's coordinates of whole 
5524             window, since menus are in the whole window, not in the client
5525             window
5526           - Added WholeToScreen coordinate translation method
5527
5528 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
5529
5530         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
5531           want to return a message, loop back to the beginning of the function
5532           and grab the next real message to process instead.
5533
5534 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
5535
5536         * Splitter.cs: Properly set limits if no filler control is used
5537
5538 2005-10-19  Jackson Harper  <jackson@ximian.com>
5539
5540         * ColorDialog.cs: Don't show the help button if it is not enabled
5541         instead of disabling it (this is what MS does). Don't create the
5542         panel until the dialog is run, otherwise the vars (such as
5543         ShowHelp) are not set yet.
5544
5545 2005-10-19  Jackson Harper  <jackson@ximian.com>
5546
5547         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
5548         are reduced when adding nodes.
5549         * TreeNode.cs:
5550         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
5551         tree.
5552         
5553 2005-10-19  Jackson Harper  <jackson@ximian.com>
5554
5555         * FolderBrowserDialog.cs: End editing our treeview so the window
5556         actually gets refreshed.
5557
5558 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5559
5560         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
5561           Obsoleted handling of WM_ERASEBKGND, now always draws our background
5562           inside of WM_PAINT
5563
5564 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5565
5566         * MenuAPI.cs: Returns after Hidding window
5567         * XplatUIX11.cs: Added TODO found while debugging menu issues
5568
5569 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
5570
5571         * XplatUIX11.cs: Do not re-map the whole window when it's size
5572           becomes non-zero unless it's supposed to be actually visible
5573
5574 2005-10-18  Jackson Harper  <jackson@ximian.com>
5575
5576         * TreeView.cs: We don't need to keep a count anymore.
5577         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
5578         use the Grow method.
5579
5580 2005-10-18  Jackson Harper  <jackson@ximian.com>
5581
5582         * TreeNodeCollection.cs: Insert is not supported on arrays, so
5583         implement it manually here.
5584
5585 2005-10-18  Jackson Harper  <jackson@ximian.com>
5586
5587         * ImageList.cs: Dont kill the list when the colour depth is
5588         changed, just change the colour depth of all the images.
5589         - Same goes for setting the image size. Just resize them all
5590         instead of killing the list softly.
5591
5592 2005-10-18  Jackson Harper  <jackson@ximian.com>
5593
5594         * Control.cs: Don't invalidate empty rectangles.
5595
5596 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5597
5598         * ListViewItem.cs:
5599           - Adds checked item to the Checked/Item lists (where empty before)
5600           - Do not add items to the Selected lists if they are already present
5601         * ListView.cs:
5602           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
5603           - When deleting items make sure that we delete them for the Selected
5604           and Checked list also.
5605
5606 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
5607
5608         * Label.cs: Dispose objects no longer used
5609         * ThemeWin32Classic.cs: Dispose objects no longer used
5610
5611 2005-10-18  Jackson Harper  <jackson@ximian.com>
5612
5613         * TabControl.cs: Don't refresh the whole control when the tabs are
5614         scrolled, we just need to refresh the tab area.
5615
5616 2005-10-17  Jackson Harper  <jackson@ximian.com>
5617
5618         * XplatUIX11.cs: Compress code a little bit. Only calculate the
5619         after handle when we need it.
5620
5621 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5622
5623         * Control.cs: When the parent size changes, recalculate anchor 
5624           positions. Partial fix for #76462
5625
5626 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
5627
5628         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
5629           drawn. Fixes #76462
5630
5631 2005-10-17  Jackson Harper  <jackson@ximian.com>
5632
5633         * MonthCalendar.cs: Don't create the numeric up down until our
5634         handle is created. Otherwise our handle is created in the
5635         constructor and we don't know if we are a WS_CHILD or WS_POPUP
5636         yet.
5637
5638 2005-10-17  Jackson Harper  <jackson@ximian.com>
5639
5640         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
5641         correctly.
5642
5643 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
5644         * TreeNode.cs : small logical fix (was using local var instead of field)
5645         
5646 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5647
5648         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
5649
5650 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
5651
5652         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
5653
5654 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
5655
5656         * Control.cs: 
5657           - Re-implemented anchoring code. My first version was really broken.
5658             This fixes bug #76033. Unlike the previous implementation we will
5659             no longer have round errors since all numbers are calculated from
5660             scratch every time. Removed various anchor-related obsolete vars.
5661           - InitLayout no longer causes layout event firing and layout to be 
5662             performed
5663
5664 2005-10-16  Jackson Harper  <jackson@ximian.com>
5665
5666         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
5667         which was broken).
5668
5669 2005-10-16  Jackson Harper  <jackson@ximian.com>
5670
5671         * TabControl.cs: Remove debug code.
5672
5673 2005-10-16  Jackson Harper  <jackson@ximian.com>
5674
5675         * XEventQueue.cs: Increase the default queue size (very simple
5676         apps needed to grow the queue).
5677         * Hwnd.cs: No finalizer so we don't need to suppress
5678         finalization. Compute the invalid area manually so a new rectangle
5679         does not newto be created.
5680         * ScrollableControl.cs: Don't set any params (otherwise visibility
5681         isn't set correctly).
5682         * MdiChildContext.cs: New constructor takes the mdi parent so it
5683         doesn't have to be computed and avoids a crash on windows. Draw
5684         the window icon properly, and allow the text to be seen.
5685         * Form.cs: Use new MdiChildContext constructor. Make sure the
5686         child context isn't null in wndproc.
5687         * TabControl.cs: Don't set focus, this is muddling keyboard
5688         behavoir. Expand the tab rows when a window size increase will
5689         allow extra tabs to be seen. Don't allow tabs smaller than the
5690         width of a window to be scrolled out of view.
5691         * TreeNode.cs:
5692         * TreeView.cs: Use measure string to calculate a nodes width, the
5693         width is cached and only updated when the text or the font is
5694         changed. Don't check for expand/collapse clicks on the first level
5695         nodes if root lines are disabled.
5696         
5697 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
5698
5699         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
5700
5701 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5702
5703         * DataGridBoolColumn.cs: fixes warning
5704
5705 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
5706
5707         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
5708         to match more to match more precisely the MS Net behavior
5709
5710 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5711
5712         * Hwnd.cs: Added field to track if window is mapped
5713         * XplatUIX11.cs: 
5714           - Unmap windows if they become 0-size, re-map when 
5715             they are >0 again; fixes #76035
5716           - Re-set our error handler after initializing X11Desktop
5717             to override any error handlers Gtk or whatever was called
5718             may have set.
5719
5720 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
5721
5722         * CheckedListBox.cs: Removed unused vars
5723         * ListView.cs: Fixed signatures
5724         * RichTextBox.cs: Removed unused vars
5725         * TextBoxBase.cs: Removed unused vars
5726         * XplatUIWin32.cs: Removed unused vars
5727         * XplatUIX11.cs: Removed unused vars
5728         * XplatUI.cs: Updated version and date to latest published
5729
5730 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5731
5732         * Cursor.cs: Added private .ctor to work around a bug in
5733           resourceset (Thanks to Geoff Norton for the help on this)
5734         * SplitterEventArgs.cs: Made fields accessible so we don't
5735           waste boatloads of objects and can reuse the same one
5736           in Splitter
5737         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
5738           any captions and borders when generating screen coordinates
5739         * Splitter.cs: Reimplemented control, now fully complete, uses
5740           rubberband drawing, supports and obeys all properties, has
5741           proper cursors
5742
5743 2005-10-13  Miguel de Icaza  <miguel@novell.com>
5744
5745         * Form.cs (Form): Setup default values for autoscale and
5746         autoscale_base_size;  Make these instance variables, not static
5747         variables. 
5748
5749         (OnLoad): on the first load, adjust the size of the form.
5750
5751 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
5752
5753         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
5754           width argument to DrawReversibleRectangle()
5755         * XplatUIWin32.cs, XplatUIX11.cs: 
5756           - Implemented width for DrawReversibleRectangle()
5757           - Added logic to DrawReversibleRectangle that recognizes a zero
5758             width or height and only draws a line in that situation
5759         
5760 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
5761
5762         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
5763         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
5764         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
5765           method (it uses our FosterParent window to get a graphics context)
5766
5767 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
5768
5769         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
5770           and SetWindowBackground methods
5771         * Control.cs:
5772           - Setting proper ControlStyles
5773           - We no longer call XplatUI.SetWindowBackground and XplatUI.
5774             EraseWindowBackground, instead we draw the window background
5775             ourselves in PaintControlBackground. This behaviour is
5776             required to match MS, where, when OnPaintBackground is not
5777             called, the background is not drawn.
5778           - Removed unneeded Refresh() in set_Text
5779         * Hwnd.cs: Dropped the ErasePending support. No longer needed
5780         * XplatUIX11.cs:
5781           - Created DeriveStyles method to translate from CreateParams to
5782             FormBorderStyle and TitleStyle, also handles BorderStyle (which
5783             matches FormBorderStyle enum values)
5784           - Consolidated SetHwndStyles and CalculateWindowRect border/title
5785             style calculations into single DeriveStyles method
5786           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
5787             from redrawing the whole window on any resize or expose.
5788           - Fixed CreateWindow usage of SetWindowValuemask. Before not
5789             all styles were applied to our whole/client window appropriately
5790           - Removed EraseWindowBackground() and SetWindowBackground() methods
5791           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
5792             no longer clear/redraw the background through X
5793           - Removed handling of erase_pending bit, we have no use for it (or
5794             so it seems)
5795         * XplatUIOSX.cs:
5796           - Removed generation and handling of WM_ERASEBKGND message
5797           - Removed EraseWindowBackground() and SetWindowBackground() methods
5798           - Removed handling of hwnd.ErasePending flag
5799         * XplatUIWin32.cs:
5800           - Removed EraseWindowBackground() and SetWindowBackground() methods
5801           - We no longer call EraseWindowBackground on PaintEventStart, we 
5802             ignore the fErase flag, erasing is handled in Control in the
5803             background handler
5804         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
5805           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
5806           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
5807           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
5808           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
5809           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
5810           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
5811
5812 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
5813
5814         * PropertyGrids.cs: Get sub properties
5815         * PropertyGridView.cs: Fix drawing code
5816
5817 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5818
5819         * ListBox.cs: Fixes 76383
5820
5821 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5822
5823         * DataGridTextBoxColumn.cs: Sets location and size before attachment
5824         * ThemeWin32Classic.cs: Fixes border drawing and calculations
5825         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
5826
5827
5828 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5829
5830         * ComboBox.cs: Fixes border drawing
5831
5832 2005-10-10  Miguel de Icaza  <miguel@novell.com>
5833
5834         * MimeIcon.cs: Ignore errors if the file can not be read.
5835
5836 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
5837
5838         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
5839          - Fixed border calculations
5840          - Fixed horizontal scrolling in single column listboxes
5841          - Fixed drawing issues
5842
5843 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
5844
5845         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
5846           FormBorderStyle enum
5847         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
5848           code to determine FormBorderStyles from CreateParams
5849         * Form.cs:
5850           - Fixed bug where we'd set the wrong window styles if we were
5851             not creating an MDI window
5852           - Added call to XplatUI.SetBorderStyle when form borders are set
5853         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
5854         * Hwnd.cs:
5855           - Removed obsolete edge style
5856           - Switched from BorderStyle to FormBorderStyle
5857         
5858 2005-10-10  Jackson Harper  <jackson@ximian.com>
5859
5860         * Form.cs: Use the property to get the window handle instead of
5861         accessing it directly. Prevents a null reference exception.
5862
5863 2005-10-10  Jackson Harper  <jackson@ximian.com>
5864
5865         * TreeView.cs: Don't adjust the rect given to DrawString now that
5866         our libgdiplus draws correctly.
5867
5868 2005-10-08  Jackson Harper  <jackson@ximian.com>
5869
5870         * TreeView.cs: Don't try to find the clicked on node if there are
5871         no nodes in the tree.
5872
5873 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5874
5875         * RichTextBox.cs:
5876
5877           restore
5878
5879 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
5880
5881         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
5882           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
5883           ErrorProvider.cs:
5884           Use ResPool for brushes and dispose System.Drawing objects that
5885           are not used anymore.
5886
5887 2005-10-07  Jackson Harper  <jackson@ximian.com>
5888
5889         * MdiChildContext.cs: Use the new borders instead of drawing them
5890         ourselves.
5891
5892 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5893
5894         * Calling UpdateBounds after changing the window's BorderStyle 
5895         since the style can change the ClientSize
5896
5897 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5898
5899         * Control.cs: Made PaintControlBackground virtual
5900         * Panel.cs: Overriding PaintControlBackground instead of using paint
5901           event; paint event method was interfering with 'real' users of the
5902           event.
5903
5904 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
5905
5906         * ThemeWin32Classic.cs: remove border drawing since it is handled
5907         by the base control class now and was causing double border drawing.
5908
5909 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5910
5911         * Panel.cs: Redraw our background on paint. Not a pretty solution,
5912           but it does seem to match MS behaviour. This fixes bug #75324
5913
5914 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5915
5916         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
5917           somewhat hackish looking
5918
5919 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5920
5921         * TextBoxBase.cs:
5922           - We now accept Enter even if AcceptEnter is false, if the containing
5923             form does not have an AcceptButton configured (fixes bug #76355)
5924           - Calculations are now fixed to no longer use Width/Height, but
5925             ClientSize.Width/Height, since we now support borders (this was
5926             a result of fixing borders and therefore bug #76166)
5927           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
5928             true (fixes bug #76354)
5929         
5930 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5931
5932         * Control.cs: 
5933           - Defaulting BorderStyle and setting it in XplatUI when our window 
5934             is created
5935           - Added enum check to InternalBorderStyle setter
5936         * XplatUIX11.cs: 
5937           - Added drawing of window borders
5938           - Now properly calculates WM decorations offset for toplevel 
5939             windows (fixes bug #74763)
5940         * XplatUIWin32.cs: 
5941           - Implemented BorderStyles for windows (we're letting win32 draw 
5942             the border for us)
5943           - Fixed the signature for SetWindowLong
5944         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
5945           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
5946           setting borders
5947         * UpDownBase.cs: Remove drawing of borders, this is handled by
5948           the driver, outside the client area
5949         * ListView.cs: Removed bogus border calculations. The control should
5950           be oblivious to borders, since those are not part of the client
5951           area. 
5952         * X11DesktopColors.cs: Commented out (currently) unneeded variables
5953         * ThemeWin32Classic.cs: Removed border calculations from ListView 
5954           drawing code
5955
5956 2005-10-06  Jackson Harper  <jackson@ximian.com>
5957
5958         * MdiChildContext.cs: Clear out the old virtual position remove
5959         all the unneeded calls to CreateGraphics.
5960
5961 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5962
5963         * TextControl.cs: Use proper color for highlighted text; fixes #76350
5964
5965 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
5966
5967         * Form.cs: 
5968           - Added loading and setting of our new default icon
5969           - Only set icon if window is already created
5970
5971 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
5972
5973         * Label.cs:
5974           - Do not explicitly set the foreground and background colors, to
5975             allow inheriting from parents (fixes #76302)
5976           - Use Control's InternalBorderStyle property to deal with borders
5977
5978 2005-10-06  Jackson Harper  <jackson@ximian.com>
5979
5980         * MdiChildContext.cs: Use the new xplatui function to draw a
5981         reversible rect.
5982
5983 2005-10-06  Jackson Harper  <jackson@ximian.com>
5984
5985         * Form.cs: Add the parent before creating the child context cause
5986         we need the parent when setting up the child.
5987
5988 2005-10-06  Jackson Harper  <jackson@ximian.com>
5989
5990         * FolderBrowserDialog.cs: redo the tree population code so a
5991         second thread isn't used. Should be a lot faster and more stable
5992         now.
5993
5994 2005-10-05  Jackson Harper  <jackson@ximian.com>
5995
5996         * TreeView.cs: There are no expand/collapse boxes if the node has
5997         no children.
5998
5999 2005-10-05  Jackson Harper  <jackson@ximian.com>
6000
6001         * X11DesktopColors.cs: Get menu colours for the gtk theme.
6002
6003 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
6004
6005         * FileDialog.cs: Fix InitialDirectory
6006
6007 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6008
6009         * ComboBox.cs:
6010                 - Fixes changing between styles
6011                 - Fixes simple mode
6012                 - Fixes last item crashing when navigating with keyboard
6013
6014 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
6015
6016         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
6017
6018 2005-10-05  Jackson Harper  <jackson@ximian.com>
6019
6020         * TreeView.cs: If updating the root node do a full refresh.
6021         * TreeNode.cs: The root node should be expanded by default. Also
6022         added a utility prop to tell if we are the root node.
6023         * TreeNodeCollection.cs: Only refresh if the node we are being
6024         added to is expanded. Also added a comment on a potential
6025         optimization.
6026         
6027 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
6028
6029         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
6030           in dispose method. Fixes #76330
6031
6032 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
6033
6034         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
6035
6036                 - Implements vertical and horizontal scrolling using XplatUI
6037                 - Fixes keyboard navagation
6038                 - Fixes EnsureVisible
6039                 - Drawing fixes
6040                 - Handles and draws focus properly
6041
6042
6043 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
6044
6045         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
6046           Create handle. NET_2_0: Destroy handle when value is null.
6047
6048 2005-10-03  Jackson Harper  <jackson@ximian.com>
6049
6050         * ScrollBar.cs: My last scrollbar patch was broken. This is a
6051         revert and a new patch to prevent the thumb from refreshing so
6052         much.
6053
6054 2005-10-02  Jackson Harper  <jackson@ximian.com>
6055
6056         * ScrollBar.cs: Don't update position if it hasn't actually
6057         changed. This occurs when you hold down the increment/decrement
6058         buttons and the thumb gets to the max/min.
6059
6060 2005-10-01  Jackson Harper  <jackson@ximian.com>
6061
6062         * Form.cs:
6063         * MdiChildContext.cs:
6064         * MdiClient.cs: Implement ActiveMdiChild in Form.
6065
6066 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
6067
6068         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
6069
6070 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
6071
6072         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
6073           be found
6074
6075 2005-09-30  Jackson Harper  <jackson@ximian.com>
6076
6077         * ListBox.cs: Don't do a full refresh unless some data has
6078         actually changed.
6079
6080 2005-09-30  Jackson Harper  <jackson@ximian.com>
6081
6082         * TreeView.cs: Make sure that the checkboxes size is factored in
6083         even when not visible.
6084
6085 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6086
6087         * FileDialog.cs: Fix Jordi's build break
6088
6089 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6090
6091         * FileDialog.cs: 
6092                 - Use standard the Windows colours for the combobox as espected
6093                 - Dispose objects that use resouces when no longer need them
6094
6095 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
6096
6097         * X11DesktopColors.cs: Initial incomplete implementation
6098         * XplatUIX11.cs: Added call to initialize X11DesktopColors
6099
6100 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
6101
6102         * Theme.cs: 
6103           - Switched Theme color names to match the names defined in 
6104             System.Drawing.KnownColors. Life's hard enough, no need to make 
6105             it harder.
6106           - Added setters to all theme color properties so themes can set
6107             their color schemes. The setters also propagate the color changes
6108             to System.Drawing.KnownColors via reflection
6109         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
6110           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
6111           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
6112           use the new, more logical theme color names
6113         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
6114           post-NT colors
6115         * ThemeWin32Classic.cs:
6116           - Removed code to set the old classic Windows colors. Instead it
6117             now relies on the colors returned by System.Drawing.KnownColors
6118             which will be either modern static colors (Unix) or colors
6119             read from the user's configuration (Win32)
6120           - Updated to use the new, more logical theme color names
6121           - Switched DataGrid drawing code to use only Theme colors instead of
6122             a mix of System.Drawing.KnownColors and Theme colors
6123           - DrawFrameControl(): Removed code that fills the button area, the
6124             fill would overwrite any previous fill done by a control. This
6125             fixes bug #75338 
6126           - Added DrawReversibleRectangle() stub
6127         * ScrollableControl.cs: Set visible state to false when scrollbars
6128           are removed (pdn fix)
6129         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
6130           DrawReversibleRectangle() method to allow drawing primitive 
6131           'rubber bands'
6132         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
6133
6134 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6135
6136         * ImageList.cs: Add(Icon): Create handle.
6137
6138 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
6139
6140         * ListView.cs:
6141         * ThemeWin32Classic.cs:
6142                 - Fixes detail mode
6143                 - Sets clippings
6144                 - Issues with drawing
6145
6146 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6147
6148         * ImageList.cs: Moved RecreateHandle back to ImageList as event
6149           source has to be the ImageList.
6150
6151 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6152
6153         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
6154
6155 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6156
6157         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
6158
6159 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6160
6161         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
6162
6163 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
6164         * GridItem.cs: Fixed TODOs
6165         * GridItemCollection.cs: Added ICollection interface
6166
6167 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
6168
6169         * ImageList.cs: Resize icons when needed.
6170
6171 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
6172
6173         * ListViewItem.cs
6174                 - Fixes GetBounds and returns on screen rects
6175         * ListView.cs:
6176                 - Fixes vertical and horzintal scrolling of items
6177         * ThemeWin32Classic.cs:
6178                 - Fixes drawing
6179                 
6180 2005-09-29  Raja R Harinath  <harinath@gmail.com>
6181
6182         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
6183
6184 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
6185
6186         * ImageList.cs: Added comments about handle creation. Moved Handle,
6187           HandleCreated and OnRecreateHandle implementations to ImageCollection.
6188           Handle is created in Add methods.
6189
6190 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6191          
6192         * DataGridDrawingLogic.cs: 
6193                 - Takes rows into account on Colum calculations
6194                 - Returns the column when clickig
6195         * DataGrid.cs:
6196                 - Fixes default HitTestInfo values
6197                 - Fixes HitTestInfo.ToString
6198                 - Fixes ResetBackColor          
6199         
6200 2005-09-28  Jackson Harper  <jackson@ximian.com>
6201
6202         * MdiChildContext.cs: Obey rules for fixed sized windows (no
6203         sizing or cursor changes). Also added some temp code to draw the
6204         titlebars text (Makes dev a little easier).
6205
6206 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6207
6208         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
6209
6210 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
6211          
6212         * ListBox.cs: Fixes bug 76253
6213
6214 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
6215
6216         * ImageList.cs: Added comments about the current implementation. Added
6217           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
6218           Format32bppArgb to preserve transparency and can use Graphics.FromImage
6219           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
6220           with Bitmap.LockBits for better performance. Revised the whole file to
6221           match MS.NET behaviour and provide better performance. Non-public
6222           interface members are calling public members even when they throw
6223           NotSupportedException for better maintainability. Moved ColorDepth,
6224           ImageSize, ImageStream and TransparentColor implementations to
6225           ImageCollection for better performance as these properties are not used
6226           by ImageList.
6227         * ImageListStreamer.cs: Added a new internal constructor that takes an
6228           ImageList.ImageCollection and serializes Images based on
6229           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
6230           match ImageList property name.
6231
6232 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
6233
6234         * ListBox.cs: Fixes IndexFromPoint for last item
6235
6236 2005-09-27  Jackson Harper  <jackson@ximian.com>
6237
6238         * Form.cs: Set the position of new mdi children correctly.
6239
6240 2005-09-27  Jackson Harper  <jackson@ximian.com>
6241
6242         * MdiClient.cs: New mdi children need to be added to the back of
6243         the controls collection so the zorder is set correctly. Also add a
6244         count of all the child windows that have been created.
6245
6246 2005-09-27  Jackson Harper  <jackson@ximian.com>
6247
6248         * Form.cs (CreateParams): Setup MDI forms correctly.
6249
6250 2005-09-27  Jackson Harper  <jackson@ximian.com>
6251
6252         * MdiChildContext.cs:
6253         * MonthCalendar.cs:
6254         * UpDownBase.cs:
6255         * ListBox.cs:
6256         * ListView.cs:
6257         * TextBoxBase.cs:
6258         * TreeView.cs:
6259         * ScrollableControl.cs:
6260         * ComboBox.cs: Add implicit controls using the new implict control
6261         functionality in ControlCollection. Also try to block multiple
6262         control add in a suspend/resume layout to save some cycles.
6263         
6264 2005-09-27  Jackson Harper  <jackson@ximian.com>
6265
6266         * Control.cs: Add functionality to the controls collection to add
6267         'implicit controls' these are controls that are created by the
6268         containing control but should not be exposed to the user. Such as
6269         scrollbars in the treeview.
6270         * Form.cs: The list var of the ControlsCollection is no longer
6271         available because of the potential of implicit controls getting
6272         ignored by someone accessing the list directly.
6273
6274 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
6275
6276         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
6277           loose it's parent. (Fixed bug introduced in r49103 when we added
6278           setting the child parent to null on Remove)
6279
6280 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
6281
6282         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
6283         * Splitter.cs: Added missing attributes for BorderStyle property.
6284         * TextBoxBase.cs: Marked Calculate* methods internal.
6285         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
6286         MS.NET.
6287
6288 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
6289          
6290         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
6291
6292 2005-09-25  Jackson Harper  <jackson@ximian.com>
6293
6294         * TreeView.cs: Update the node bounds correctly regardless of
6295         whether the node is visible.
6296
6297 2005-09-25  Jackson Harper  <jackson@ximian.com>
6298
6299         * ImageList.cs: Don't dispose the image after it is added to the
6300         image list. Only reformat images that need to be resized.
6301
6302 2005-09-25  Jackson Harper  <jackson@ximian.com>
6303
6304         * ImageList.cs: Don't set the format when changing the image.
6305
6306 2005-09-25  Jackson Harper  <jackson@ximian.com>
6307
6308         * TreeView.cs: We can't just assume the node has a font. Use the
6309         treeviews font if no node font is available.
6310
6311 2005-09-25  Jackson Harper  <jackson@ximian.com>
6312
6313         * TreeView.cs: Allow the scrollbars to be reset with negative
6314         values.
6315         - Don't add scrollbars to negative sized windows.
6316
6317 2005-09-23  Jackson Harper  <jackson@ximian.com>
6318
6319         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
6320         old Mono.Posix. Also remove some stray code that shouldn't have
6321         been committed.
6322
6323 2005-09-23  Jackson Harper  <jackson@ximian.com>
6324
6325         * TreeView.cs: Attempt at proper sizing of the horizontal
6326         scrollbar. Also don't resize the scrollbars unless they are
6327         visible.
6328
6329 2005-09-23  Jackson Harper  <jackson@ximian.com>
6330
6331         * TreeView.cs: We don't need to expand the invalid area when the
6332         selection changes, as this is all drawn in the node's bounding
6333         box. The area needs to be expanded (previous typo was contracting
6334         it) when the focus rect moves.
6335
6336 2005-09-23  Jackson Harper  <jackson@ximian.com>
6337
6338         * TreeView.cs: Display the selection box under the correct
6339         circumstances. We were rendering white text with no selection box
6340         before.
6341
6342 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
6343
6344         * TextControl.cs(Split): Now updates selection start/end if it points 
6345           into a line that's being split. Fixes a FIXME and bug #75258
6346
6347 2005-09-23  Jackson Harper  <jackson@ximian.com>
6348
6349         * Binding.cs:
6350         * ListControl.cs: Don't use the path when retrieving binding
6351         managers from the binding context. My bat sense tells me that the
6352         path is only used on insertion.
6353
6354 2005-09-22  Jackson Harper  <jackson@ximian.com>
6355
6356         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
6357
6358 2005-09-22  Jackson Harper  <jackson@ximian.com>
6359
6360         * Splitter.cs: There are special cursors used for splitting.
6361         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
6362
6363 2005-09-22  Jackson Harper  <jackson@ximian.com>
6364
6365         * Splitter.cs: Change the cursor appropriately when the splitter
6366         is moused over, so the user actually knows there is a splitter
6367         there.
6368
6369 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6370
6371        * Label.cs : Fix ToString method to give same output as MS.NET
6372
6373 2005-09-22  Jackson Harper  <jackson@ximian.com>
6374
6375         * TreeView.cs: Create the scrollbars when the handle is created
6376         and add them right away, just make them invisble. Also account for
6377         the window being shrunk vertically to the point that the vert
6378         scrollbar needs to be added.
6379         - Remove some 0.5 adjustments to get around anti aliasing issues.
6380         
6381 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
6382          
6383         * MainMenu.cs: Fixes default value
6384         * MenuItem.cs: Fixes default value
6385
6386 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
6387
6388         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
6389
6390 2005-09-21  Jackson Harper  <jackson@ximian.com>
6391
6392         * Control.cs: Don't try to set the border style on the window if
6393         it hasn't been created. When the window is created the border
6394         style will be used.
6395
6396 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6397
6398         * Control.cs (Update): Don't call XplatUI if we don't have a
6399           window handle yet
6400
6401 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6402
6403         * ContainerControl.cs: Instead of throwing an exception, print
6404           a one-time warning about Validate not being implemented
6405         * XplatUIWin32.cs: Removed debug output
6406
6407 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
6408
6409         * Control.cs: Only set XplatUI background if we expect the windowing
6410           system to handle the background. This stops controls that draw their
6411           own background from flickering
6412
6413         * XplatUIX11.cs: Support custom visuals and colormaps for window 
6414           creation. This allows, amongst other things, using MWF X11 windows 
6415           with OpenGL.
6416
6417 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
6418
6419         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
6420           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
6421           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
6422           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
6423           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
6424           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
6425           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
6426           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
6427           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
6428           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
6429           GridColumnStylesCollection.cs, 
6430           IDataGridColumnStyleEditingNotificationService.cs,
6431           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
6432           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
6433           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
6434           TreeNodeCollection.cs, AmbientProperties.cs, 
6435           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
6436           DataObject.cs, ErrorProvider.cs, Splitter.cs,
6437           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
6438           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
6439           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
6440           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
6441           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
6442           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
6443           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
6444           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
6445           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
6446           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
6447           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
6448           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
6449           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
6450           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
6451           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
6452           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
6453           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
6454           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
6455           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
6456           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
6457           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
6458           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
6459           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
6460           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
6461           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
6462           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
6463           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
6464           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
6465           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
6466           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
6467           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
6468           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
6469           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
6470           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
6471           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
6472
6473 2005-09-21  Jackson Harper  <jackson@ximian.com>
6474
6475         * TreeNode.cs: Call Before/After Expand not Collapse when
6476         expanding.
6477
6478 2005-09-20  Jackson Harper  <jackson@ximian.com>
6479         
6480         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
6481
6482 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6483          
6484         * ListViewItem.cs:
6485                 - Fixes bug 76120
6486                 - Fixes proper storing of subitems
6487                 - Fixes not updated items
6488
6489 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
6490
6491         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
6492           things if our window handle isn't created yet. Also disabled 
6493           debug for TextBoxBase
6494
6495 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
6496
6497         * MenuAPI.cs: Remove filtering of events to allow menu usage
6498
6499 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6500
6501         * Cursor.cs: Allow null to be passed to Cursor.Current.
6502
6503 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
6504
6505         * ThemeWin32Classic.cs:
6506           - Change some private methods/fields to protected virtual so that 
6507             they can be accessed and overriden in derived classes
6508           - First refactoring of some methods. Derived themes now don't 
6509             need to duplicate the complete code from ThemeWin32Classic
6510         * ThemeNice.cs:
6511           - Added nice StatusBar
6512           - Derive from ThemeWin32Classic and not Theme
6513           - Removed duplicate ThemeWin32Classic code
6514
6515 2005-09-20  Miguel de Icaza  <miguel@novell.com>
6516
6517         * Control.cs (ControlCollection.Add): If the value null is passed
6518         the control is ignored. 
6519
6520         Optimize this loop.
6521
6522 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
6523
6524         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
6525           PostQuitMessage state.
6526         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
6527
6528 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
6529
6530         * Application.cs: Our constructor will never get called, move 
6531           initialization to fields; fixes bug #75933
6532
6533 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
6534
6535         * FileDialog.cs :
6536                 - Allow files to be selected properly using file name
6537                 combo box.
6538                 - Add ability to change diretory (absolute / relative)
6539                 using file name combo box.
6540
6541 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
6542          
6543         * ListBox.cs: 
6544                 - Fixes Multicolumn listboxes item wrong calculations
6545                 - Allows to click when only one item is in the listbox
6546                 - Fixes crash when no items using keyboard navigation
6547
6548 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
6549
6550         * ComboBox.cs: Reverted almost everything from the latest patch which
6551           broke ComboBox
6552
6553 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
6554         
6555         * ToolTip.cs:
6556                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
6557         * ComboBox.cs:
6558                 - When DropDownStyle is Simple, it does not show scrollbar 
6559                 to the last item of the list.
6560                 - When DropDownStyle is Simple, it crashed when the list was 
6561                 scrolled down with the down cursor key.
6562                 - Fixed a bug that when DropDownStyle is DropDownList, the 
6563                 selected item was not shown.
6564                 - The position of the selected item was not preserved when 
6565                 the next dropdown happened.
6566         * ThemeWin32Classic.cs:
6567                 - Items were wrapped at the right end.
6568         * CheckedListBox.cs:
6569                 - Fixed Add method
6570         * ListBox.cs:
6571                 - Items should be fully shown.
6572                 - When resizing and vertical scrollbar disappeared, the item 
6573                 of index 0 should be on the top of the list.
6574                 - GetItemRectangle should consider the size of ver. scrollbar
6575         * StatusBar.cs:
6576                 - SizingGrip area should not be allocated when it is not 
6577                 displayed.
6578                 - Now it reflects MinWidth of the containing panel and 
6579                 fixed a crash that happens when its width becomes so small.
6580
6581 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6582
6583         * CheckedListBox.cs: Fixes bug 76028
6584         * ListBox.cs: Fixes bug 76028
6585
6586 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
6587
6588         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
6589         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
6590
6591 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
6592
6593         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
6594
6595 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6596
6597         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
6598
6599 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
6600
6601         * IRootGridEntry.cs: Added
6602         * PropertyGridCommands.cs: Added
6603         * PropertiesTab.cs: Added missing methods and property
6604         * PropertyGridView.cs: Made class internal
6605         * PropertyGridTextBox.cs: Made class internal
6606
6607 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6608
6609         * MimeIcon.cs: Try to check some other environment variables
6610           if "DESKTOP_SESSION" returns "default"
6611
6612 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6613
6614         * ThemeNice.cs: Corrected background colors (e.g. menus)
6615         * ColorDialog.cs: Use correct background colors for controls
6616
6617 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
6618
6619         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
6620
6621 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
6622
6623         * RichTextBox.cs: Added initial implementation
6624         * lang.cs: Removed. Was accidentally checked in long time ago
6625         * TODO: Removed. Contents were obsolete
6626
6627 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6628                                                                                 
6629         * PropertiesTab.cs : Added
6630
6631 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
6632                                                                                 
6633         * PropertyGrid.cs : Update
6634         * PropertyGridView.cs : Update
6635         * System.Windows.Forms.resx : Added images and strings
6636
6637 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
6638
6639         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
6640  
6641 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
6642
6643         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
6644           a busy loop right after the Ungrab the X11 display is otherwise 
6645           blocked
6646
6647 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
6648
6649         * ThemeWin32Classic.cs: Optimise the use of clipping
6650
6651 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
6652
6653         * DataGrid.cs: fixes recursion bug
6654
6655 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
6656
6657         * ThemeNice.cs: 
6658           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
6659           - Cleanup
6660
6661 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
6662
6663         * ThemeNice.cs: Draw nice ProgressBars
6664
6665 2005-09-01  Miguel de Icaza  <miguel@novell.com>
6666
6667         * VScrollBar.cs: Another buglet found by Aaron's tool. 
6668
6669         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
6670         bug finder.
6671
6672 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
6673
6674         * ThemeNice.cs:
6675           - Added nicer menu drawing
6676           - Updated DrawTab
6677           - some refactoring
6678
6679 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6680
6681         * CreateParams.cs (ToString): Made output match MS
6682         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
6683             handle is already created (to avoid forcing window creation)
6684         * XplatUIX11.cs: Set window text to caption after creating window,
6685           in case Text was set before window was created
6686         * Form.cs: Use this.Text instead of a static string as caption
6687
6688 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6689
6690         * NotifyIcon.cs: Don't set the window to visible; this screws
6691           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
6692           OnPaint without a bitmap)
6693         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
6694           happen very often anyway; we could add the check to the WM_PAINT 
6695           event generation code
6696
6697 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
6698
6699         * NotifyIcon.cs: Fill the icon area with a background color, to 
6700           avoid 'residue' when transparent icons are drawn
6701         * XplatUIX11.cs:
6702           - Handle whole_window == client_window when destroying windows
6703           - SystrayAdd(): Set client_window to whole_window value to
6704             get mouse and other events passed to NotifyIcon
6705
6706 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
6707
6708         * Form.cs: Set proper default for Opacity property
6709         * NotifyIcon.cs:
6710           - ShowSystray(): Don't bother creating telling the OS
6711             about the systray item if no icon is provided
6712           - Now handles WM_NCPAINT message to deal with whole/client window
6713             split
6714           - Create window as visible to not get caught by Expose optimization
6715         * Hwnd.cs: Removed debug message
6716         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
6717           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
6718             PaintEventStart/End to use new client argument
6719         * TextBoxBase.cs:
6720           - Commented out debug messages
6721           - Switched PaintEventStart/End to use new client argument
6722         * XplatUI.cs: Added client window bool to PaintEventStart()/
6723           PaintEventEnd() calls, to support drawing in non-client areas
6724         * XplatUIDriver.cs: 
6725           - Added client window bool to PaintEventStart()/PaintEventEnd() 
6726             calls, to support drawing in non-client areas
6727           - Added conditional compile to allow using MWF BeginInvoke 
6728             on MS runtime
6729         * XplatUIX11.cs:
6730           - Added some conditional debug output
6731           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
6732             whole/client window split
6733           - Implemented handling of client argument to PaintEventStart()/End()
6734         * Control.cs:
6735           - Throw exception if BeginInvoke() is called and the window handle
6736             or one of the window's parent handles is not created
6737           - Added conditional compile to allow using MWF BeginInvoke on
6738             MS runtime
6739           - get_Parent(): Only sets parent if handle is created. This avoids
6740             forcing window handle creation when parent is set.
6741           - Now fires Layout and Parent changed events in proper order
6742           - Switched to use Handle instead of window.Handle for Z-Order setting,
6743             the get_Parent() patch above causes us to possibly get null for 'window'
6744           - Implemented handling of client argument to PaintEventStart()/End()
6745           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
6746             default handling)
6747           - Now sends a Refresh() to all child windows when Refresh() is called
6748
6749 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
6750
6751         * Form.cs: Added (non-functional) Opacity property
6752         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
6753
6754 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
6755         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
6756           use export MONO_THEME=nice to activate it.
6757           Currently supported controls:
6758           - Button
6759           - ComboBox
6760           - ScrollBar
6761           - TabControl (TabAlignment.Top only, other will follow)
6762         * ThemeEngine.cs: Add theme nice
6763         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
6764           if enabled
6765
6766 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
6767
6768         * Splitter.cs: Resize docked control and its neighbor.
6769
6770 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6771         -- Making Windows with Menus layout correctly --
6772         * Form.cs : The first leg of the fix
6773                 Menu setter - adjust Client Size as needed to make space for the menu
6774                 SetClientSizeCore - doesn't call base version to be able to pass the 
6775                         menu handle to XplatUI.CalculateWindowRect
6776         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
6777         * XplatUIX11.cs: The critical second leg of the fix
6778                 GetWindowPos needs to use a recalculated client_rect
6779                 so that resizing the window doesn't break layout of child controls. 
6780                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
6781                 Lots of \t\n killed
6782
6783 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
6784
6785         * Label.cs: Now properly recalculates width and height on Font and Text
6786           changes if AutoSize is set
6787
6788 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
6789         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
6790
6791 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
6792
6793         * ImageList.cs: Makes ToString method compatible with MS
6794
6795 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
6796
6797         * MenuAPI.cs: fixes bug 75716
6798
6799 2005-08-11 Umadevi S <sumadevi@novell.com>
6800         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
6801
6802 2005-08-11 Umadevi S <sumadevi@novell.com>
6803         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
6804
6805 2005-08-10  Umadevi S <sumadevi@novell.com>
6806         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
6807
6808 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
6809
6810         * Menu.cs: fixes bug 75700
6811         * MenuAPI.cs: fixes navigation issues
6812
6813 2005-08-09  Umadevi S <sumadevi@novell.com>
6814         * CheckedListBox.cs - simple fix for GetItemChecked.
6815
6816 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
6817
6818         * ComboBox.cs: Serveral fixes
6819         * ListBox.cs: Serveral fixes
6820
6821 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6822
6823         * ComboBox.cs: Fixes FindString methods and GetItemHeight
6824         * ListBox.cs: Fixes FindString methods
6825
6826 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
6827
6828         * DataGrid.cs: fixes bugs exposed by new tests
6829
6830 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
6831
6832         * Mime.cs: Compile Mono assembly references only if compiling
6833           with Mono (Allows to build with VS.Net again)
6834
6835 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
6836
6837         * Control.cs (PaintControlBackground): Draw background image
6838         corrrectly.
6839         (CheckForIllegalCrossThreadCalls): Stubbed.
6840         
6841         * Form.cs (OnCreateControl): Center when should be centered.
6842         
6843         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
6844
6845 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
6846
6847         * Binding.cs: Binding to properties should be case unsensitive
6848
6849 2005-07-18 vlindos@nucleusys.com
6850
6851         * DataGrid.cs: fixes setmember order
6852
6853 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
6854
6855         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
6856         * FileDialog.cs: FileDialog is now resizable and uses the new
6857           MimeIconEngine
6858
6859 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
6860
6861         * DataGridTextBoxColumn.cs: default value
6862         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
6863         * GridTableStylesCollection.cs: fixes checking MappingName
6864         * DataGridDrawingLogic.cs: fixes drawing logic issues
6865         * DataSourceHelper.cs: rewritten to make compatible with more data sources
6866         * DataGrid.cs: fixes    
6867
6868 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
6869
6870         * MimeGenerated.cs: Use case sensitive comparer for
6871           NameValueCollections
6872
6873 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
6874
6875         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
6876         * ThemeWin32Classic.cs: bug fixes, code refactoring
6877         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
6878         * DataGrid.cs: bug fixes, code refactoring
6879         * DataGridTextBox.cs: bug fixes, code refactoring
6880         * DataGridColumnStyle.cs:  bug fixes, code refactoring
6881         * Theme.cs:  bug fixes, code refactoring
6882
6883 2005-07-01  Peter Bartok  <pbartok@novell.com> 
6884
6885         * TextControl.cs: Quick fix for the reported crash on ColorDialog
6886           and other text box usage
6887
6888 2005-07-01  Jackson Harper  <jackson@ximian.com>
6889
6890         * TabControl.cs: Make sure the bottom of the tab covers the pages
6891         border.
6892
6893 2005-06-30  Peter Bartok  <pbartok@novell.com> 
6894
6895         * Form.cs (ShowDialog): Assign owner of the dialog
6896         * TextBoxBase.cs: Always refresh caret size when deleting, caret
6897           might have been moved to a tag with different height
6898
6899 2005-06-30  Jackson Harper  <jackson@ximian.com>
6900
6901         * Form.cs: Don't create an infinite loop when setting focus
6902         * MenuItem.cs: Don't dirty the parents if we don't have any
6903
6904 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
6905
6906         * LibSupport.cs: Rename
6907
6908 2005-06-29  Peter Bartok  <pbartok@novell.com>
6909
6910         * TextBoxBase.cs: Re-align caret after deleting a character
6911         * TextControl.cs:
6912           - DeleteChars(): Ensure that tag covers the provided position
6913           - StreamLine(): Drop reference for dropped tag
6914
6915 2005-06-29  Peter Bartok  <pbartok@novell.com> 
6916
6917         * TextControl.cs: 
6918           - Selections now work properly, anchoring at the initial location
6919             and properly extending in either direction (SetSelectionToCaret(),
6920             SetSelectionStart() and SetSelectionEnd())
6921           - No longer redraws the whole control on selection change, now
6922             calculates delta between previous and new selection and only
6923             invalidates/redraws that area
6924           - Fixed FindPos() math off-by-one errors
6925           - Changed DeleteChars() to verify the provided tag covers the
6926             provided position, selections may have a tag that doesn't cover
6927             the position if the selection is at a tag border
6928           - Fixed off-by-one errors in DeleteChars()
6929           - Added missing streamlining check in DeleteChars() to remove
6930             zero-length tags
6931           - Implemented Invalidate() method, now properly calculates exposures
6932             between two given lines/positions
6933           - Implemented SetSelection()
6934           - Obsoleted and removed FixupSelection()
6935           - Improved RecalculateDocument() logic, removing code duplication
6936
6937 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6938
6939         * LibSupport.cs: changes to match different input/output arguments.
6940
6941 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6942
6943         * LibSupport.cs: added libsupport.so init routine.
6944
6945 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
6946         
6947         * ControlBindingsCollection.cs
6948                 - Throws an exception on null datasource when adding
6949                 - Checks for duplicated bindings when adding
6950
6951 2005-06-28  Jackson Harper  <jackson@ximian.com>
6952
6953         * TreeView.cs (OnKeyDown): Support left and right properly
6954         (navigates as well as expanding and collapsing.
6955         - Add support for Multiply, this expands all the selected nodes
6956         children.
6957         - Fix some tabbing.
6958
6959 2005-06-28  Jackson Harper  <jackson@ximian.com>
6960
6961         * TreeView.cs: Implement keyboard navigation, currently supports,
6962         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
6963         support for toggling checkboxes with the space bar.
6964
6965 2005-06-28  Jackson Harper  <jackson@ximian.com>
6966
6967         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
6968         tree.
6969
6970 2005-06-28  Jackson Harper  <jackson@ximian.com>
6971
6972         * TreeView.cs: Add missing event.
6973
6974 2005-06-27  Peter Bartok  <pbartok@novell.com> 
6975
6976         * TextControl.cs:
6977           - Made line ending size configurable (now allows for counting 
6978             lineendings as \n or \r\n)
6979           - Added margin to viewport to keep caret visible on right side
6980           - Fixed translation routines for line/pos to documentpos to consider
6981             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
6982           - Fixed some line-endings to be unix style
6983           - Fixed Document.FormatText to perform it's calculations 1-based
6984           - Added descriptions for a few methods that might otherwise get 
6985             used wrong
6986           - Added NOTE section with some basic conventions to remember at 
6987             the top of the file
6988           - Major fixup for RichTextBox selection drawing:
6989             * Fixed crashes when multiple tags on a single line were selected
6990             * fixed selection box drawing not overlaying text
6991             * fixed bogus offset calculation for tags not starting at index 1
6992             * Switched behaviour from using multiple Substrings of a 
6993               StringBuilder.ToString() to using multiple 
6994               StringBuilder.ToString(start, length) statements, hoping this is
6995               faster (kept original version commented out in the code, in case
6996               original version was faster)
6997         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
6998           alignment != Left
6999         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
7000           call it as well
7001
7002 2005-06-27  Jackson Harper  <jackson@ximian.com>
7003
7004         * TabControl.cs: Move to the left and right with the arrow
7005         keys. These keys don't cycle beyond first and last like
7006         tab. Refresh all the tabs when scrolling them to the left or
7007         right.
7008
7009 2005-06-27  Jackson Harper  <jackson@ximian.com>
7010
7011         * TabControl.cs:
7012           - ToString: Added method
7013           - CreateParams: Remove TODO and comment
7014           - OnKeyDown: Cycle through bounds properly.
7015           - SelectedIndex: Scroll to the right or left if we need to
7016           display the newly selected tab.
7017
7018 2005-06-23  Jackson Harper  <jackson@ximian.com>
7019
7020         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
7021         set.
7022
7023 2005-06-23  Jackson Harper  <jackson@ximian.com>
7024
7025         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
7026         CTRL-SHIFT-TAB, and HOME, END are there any others?
7027
7028 2005-06-23  Jackson Harper  <jackson@ximian.com>
7029
7030         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
7031
7032 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7033         
7034         * DataGridTextBoxColumn.cs: fixes and enhancements
7035         * ThemeWin32Classic.cs: fixes and enhancements
7036         * DataGridBoolColumn.cs:  fixes and enhancements
7037         * DataGridDrawingLogic.cs:  fixes and enhancements
7038         * CurrencyManager.cs: fixes and enhancements
7039         * DataGrid.cs: fixes and enhancements
7040         * DataGridColumnStyle.cs:  fixes and enhancements
7041
7042 2005-06-22  Jackson Harper  <jackson@ximian.com>
7043
7044         * TabControl.cs: Add some missing methods that just call into the
7045         base. Make the TabPageCollection's IList interface behave in the
7046         same manner as the MS implementation.
7047
7048 2005-06-22  Peter Bartok  <pbartok@novell.com> 
7049
7050         * TextControl.cs: Added sanity check
7051         * TextBoxBase.cs: 
7052           - Fixed wrapping behaviour, don't set wrap on single line controls
7053             (this fixes the breakage of colordialog introduced in an earlier
7054              checkin)
7055           - Added rudimentary support for autoscrolling right-aligned controls
7056             (still needs fixing, also, center alignment scroll is missing)
7057
7058 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
7059         
7060         * ScrollBar.cs: Fixes thumbpos on Maximum values
7061
7062 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
7063         
7064         * PropertyGridView.cs: Pass context information to UITypeEditors 
7065
7066 2005-06-21  Peter Bartok  <pbartok@novell.com> 
7067
7068         * TextBoxBase.cs:
7069           - Now calling PositionCaret with absolute space coordinates
7070           - Enabled vertical scrolling
7071           - Better tracking of scrollbar changes, tied into WidthChange
7072             event
7073           - Improved cursor tracking
7074           - Removed debug output
7075         * TextControl.cs:
7076           - PositionCaret coordinates are now works in absolute space, not 
7077             the canvas
7078           - Improved tracking of document size
7079           - Added events for width and height changes
7080
7081 2005-06-21  Peter Bartok  <pbartok@novell.com>
7082
7083         * Form.cs: Set focus to active control when form is activated
7084         * TextControl.cs: 
7085           - Added word-wrap functionality to RecalculateLine() 
7086           - Added some short function descriptions for VS.Net to aid in
7087             writing dependent controls
7088           - Added Caret property, returning the current coords of the caret
7089           - Added ViewPortWidth and ViewPortHeight properties
7090           - Added Wrap property
7091           - Added CaretMoved event
7092           - Removed some old debug code
7093           - Split() can now create soft splits
7094           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
7095           - Added method to format existing text
7096           - Fixed size/alignment calculations to use viewport
7097           - RecalculateDocument now can handle changing line-numbers while
7098             calculating lines
7099
7100         * TextBox.cs:
7101           - Added some wrap logic, we don't wrap if alignment is not left
7102           - Added casts for scrollbar var, base class switched types to
7103             also support RichTextBoxA
7104           - Implemented handling of scrollbar visibility flags
7105
7106         * TextBoxBase.cs:
7107           - Switched scrollbars type to RichTextBoxScrollBars to support
7108             RichTextBox
7109           - Added tracking of canvas width/height
7110           - Switched scrollbars to be not selectable (to keep focus on text)
7111           - Added central CalculateDocument() method to handle all redraw
7112             requirements
7113           - Added ReadOnly support
7114           - Added WordWrap support
7115           - Fixed handling of Enter key (we now treat it as a DialogKey)
7116           - Fixed caret positioning when h or v scroll is not zero
7117           - Fixed placing/generation of vertical scrollbar
7118           - Added CalculateScrollBars() method to allow updating scrollbar
7119             limits and visibility
7120           - Fixed handling of horizontal scroll
7121           - Added handling of vertical scroll
7122           - Implemented auto-'jump' when caret moves to close to a left or
7123             right border and there is text to be scrolled into view (currently
7124             there's the potential for a stack overflow, until a bug in
7125             scrollbar is fixed)
7126
7127 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
7128         
7129         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
7130
7131 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
7132
7133         * Mime.cs:
7134         - added inodes.
7135         - return application/x-zerosize for files with size zero
7136           (if no extension pattern matches).
7137         - check matches collection for strings too.
7138         - return only the first mime type if the name value
7139           collection has more than one mime type.
7140
7141 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
7142         
7143         * PropertyGrid.cs: Cleaned up some TODOs
7144         * PropertyGridView.cs: Added support for UITypeEditors
7145
7146 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7147         
7148         * DataGrid.cs: clears cached value
7149
7150 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
7151
7152         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
7153         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
7154         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
7155         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
7156         
7157 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
7158
7159         * ThemeWin32Classic.cs: fixes colour
7160
7161 2005-06-15  Peter Bartok  <pbartok@novell.com>
7162
7163         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
7164         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
7165         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
7166         * Control.cs: Added some MWFCategory and MWFDescription attributes
7167         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
7168
7169 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
7170
7171         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
7172         usage
7173
7174 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
7175
7176         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
7177         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
7178         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
7179         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
7180         * DataGrid.cs: default datagrid settings for Default Styles, fixes
7181         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
7182
7183 2005-06-13  Jackson Harper  <jackson@ximian.com>
7184
7185         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
7186         isn't printed when the user enables dropping. (X11 does accept
7187         drops).
7188         
7189 2005-06-13  Jackson Harper  <jackson@ximian.com>
7190
7191         * TreeView.cs: Remove some TODOS.
7192
7193 2005-06-13  Jackson Harper  <jackson@ximian.com>
7194
7195         * Form.cs: Hook into the mdi framework.
7196         * MdiClient.cs: Use the base control collections add method so
7197         parents get setup correctly. Set the default back colour and dock
7198         style.
7199         * MdiChildContext.cs: New class, this bad actor handles an
7200         instance of an MDI window. Right now there is only basic
7201         support. You can drag, close, and resize windows. Minimize and
7202         Maximize are partially implemented.
7203
7204 2005-06-13  Jackson Harper  <jackson@ximian.com>
7205
7206         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
7207         freaky when both vals are negative. NOTE: There are probably other
7208         places in XplatUIX11 that this needs to be done.
7209
7210 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
7211
7212         * DataGrid.cs: implement missing methods, move KeyboardNavigation
7213         * DataGridColumnStyle.cs: fixes signature
7214
7215 2005-06-12  Jackson Harper  <jackson@ximian.com>
7216
7217         * XplatUIX11.cs: Use sizing cursors similar to the ones on
7218         windows.
7219
7220 2005-06-11  Jackson Harper  <jackson@ximian.com>
7221
7222         * StatusBarPanel.cs: Signature cleanups. Implement
7223         BeginInit/EndInit.
7224
7225 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
7226
7227         * DataGridTextBoxColumn.cs: Honors aligment
7228         * GridColumnStylesCollection.cs: Contains is case unsensitive
7229         * GridTableStylesCollection.cs: several fixes
7230         * DataGridTableStyle.cs: default column creation
7231         * DataGridDrawingLogic.cs: fixes
7232         * CurrencyManager.cs: ListName property
7233         * DataGrid.cs: multiple styles support
7234         * DataGridColumnStyle.cs: fixes
7235         
7236
7237 2005-06-10  Peter Bartok  <pbartok@novell.com>
7238
7239         * Control.cs(Select): Moved SetFocus call to avoid potential
7240           loops if controls change the active control when getting focus
7241         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
7242           the up/down buttons
7243
7244 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
7245
7246         * ImageListConverter.cs: Implemented
7247
7248 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7249
7250         * MonthCalendar.cs: Wired in NumericUpDown control for year
7251
7252 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
7253
7254         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
7255           DoubleClick events, since they are not meant to be fired.
7256
7257 2005-06-09  Peter Bartok  <pbartok@novell.com>
7258
7259         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
7260           Jonathan's standalone controls into MWF, implemented missing
7261           events, attributes and methods; added xxxAccessible classes
7262         * AccessibleObject.cs: Made fields internal so other classes
7263           can change them if needed
7264
7265 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
7266
7267         * UpDownBase.cs: Complete implementation
7268         * NumericUpDown.cs: Complete implementation
7269         * DomainUpDown.cs: Complete implementation
7270
7271 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
7272
7273         * DataGridTextBoxColumn.cs: drawing fixes
7274         * DataGridCell.cs: fixes ToString method to match MSNet
7275         * DataGridTableStyle.cs: fixes
7276         * DataGridBoolColumn.cs: fixes, drawing
7277         * DataGridDrawingLogic.cs: fixes, new methods
7278         * DataGridTextBox.cs: Keyboard and fixes
7279         * DataGrid.cs:
7280                 - Keyboard navigation
7281                 - Scrolling fixes
7282                 - Row selection (single, multiple, deletion, etc)
7283                 - Lots of fixes
7284         
7285 2005-06-07  Jackson Harper  <jackson@ximian.com>
7286
7287         * ThemeWin32Classic.cs: Clear the background area when drawing
7288         buttons.
7289
7290 2005-06-06  Peter Bartok  <pbartok@novell.com>
7291
7292         * ImageListStreamer.cs: Fixed signature for GetData
7293         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
7294         * ComboBox.cs:
7295           - Added missing ChildAccessibleObject class
7296           - Added missing OnXXXFocus overrides, switched to using those
7297             instead of the event handler
7298         * Control.cs:
7299           - Added Parent property for ControlAccessibleObject
7300           - Fixed signatures
7301           - Fixed attributes
7302           - Added ResetBindings()
7303         * ListBindingConverter.cs: Implemented some methods
7304         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
7305         * ImageList.cs: Implemented basic handle scheme, removed TODOs
7306         * ContainerControl.cs: Fixed signature, now subscribing to the
7307           ControlRemoved event instead of overriding the handler, LAMESPEC
7308         * CurrencyManager.cs: Added missing attribute
7309         * MonthCalendar.cs: Added missing properties
7310
7311 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7312
7313         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
7314         
7315 2005-06-06  Gaurav Vaish and Ankit Jain
7316
7317         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
7318         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
7319         
7320 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
7321
7322         * Control.cs: fixes CreateParams Width / Height.
7323
7324 2005-06-05  Peter Bartok  <pbartok@novell.com>
7325
7326         * Win32DnD.cs: Removed compilation warnings
7327
7328 2005-06-05  Peter Bartok  <pbartok@novell.com>
7329
7330         * Control.cs (CreateParams): Since we don't know if one of the
7331           properties we use is overridden, lets make sure if we fail accessing
7332           we continue with a backup plan
7333
7334 2005-06-05  Peter Bartok  <pbartok@novell.com>
7335
7336         * Win32DnD.cs:
7337           - Removed debug output
7338           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
7339             struct
7340           - Plugged resource leak
7341         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
7342           MS size
7343
7344 2005-06-05  Peter Bartok  <pbartok@novell.com>
7345
7346         * XplatUIWin32.cs: Removed DnD code
7347         * Win32DnD.cs: Implemented drop source and drop target functionality
7348
7349 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7350
7351         * UpDownBase.cs: remove duplicate addition of event, enable some code
7352         that was commented out.
7353         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
7354         Validate input when a key is pressed. It works fine now for every
7355         combination of Hexadecimal. Only missing some drawing love when sharing
7356         space with other controls.
7357
7358 2005-06-04  Peter Bartok  <pbartok@novell.com>
7359
7360         * Control.cs:
7361           - We need to pass a window for DragDrop, so enable callback events
7362           - Added DnD callback events when being a DragSource
7363         * XplatUI.cs (StartDrag): Added window handle argument
7364         * XplatUIDriver.cs (StartDrag): Added window handle argument
7365         * QueryContinueDragEventArgs: Made fields internally accessible so
7366           drivers can set them
7367         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
7368           can set them
7369
7370 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
7371
7372         * DataGridTextBoxColumn.cs: column text editing
7373         * DataGridTableStyle.cs: Respect columns styles created by the user
7374         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
7375         * DataGridBoolColumn.cs: bool column editing
7376         * DataGrid.cs: fixes to scrolling, properties, etc
7377         * DataGridTextBox.cs: handle keyboard
7378         * DataGridColumnStyle.cs: fixes
7379
7380 2005-06-02  Jackson Harper  <jackson@ximian.com>
7381
7382         * ImageListStreamer.cs: Somewhat broken implementation of
7383         GetObjectData. The RLE needs some work to match MS properly.
7384
7385 2005-06-02  Jackson Harper  <jackson@ximian.com>
7386
7387         * X11Dnd.cs: Attempting to keep at least one file in MWF
7388         monostyled.
7389
7390 2005-06-02  Peter Bartok  <pbartok@novell.com>
7391
7392         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
7393           that way
7394
7395 2005-06-02  Peter Bartok  <pbartok@novell.com>
7396
7397         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
7398         * XplatUI.cs: Added DoDragDrop() method
7399         * XplatUIDriver.cs: Added DoDragDrop() method
7400
7401 2005-06-02  Jackson Harper  <jackson@ximian.com>
7402
7403         * Splitter.cs: Implement BorderStyle.
7404
7405 2005-06-02  Jackson Harper  <jackson@ximian.com>
7406
7407         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
7408         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
7409         X11 using XDND.
7410
7411 2005-06-02  Peter Bartok  <pbartok@novell.com>
7412
7413         * DataObject.cs:
7414           - Added Data setter
7415           - Fixed broken insertion code for SetData, now also
7416             overwrites any existing entry of the same format name
7417         * Hwnd.cs: Added list of pointers that automatically gets
7418           freed when the window is disposed
7419         * XplatUI.cs: Call driver initialization method when loading
7420           a driver
7421         * Control.cs:
7422           - OnDragLeave takes EventArgs, not DragEventArgs
7423           - Added setting of WS_EX_ACCEPTFILES style when dropping is
7424             supported
7425           - Forces style update when drop state changes
7426         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
7427           not perfect since we cannot (yet) call the IDataObject.GetData()
7428           method, we keep getting 0x80004005 error, dunno why)
7429
7430 2005-06-02  Peter Bartok  <pbartok@novell.com>
7431
7432         * DragEventArgs.cs: Make fields internal so we can cache the
7433           object and re-set the fields from XplatUI
7434
7435 2005-06-02  Jackson Harper  <jackson@ximian.com>
7436
7437         * Control.cs: Add some internal methods so the DnD subsystem can
7438         raise DnD events. Also call into the driver when AllowDrop is set.
7439         * XplatUI.cs:
7440         * XplatUIDriver.cs: New method for setting whether or not a window
7441         is allowed to accept drag and drop messages.
7442                 
7443 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
7444         
7445         * ScrollBar.cs: Make sure that values sent in Scroll events
7446         are always between Maximum and Minimum.
7447
7448 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
7449
7450         * Menu.cs: Call MenuChanged when menuitem visibility has been
7451         changed.
7452         * MenuItem.cs: Rebuild menu when item is (not) visible.
7453         * MainMenu.cs: MainMenu has special MenuChanged.
7454         * Theme.cs: Caption and FrameBorderSize are not fixed.
7455         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
7456         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
7457         * XplatUIX11.cs,
7458         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
7459         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
7460
7461 2005-05-30  Jackson Harper  <jackson@ximian.com>
7462
7463         * DataFormat.cs: We can't statically initialize this stuff because
7464         it calls into the xplatui and could create a loop. So we lazy init
7465         it.
7466
7467 2005-05-28  Jackson Harper  <jackson@ximian.com>
7468
7469         * Control.cs: Proper implementation of Product(Name/Version).
7470
7471 2005-05-27  Jackson Harper  <jackson@ximian.com>
7472
7473         * DataObject.cs: Dont crash if no data is found.
7474
7475 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
7476         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
7477                 as per status page, guessing it should be set to true
7478
7479 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
7480
7481         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
7482         * DataGridTableStyle.cs: set proper formatting text, def header text
7483         * ThemeWin32Classic.cs: new themable paramaters
7484         * DataGridBoolColumn.cs: paint check box, get data, fixes
7485         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
7486         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
7487         * DataGridColumnStyle.cs: fixes
7488         * Theme.cs: new themable paramaters
7489                 
7490 2005-05-26  Peter Bartok  <pbartok@novell.com>
7491
7492         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
7493
7494 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7495         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
7496
7497 2005-05-24  Peter Bartok  <pbartok@novell.com>
7498
7499         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
7500           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
7501           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
7502           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
7503           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
7504           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
7505           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
7506           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
7507           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
7508           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
7509           missing attributes, etc
7510         * DataGridPreferredColumnWidthTypeConverter.cs: Added
7511
7512 2005-05-24  Peter Bartok  <pbartok@novell.com>
7513
7514         * Help.cs: Added, implemented trivial functions, throws up MessageBox
7515           when user tries to get help
7516         * DataObject.cs, DataFormats.cs, LinkArea.cs,
7517           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
7518           to suppress warnings
7519         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
7520           avoid unreachable code warning
7521
7522 2005-05-20  Peter Bartok  <pbartok@novell.com>
7523
7524         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
7525
7526 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7527
7528         * DataGridTextBoxColumn.cs: Basic painting methods
7529         * DataGridTableStyle.cs: Set table style in the column
7530         * ThemeWin32Classic.cs: Use Theme for colors
7531         * DataGridDrawingLogic.cs: Implement more drawing
7532         * DataGrid.cs: drawing, theming, enhacements, fixes
7533         * DataGridColumnStyle.cs: fixes, drawing
7534         * Theme.cs: theming for Datagrid
7535
7536 2005-05-20  Peter Bartok  <pbartok@novell.com>
7537
7538         * Cursor.cs: Implemented GetObjectData() method
7539
7540 2005-05-20  Peter Bartok  <pbartok@novell.com>
7541
7542         * Cursors.cs: Added setting of cursor name
7543         * Cursor.cs:
7544           - Implemented constructors
7545           - Implemented Draw and DrawStretched
7546           - Implemented Current property
7547           - Implemented == and != operators
7548           - Implemented Dispose()
7549           - Implemented ToString
7550           - Added missing attributes
7551         * XplatUIX11.cs:
7552           - Added missing reset for OverrideCursor when DoEvents is called
7553           - Fixed creation of cursor, logic was wrong
7554         * XplatUIWin32.cs:
7555           - Added missing reset for OverrideCursor when DoEvents is called
7556           - Fixed creation of cursor, bit arrays were swapped
7557         * Clipboard.cs: Removed obsolete MonoTODO attribute
7558
7559 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7560
7561         * ComboBox.cs: fixes OnSelectedItemChanged
7562         * ControlBindingsCollection.cs: fixes item range check
7563
7564 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
7565
7566         * UpDownBase.cs:
7567                 - Calc preferred height properly
7568                 - Implement missing properties
7569                 
7570         * NumericUpDown.cs: Implement missing events
7571
7572 2005-05-19  Jackson Harper  <jackson@ximian.com>
7573
7574         * TabControl.cs: New method that resizes the tab pages before
7575         redrawing them. This as needed as the control is double buffered
7576         and sizing will not be recalculated unless ResizeTabPages is
7577         called.
7578         * TabPage.cs: Set base.Text instead of Text in the constructor so
7579         that UpdateOwner does not get called. Use the new Redraw method of
7580         TabControl instead of Refresh so the sizing is recalculated.
7581         * ThemeWin32Classic.cs: Draw the text for button tabs.
7582
7583 2005-05-19  Jackson Harper  <jackson@ximian.com>
7584
7585         * Control.cs: Paint control background images. Fix typo where
7586         PaintControlBackground was not getting called correctly.
7587
7588 2005-05-19  Peter Bartok  <pbartok@novell.com>
7589
7590         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
7591           I can investigate, apparently I broke FileDialog
7592
7593 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
7594
7595         * AxHost.cs: Some simple properties.
7596         * Control.cs: window must be accessible after ctor.
7597         * Form.cs: Added TransparencyKey property.
7598         * TextBoxBase.cs: Implemented Clear. Text property can be null.
7599         * XplatUIWin32.cs: SetBorderStyle implemented.
7600
7601 2005-05-18  Peter Bartok  <pbartok@novell.com>
7602
7603         * DataObject.cs: Entries are not global but particular to the
7604           DataObject, now it behaves that way
7605         * XplatUIWin32.cs: Implemented Clipboard methods
7606         * Clipboard.cs: Implemented
7607         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
7608         * XplatUIOSX.cs: Updated to final clipboard prototypes
7609         * XplatUIX11.cs: Implemented Clipboard methods
7610         * XplatUIDriver.cs: Updated to final clipboard prototypes
7611         * XplatUIStructs.cs:
7612           - Added BITMAPINFOHEADER struct
7613           - Added ClipboardFormats enum
7614         * X11Structs.cs:
7615           - Added ClipboardStruct
7616           - Added Atom enum items for clipboard types
7617           - Fixed atom types for Selection event structures
7618         * DataFormats.cs:
7619           - Added internal properties and methods for drivers to enumerate
7620             all known formats
7621           - Switched initialization method to allow drivers to assign their
7622             own IDs even for the MS predefined clipboard IDs
7623         * XplatUI.cs: Updated to final clipboard interface
7624
7625 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7626         * PropertyGridView.cs: Fixed compiler warnings.
7627
7628 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
7629         * PropertyGrid.cs: Added some event calls
7630         * PropertyGridView.cs: Change drawing code to use double buffering
7631         * PropertyGridTextBox.cs: Changed Text property name
7632         * GridItem.cs: Added Bounds property.
7633         * GridEntry.cs: Added Bounds property.
7634
7635 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
7636
7637         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
7638         since GetType() may not return the correct type if the object is
7639         a remoting proxy.
7640
7641 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
7642
7643         * TreeNodeCollection.cs: fixes get/set item ranges
7644         
7645 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7646
7647         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
7648                 
7649 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
7650
7651         * ComboBox.cs: Fix item range comparation
7652         * ListView.cs: Fix item range comparation
7653
7654 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7655
7656         * FontDialog.cs:
7657           - Clear example panel when OnPaint is called
7658           - Better solution for displaying the example panel text
7659           - Select default indexes in the ListBoxes
7660
7661 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7662
7663         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
7664
7665 2005-05-11  Peter Bartok  <pbartok@novell.com>
7666
7667         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
7668         * SelectionRangeConverter.cs: Implemented
7669         * PropertyGrid.cs: Fixed attribute value
7670         * Control.cs:
7671           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
7672           - Added Sebastien Pouliot's CAS Stack Propagation fixes
7673         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
7674           that's common to all drivers. First methods to go there are
7675           Sebastien Pouliot's CAS Stack Propagation helper methods
7676         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
7677           Sebastien Pouliot for CAS Stack Propagation
7678
7679 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
7680
7681         * OSXStructs.cs:
7682           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
7683
7684 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
7685
7686         * DataGridTextBoxColumn.cs: fixed some members
7687         * GridColumnStylesCollection.cs: indexed column is case insensitive
7688         * DataGridTableStyle.cs: fixes
7689         * ThemeWin32Classic.cs: add new theme parameter
7690         * Theme.cs: add new theme parameter
7691         * DataGridDrawingLogic.cs: Datagrid's drawing logic
7692         * DataGrid.cs: fixes, new internal properties, etc.
7693         * DataGridColumnStyle.cs: allows to set grid value
7694         *
7695
7696 2005-05-10  Peter Bartok  <pbartok@novell.com>
7697
7698         * AccessibleObject.cs:
7699           - Removed MonoTODO attribute on help, method is correct
7700           - Fixed Bounds property
7701         * AxHost.cs: Moved MonoTODO
7702         * ButtonBase.cs: Now setting AccessibleObject properties
7703         * RadioButton.cs: Setting proper AccessibleObject role
7704         * CheckBox.cs: Setting proper AccessibleObject role
7705         * ControlBindingsCollection.cs: Added properties, methods and attributes
7706         * DataFormats.cs: Fixed awkward internal API, and changed to enable
7707           userdefined DataFormats.Format items as well
7708         * ListControl.cs: Removed data_member from the public eye
7709         * OpenFileDialog.cs:
7710           - Made class sealed
7711           - Added missing attributes
7712         * SaveFileDialog.cs: Added missing attributes
7713         * ImageListStreamer.cs: Fixed code that caused warnings
7714         * LinkLabel.cs: Removed unreachable code
7715         * TreeView.cs: Fixed code that caused warnings
7716         * PropertyGridView.cs: Fixed code that caused warnings
7717         * GridColumnStylesCollection.cs: Added missing attributes
7718         * GridTableStylesCollection: Added missing attribute
7719         * PropertyManager: Added .ctor
7720         * SecurityIDType: Added
7721         * DataObject.cs: Implemented class
7722         * LinkArea.cs: Added missing attribute
7723
7724 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
7725
7726         * RadioButton.cs: call base method to allow to fire OnClick event
7727         * UpDownBase.cs: OnMouseUp call base method
7728         * CheckedListBox.cs: call base method before returning
7729         * TrackBar.cs: call base method before returning
7730         
7731
7732 2005-05-10  Peter Bartok  <pbartok@novell.com>
7733
7734         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
7735           for messages
7736
7737 2005-05-10  Peter Bartok  <pbartok@novell.com>
7738
7739         * DataFormats.cs: Implemented
7740         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
7741           XplatUIX11.cs: Added Clipboard APIs
7742         * XplatUIWin32.cs: Implemented Clipboard APIs
7743         * FolderBrowserDialog.cs: Added missing event, attributes
7744
7745 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
7746
7747         * CheckBox.cs: call base method to allow to fire OnClick event
7748
7749 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
7750
7751         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
7752
7753 2005-05-06  Peter Bartok  <pbartok@novell.com>
7754
7755         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
7756         * Screen.cs: Implemented
7757         * HelpNavigator.cs: Added
7758         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
7759           property
7760         * HelpProvider.cs: Implemented all we can do until we have a CHM
7761           help library (which means that "What's This" does work now)
7762
7763 2005-05-06  Jackson Harper  <jackson@ximian.com>
7764
7765         * XplatUIX11.cs: Fix waking up the main loop.
7766                 
7767 2005-05-05  Peter Bartok  <pbartok@novell.com>
7768
7769         * XplatUI.cs: Updated revision
7770         * Form.cs: Removed enless loop
7771         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
7772         * Label.cs (OnPaint): Added call to base.OnPaint()
7773         * ToolTip.cs: Made ToolTipWindow reusable for other controls
7774         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
7775         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
7776         * AxHost.cs: Added
7777         * ButtonBase.cs: Moved base.OnPaint() call to end of method
7778         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
7779           to ToolTip.ToolTipWindow for drawing and size methods; this allows
7780           reuse of ToolTipWindow by other controls
7781         * SizeGrip.cs: Moved base.OnPaint() call to end of method
7782         * XplatUIX11.cs: Now clipping drawing area (experimental)
7783         * PictureBox.cs: Moved base.OnPaint() call to end of method
7784         * Theme.cs: Fixed ToolTip abstracts to match new format
7785         * ErrorProvider.cs: Implemented
7786
7787 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
7788
7789         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
7790         * LinkLabel.cs:
7791                 - Adds cursors
7792                 - Handles focus
7793                 - Implements LinkBehavior
7794                 - Fixes many issues
7795
7796 2005-05-03  Jackson Harper  <jackson@ximian.com>
7797
7798         * ListView.cs: Calculate the scrollbar positioning on resize and
7799         paint, so they get put in the correct place.
7800
7801 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
7802
7803         * ColorDialogs.cs: The small color panels are now handled by
7804           SmallColorControl. This fixes drawing of the focus rectangle
7805           and adds a 3D border.
7806
7807 2005-05-03  Peter Bartok  <pbartok@novell.com>
7808
7809         * Control.cs: Modified version of Jonathan Chamber's fix for
7810           double-buffering
7811
7812 2005-05-03  Jackson Harper  <jackson@ximian.com>
7813
7814         * ListView.cs: Remove redraw variable. Control now handles whether
7815         or not a redraw needs to be done, and will only raise the paint
7816         event if redrawing is needed.
7817
7818 2005-05-03  Jackson Harper  <jackson@ximian.com>
7819
7820         * Splitter.cs: No decorations for the splitter form. Cache the
7821         hatch brush.
7822
7823 2005-05-03  Jackson Harper  <jackson@ximian.com>
7824
7825         * TreeView.cs: Use dashed lines to connect nodes. Use the
7826         ControlPaint method for drawing the focus rect instead of doing
7827         that in treeview.
7828
7829 2005-05-02  Peter Bartok  <pbartok@novell.com>
7830
7831         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
7832
7833 2005-04-29  Jackson Harper  <jackson@ximian.com>
7834
7835         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
7836         entire image buffer. Just clear the clipping rectangle.
7837
7838 2005-04-29  Jackson Harper  <jackson@ximian.com>
7839
7840         * ThemeWin32Classic.cs: Don't draw list view items that are
7841         outside the clipping rectangle.
7842
7843 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
7844
7845         * ListBox.cs: added horizontal item scroll
7846
7847 2005-04-29  Jackson Harper  <jackson@ximian.com>
7848
7849         * ThemeWin32Classic.cs: Remove some old debug code that was
7850         causing flicker with the new double buffering code.
7851
7852 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
7853
7854         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
7855         behave like combobox and comboboxlist (still not sure if this is
7856         correct though).
7857
7858 2005-04-28  Jackson Harper  <jackson@ximian.com>
7859
7860         * ThemeWin32Classic.cs: Don't fill the middle of progress
7861         bars. This fills areas outside of the clip bounds that don't need
7862         to be filled.
7863
7864 2005-04-28  Jackson Harper  <jackson@ximian.com>
7865
7866         * Control.cs: Don't expose functionality to touch the image buffers.
7867         * ProgressBar.cs:
7868         * ListView.cs: We do not need to (and no longer can) manipulate
7869         the image buffers directly. All of this is handled by Control.
7870
7871 2005-04-28  Peter Bartok  <pbartok@novell.com>
7872
7873         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
7874           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
7875           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
7876
7877 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7878
7879         * Combobox:
7880                 - Adjust control's height for non-simple comboboxes (bug fix)
7881                 - Remove dead code
7882         * MenuAPI.cs: remove unused var
7883         * ScrollBar.cs: remove unsed var
7884                  
7885         * ListBox.cs: unselect items when clearing
7886
7887 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
7888
7889         * ListControl.cs: honors OnPositionChanged and default Selected Item
7890         * ListBox.cs: unselect items when clearing
7891
7892 2005-04-27  Jackson Harper  <jackson@ximian.com>
7893
7894         * X11Keyboard.cs: Initialize a default keyboard and give a warning
7895         if a "correct" keyboard is not found. This will make us not crash,
7896         but might give some users bad keyboard layouts...seems to be the
7897         same thing rewind does.
7898
7899 2005-04-27  Jackson Harper  <jackson@ximian.com>
7900
7901         * BindingManagerBase.cs: Attach the current/position changed
7902         handlers to their respective events.
7903
7904 2005-04-27  Jackson Harper  <jackson@ximian.com>
7905
7906         * Control.cs: Make sure that the first WM_PAINT does a full draw,
7907         not just a blit.
7908         * ThemeWin32Classic.cs: Don't fill the background for picture
7909         boxes. This could overright user drawing.
7910         * ComboBox.cs: Just fill the clipping rect not the entire client
7911         rect when drawing the background. This prevents pieces of the
7912         image buffer from getting overwritten and is theoretically faster.
7913
7914 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
7915
7916         * ComboBox.cs: Databinding support fixes, fire missing events
7917         * ListControl.cs: implement missing methods and properties, fixes
7918         * ThemeWin32Classic.cs: Databiding support on Drawing
7919         * CheckedListBox.cs: Databinding support fixes, fire missing events
7920         * ListBox.cs: Databinding support fixes, fire missing events
7921         
7922 2005-04-25  Peter Bartok  <pbartok@novell.com>
7923
7924         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
7925
7926 2005-04-25  Jackson Harper  <jackson@ximian.com>
7927
7928         * TreeView.cs: Use the horizontal scrollbars height not width when
7929         determining how much of the client area is available.
7930
7931 2005-04-25  Jackson Harper  <jackson@ximian.com>
7932
7933         * Control.cs: Double buffering is handled differently now. As per
7934         the spec, the extra buffer is created in the WM_PAINT message and
7935         passed down to the control's drawing code.
7936         * GroupBox.cs:
7937         * Label.cs:
7938         * CheckBox.cs:
7939         * ProgressBar.cs:
7940         * RadioButton.cs:
7941         * ColorDialog.cs:
7942         * ComboBox.cs:
7943         * PropertyGridView.cs:
7944         * UpDownBase.cs:
7945         * MessageBox.cs:
7946         * MenuAPI.cs:
7947         * ListView.cs:
7948         * ButtonBase.cs:
7949         * SizeGrip.cs:
7950         * ScrollBar.cs:
7951         * ListBox.cs:
7952         * TrackBar.cs:
7953         * ToolBar.cs:
7954         * PictureBox.cs:
7955         * DateTimePicker.cs:
7956         * StatusBar.cs:
7957         * TreeView.cs: Update to new double buffering system.
7958         * MonthCalendar.cs: Uncomment block, as Capture is now
7959         working. Update to new double buffering
7960         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
7961         * PaintEventArgs.cs: New internal method allows us to set the
7962         graphics object. This is used for double buffering.
7963         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
7964         rectangle. The internal paint_area var has been removed from
7965         StatusBar. The clipping rect should be used instead.
7966         * Theme.cs: Give the PictureBox drawing method a clipping rect.
7967         * TabPage.cs: The RefreshTabs method was removed, so just call the
7968         tab controls Refresh method now.
7969         * TabControl.cs: Update to new double buffering. Make sure the
7970         handle is created before sizing the tab pages, otherwise we will
7971         get stuck in a loop.
7972
7973 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
7974
7975         * LinkLabel.cs: Fix typo, bug #74719; patch
7976           from Borja Sanchez Zamorano
7977
7978 2005-04-22  Jackson Harper  <jackson@ximian.com>
7979
7980         * TreeNode.cs: Implement Handle stuff.
7981         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
7982
7983 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
7984
7985         * DataGridTextBoxColumn.cs: call base constructors, fixes
7986         * GridColumnStylesCollection.cs: missing events, methods, and functionality
7987         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
7988         * DataGridTableStyle.cs: implements create default column styles
7989         * DataGridBoolColumn.cs: which types can handle
7990         * DataGrid.cs: missing methods, fixes, new functionality
7991         * DataGridColumnStyle.cs: fixes
7992
7993 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
7994         * FolderBrowserDialog.cs:
7995         - Use a thread to fill the TreeView
7996         - Adjusted some sizes
7997
7998 2005-04-19  Peter Bartok  <pbartok@novell.com>
7999
8000         * LinkLabel.cs: (Re-)create the pieces when setting the Text
8001           property. Fixes #74360.
8002
8003 2005-04-19  Jackson Harper  <jackson@ximian.com>
8004
8005         * XEventQueue.cs: Lock when getting the lockqueue size.
8006         * PictureBox.cs: Call base OnPaint
8007         
8008 2005-04-19  Peter Bartok  <pbartok@novell.com>
8009
8010         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
8011           messages were no longer being processed (this broke BeginInvoke)
8012
8013           
8014 2005-04-18  Jackson Harper  <jackson@ximian.com>
8015
8016         * TreeView.cs: buglet that caused node images to get drawn
8017         regardless of whether or not they were in the clipping rectangle.
8018
8019 2005-04-18  Jackson Harper  <jackson@ximian.com>
8020
8021         * CurrencyManager.cs: There are four rules for GetItemProperties:
8022         - If the type is an array use the element type of the array
8023         - If the type is a typed list, use the type
8024         - If the list contains an Item property that is not an object, use
8025         that property
8026         - use the first element of the list if there are any elements in
8027         the list.
8028         
8029 2005-04-17  Jackson Harper  <jackson@ximian.oom>
8030
8031         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
8032         click. This handles offsets for scrolling properly and reduces
8033         memory. Also fixed GetNode to not offset now that TopNode works
8034         properly.
8035         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
8036         
8037 2005-04-17  Jackson Harper  <jackson@ximian.com>
8038
8039         * CursorConverter.cs: Initial implementation.
8040
8041 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8042
8043         * ListControl.cs: work towards complex data binding support on ListControl
8044         * CurrencyManager.cs: work towards complex data binding support on ListControl
8045         * ListBox.cs: work towards complex data binding support on ListControl
8046
8047
8048 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
8049
8050         * GridTableStylesCollection.cs: fixes name and constructor
8051         * DataGridTableStyle.cs: fixes
8052         * DataGridBoolColumn.cs: fixes names and constructors
8053         * DataGrid.cs: define methods and properties. Some init implementations
8054         * DataGridCell.cs: define methods and properties. Some init implementations
8055         * GridTablesFactory.cs: Define methods and properties
8056
8057 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
8058
8059         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
8060         graphics port changes.  We still want the coordinates in global screen
8061         coordinates.
8062
8063 2005-04-14  Jackson Harper  <jackson@ximian.com>
8064
8065         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
8066         check plus minus or checkbox clicks unless those features are enabled.
8067
8068 2005-04-14  Jackson Harper  <jackson@ximian.com>
8069
8070         * TreeView.cs: Add methods for setting the top and bottom visible
8071         nodes. TreeNode::EnsureVisible uses these methods.
8072         * TreeNode.cs: Implement EnsureVisible
8073
8074 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
8075
8076         * Form.cs: Pospone menu assignation if the window has not been created yet
8077         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
8078         size and position
8079
8080 2005-04-12  Jackson Harper  <jackson@ximian.com>
8081
8082         * TreeView.cs: Set the TopNode properly when scrolling
8083         occurs. This has the added benifit of reducing the amount of
8084         walking that needs to be done when drawing. Also removed an old
8085         misleading TODO.
8086         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
8087         
8088 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
8089
8090         * Timer.cs: fixes interval setting when the timer is already enabled
8091         
8092 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
8093
8094         * FolderBrowserDialog.cs: First approach
8095
8096 2005-04-09  Peter Bartok  <pbartok@novell.com>
8097
8098         * FolderBrowserDialog: Added
8099
8100 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
8101
8102         * LinkLabel.cs: move drawing code into the theme
8103         * ThemeWin32Classic.cs: drawing code and painting background bugfix
8104         * Theme.cs: define DrawLinkLabel method
8105
8106 2005-04-05  Jackson Harper  <jackson@ximian.com>
8107
8108         * BindingContext.cs: Use weak references so these bad actors don't
8109         stay alive longer then they need to.
8110
8111 2005-04-05  Jackson Harper  <jackson@ximian.com>
8112
8113         * ListControl.cs: Basic implementation of complex databinding.
8114         * ComboBox.cs:
8115         * ListBox.cs: Add calls to ListControl databinding methods.
8116
8117 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
8118
8119         * FileDialog.cs:
8120           - Don't change PopupButtonState to Normal when the
8121             PopupButton gets pressed several times.
8122           - Renamed ButtonPanel to PopupButtonPanel
8123
8124 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
8125
8126         * ColorDialog.cs: Use cached objects instead of creating them
8127         * LinkLabel.cs: Use cached objects instead of creating them
8128         * Splitter.cs: Use cached objects instead of creating them
8129         * FontDialog.cs: Use cached objects instead of creating them
8130         * PropertyGridView.cs: Use cached objects instead of creating them
8131         * MessageBox.cs: Use cached objects instead of creating them
8132         * FileDialog.cs: Use cached objects instead of creating them
8133         * ThemeWin32Classic.cs: Use cached objects instead of creating them
8134         * TreeView.cs: Use cached objects instead of creating them
8135         
8136 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
8137
8138         * Control.cs: use Equals to compare the font since no == op
8139         * ScrollBar.cs: use Equals to compare the font since no == op
8140
8141 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
8142
8143         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
8144
8145 2005-04-01  Jackson Harper  <jackson@ximian.com>
8146
8147         * Binding.cs: Implement IsBinding.
8148         * BindingManagerBase.cs:
8149         * PropertyManager.cs:
8150         * CurrencyManager.cs: Add IsSuspended property.
8151
8152 2005-04-01  Jackson Harper  <jackson@ximian.com>
8153
8154         * Binding.cs: Had some IsAssignableFrom calls backwards.
8155
8156 2005-04-01  Jackson Harper  <jackson@ximian.com>
8157
8158         * Binding.cs: Handle null data members when pulling data.
8159         * PropertyManager.cs: Handle the data member being a property that
8160         does not exist.
8161
8162 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8163
8164         * DataGridTextBoxColumn.cs: fixes signature
8165         * DataGrid.cs: calls right constructor
8166
8167 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
8168
8169         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
8170         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
8171         * GridTableStylesCollection.cs: implements GridTableStylesCollection
8172         * DataGridTableStyle.cs: implements DataGridTableStyle
8173         * DataGridBoolColumn.cs: implements DataGridBoolColumn
8174         * DataGridTextBox.cs: implements DataGridTextBox
8175         * DataGridColumnStyle.cs: implements DataGridColumnStyle
8176
8177 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
8178
8179         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
8180
8181 2005-03-29  Peter Bartok  <pbartok@novell.com>
8182
8183         * Application.cs:
8184           - Properly implemented CompanyName property
8185           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
8186             returns a path that includes CompanyName, ProductName and
8187             Version (fixes bug #70330)
8188
8189 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
8190
8191         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
8192           fixes bug #72588.
8193
8194 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8195
8196         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
8197         
8198           - Added ReadOnly CheckBox
8199           - Further refactoring: moved some code from Open-/SaveFileDialog
8200             to FileDialog
8201
8202 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
8203
8204         * OpenFileDialog.cs: Fixed CheckFileExists
8205         * FileDialog.cs:
8206           Moved FileView and DirComboBox outside FileDialog class.
8207           They can now be used outside FileDialog
8208
8209 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8210
8211         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
8212         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
8213
8214 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
8215
8216         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8217           - Added missing CreatePrompt property in SaveDialog
8218           - Overall SaveDialog handling should be better now
8219           - Added non standard ShowHiddenFiles property
8220           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
8221           - Added InitialDirectory and RestoreDirectory support
8222
8223 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
8224
8225         * FileDialog.cs: Made dirComboBox usable
8226
8227 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
8228
8229         * FileDialog.cs: Added Filter support (case sensitiv)
8230
8231 2005-03-24  Jackson Harper  <jackson@ximian.com>
8232
8233         * TabControl.cs: Need a couple more pixels for the lines.
8234
8235 2005-03-23  Jackson Harper  <jackson@ximian.com>
8236
8237         * TabControl.cs: Give the tab page focus when it is selected.
8238
8239 2005-03-23  Jackson Harper  <jackson@ximian.com>
8240
8241         * TabControl.cs: Account for the drawing of tabs borders when
8242         invalidating. If the slider was clicked dont do click detection on
8243         the tabs.
8244
8245 2005-03-23  Jackson Harper  <jackson@ximian.com>
8246
8247         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
8248
8249 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
8250
8251         * CategoryGridEntry.cs: Added
8252         * GridItem.cs: Added helper properties
8253         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
8254         * GridEntry.cs: Updated code for collection
8255         * PropertyGrid.cs: Cleaned up some formatting
8256         * PropertyGridView.cs: Added drop down functionality for enums.
8257         * GridItemCollection.cs: Added enumerator logic
8258         * PropertyGridEntry.cs: Added
8259
8260 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8261
8262         * FileDialog.cs:
8263           - Removed unnecessary commented code
8264           - Fixed handling for entering the filename manually in the combobox
8265
8266 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
8267
8268         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
8269
8270 2005-03-18  Peter Bartok  <pbartok@novell.com>
8271
8272         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
8273           them being touching the border
8274
8275 2005-03-18  Peter Bartok  <pbartok@novell.com>
8276
8277         * TextControl.cs: Quick hack to center text better
8278
8279 2005-03-18  Peter Bartok  <pbartok@novell.com>
8280
8281         * ControlPaint.cs:
8282           - Don't throw NotImplemented exceptions, just print a notice once
8283             instead (requested by Miguel). This makes running existing SWF
8284             apps a bit easier
8285         * Control.cs:
8286           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
8287           - Added context menu trigger on right click
8288         * Panel.cs: Trigger invalidate on resize
8289         * StatusBar.cs:
8290           - Removed old double-buffer drawing
8291           - Added ResizeRedraw style to force proper update of statusbar
8292         * ListView.cs:
8293           - Removed debug output
8294         * ThemeWin32Classic.cs:
8295           - Fixed drawing of status bar, now draws Text property if there
8296             are no defined panels
8297
8298 2005-03-18  Jackson Harper  <jackson@ximian.com>
8299
8300         * ImageList.cs: When the image stream is set pull all the images
8301         from it.
8302         * ImageListStreamer.cs: Implement reading image list streams.
8303
8304 2005-03-18  Peter Bartok  <pbartok@novell.com>
8305
8306         * ThemeWin32Classic.cs (DrawPictureBox):
8307           - Fixed calculations for centered drawing
8308           - Fixed drawing for normal mode, not scaling the image on normal
8309
8310 2005-03-18  Peter Bartok  <pbartok@novell.com>
8311
8312         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
8313           textbox
8314         * FileDialog.cs:
8315           - Made Open/Save button the accept button for FileDialog
8316           - Tied the cancel button to the IButtonControl cancel button
8317           - Save/Open now properly builds the pathname
8318           - Now handles user-entered text
8319           - Preventing crash on right-click if no item is selected
8320           - Fixed Text property, now uses contents of textbox
8321           - Fixed SelectedText property, now just returns the text part that
8322             is selected in the text box
8323
8324 2005-03-18  Jackson Harper  <jackson@ximian.com>
8325
8326         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
8327         rect, make sure to de-adjust the interior rect after drawing the
8328         tab text.
8329
8330 2005-03-18  Peter Bartok  <pbartok@novell.com>
8331
8332         * MenuAPI.cs: Remove menu *before* executing selected action to
8333           prevent the menu from 'hanging around'
8334           
8335 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
8336
8337         * XplatUIOSX.cs: Implemented WorkingArea property
8338
8339 2005-03-17  Peter Bartok  <pbartok@novell.com>
8340
8341         * XplatUIX11.cs: Fixed menu coord calculations
8342         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
8343           for calculating offsets
8344
8345 2005-03-17  Peter Bartok  <pbartok@novell.com>
8346
8347         * Hwnd.cs: Do not consider menu presence for default client
8348           rectangle location/size
8349         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
8350           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
8351           translation functions
8352         * FileDialog.cs: Fixed (what I presume is a) typo
8353
8354 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
8355
8356         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
8357           X access (avoids X-Async errors)
8358
8359 2005-03-16  Jackson Harper  <jackson@ximian.com>
8360
8361         * TabControl.cs: Raise the SelectedIndexChanged event.
8362
8363 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
8364
8365         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
8366           - Removed vertical ToolBar and replaced it with a custom panel
8367             (desktop and home button already work)
8368           - Added Help button (some controls get resized or relocated then)
8369           - Draw correct text depending on Open or Save.
8370           - Fixed some typos...
8371
8372 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
8373
8374         * ScrollBar.cs:
8375           - Only change Maximum and Minimum when need it (bug fix)
8376
8377 2005-03-15  Peter Bartok  <pbartok@novell.com>
8378
8379         * Form.cs: Use Handle for icon, to trigger creation if
8380           the window does not yet exist
8381         * Control.cs:
8382           - CanSelect: Slight performance improvement
8383           - Focus(): Preventing possible recursion
8384           - Invalidate(): Removed ControlStyle based clear flag setting
8385           - WM_PAINT: fixed logic for calling OnPaintBackground
8386           - WM_ERASEBKGND: Fixed logic, added call to new driver method
8387             EraseWindowBackground if the control doesn't paint background
8388         * XplatUIWin32.cs:
8389           - Moved EraseWindowBackground() method to internal methods
8390           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
8391             is sent via SendMessage on BeginPaint call on Win32
8392         * XplatUIX11.cs:
8393           - Added EraseWindowBackground() method
8394           - No longer sends WM_ERASEBKGND on .Expose, but on call to
8395             PaintEventStart, which more closely matches Win32 behaviour
8396           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
8397           - Fixed SetFocus() to properly deal with client and whole windows
8398         * Hwnd.cs: Added ErasePending property
8399         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
8400         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
8401
8402 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
8403
8404         * XplatUIOSX.cs:
8405           - Fix hard loop when timers exist.
8406           - Fix bugs with middle and right click for 3 button mice.
8407
8408 2005-03-11  Peter Bartok  <pbartok@novell.com>
8409
8410         * XplatUIX11.cs:
8411           - get_WorkingArea: Need to call X directly, GetWindowPos only
8412             returns cached data now
8413           - Added sanity check to GetWindowPos hwnd usage
8414
8415 2005-03-11  Jackson Harper  <jackson@ximian.com>
8416
8417         * BindingManagerBase.cs: This method isn't used anymore as
8418         PullData now updates the data in the control.
8419
8420 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
8421
8422         * Form.cs: fixes menu drawing on X11
8423         * MenuAPI.cs:  fixes menu drawing on X11
8424
8425 2005-03-11  Peter Bartok  <pbartok@novell.com>
8426
8427         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
8428           from Jonathan Gilbert; should fix bug #73606
8429         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
8430           in Screen coordinates. Thanks, Jordi.
8431         * Form.cs: Added missing attribute
8432
8433 2005-03-11  Peter Bartok  <pbartok@novell.com>
8434
8435         * Form.cs:
8436           - Rudimentary Mdi support
8437           - Removed outdated FormParent code
8438           - Implemented lots of missing properties and methods, still missing
8439             transparency support
8440           - Added missing attributes
8441           - Implemented support for MaximumBounds
8442           - Added firing of various events
8443         * XplatUI.cs: Added SetIcon() method
8444         * XplatUIDriver.cs: Added SetIcon() abstract
8445         * XplatUIOSX.cs: Stubbed out SetIcon() method
8446         * XplatUIX11.cs:
8447           - Implemented SetIcon() support
8448           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
8449           - Switched to unix line endings
8450         * XplatUIWin32.cs:
8451           - Made POINT internal so for can access it as part of MINMAX
8452           - Implemented SetIcon() support
8453           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
8454             native Mdi support again, might have to go managed)
8455         * Control.cs: Now fires the StyleChanged event
8456         * MdiClient.cs: Added; still mostly empty
8457
8458 2005-03-10  Peter Bartok  <pbartok@novell.com>
8459
8460         * SaveFileDialog.cs: Added emtpy file
8461
8462 2005-03-08  Peter Bartok  <pbartok@novell.com>
8463
8464         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
8465           in turn triggers OnCreateContro) when creating a handle for the
8466           first time.
8467         * TextControl.cs: Fixed endless loop in certain cases when
8468           replacing the current selection
8469
8470 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
8471
8472         * ScrollBar.cs:
8473           - Honors NewValue changes in Scroll events allowing apps to change it
8474           - Adds First and Last Scroll events
8475           - Fixes Thumb events
8476
8477 2005-03-07  Peter Bartok  <pbartok@novell.com>
8478
8479         * Hwnd.cs: Added DefaultClientRectangle property
8480         * XplatUI.cs: Now using the X11 driver Where() method, which provides
8481           more detailed debug information
8482         * XplatUIX11.cs:
8483           - Fixed size-change feedback loop, where we would pull an old size
8484             off the queue and mistakenly change our window's size to an
8485             earlier value
8486           - Now compressing ConfigureNotify events, to reduce looping and
8487             redraw issues
8488         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
8489           is called
8490
8491 2005-03-07  Jackson Harper  <jackson@ximian.com>
8492
8493         * Binding.cs: Push data pushes from data -> property. Check if the
8494         property is readonly when attempting to set it.
8495
8496 2005-03-07  Jackson Harper  <jackson@ximian.com>
8497
8498         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
8499         instead of IsSubclassOf. Pulling data now sets the value on the
8500         control.
8501         * PropertyManager.cs:
8502         * CurrencyManager.cs: Just need to pull data when updating now,
8503         because PullData will set the value on the control.
8504
8505 2005-03-04  Jackson Harper  <jackson@ximian.com>
8506
8507         * Binding.cs: Implement data type parsing and converting on pulled
8508         data. TODO: Are there more ways the data can be converted?
8509
8510 2005-03-04  Jackson Harper  <jackson@ximian.com>
8511
8512         * Binding.cs: Support <Property>IsNull checks. Also bind to the
8513         controls Validating method so we can repull the data when the
8514         control loses focus.
8515
8516 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
8517
8518         * ColumnHeader.cs:
8519           - Fixes null string format
8520           
8521         * ListView.cs:
8522           - Adds enum type checks
8523           - Fixes redrawing and recalc need after changing some properties
8524           - Fixes on focus_item set after the event
8525           - Fixes adding columns after the control has been created
8526           
8527         * ThemeWin32Classic.cs:
8528           - Fixes CheckBox focus rectangle
8529           - Fixes ColumnHeader drawing
8530
8531
8532 2005-03-03  Jackson Harper  <jackson@ximian.com>
8533
8534         * Binding.cs: Bind to <Property>Changed events so we can detect
8535         when properties are changed and update the data.
8536
8537 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
8538
8539         * ImageList.cs:
8540           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
8541           - Fixes ImageList constructor with ImageList container
8542           - Fixes image scaling (wrong parameters at DrawImage)
8543
8544 2005-02-02  Jackson Harper  <jackson@ximian.com>
8545
8546         * Binding.cs: Make property searches case-insensitive. Eliminate
8547         some duplicated code.
8548
8549 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
8550
8551         * ComboBox.cs:
8552                 - Handle focus event
8553                 - Fix scrollbar events
8554                 - Discard highlighted item if remove it
8555                 - Fixes SelectedItem with strings
8556
8557 2005-03-01  Peter Bartok  <pbartok@novell.com>
8558
8559         * Control.cs:
8560           - Fixed Visible property, now follows (once again) parent chain
8561             to return false if any control in the chain is visible=false
8562           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
8563           - Fixed several places where is_visible instead of Visible was used
8564           - Implemented FIXME related to focus selection when setting focused
8565             control to be invisible
8566
8567         * XplatUIWin32.cs: Now using proper method to find out if window is
8568           visible. Thanks to Jordi for pointing it out
8569
8570 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
8571
8572         * ComboBox.cs: show/hide scrollbar instead of creating it
8573
8574 2005-02-27  Jackson Harper  <jackson@ximian.com>
8575
8576         * CurrencyManager.cs: Add PositionChanged stuff.
8577
8578 2005-02-27  Peter Bartok  <pbartok@novell.com>
8579
8580         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
8581         * XplatUIOSX.cs: Added GetMenuOrigin() stub
8582         * XplatUIWin32.cs: Implemented GetMenuOrigin()
8583         * XplatUIX11.cs:
8584           - Implemented GetMenuDC()
8585           - Implemented GetMenuOrigin()
8586           - Implemented ReleaseMenuDC()
8587           - Implemented generation of WM_NCPAINT message
8588           - Implemented generation and handling of WM_NCCALCSIZE message
8589         * Form.cs: Added debug helper message for Jordi's menu work
8590         * Hwnd.cs:
8591           - Modified ClientRect property; added setter, fixed getter to handle
8592             setting of ClientRect
8593           - Added MenuOrigin property
8594
8595 2005-02-26  Peter Bartok  <pbartok@novell.com>
8596
8597         * XplatUIX11.cs:
8598           - Destroys the caret if a window that's being destroyed contains it
8599           - Ignores expose events coming from the X11 queue for windows that
8600             already are destroyed
8601           - Now uses the proper variable for handling DestroyNotify, before we
8602             marked the wrong window as destroyed
8603           - Improved/added some debug output
8604
8605 2005-02-26  Peter Bartok  <pbartok@novell.com>
8606
8607         * X11Keyboard.cs: Fixes to work on 64bit systems
8608
8609 2005-02-26  Peter Bartok  <pbartok@novell.com>
8610
8611         * Control.cs:
8612           - Now calling OnHandleDestroyed from DestroyHandle()
8613             instead of Dispose()
8614           - Removed bogus call to controls.Remove() from DestroyHandle()
8615
8616 2005-02-26  Peter Bartok  <pbartok@novell.com>
8617
8618         * Control.cs: Properly destroy child windows when our handle is
8619           destroyed
8620
8621 2005-02-25  Peter Bartok  <pbartok@novell.com>
8622
8623         * XplatUI.cs:
8624           - Added 'DriverDebug' define to allow tracing XplatUI API calls
8625           - Alphabetized Static Methods and Subclasses
8626
8627         * XplatUIX11.cs:
8628           - Added XException class to allow custom handling of X11 exceptions
8629           - Created custom X11 error handler, tied into XException class
8630           - Added support for MONO_XEXCEPTIONS env var to allow the user
8631             to either throw an exception on X errors or continue running
8632             after displaying the error
8633           - Added handling of DestroyNotify message
8634           - Added handler for CreateNotify message (still disabled)
8635           - Improved (tried to at least) Where method to provide file and lineno
8636         * X11Structs.cs:
8637           - Added XErrorHandler delegate
8638           - Added XRequest enumeration (to suppor translation of errors)
8639
8640 2005-02-25  Jackson Harper  <jackson@ximian.com>
8641
8642         * PropertyManager.cs: Implement editing features
8643         * CurrencyManager.cs:
8644         * Binding.cs: First attempt at UpdateIsBinding
8645         * BindingManagerBase.cs: Call UpdateIsBinding before
8646         pushing/pulling data.
8647
8648 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
8649
8650         * MenuAPI.cs: Respect disabled items
8651         * ThemeWin32Classic.cs
8652                 - Caches ImageAttributes creation for DrawImageDisabled
8653                 - Fixes vertical menu line drawing
8654                 - Draws disabled arrows in disable menu items
8655
8656 2005-02-24  Peter Bartok  <pbartok@novell.com>
8657
8658         * Hwnd.cs:
8659           - Added UserData property to allow associating arbitrary objects
8660             with the handle
8661           - Fixed leak; now removing Hwnd references from static windows array
8662         * XplatUIWin32.cs:
8663           - Fixed Graphics leak in PaintEventEnd
8664           - Removed usage of HandleData, switched over to Hwnd class
8665         * HandleData.cs: Removed, obsoleted by Hwnd.cs
8666
8667 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8668
8669         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
8670         * ScrollBar.cs: Fixes bug
8671         * TrackBar.cs: removes death code, clipping, mimize refreshes,
8672          keyboard navigation enhancements
8673
8674 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
8675
8676         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
8677         * GroupBox.cs: Add control styles
8678         * Label.cs: Add control styles
8679         * UpDownBase.cs: Add control styles
8680         * ListBox.cs: Add control styles
8681         * XplatUIWin32.cs: Fixes wrong parameter order
8682
8683
8684 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
8685
8686         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
8687
8688 2005-02-23  Jackson Harper  <jackson@ximian.com>
8689
8690         * PropertyManager.cs: Implement property binding. This doesn't
8691         seem to work yet though as (I think) there are some bugs in
8692         System.ComponentModel.PropertyDescriptor.
8693         * BindingContext.cs: Use new PropertyManager constructor.
8694
8695 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
8696
8697         * ProgressBar.cs: use clip region in ProgressBar
8698         * ThemeWin32Classic.cs: use clip region in ProgressBar
8699
8700 2004-02-22  Jackson Harper  <jackson@ximian.com>
8701
8702         * BindingsCollection.cs: Remove some debug code.
8703
8704 2005-02-22  Jackson Harper  <jackson@ximian.com>
8705
8706         * BindingContext.cs:
8707         * ControlBindingsCollection.cs:
8708         * CurrencyManager.cs:
8709         * Binding.cs:
8710         * BindingManagerBase.cs: Initial implementation
8711         * BindingsCollection.cs: Add an internal contains method that the
8712         BindingManagerBase uses to ensure bindings aren't added twice to
8713         the collection.
8714         * PropertyManager.cs: Stubbed out.
8715         * Control.cs:
8716         * ContainerControl.cs: Hook up databinding
8717         
8718 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
8719
8720         * XplatUIOSX.cs:
8721           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
8722           Fixed Invalidate/Update chain.
8723           Fixed tons of other minor bugs (this is almost a complete rewrite).
8724
8725 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
8726
8727         * ComboBox.cs: do subcontrol creation when the control is created
8728
8729 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8730
8731         * Label.cs: fixes image drawing (image and imagelist)
8732         * ThemeWin32Classic.cs: cache brushes
8733         
8734 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8735
8736         * Form.cs: Move menu drawing code to Theme class
8737         * ComboBox.cs: Move ComboBox drawing code to Theme class
8738         * MenuItem.cs: Move menu drawing code to Theme class
8739         * MenuAPI.cs: Move menu drawing code to Theme class
8740         * ThemeWin32Classic.cs: New methods
8741         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
8742         * ListBox.cs: Move Listbox drawing code to Theme class
8743         * Theme.cs: New methods
8744
8745 2005-02-20  Peter Bartok  <pbartok@novell.com>
8746
8747         * Control.cs:
8748           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
8749             only process mnemonics on those)
8750           - Fixed event sequence for key handling; first calling
8751             ProcessKeyEventArgs now
8752         * TextBoxBase.cs:
8753           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
8754             for processing non-character keys
8755           - Fixed WM_CHAR to generate proper event sequence before processing
8756         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
8757           generation
8758
8759 2005-02-19  Peter Bartok  <pbartok@novell.com>
8760
8761         * UserControl.cs: Added TextChanged event; added attributes
8762         * SizeGrip.cs: Implemented resizing and optional display of grip
8763         * Form.cs: Fixed attribute
8764         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
8765           Changed meaning of ScrollWindow bool argument; instead of the
8766           clear attribute (which will be true usually anyway), it gives the
8767           option of moving child controls as well.
8768         * XplatUIX11.cs:
8769           - Changed to match new ScrollWindow argument
8770           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
8771             now handles the implicit parent window a WM puts around us
8772         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
8773           to work)
8774         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
8775         * TreeView.cs: Adjusted to new ScrollWindow arguments
8776
8777 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
8778
8779         * Form.cs: Menu integration with non-client area
8780         * MenuItem.cs: Menu integration with non-client area
8781         * MenuAPI.cs: Menu integration with non-client area
8782
8783 2005-02-18  Peter Bartok  <pbartok@novell.com>
8784
8785         * MethodInvoker.cs: Added
8786         * MdiLayout.cs: Added
8787         * SendKeys.cs: Started implementation
8788         * ErrorIconAlignment.cs: Added
8789
8790 2005-02-18  Peter Bartok  <pbartok@novell.com>
8791
8792         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
8793         * Form.cs: Added handling for Menu-related Non-client messages
8794
8795 2005-02-17  Peter Bartok  <pbartok@novell.com>
8796
8797         * UpDownBase.cs: Fixed typo, compilation errors
8798         * DomainUpDown.cs: Fixed attribute value
8799
8800 2005-02-16  Miguel de Icaza  <miguel@novell.com>
8801
8802         * UpDownBase.cs: Attach entry events.
8803         Propagate events.
8804         Add ForeColor property, Focused, InterceptArrowKeys (interception
8805         does not work yet).
8806
8807 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
8808
8809         * Form.cs:
8810                 - Redraw non client are on Setmenu
8811                 - Calc proper menu starting point
8812
8813 2005-02-17  Peter Bartok  <pbartok@novell.com>
8814
8815         * Application.cs: Fixed message_filter check
8816
8817 2005-02-17  Peter Bartok  <pbartok@novell.com>
8818
8819         * Application.cs: Now calls registered message filters
8820         * DockStyle.cs: Fixed attribute
8821         * Form.cs: Fixed attribute
8822         * Menu.cs: Fixed attribute
8823         * ToolTip.cs: Fixed attribute
8824         * TreeNode.cs: Added missing attributes and arranged in regions
8825         * PropertyGrid.cs: Fixed signatures
8826         * TreeNodeCollection.cs: Added attributes
8827         * Splitter.cs: Added missing attributes; arranged into regions
8828         * TabPage.cs: Added missing attributes; arranged into regions
8829         * TextBoxBase.cs: Added missing attributes
8830         * TextBox.cs: Added missing attributes
8831         * ArrangeDirection.cs: Added missing attributes
8832         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
8833         * ToolBarButton.cs: Fixed attributes
8834         * AnchorStyles.cs: Fixed attribute
8835         * TrackBar.cs: Fixed attributes
8836         * TabControl.cs: Added missing attributes and arranged into regions
8837         * ToolBar.cs: Fixed attribute
8838         * StatusBar.cs: Fixed signature, organized into regions and added
8839           attributes
8840         * StatusBarPanel.cs: Fixed attributes
8841         * ContentsResizedEventArgs.cs: Implemented
8842         * ContentsResizedEventHandler.cs: Implemented
8843         * DateBoldEventArgs.cs: Implemented
8844         * DateBoldEventHandler.cs: Implemented
8845         * UpDownEventArgs.cs: Implemented
8846         * UpDownEventHandler.cs: Implemented
8847         
8848 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
8849
8850         * Form.cs: first Menu NC refactoring
8851         * MenuAPI.cs: first Menu NC refactoring
8852         
8853 2005-02-16  Peter Bartok  <pbartok@novell.com>
8854
8855         * ImeMode.cs: Added missing attributes
8856         * Menu.cs: Fixed attribute
8857         * GroupBox.cs: Fixed attribute
8858         * Label.cs: Fixed attribute
8859         * ColorDialog.cs (RunDialog): Removed TODO attribute
8860         * ComboBox.cs: Fixed attributes
8861         * ListControl.cs: Added missing attributes
8862         * PropertyGrid.cs: Fixed attributes
8863         * Control.cs: Fixed attributes
8864         * ListViewItem.cs: Added TypeConverter attribute
8865         * NotifyIcon.cs: Fixed attributes
8866         * ListView.cs: Fixed attributes
8867         * ButtonBase.cs: Fixed attribute
8868         * ImageList.cs: Added missing attributes
8869         * ContainerControl.cs: Fixed signature
8870         * CheckedListBox.cs: Fixed attribute; added missing attributes
8871         * Panel.cs: Fixed attributes
8872         * PropertyTabChangedEventArgs.cs: Added missing attribute
8873         * PropertyValueChangedEventArgs.cs: Added missing attribute
8874         * Binding.cs: Fixed attribute
8875         * ListViewItemConverter: Implemented ListViewSubItemConverter class
8876         * ListBox.cs: Fixed attribute; added missing attributes;
8877         * ScrollableControl.cs: Added missing attributes
8878         * PictureBox.cs: Added missing attributes; implemented missing property
8879         * DateTimePicker.cs: Added missing attributes
8880         * Theme.cs (ToolWindowCaptionHeight): Fixed type
8881         * MonthCalendar.cs: Fixed attributes
8882         * StatusBarPanel.cs: Added missing attributes
8883         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
8884
8885 2005-02-16  Peter Bartok  <pbartok@novell.com>
8886
8887         * TextBoxBase.cs: The previous method to enforce height yet remember
8888           the requested high was less than ideal, this is an attempt to do
8889           it better.
8890         * Control.cs: Added comment about possible problem
8891         * Copyright: Updated format
8892         * GridItemType.cs: Fixed swapped values
8893
8894 2005-02-15  Jackson Harper  <jackson@ximian.com>
8895
8896         * BaseCollection.cs: Use property so we never access an
8897         uninitialized list. Also initialize the list in the property.
8898
8899 2005-02-15  Peter Bartok  <pbartok@novell.com>
8900
8901         * GroupBox.cs (ProcessMnemonic): Implemented
8902         * Label.cs (ProcessMnemonic): Implemented
8903         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
8904           hotkeys
8905
8906 2005-02-15  Peter Bartok  <pbartok@novell.com>
8907
8908         * RadioButton.cs (ProcessMnemonic): Implemented
8909         * CheckBox.cs (ProcessMnemonic): Implemented
8910         * Control.cs:
8911           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
8912             handling
8913           - Added internal method to allow calling ProcessMnemonic from other
8914             controls
8915         * ContainerControl.cs:
8916           - Started support for handling validation chain handling
8917           - Implemented ProcessMnemonic support
8918           - Added Select() call to Active, to make sure the active control
8919             receives focus
8920         * Form.cs: Setting toplevel flag for Forms (this was lost in the
8921           FormParent rewrite)
8922         * ThemeWin32Classic.cs:
8923           - DrawCheckBox(): Fixed stringformat to show hotkeys
8924           - DrawRadioButton(): Fixed stringformat to show hotkeys
8925         * CommonDialog.cs: Removed WndProc override, not needed
8926
8927 2005-02-14  Peter Bartok  <pbartok@novell.com>
8928
8929         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
8930           missed those in the rewrite
8931
8932 2005-02-14  Miguel de Icaza  <miguel@novell.com>
8933
8934         * NumericUpDown.cs (Increment, ToString): Add.
8935         (DecimalPlaces): implement.
8936         
8937         Add attributes.
8938         
8939         * UpDownBase.cs: Add the designer attributes.
8940
8941 2005-02-13  Peter Bartok  <pbartok@novell.com>
8942
8943         * Panel.cs: Removed border_style, now in Control
8944         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
8945           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
8946
8947 2005-02-13  Peter Bartok  <pbartok@novell.com>
8948
8949         * MouseButtons.cs: Added missing attributes
8950         * XplatUIStructs.cs: Added enumeration for title styles
8951         * LeftRightAlignment.cs: Added missing attributes
8952         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
8953           it compatible with Graphics.FromHwnd()
8954         * SelectedGridItemChangedEventArgs.cs: Fixed property type
8955         * Keys.cs: Added missing attributes
8956         * SelectionRange.cs: Added missing attributes
8957         * SelectionRangeConverter.cs: Added
8958         * XplatUI.cs:
8959           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
8960             ReleaseMenuDC methods
8961           - Renamed ReleaseWindow to UngrabWindow
8962           - Added proper startup notice to allow version identification
8963         * Form.cs:
8964           - Added missing attributes
8965           - Removed FormParent concept
8966         * Label.cs: Removed border_style field, now in Control
8967         * RadioButton.cs: Now properly selects RadioButton when focus is
8968           received
8969         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
8970         * Control.cs:
8971           - Added missing attributes
8972           - Added borderstyle handling
8973           - Removed FormParent concept support
8974           - Fixed calls to XplatUI to match changed APIs
8975           - Fixed bug that would case us to use disposed Graphics objects
8976           - Removed unneeded internal methods
8977           - PerformLayout(): Fixed to handle DockStyle.Fill properly
8978           - SelectNextControl(): Fixed to properly check common parents
8979         * TextBoxBase.cs: Removed border_style field (now in Control)
8980         * MessageBox.cs:
8981           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
8982             fixed calculations for form size
8983           - Added support for localized strings and icons
8984           - Improved form size calculations, added border
8985         * ListView.cs: Removed border_style field (now in Control)
8986         * X11Structs.cs: Moved several structs from X11 driver here
8987         * X11Keyboard.cs: Changed debug message
8988         * Application.cs: Removed FormParent concept support
8989         * CommonDialog.cs:
8990           - Resetting end_modal flag
8991           - Removed FormParent concept support
8992         * NativeWindow.cs: Removed FormParent concept support
8993         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
8994           Client area and Non-Client whole window to allow support for WM_NC
8995           messages
8996         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
8997           prevent using it until it supports Hwnd as per Geoff Norton's request
8998         * ToolBar.cs: Fixed drawing, was not doing proper drawing
8999         * PictureBox.cs: Removed border_style field, now in Control
9000         * XplatUIWin32.cs: Added new driver methods
9001
9002 2005-02-12  Peter Bartok  <pbartok@novell.com>
9003
9004         * OpacityConverter.cs: Implemented
9005         * Hwnd.cs: Internal class to support drivers that need to emulate
9006           client area/non-client area window behaviour
9007
9008 2005-02-11  Peter Bartok  <pbartok@novell.com>
9009
9010         * KeysConverter.cs: Implemented
9011
9012 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
9013
9014         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
9015         * LinkLabel: Added missing attributes
9016         * MainMenu.cs: fixes ToString
9017         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
9018         * ListBox.cs: fixes event position
9019         * TrackBar.cs: adds missing attributes and events
9020         
9021 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
9022
9023         * MenuItem.cs: Use SystemInformation and bug fixes
9024         * MenuAPI.cs: Use SystemInformation and bug fixes
9025
9026 2005-02-09  Jackson Harper  <jackson@ximian.com>
9027
9028         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
9029         their keystate otherwise things like VK_MENU get stuck "on".
9030
9031 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
9032
9033         * ListBox.cs: Fixes AddRange bug
9034         
9035 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
9036
9037         * ProgressBar.cs
9038                 - Add missing attributes
9039                 - Add missing method
9040                 
9041         * CheckedListBox.cs: Added missing attributes
9042                 - Add missing attributes
9043                 - Remove extra method
9044         
9045         * ComboBox.cs: Added missing attributes
9046         * VScrollBar.cs: Added missing attributes
9047         * ScrollBar.cs:  Added missing attributes
9048         * ListBox.cs: Fixes signature, add missing consts
9049         * LinkArea.cs:   Added missing attributes
9050         
9051
9052 2005-02-08  Peter Bartok  <pbartok@novell.com>
9053
9054         * Menu.cs: Added missing attributes
9055         * MainMenu.cs: Added missing attributes
9056         * GroupBox.cs: Added missing attributes
9057         * Label.cs: Added missing attributes
9058         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
9059         * ColorDialog.cs:
9060           - Added Instance and Options properties
9061           - Added missing attributes
9062         * Cursor.cs: Made Serializable
9063         * NotifyIcon: Added missing attributes
9064         * MenuItem.cs: Added missing attributes
9065         * TextBoxBase.cs: Implemented AppendText() and Select() methods
9066         * Panel.cs: Added Missing attributes
9067         * MonthCalendar.cs: Fixed CreateParams
9068
9069 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9070         
9071         * LinkLabel.cs:
9072                 - Fixes signature
9073                 - Fixes issues with links
9074                 - Adds the class attributes
9075
9076 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
9077         
9078         * ComboBox.cs:
9079                 - Fixes button when no items available in dropdown
9080                 - Fixes repainting problems
9081                 - Adds the class attributes
9082                 
9083 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9084
9085         * XplatUIOSX.cs: Detect the menu bar and title bar height from
9086         the current theme.  Cache these on startup.
9087
9088 2005-02-07  Jackson Harper  <jackson@ximian.com>
9089
9090         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
9091         the scrollbar buttons when they are depressed.
9092
9093 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9094
9095         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
9096         Get the display size from the main displayid.  We currently dont
9097         support multiple display configurations.
9098
9099 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
9100
9101         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
9102
9103 2005-02-07  Miguel de Icaza  <miguel@novell.com>
9104
9105         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
9106
9107 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
9108
9109         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
9110
9111 2005-02-04  Jackson Harper  <jackson@ximian.com>
9112
9113         * ThemeWin32Classic.cs: Respect the clipping rect when
9114         drawing. Only fill the intersection of clips and rects so there
9115         isn't a lot of large fills.
9116         * ScrollBar.cs: Pass the correct clipping rect to the theme
9117         engine. Remove some debug code.
9118
9119 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
9120         
9121         * DateTimePicker.cs:
9122                 - Fixed crash on DateTime.Parse, use Constructor instead
9123
9124 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9125         
9126         * MenuItem.cs:
9127         * MenuAPI.cs:
9128                 - Owner draw support (MeasureItem and DrawItem)
9129
9130 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
9131         
9132         *  Menu.cs:
9133                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
9134                 - Fixes MenuItems.Add range
9135         * MenuItem.cs:
9136                 - MergeMenu and Clone and CloneMenu functions
9137
9138 2005-02-03  Jackson Harper  <jackson@ximian.com>
9139
9140         * ScrollBar.cs: Make abstract
9141         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
9142         is abstract.
9143
9144 2005-02-03  Jackson Harper  <jackson@ximian.com>
9145
9146         * ScrollBar.cs: First part of my scrollbar fixups. This removes
9147         all the unneeded refreshes and uses invalidates with properly
9148         computed rects.
9149
9150 2005-02-03  Peter Bartok  <pbartok@novell.com>
9151
9152         * ComponentModel.cs: Added
9153         * IDataGridEditingService.cs: Added
9154         * Timer.cs: Added missing attributes
9155         * ToolTip.cs: Added missing attributes
9156
9157 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
9158
9159         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
9160
9161 2005-02-03  Peter Bartok  <pbartok@novell.com>
9162
9163         * ListBox.cs: Added missing attributes
9164
9165 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
9166         
9167         * ListBox.cs:
9168                 - Fixes font height after font change
9169                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
9170                 
9171 2005-02-02  Peter Bartok  <pbartok@novell.com>
9172
9173         * HandleData.cs: Introduced static methods to allow class
9174           to be more self-contained and track it's own HandleData objects
9175         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
9176           HandleData to use new static methods
9177
9178 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
9179
9180         * Combobox.cs:
9181                 - Fixes default size and PreferredHeight
9182                 - Missing events
9183                 - ObjectCollection.Insert implementation
9184                 
9185         * ListControl.cs
9186                 - Fixes signature
9187         * ListBox.cs:
9188                 - Several fixes
9189                 - ObjectCollection.Insert implementation
9190                 - No selection after clean
9191                 - Small fixes
9192
9193 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9194
9195         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
9196
9197 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
9198
9199         * Combobox.cs:
9200                 - Caches ItemHeight calculation for OwnerDrawVariable
9201                 - Handles dropdown properly
9202                 - Fixes several minor bugs
9203
9204 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9205
9206         * ListBox.cs:
9207                 - Fixes 71946 and 71950
9208                 - Fixes changing Multicolumn on the fly
9209                 - Fixes keyboard navigation on Multicolumn listboxes
9210
9211 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9212         
9213         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
9214         crash reporter log.
9215
9216 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9217
9218         * XplatUIOSX.cs: Allow applications to actually exit.
9219
9220 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
9221
9222         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
9223         their parent at creation time rather than lazily later.  Fixes a major
9224         regression we were experiencing.
9225
9226 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
9227
9228         * ThemeWin32Classic.cs: more date time picker painting fixes
9229         * DateTimePicker.cs: more monthcalendar drop down fixes
9230         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
9231
9232 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
9233
9234         * ScrollBar.cs:
9235                 - When moving the thumb going outside the control should stop the moving
9236                 - Adds the firing of missing events
9237                 - Fixes no button show if Size is not specified
9238                 - End / Home keys for keyboard navigation
9239
9240 2005-01-30  Peter Bartok  <pbartok@novell.com>
9241
9242         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
9243           sanity check to prevent theoretical loop
9244         * XplatUIWin32.cs (SetVisible): Removed debug output
9245         * XplatUIX11.cs (SystrayChange): Added sanity check
9246         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
9247         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
9248           behaviour, valid until the X11 client window rewrite is done
9249         * TextBox.cs (ctor): Setting proper default foreground and background
9250           colors
9251
9252 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
9253
9254         * Theme: Added DrawDateTimePicker to interface
9255         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
9256         * DateTimePicker.cs: Created (still needs keys and painting code)
9257         * DateTimePickerFormat.cs: added
9258         * MonthCalendar.cs: fixed CreateParams for popup window mode
9259           
9260 2005-01-29  Peter Bartok  <pbartok@novell.com>
9261
9262         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
9263           this should also the calculations for ligher/darker
9264         * Theme.cs: Fixed defaults for ScrollBar widths/heights
9265
9266 2005-01-29  Peter Bartok  <pbartok@novell.com>
9267
9268         * ArrangeDirection.cs: Added
9269         * ArrangeStartingPositon.cs: Added
9270         * SystemInformation.cs: Implemented
9271         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9272           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
9273           used by SystemInformation class
9274         * X11Strucs.cs: Added XSizeHints structure
9275         * MenuAPI.cs:
9276           - Fixed CreateParams to make sure the menu window is always visible
9277           - TrackPopupMenu: Added check to make sure we don't draw the
9278             menu offscreen
9279
9280 2005-01-29  Peter Bartok  <pbartok@novell.com>
9281
9282         * HandleData.cs: Added method for altering invalid area
9283         * TextBoxBase.cs: Implemented TextLength
9284
9285 2005-01-28  Peter Bartok  <pbartok@novell.com>
9286
9287         * XplatUIX11.cs: Improvement over last patch, not sending
9288           the WM_PAINT directly anymore, instead we scroll any pending
9289           exposed areas and let the system pick out the WM_PAINT later
9290
9291 2005-01-28  Peter Bartok  <pbartok@novell.com>
9292
9293         * SWF.csproj: Deleted, no longer used. Instead,
9294           Managed.Windows.Forms/SWF.csproj should be used
9295         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
9296           directly, to avoid a potential race condition with the next
9297           scroll
9298
9299 2005-01-28  Peter Bartok  <pbartok@novell.com>
9300
9301         * XplatUI.cs: Made class internal
9302
9303 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
9304
9305         * CheckedListBox.cs:
9306                 - Draw focus
9307                 - Fixed Drawing
9308                 - Missing methods and events
9309
9310 2005-01-27  Peter Bartok  <pbartok@novell.com>
9311
9312         * Application.cs (Run): Don't use form if we don't have one
9313
9314 2005-01-27  Peter Bartok  <pbartok@novell.com>
9315
9316         * TextBoxBase.cs (get_Lines): Fixed index off by one error
9317
9318 2005-01-27  Peter Bartok  <pbartok@novell.com>
9319
9320         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
9321         * GridItem.cs: Added; Patch by Jonathan S. Chambers
9322         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
9323         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
9324         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
9325         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
9326         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9327         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9328         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9329         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9330         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
9331         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
9332
9333 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9334
9335         * Combobox.cs:
9336                 - Draw focus on Simple Combobox
9337                 - Fixes drawing issues
9338                 - fixes 71834
9339
9340 2005-01-27  Peter Bartok  <pbartok@novell.com>
9341
9342         * Form.cs:
9343           - Place window in default location, instead of hardcoded 0/0
9344           - Send initial LocationChanged event
9345         * Control.cs:
9346           - UpdateBounds after creation to find out where the WM placed us
9347           - Make sure that if the ParentForm changes location the Form
9348             is notified
9349         * XplatUIX11.cs: XGetGeometry will not return the coords relative
9350             to the root, but to whatever the WM placed around us.
9351             Translate to root coordinates before returning toplevel
9352             coordinates
9353         * XplatUIWin32.cs: Removed debug output
9354         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
9355           flag to GetWindowPos, to allow translation of coordinates on X11
9356
9357 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
9358
9359         * ListBox.cs: connect LostFocus Event
9360
9361 2005-01-27  Peter Bartok  <pbartok@novell.com>
9362
9363         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9364           XplatUIX11.cs: Extended the Systray API
9365         * Form.cs: Removed debug output
9366         * Application.cs: Fixed focus assignment, always need to call
9367           XplatUI.Activate() since Form.Activate() has rules that may
9368           prevent activation
9369         * NotifyIcon.cs: Should be complete now
9370         * ToolTip.cs: Worked around possible timer bug
9371
9372 2005-01-27  Jackson Harper  <jackson@ximian.com>
9373
9374         * TabControl.cs:
9375         - Only invalidate the effected tabs when the
9376         selected index changes. This reduces drawing and gets rid of some
9377         flicker.
9378         - Only refresh if the tabs need to be shifted, otherwise only
9379         invalidate the slider button.
9380         - On windows the tabs are not filled to right if the slider is
9381         visible.
9382         
9383 2005-01-27  Jackson Harper  <jackson@ximian.com>
9384
9385         * TabControl.cs: Only refresh on mouseup if we are showing the
9386         slider. Also only invalidate the button whose state has changed.
9387
9388 2005-01-26  Peter Bartok  <pbartok@novell.com>
9389
9390         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
9391         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
9392           and SystrayRemove() methods
9393         * XplatUIOSX.cs: Stubbed Systray methods
9394         * XplatUIX11.cs:
9395           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
9396             methods
9397           - Fixed broken XChangeProperty calls (marshalling messed up things)
9398         * X11Structs.cs: Added enums and structs required for Size hinting
9399         * NotifyIcon.cs: Added & implemented
9400
9401 2005-01-26  Jackson Harper  <jackson@ximian.com>
9402
9403         * TabControl.cs: Space vertically layed out tabs properly.
9404
9405 2005-01-26  Peter Bartok  <pbartok@novell.com>
9406
9407         * Form.cs (CreateClientParams): Always set the location to 0,0
9408           since we're a child window.
9409
9410         * Control.cs (SetVisibleCore): Always explicitly setting the location
9411           of a toplevel window, apparently X11 doesn't like to move windows
9412           while they're not mapped.
9413
9414 2005-01-26  Jackson Harper  <jackson@ximian.com>
9415
9416         * TabControl.cs: Implement FillToRight size mode with vertically
9417         rendered tabs.
9418
9419 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9420
9421         * ControlPaint.cs, ThemeWin32Classic.cs
9422                 - Fixes DrawFocusRectangle
9423
9424 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
9425
9426         * MenuAPI.cs:
9427                 - MenuBar tracking only starts when item is first clicked
9428                 - Fixes menu hidding for multiple subitems
9429                 - Unselect item in MenuBar when item Executed
9430                 - Fixes bug 71495
9431
9432 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
9433
9434         * ListControl.cs:
9435                 - IsInputKey for ListBox
9436         * ListBox.cs:
9437                 - Focus item
9438                 - Shift and Control item selection
9439                 - Implement SelectionMode.MultiExtended
9440                 - Fixes RightToLeft
9441         * ComboBox.cs:
9442                 - IsInputKey implemented
9443                 - Do not generate OnTextChangedEdit on internal txt changes
9444                 
9445 2005-01-23  Peter Bartok  <pbartok@novell.com>
9446
9447         * AccessibleObject.cs: Partially implemented Select()
9448         * MonthCalendar.cs: Added missing attributes and events
9449         * Form.cs: Fixed CreateParams behaviour, now controls derived from
9450           form can properly override CreateParams.
9451         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9452           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
9453           Control performs Invalidate & Update
9454         * NativeWindow (CreateHandle): Added special handling for Form
9455           and Form.FormParent classes to allow overriding of From.CreateParams
9456         * Control.cs:
9457           - ControlNativeWindow: Renamed 'control' variable to more intuitive
9458             name 'owner'
9459           - ControlNativeWindow: Added Owner property
9460           - Removed usage of Refresh() on property changes, changed into
9461             Invalidate(), we need to wait until the queue is processed for
9462             updates, direct calls might cause problems if not all vars for
9463             Paint are initialized
9464           - Added call to UpdateStyles() when creating the window, to set any
9465             styles that CreateWindow might have ignored.
9466           - Added support for Form CreateParent overrides to UpdateStyles()
9467         * MessageBox.cs: Removed no longer needed FormParent override stuff,
9468           CreateParams are now properly overridable
9469         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
9470           CreateParams are now properly overridable
9471
9472 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
9473
9474         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
9475         OnTextBoxChanged.
9476
9477         Capture LostFocus and OnTextBoxChanged.  The later introduces a
9478         recursive invocation that I have not figured out yet.
9479
9480         Reset the timer when not using (it was accumulating).
9481
9482
9483         (OnTextBoxChanged): Set UserEdit to true here to track whether the
9484         user has made changes that require validation.
9485
9486         Reset changing to avoid loops.
9487
9488 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
9489
9490         * NumericUpDown.cs: Display value at startup.
9491
9492         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
9493         ValidateEditText.
9494
9495         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
9496         filled in.  Added some basic parsing of text.
9497
9498         Still missing the OnXXX method overrides, and figuring out the
9499         events that must be emitted.
9500
9501         * UpDownBase.cs: Handle UserEdit on the Text property.
9502         
9503 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
9504
9505         * ComboBox.cs:
9506           - Fixes IntegralHeight
9507           - ToString method
9508
9509 2005-01-21  Jackson Harper  <jackson@ximian.com>
9510
9511         * TabControl.cs: Set the SelectedIndex property when SelectedTab
9512         is set so that the page visibility is updated and the tabs are
9513         sized correctly.
9514
9515 2005-01-21  Jackson Harper  <jackson@ximian.com>
9516
9517         * TabControl.cs: Use cliping rectangle for blitting. Give the
9518         theme the clipping rect so we can do clipping while
9519         drawing. Remove some debug code.
9520
9521 2005-01-21  Jackson Harper  <jackson@ximian.com>
9522
9523         * TabPage.cs: Add a new method so tab pages can force the tab
9524         control to recalculate the tab page sizes.
9525         * TabControl.cs: UpdateOwner needs to make the tab control recalc
9526         sizes.
9527
9528 2005-01-20  Jackson Harper  <jackson@ximian.com>
9529
9530         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
9531
9532 2005-01-20  Jackson Harper  <jackson@ximian.com>
9533
9534         * TreeView.cs: Set the bounds for nodes properly. They were
9535         getting screwed up when checkboxes were not enabled, but images
9536         were.
9537
9538 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
9539
9540         * ListBox.cs:
9541                 - Owner draw support
9542                 - Fixes
9543                 
9544 2005-01-20  Jackson Harper  <jackson@ximian.com>
9545
9546         * XplatUIStructs.cs: More misc keys
9547         * X11Keyboard.cs: Ignore some control keys.
9548
9549 2005-01-20  Jackson Harper  <jackson@ximian.com>
9550
9551         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
9552         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
9553
9554 2005-01-19  Peter Bartok  <pbartok@novell.com>
9555
9556         * Control.cs: Un-selecting the control when it is loosing focus
9557
9558 2005-01-19  Jackson Harper  <jackson@ximian.com>
9559
9560         * TreeView.cs: Hook up to the text controls leave event so we can
9561         end editing when the users clicks outside the text box.
9562         
9563 2005-01-19  Jackson Harper  <jackson@ximian.com>
9564
9565         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
9566         get set in the conversion array.
9567
9568 2005-01-19  Peter Bartok  <pbartok@novell.com>
9569
9570         * Application.cs (ModalRun): Added a call to CreateControl to ensure
9571           focus is properly set
9572         * Button.cs:
9573           - Added missing attributes
9574           - removed styles, those are already set in the base class
9575         * ButtonBase.cs:
9576           - Added missing attributes
9577           - Added clip window styles
9578         * CheckBox.cs: Added missing attributes
9579         * CommonDialog.cs:
9580           - FormParentWindow.CreateParams: Added required clip styles
9581         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
9582           also filters modifier keys
9583         * MessageBox.cs:
9584           - Added assignment of Accept and Cancel button to enable Enter
9585             and Esc keys in MessageBox dialogs
9586           - FormParentWindow.CreateParams: Added required clip styles
9587         * RadioButton.cs: Added missing attributes
9588         * TextControl.cs: No longer draws selection if control does not
9589           have focus
9590         * TextBoxBase.cs:
9591           - Now draws simple rectangle around test area to make it obvious
9592             there's a control. This is a hack until we properly support borders
9593           - A few simple fixes to support selections better, now erases selected
9594             text when typing, and resets selection when using movement keys
9595
9596 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
9597
9598         * UpDownBase.cs: Added some new properties.
9599
9600         * DomainUpDown.cs: Implement a lot to get my test working.
9601
9602 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9603
9604         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
9605
9606 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9607
9608         * OSXStructs (WindowAttributes): Fixed csc complaints
9609
9610 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9611
9612         * XplayUIOSX.cs:
9613           OSXStructs.cs: Initial refactor to move enums and consts into
9614           OSXStructs and use them in the driver for greater readability.
9615
9616 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
9617
9618         * XplatUIOSX.cs: Initial support for Standard Cursors.
9619         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
9620
9621 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
9622
9623         * ComboBox.cs: ability to change style when the ctrl is already
9624         created, missing methods and events, bug fixes, signature fixes
9625
9626 2005-01-19  Peter Bartok  <pbartok@novell.com>
9627
9628         * Cursors.cs (ctor): Added ctor to fix signature
9629
9630 2005-01-18  Peter Bartok  <pbartok@novell.com>
9631
9632         * Button.cs: Implemented DoubleClick event
9633         * ButtonBase.cs:
9634           - Fixed keyboard handling to behave like MS, where the press of
9635             Spacebar is equivalent to a mousedown, and the key release is
9636             equivalent to mouseup. Now a spacebar push will give the same
9637             visual feedback like a mouse click.
9638           - Added missing attributes
9639           - Added ImeModeChanged event
9640           - Added support for generating DoubleClick event for derived classes
9641         * CheckBox.cs:
9642           - Implemented DoubleClick event
9643           - Added missing attributes
9644         * CommonDialog.cs: Added missing attribute
9645         * ContextMenu.cs: Added missing attributes
9646         * RadioButton.cs:
9647           - AutoChecked buttons do not allow to be unselected when clicked
9648             (otherwise we might end up with no selected buttons in a group)
9649           - Added missing attributes
9650           - Implemented DoubleClickEvent
9651         * ThreadExceptionDialog.cs: Enabled TextBox code
9652
9653 2005-01-18  Peter Bartok  <pbartok@novell.com>
9654
9655         * Form.cs: Removed debug output
9656         * Button.cs: Added support for DoubleClick method
9657
9658 2005-01-18  Peter Bartok  <pbartok@novell.com>
9659
9660         * Form.cs:
9661           - Added method to parent window that allows triggering size
9662             calculations when a menu is added/removed
9663           - set_Menu: Cleaned up mess from early days of Form and Control,
9664             now properly triggers a recalc when a menu is added/removed
9665           - Added case to select form itself as focused form if no child
9666             controls exist
9667           - Added PerformLayout call when showing dialog, to ensure properly
9668             placed controls
9669         * Control.cs:
9670           - Select(): Made internal so Form can access it
9671           - Focus(): Only call Xplat layer if required (avoids loop), and sets
9672             status
9673         * Application.cs (Run): Removed hack and calls PerformLayout instead
9674           to trigger calculation when Form becomes visible
9675
9676 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
9677
9678         * ComboBox.cs: fixes for ownerdraw
9679
9680 2005-01-18  Peter Bartok  <pbartok@novell.com>
9681
9682         * TextControl.cs:
9683           - Sentinel is no longer static, each Document gets it's own, this
9684             avoids locking or alternatively overwrite problems when more
9685             than one text control is used simultaneously.
9686           - Switched to use Hilight and HilightText brushes for text selection
9687
9688         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
9689
9690 2005-01-18  Peter Bartok  <pbartok@novell.com>
9691
9692         * Control.cs:
9693           - Hooked up the following events:
9694                 o ControlAdded
9695                 o ControlRemoved
9696                 o HandleDestroyed
9697                 o ImeModeChanged
9698                 o ParentChanged
9699                 o TabStopChanged
9700                 o Invalidated
9701                 o SystemColorsChanged
9702                 o ParentFontChanged
9703                 o Move
9704           - Removed debug output
9705           - Added a call to the current theme's ResetDefaults when a color change
9706             is detected
9707         * Form.cs: Now setting the proper ImeMode
9708         * Theme.cs: Defined a method to force recreation of cached resources
9709           and rereading of system defaults (ResetDefaults())
9710         * ThemeWin32Classic.cs: Added ResetDefaults() stub
9711
9712 2005-01-17  Peter Bartok  <pbartok@novell.com>
9713
9714         * Control.cs: Added missing attributes
9715
9716 2005-01-17  Jackson Harper  <jackson@ximian.com>
9717
9718         * TreeNode.cs: Implement editing. Add missing properties selected
9719         and visible.
9720         * TreeView.cs: Implement node editing. Also some fixes to use
9721         Invalidate (invalid area) instead of Refresh when selecting.
9722
9723 2005-01-17  Peter Bartok  <pbartok@novell.com>
9724
9725         * Control.cs:
9726           - Implemented InvokeGotFocus() method
9727           - Implemented InvokeLostFocus() method
9728           - Implemented InvokePaint() method
9729           - Implemented InvokePaintBackground() method
9730           - Implemented InvokeClick() method
9731           - Implemented FindForm() method
9732           - Implemented RectangleToClient() method
9733           - Implemented ClientToRectangle() method
9734           - Implemented ResetBackColor() method
9735           - Implemented ResetCursor() method
9736           - Implemented ResetFont() method
9737           - Implemented ResteForeColor() method
9738           - Implemented ResetImeMode() method
9739           - Implemented ResetLeftToRight() method
9740           - Implemented ResetText() method
9741           - Implemented Scale() methods
9742           - Implemented ScaleCore() method
9743           - Implemented Update() method
9744           - Removed unused variables
9745           - Stubbed AccessibilityNotifyClients and
9746             ControlAccessibleObject.NotifyClients() methods (dunno what to do
9747             with those yet)
9748           - Now setting proper default for RightToLeft property
9749           - Fixed bug in SetClientSizeCore that would cause windows to get
9750             really big
9751           - Now sending Click/DoubleClick events
9752           - Now selecting controls when left mouse button is clicked on
9753             selectable control
9754         * AccessibleEvents.cs: Added
9755         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
9756         * XplatUIOSX.cs: Stubbed UpdateWindow() method
9757         * XplatUIWin32.cs: Implemented UpdateWindow() method
9758         * XplatUIX11.cs: Implemented UpdateWindow() method
9759         * Form.cs: Removed stray semicolon causing CS0162 warning
9760         * ThemeWin32Classic.cs: Fixed unused variable warnings
9761         * ScrollableControl.cs: Now calls base method for ScaleCore
9762         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
9763           style to avoid interference with internal click handler (which is
9764           different than standard Control click handling)
9765         * RadioButton.cs:
9766           - Now unchecks all sibling radio buttons when control is
9767             selected (Fixes #68756)
9768           - Removed internal tabstop variable, using the one inherited from
9769             Control
9770
9771 2005-01-17  Jackson Harper  <jackson@ximian.com>
9772
9773         * NavigateEventArgs.cs: Fix base type.
9774         * LinkLabel.cs: Sig fix
9775         
9776 2005-01-17  Jackson Harper  <jackson@ximian.com>
9777
9778         * TreeView.cs: Only invalidate the effected nodes bounds when
9779         selecting nodes.
9780
9781 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9782
9783         * XplatUIWin32.cs: fixes Win32 marshaling
9784         * XplatUIX11.cs: fixes method signature
9785
9786 2005-01-17  Peter Bartok  <pbartok@novell.com>
9787
9788         * XplatUIX11.cs: Clean up resources when we no longer need them
9789
9790 2005-01-17  Peter Bartok  <pbartok@novell.com>
9791
9792         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
9793           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
9794           and DestroyCursor() methods.
9795         * Cursor.cs: Partially implemented, now supports standard cursors;
9796           still contains some debug code
9797         * Cursors.cs: Implemented class
9798         * Control.cs:
9799           - WndProc(): Added handling of WM_SETCURSOR message, setting the
9800             appropriate cursor
9801           - Implemented Cursor property
9802           - Replaced break; with return; more straightforwar and possibly
9803             faster
9804           - Now properly setting the result for WM_HELP
9805         * X11Structs.cs: Added CursorFontShape enum
9806         * XplatUIStructs.cs:
9807           - Added StdCursor enum (to support DefineStdCursor() method)
9808           - Added HitTest enum (to support sending WM_SETCURSOR message)
9809         * XplatUIX11.cs:
9810           - Now sends the WM_SETCURSOR message
9811           - Implemented new cursor methods
9812         * XplatUIOSX.cs: Stubbed new cursor methods
9813         * XplatUIWin32.cs:
9814           - Implemented new cursor methods
9815           - Added GetSystemMetrics function and associated enumeration
9816
9817 2005-01-15  Peter Bartok  <pbartok@novell.com>
9818
9819         * Control.cs:
9820           - WndProc(): Now handles EnableNotifyMessage
9821           - SelectNextControl(): Fixed bug where if no child or sibling
9822             controls exist we looped endlessly
9823
9824 2005-01-14  Jackson Harper  <jackson@ximian.com>
9825
9826         * TreeView.cs: Recalculate the tab pages when a new one is added
9827         so that the proper bounding rects are created.
9828
9829 2005-01-14  Jackson Harper  <jackson@ximian.com>
9830
9831         * TreeView.cs: Draw a gray box instead of a grip in the lower
9832         right hand corner when there are both horizontal and vertical
9833         scroll bars.
9834
9835 2005-01-14  Jackson Harper  <jackson@ximian.com>
9836
9837         * Control.cs: When erasing backgrounds use FromHwnd instead of
9838         FromHdc when there is a NULL wparam. This occurs on the X driver.
9839         * XplatUIX11.cs: Set the wparam to NULL.
9840
9841 2005-01-13  Jackson Harper  <jackson@ximian.com>
9842
9843         * PictureBox.cs: Implement missing methods (except ToString, need
9844         to test that on windows) and events. When visibility is changed we
9845         need to redraw the image because the buffers are killed. When size
9846         is changed refresh if the sizemode needs it.
9847
9848 2005-01-13  Peter Bartok  <pbartok@novell.com>
9849
9850         * Control.cs (SelectNextControl): Was using wrong method to select
9851           a control
9852
9853 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9854
9855         * ComboBox.cs: fixes dropstyle
9856
9857 2005-01-13  Peter Bartok  <pbartok@novell.com>
9858
9859         * Form.cs:
9860           - Implemented Select() override
9861           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
9862           - Now sets keyboard focus on startup
9863         * Control.cs (SelectNextControl): Now properly handles directed=true
9864         * TextBoxBase.cs:
9865           - WndProc: Now passes tab key on to base if AcceptTabChar=false
9866           - Added (really bad) focus rectangle (mostly for testing)
9867         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
9868           to enforce redraw on focus changes
9869         * ContainerControl.cs:
9870           - Fixed detection of Shift-Tab key presses
9871           - Fixed traversal with arrow keys
9872         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
9873           gonna keep this or if it's complete yet
9874         
9875 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
9876
9877         * ComboBox.cs: missing properties, fixes
9878
9879 2005-01-13  Peter Bartok  <pbartok@novell.com>
9880
9881         * Panel.cs (ctor): Setting Selectable window style to off
9882         * Splitter.cs (ctor): Setting Selectable window style to off
9883         * GroupBox.cs (ctor): Setting Selectable window style to off
9884         * Label.cs (ctor): Setting Selectable window style to off
9885
9886 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
9887
9888         * UpDownBase.cs (InitTimer): If the timer has been already
9889         created, enable it.
9890
9891         Use a TextBox instead of a Label.
9892
9893 2005-01-12  Jackson Harper  <jackson@ximian.com>
9894
9895         * TreeView.cs: Refresh the tree after sorting the nodes. Always
9896         draw the connecting node lines (when ShowLines is true).
9897         * TreeNode.cs: The nodes index can now be updated. This is used
9898         when a node collection is sorted.
9899         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
9900         insert or an existing unsorted node collection can be sorted.
9901         
9902 2005-01-12  Peter Bartok  <pbartok@novell.com>
9903
9904         * ContainerControl.cs: Implemented ProcessDialogKeys()
9905
9906 2005-01-12  Peter Bartok  <pbartok@novell.com>
9907
9908         * Control.cs:
9909           - Implemented SelectNextControl() method
9910           - Several focus related bug fixes
9911           - Fixed Docking calculations to match MS documentation and
9912             behaviour
9913
9914 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
9915
9916         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
9917         bug fixes
9918
9919 2005-01-12  Peter Bartok  <pbartok@novell.com>
9920
9921         * Control.cs:
9922           - Fixed broken Contains() method
9923           - Implemented GetNextControl() method. Finally. This is the pre-
9924             requisite for focus handling.
9925
9926 2005-01-12  Peter Bartok  <pbartok@novell.com>
9927
9928         * OSXStrucs.cs: Added
9929
9930 2005-01-12  Peter Bartok  <pbartok@novell.com>
9931
9932         * XplatUIWin32.cs:
9933           - Removed PeekMessageFlags
9934           - Implemented SetWindowStyle() method
9935         * XplatUIStructs.cs: Added PeekMessageFlags
9936         * X11Structs: Added missing border_width field to XWindowChanges struct
9937         * XplatUIX11.cs:
9938           - PeekMessage: Now throws exception if flags which are not yet
9939             supported are passed
9940           - Implemented SetWindowStyle() method
9941           - Fixed SetZOrder to handle AfterHwnd properly
9942         * XplatUI.cs: Added SetWindowStyle() method
9943         * XplatUIDriver.cs: Added SetWindowStyle() abstract
9944         * Control.cs:
9945           - Implemented UpdateStyles() method
9946           - Implemented UpdateZOrder() method
9947         * XplatUIOSX.cs: Added SetWindowStyle() stub
9948
9949 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
9950
9951         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
9952         button mouse).
9953
9954
9955 2005-01-11  Jackson Harper  <jackson@ximian.com>
9956
9957         * TreeView.cs: Still need to draw lines to siblings even if out of
9958         the current node is out of the clip.
9959
9960 2005-01-11  Jackson Harper  <jackson@ximian.com>
9961
9962         * TreeView.cs: When setting the hbar/vbar/grip position use
9963         SetBounds so that perform layout is only called once. Also suspend
9964         and resume layout so layout is only done once for all controls.
9965         - Removed some debug fluff
9966         * SizeGrip.cs: Call base implmentation in overriding methods.
9967         - When visibility is changed the drawing buffers are killed so we
9968         need to redraw.
9969
9970 2005-01-11  Jackson Harper  <jackson@ximian.com>
9971
9972         * TreeView.cs: Calculate the open node count while drawing. This
9973         saves us an entire tree traversal for every paint operation. Use
9974         a member var for the open node count so less vars are passed around.
9975
9976 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
9977
9978         * MonthCalendar.cs:
9979         - fixed selection to use mousemove, not mouse polling on timer
9980         * ThemeWin32Classic.cs
9981         - removed redundant unused variable "no_more_content"
9982         
9983 2005-01-11  Peter Bartok  <pbartok@novell.com>
9984
9985         * XplatUIX11.cs (DoEvents): Needs to return when no more events
9986           are pending, so it now calls PeekMessage instead of GetMessage;
9987           implemented a incomplete version of PeekMessage
9988         
9989 2005-01-11  Peter Bartok  <pbartok@novell.com>
9990
9991         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
9992           I18n issues
9993         * TextBoxBase.cs: Added sending of TextChanged event
9994
9995 2005-01-10  Jackson Harper  <jackson@ximian.com>
9996
9997         * TreeView.cs: Try not to draw outside the clipping rectangle on
9998         each node element.
9999
10000 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
10001
10002         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
10003
10004 2005-01-10  Jackson Harper  <jackson@ximian.com>
10005
10006         * TreeView.cs:
10007         - Implement fast scrolling. Now only the newly
10008         exposed nodes are drawn and the old image is moved using the
10009         XplatUI::ScrollWindow method.
10010         - Factor in height of nodes when calculating whether or not the
10011         node is in the clipping rect.
10012
10013 2005-01-10  Jackson Harper  <jackson@ximian.com>
10014
10015         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
10016
10017 2005-01-10  Peter Bartok  <pbartok@novell.com>
10018
10019         * Application.cs: Added temporary hack to resolve all our resize
10020           required issues on startup. This will get fixed properly at
10021           some point in the future
10022
10023 2005-01-10  Jackson Harper  <jackson@ximian.com>
10024
10025         * SizeGrip.cs: New internal class that is used as a sizing
10026         grip control...hence the name.
10027
10028 2005-01-10  Peter Bartok  <pbartok@novell.com>
10029
10030         * Control.cs: Implemented proper TabIndex handling, now assigning
10031           a tabindex when a control is added to a container
10032         * GroupBox.cs (ctor): Now sets the Container style bit, required
10033           for Control.GetNextControl()
10034
10035 2005-01-09  Jackson Harper  <jackson@ximian.com>
10036
10037         * TextBoxBase.cs: Clear window when scrolling (fixes build).
10038
10039 2005-01-09  Peter Bartok <pbartok@novell.com>
10040
10041         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
10042           XplatUIX11.cs: Added ability to control ScrollWindow expose and
10043           an overload for ScrollWindow to allow only scrolling a rectangle
10044
10045 2005-01-09  Peter Bartok <pbartok@novell.com>
10046
10047         * Form.cs:
10048           - Implemented SetDesktopBounds method
10049           - Implemented SetDesktopLocation method
10050
10051 2005-01-08  Jackson Harper  <jackson@ximian.com>
10052
10053         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
10054         the node count has changed, this removes to VScroll::Refresh calls
10055         when drawing.
10056
10057 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
10058
10059         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
10060
10061 2005-01-07  Jackson Harper  <jackson@ximian.com>
10062
10063         * TreeNode.cs: Just update the single node when it is
10064         checked. Don't refresh after toggling, the Expand/Collapse already
10065         handles this.
10066         * TreeView.cs: Respect clipping a little more when drawing. Try
10067         not to redraw things that don't need to be redrawn. Just hide the
10068         scrollbars when they are no longer needed instead of removing
10069         them, so they don't have to be created again and again.
10070         
10071 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
10072
10073         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
10074         coordinates to window space to place the caret properly, FIXED.
10075         Implement GetWindowState & SetWindowState
10076
10077 2005-01-06  Peter Bartok <pbartok@novell.com>
10078
10079         * Form.cs:
10080           - Implemented ClientSize property
10081           - Implemented DesktopBounds property
10082           - Implemented DesktopLocation property
10083           - Implemented IsRestrictedWindow property
10084           - Implemented Size property
10085           - Implemented TopLevel property
10086           - Implemented FormWindowState property
10087         * Control.cs:
10088           - Implemented GetTopLevel() method
10089           - Implemented SetTopLevel() method
10090         * X11Structs.cs (Atom):
10091           - Added AnyPropertyType definition
10092           - Added MapState definiton and updated XWindowAttribute struct
10093         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
10094         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
10095         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
10096         * XplatUIWin32.cs:
10097           - Implemented GetWindowState() and SetWindowState() methods
10098           - Fixed Win32GetWindowLong return type
10099         * XplatUIX11.cs:
10100           - Introduced central function for sending NET_WM messages
10101           - Implemented GetWindowState() and SetWindowState() methods
10102         * TextBoxBase.cs (set_Lines):
10103           - Now uses Foreground color for text added via Text property (Duh!)
10104           - Added code to remember programmatically requested size (fixes
10105             behaviour when Multiline is set after Size)
10106           - Added AutoSize logic
10107
10108 2005-01-06  Jackson Harper  <jackson@ximian.com>
10109
10110         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
10111
10112 2005-01-06  Jackson Harper  <jackson@ximian.com>
10113
10114         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
10115         set to less then 0.
10116
10117 2005-01-06  Jackson Harper  <jackson@ximian.com>
10118
10119         * ScrollableControl.cs: Lazy init the scrollbars.
10120         
10121 2005-01-06  Jackson Harper  <jackson@ximian.com>
10122
10123         * Theme.cs: Speed up getting pens and solid brushes, by using
10124         their ARGB as a hash instead of tostring and not calling Contains.
10125
10126 2005-01-06  Peter Bartok <pbartok@novell.com>
10127
10128         * Form.cs:
10129           - Implemented OnActivated and OnDeactivate event trigger
10130           - Implemented Activate() method
10131           - Fixed ShowDialog() to activate the form that was active before
10132             the dialog was shown
10133         * XplatUIX11.cs:
10134           - Added global active_window var that tracks the currently active
10135             X11 window
10136           - Now always grabs Property changes from the root window to always
10137             catch changes on the active window property
10138           - Added code to PropertyNotify handler to send Active/Inactive
10139             messages when state changes. This puts X11 and Win32 en par on
10140             WM_ACTIVATE notifications (except for double notifications when
10141             the user clicks away from our modal window to another one of our
10142             windows)
10143
10144 2005-01-05  Jackson Harper  <jackson@ximian.com>
10145
10146         * ImageList.cs: Implment ctor
10147
10148 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10149
10150         * XplatUIOSX.cs: Implement Activate/SetTopmost
10151
10152 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10153
10154         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
10155
10156 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
10157
10158         * XplatUIOSX.cs: Implement GetActive/SetFocus.
10159
10160 2005-01-05  Peter Bartok <pbartok@novell.com>
10161
10162         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
10163           XplatUIOSX.cs: Added GetActive method to return the currently
10164           active window for the application (or null, if none is active)
10165         * Form.cs:
10166           - Implemented ActiveForm
10167           - Commented out owner assignment for modal dialogs (causes problems
10168             on Win32, since the owner will be disabled)
10169           - Reworked some Active/Focus handling (still incomplete)
10170         * CommonDialog.cs: Commented out owner assignment for modal dialogs
10171           (causes problems on Win32, since the owner will be disabled)
10172         * IWin32Window: Added ComVisible attribute
10173
10174 2005-01-05  Peter Bartok <pbartok@novell.com>
10175
10176         * ToolTip.cs (WndProc): Enable setting focus now that we have the
10177           required XplatUI functions.
10178
10179 2005-01-05  Peter Bartok <pbartok@novell.com>
10180
10181         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
10182           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
10183           to implement focus and activation handling; still incomplete and
10184           with debug output
10185
10186 2005-01-04  Peter Bartok <pbartok@novell.com>
10187
10188         * TextBoxBase.cs: Changed access level for Document property to
10189           match switch to internal for TextControl
10190
10191 2005-01-04  Peter Bartok <pbartok@novell.com>
10192
10193         * AccessibleObject: Added ComVisible attribute
10194
10195 2005-01-04  Jackson Harper  <jackson@ximian.com>
10196
10197         * X11Keyboard.cs: Remove unneeded var.
10198
10199 2005-01-04  Jackson Harper  <jackson@ximian.com>
10200
10201         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
10202         but PAINT.
10203         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
10204         ClientMessage. This makes apps exit cleanly (more often).
10205         
10206 2005-01-04  Jackson Harper  <jackson@ximian.com>
10207
10208         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
10209         handling focus, return correct colors and fonts,
10210         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
10211         handle selection, horizontal scrolling, and mouse interaction.
10212
10213 2005-01-04  Peter Bartok <pbartok@novell.com>
10214
10215         * ICommandExecutor.cs: Added
10216         * IDataGridColumnStyleEditingNotificationService.cs: Added
10217         * IFeatureSupport.cs: Added
10218         * IFileReaderService.cs: Added
10219         * IDataObject.cs: Added ComVisible attribute
10220         * AmbientProperties.cs: Added
10221         * BaseCollection.cs: Added missing attributes
10222         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
10223         * BaseCollection.cs: Added missing attributes
10224         * Binding.cs: Added TypeConverter attribute
10225         * BindingContext.cs: Added DefaultEvent attribute
10226         * BindingsCollection.cs: Added DefaultEvent attribute
10227         * Button.cs: Added DefaultValue attribute
10228         * DragEventArgs.cs: Added ComVisible attribute
10229         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
10230         * KeyEventArgs.cs: Added ComVisible attribute
10231         * KeyPressEventArgs.cs: Added ComVisible attribute
10232         * MouseEventArgs.cs: Added ComVisible attribute
10233         * NavigateEventArgs.cs: Added
10234         * NavigateEventHandler.cs: Added
10235         * FeatureSupport.cs: Added
10236         * OSFeature.cs: Added
10237         * Theme.cs: Added abstract Version property to support OSFeature
10238         * ThemeWin32Classic.cs: Added Version property to
10239           support OSFeature.Themes
10240         * ProgressBar.cs: Removed OnPaintBackground override, not required since
10241           the proper styles to avoid background drawing are set, also doesn't
10242           match MS signature
10243         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
10244         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
10245         * ScrollEventArgs.cs: Added ComVisible attribute
10246         * SplitterEventArgs.cs: Added ComVisible attribute
10247         * AccessibleSelection.cs: Added Flags attribute
10248         * Appearance.cs: Added ComVisible attribute
10249         * Border3DSide.cs: Added ComVisible attribute
10250         * Border3DStyle.cs: Added ComVisible attribute
10251         * BorderStyle.cs: Added ComVisible attribute
10252         * DragAction.cs: Added ComVisible attribute
10253         * ErrorBlinkStyle.cs: Added
10254         * ScrollEventType.cs: Added ComVisible attribute
10255         * AnchorStyles.cs: Added Editor attribute
10256         * DockStyle.cs: Added Editor attribute
10257         * HorizontalAlignment.cs: Added ComVisible attribute
10258         * HelpEventArgs.cs: Added ComVisible attribute
10259         * PaintEventArgs.cs: Added IDisposable
10260
10261 2005-01-04  Peter Bartok <pbartok@novell.com>
10262
10263         * TextControl.cs: Switched Line, LineTag and Document classes to
10264           internal
10265
10266 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10267
10268         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
10269         Simple mode, fixes, IntegralHeight, etc.
10270
10271 2005-01-04  Peter Bartok <pbartok@novell.com>
10272
10273         * TextBoxBase.cs: Using proper font variable now
10274
10275 2005-01-04  Peter Bartok <pbartok@novell.com>
10276
10277         * Form.cs (ShowDialog): Set parent to owner, if provided
10278         * GroupBox.cs: Removed unused vars
10279         * TextControl.cs:
10280           - Added GetHashCode() for Document and LineTag classes
10281           - Removed unused variables
10282           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
10283             to allow translation between continuous char position and line/pos
10284         * CheckBox.cs: Removed vars that are provided by base class
10285         * RadioButton.cs: Removed vars that are provided by base class, added
10286           new keyword where required
10287         * LinkLabel.cs: Added new keyword where required
10288         * Control.cs (WndProc): Removed unused variable
10289         * TextBoxBase.cs:
10290           - Finished SelectionLength property
10291           - Implemented SelectionStart property
10292           - Implemented Text property
10293           - Removed unused vars
10294         * MessageBox.cs: Added new keyword where required
10295         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
10296           WndProc signature
10297         * MenuAPI.cs: Added new keyword where required
10298         * ButtonBase.cs: Removed vars that are provided by base class, added
10299           new keyword where required
10300         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
10301           argument to double, to allow compiling with csc 2.0 (Atsushi ran
10302           into this)
10303         * Application.cs (Run): Now triggers the ThreadExit event
10304         * CommonDialog.cs: Added new keyword where required; now properly sets
10305           parent (owner) for dialog
10306         * XplatUIX11.cs: Commented out unused vars
10307         * StatusBar.cs: Fixed signature for Text property
10308         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
10309
10310 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
10311
10312         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
10313         TrackBar.cs, MonthCalendar.cs: remove unused vars
10314
10315 2005-01-03  Jackson Harper  <jackson@ximian.com>
10316
10317         * ThemeWin32Classic.cs:
10318         * X11Keyboard.cs: Remove unused vars.
10319
10320 2005-01-03  Peter Bartok  <pbartok@novell.com>
10321
10322         * TextBox.cs:
10323           - set_Text: Tied into TextControl
10324           - set_TextAlignment: Tied into TextControl
10325         * TextControl.cs:
10326           - Added alignment properties and implemented alignment handling
10327             and drawing (still has a bug, not generating proper expose events)
10328           - Added new Line() constructor to allow passing the line alignment
10329           - Fixed selection setting, properly handling end<start now
10330           - Added aligment considerations to RecalculateDocument()
10331         * TextBoxBase.cs:
10332           - Now properly enforces control height for single line controls
10333           - Added support for CharacterCasing
10334           - Added IsInputKey override
10335           - Fixed Keys.Enter logic
10336           - Added SetBoundsCore override
10337           - Fixed mouse selection handling
10338
10339 2005-01-03  Jackson Harper  <jackson@ximian.com>
10340
10341         * TreeView.cs:
10342           - Collapse and uncheck all nodes when CheckBoxes is disabled.
10343           - Checkboxes are always aligned to the bottom of the node,
10344           regardless of item height.
10345           - Use the node bounds to draw the text so we can center it when
10346           the item height is greater then the font height.
10347           - Node::Bounds are only the text part of the node.
10348         * TreeNode.cs: New method to combine collapsing and unchecking all
10349           nodes recursively.
10350
10351 2005-01-02  Jackson Harper  <jackson@ximian.com>
10352
10353         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
10354         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
10355         tree when a check is changed. TODO: Only refresh the checked node.
10356
10357 2004-12-30  Jackson Harper  <jackson@ximian.com>
10358
10359         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
10360         * TreeNode.cs: When collapsing make sure to never collapse the
10361         root node.
10362
10363 2004-12-29  Jackson Harper  <jackson@ximian.com>
10364
10365         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
10366         
10367 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
10368
10369         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
10370
10371 2004-12-28  Peter Bartok  <pbartok@novell.com>
10372
10373         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
10374           not yet assigned
10375
10376 2004-12-28  Peter Bartok  <pbartok@novell.com>
10377
10378         * Control.cs (WndProc): Added WM_HELP handler, now generates
10379           HelpRequested event
10380         * Form.cs: Added HelpButton property and required support code
10381         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
10382
10383 2004-12-28  Peter Bartok  <pbartok@novell.com>
10384
10385         * CommonDialog.cs:
10386           - Made DialogForm.owner variable internal
10387           - Added check to ensure owner form is set before setting
10388             owner properties in CreateParams
10389
10390 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
10391
10392         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
10393           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
10394           GetCursorPos.  Fix major visibility issues.  Rework the windowing
10395           system to support borderless/titleless windows (implements menus).
10396           Fix GetWindowPos.  Implement initial background color support for
10397           views.
10398
10399 2004-12-28  Peter Bartok  <pbartok@novell.com>
10400
10401         * Form.cs (get_CreateParams): Make sure we have an owner before using
10402           the owner variable. Implement proper default if no owner exists
10403
10404 2004-12-28  Peter Bartok  <pbartok@novell.com>
10405
10406         * In preparation for making Managed.Windows.Forms the default build target
10407           for System.Windows.Forms, the following stubbed files were added.
10408           Dialogs are currently being implemented by contributors and are only
10409           short-term place holders.
10410         * ColorDialog.cs: Initial check-in (minmal stub)
10411         * DataGrid.cs: Initial check-in (minimal stub)
10412         * DataGridLineStyle.cs: Initial check-in (minimal stub)
10413         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
10414         * DataGridTableStyle.cs: Initial check-in (minimal stub)
10415         * FontDialog.cs: Initial check-in (minimal stub)
10416         * FileDialog.cs: Initial check-in (minimal stub)
10417         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
10418         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
10419         * OpenFileDialog: Initial check-in (minimal stub)
10420         * IComponentEditorPageSite.cs: Initial check-in
10421         * Splitter.cs: Initial check-in (for Jackson)
10422         * SplitterEventArgs.cs: Initial check-in (for Jackson)
10423         * SplitterEventHandler.cs: Initial check-in (for Jackson)
10424         * TextBox.cs: Initial check-in; still needs some wiring to
10425           TextControl backend
10426         * Form.cs: Implemented ControlBox property
10427         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
10428         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
10429         * TextControl.cs: Added selection functionality; added todo header
10430         * TextBoxBase.cs:
10431           - Implemented Lines property
10432           - Implemented TextHeight property
10433           - Implemented SelectedText property
10434           - Implemented SelectionLength property
10435           - Implemented SelectAll method
10436           - Implemented ToString method
10437           - Removed and cleaned up some debug code
10438           - Implemented (still buggy) mouse text selection
10439
10440 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
10441
10442         * ComboBox.cs: Complete DropDownList implementation, fixes.
10443
10444 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
10445
10446         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
10447         * ComboBoxStyle.cs: ComboBoxStyle enum
10448         * ComboBox.cs: Initial work on ComboBox control
10449
10450 2004-12-21  Peter Bartok  <pbartok@novell.com>
10451
10452         * Control.cs (ctor, CreateParams): Moved setting of is_visible
10453           forward so that anything that creates a window gets the default,
10454           also no longer uses Visible property in CreateParams to avoid
10455           walking up the parent chain and possibly get the wrong visible
10456           status. Fixed IsVisible to no longer walk up to the parent.
10457
10458 2004-12-21  Peter Bartok  <pbartok@novell.com>
10459
10460         * Form.cs (ShowDialog): Unset modality for the proper window
10461  
10462 2004-12-20  Peter Bartok  <pbartok@novell.com>
10463
10464         * CommonDialog.cs: Initial check-in
10465
10466 2004-12-20  Peter Bartok  <pbartok@novell.com>
10467
10468         * Control.cs (Visible): Now uses the parent window instead of the
10469           client area window for the property
10470
10471         * Form.cs
10472           - ShowDialog(): Now uses the proper window for modality
10473           - The default visibility state for the form parent is now false. This
10474             will prevent the user from seeing all the changes to the form and
10475             its controls before the application hits Application.Run()
10476           - Removed some stale commented out code
10477
10478         * NativeWindow.cs:
10479           - Added FindWindow() method to have a method to check for existence
10480             of a window handle
10481           - Added ability to override default exception handling (for example
10482             when debugging with VS.Net; to do this the ExternalExceptionHandler
10483             define must be set
10484           - Removed some useless debug output
10485
10486         * XplatUIX11.cs:
10487           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
10488             not working as expected
10489           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
10490             property to allow switching back to the modal window if focus is
10491             given to another one of our windows (Application Modal)
10492           - Now only sets override_redirect if we create a window
10493             without WS_CAPTION
10494           - Moved EventMask selection before mapping of newly created window
10495             so we can catch the map event as well
10496           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
10497           - Added various Atom related DllImports
10498           - Implemented Exit() method
10499           - .ctor() : No longer shows window if WS_VISIBLE is not defined
10500             in the CreateParams
10501
10502         * MessageBox.cs: Now properly deals with the FormParent window by
10503           providing an override the FormParent CreateParams property to
10504           set as POPUP instead of OVERLAPPED window.
10505
10506 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10507
10508         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
10509         Minor code cleanup.
10510
10511 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
10512         
10513         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
10514
10515 2004-12-18  Peter Bartok  <pbartok@novell.com>
10516
10517         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
10518           implementing SetModal() method
10519
10520 2004-12-18  Peter Bartok  <pbartok@novell.com>
10521
10522         * X11Structs.cs (XGCValues): Fixed type of function element
10523         * XplatUI.cs: Added ScrollWindow() method
10524         * XplatUIDriver.cs: Added ScrollWindow() abstract
10525         * XplatUIWin32.cs: Implemented ScrollWindow() method
10526         * XplatUIX11.cs: Implemented ScrollWindow() method
10527         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
10528
10529 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10530
10531         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
10532         Some more keyboard support (INCOMPLETE)
10533
10534 2004-12-17  Peter Bartok  <pbartok@novell.com>
10535
10536         * TextControl.cs:
10537         - Added color attribute to line tags.
10538         - Added color argument to all functions dealing with tags
10539         - Added color argument support to various functions
10540         - Fixed miss-calculation of baseline/shift in certain circumstances
10541
10542         * TextBoxBase.cs: Added new color option to test code
10543
10544 2004-12-17  Jackson Harper  <jackson@ximian.com>
10545
10546         * TreeNode.cs:
10547         * MonthCalendar.cs: Signature fixes
10548
10549 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10550
10551         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
10552         keyboard event moved it.  Create a new graphics context for each paint resolves this
10553
10554 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
10555
10556         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
10557         Make caret exist and go blink blink.  Initial keyboard support.
10558         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
10559         works.
10560
10561 2004-12-17  Jackson Harper  <jackson@ximian.com>
10562
10563         * XplatUIStructs.cs: Updated set of virtual keycodes.
10564         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
10565
10566 2004-12-17  Jackson Harper  <jackson@ximian.com>
10567
10568         * XplatUIX11.cs: Prune old keyboard code.
10569
10570 2004-12-17  Jackson Harper  <jackson@ximian.com>
10571
10572         * XplatUIX11.cs: When generating mouse wparams get the modifier
10573         keys from the ModifierKeys property.
10574
10575 2004-12-17  Jackson Harper  <jackson@ximian.com>
10576
10577         * X11Keyboard.cs: Send up/down input when generating
10578         messages. Remove some unused vars.
10579
10580 2004-12-17  Jackson Harper  <jackson@ximian.com>
10581
10582         * TabControl.cs:
10583         * TreeView.cs: get rid of warnings.
10584
10585 2004-12-17  Jackson Harper  <jackson@ximian.com>
10586
10587         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
10588
10589 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
10590
10591         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
10592           CheckedListBox.cs: Implementation
10593
10594 2004-12-17  Peter Bartok  <pbartok@novell.com>
10595
10596         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
10597
10598 2004-12-16  Peter Bartok  <pbartok@novell.com>
10599
10600         * TextControl.cs:
10601           - InsertCharAtCaret(): Fixed start pos fixup
10602           - CaretLine_get: No longer derives the line from the tag, the tag
10603             could be stale if lines in the document have been added or deleted
10604           - RebalanceAfterDelete(): Fixed bug in balancing code
10605           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
10606           - Line.Streamline(): Now can also elminate leading empty tags
10607           - DumpTree(): Added a few more tests and prevented exception on
10608             uninitialized data
10609           - Added Debug section for Combining lines
10610           - Delete(): Now copies all remaining properties of a line
10611           
10612         * TextBoxBase.cs:
10613           - Left mousebutton now sets the caret (and middle button still acts
10614             as formatting tester, which must go away soon)
10615           - Added Debug section for Deleting/Combining lines
10616           - Fixed calculations for UpdateView after Combining lines
10617
10618 2004-12-16  Peter Bartok  <pbartok@novell.com>
10619
10620         * TextControl.cs: Now properly aligns text on a baseline, using the
10621           new XplatUI.GetFontMetrics() method. Simplified several calculations
10622         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
10623           defined
10624
10625 2004-12-16  Peter Bartok  <pbartok@novell.com>
10626
10627         * XplatUI.cs: Added GetFontMetrics() method
10628         * XplatUIDriver.cs: Added GetFontMetrics() abstract
10629         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
10630           into libgdiplus, our private GetFontMetrics function
10631         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
10632         * XplatUIWin32.cs: Implemented GetFontMetrics() method
10633
10634 2004-12-16  Jackson Harper  <jackson@ximain.com>
10635
10636         * XplatUIStruct.cs: Add enum for dead keys
10637         * X11Keyboard.cs: Map and unmap dead keys.
10638
10639 2004-12-16  Jackson Harper  <jackson@ximian.com>
10640
10641         * X11Keyboard.cs: Detect and use the num lock mask.
10642
10643 2004-12-16  Peter Bartok  <pbartok@novell.com>
10644
10645         * Control.cs (CreateGraphics): Added check to make sure the
10646           handle of the window exists before calling Graphics.FromHwnd()
10647
10648 2004-12-16  Peter Bartok  <pbartok@novell.com>
10649
10650         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
10651           contains a lot of code that's not supposed to be there for the
10652           real thing, but required for developing/testing the textbox
10653           backend.
10654
10655 2004-12-16  Peter Bartok  <pbartok@novell.com>
10656
10657         * TextControl.cs:
10658         - Fixed Streamline method
10659         - Added FindTag method to Line
10660         - Added DumpTree method for debugging
10661         - Added DecrementLines() method for deleting lines
10662         - Fixed UpdateView to update the cursor to end-of-line on single-line
10663           updates
10664         - Added PositionCaret() method
10665         - Fixed MoveCaret(LineDown) to move into the last line, too
10666         - Added InsertChar overload
10667         - Fixed InsertChar tag offset calculations
10668         - Added DeleteChar() method
10669         - Added Combine() method for folding lines
10670         - Fixed Delete() method, no longer allocates wasted Line object and
10671           now copies all properties when swapping nodes
10672         - Delete() method now updates document line counter
10673
10674 2004-12-15  Jackson Harper  <jackson@ximian.com>
10675
10676         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
10677         * X11Keyboard.cs: Expose the currently selected modifier keys
10678         through a property.
10679
10680 2004-12-15  Peter Bartok  <pbartok@novell.com>
10681
10682         * TextControl.cs: Initial check-in. Still incomplete
10683
10684 2004-12-15  Jackson Harper  <jackson@ximian.com>
10685
10686         * TreeNode.cs:
10687         * TreeView.cs: Fix build on csc (second time today ;-))
10688
10689 2004-12-15  Jackson Harper  <jackson@ximian.com>
10690
10691         * TreeView.cs: Store the treenodes plus/minus box bounds when it
10692         is calculated and use this for click testing.
10693         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
10694
10695 2004-12-15  Jackson Harper  <jackson@ximian.com>
10696
10697         * TreeView.cs: Pass the nodes image index to the image list when
10698         drawing that image.
10699
10700 2004-12-15  Jackson Harper  <jackson@ximian.com>
10701
10702         * X11Keyboard.cs: Set messages hwnd.
10703         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
10704         post_message calls.
10705
10706 2004-12-15  Jackson Harper  <jackson@ximian.com>
10707
10708         * X11Keyboard.cs: Fix to compile with csc.
10709         
10710 2004-12-15  Jackson Harper  <jackson@ximian.com>
10711
10712         * X11Structs.cs: Add key mask values
10713         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
10714         * X11Keyboard.cs: New file - Extrapolates and interpolates key
10715         down/up foo into WM_CHAR foo
10716         * KeyboardLayouts.cs: Common keyboard layouts
10717         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
10718         post messages into the main queue.
10719
10720 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
10721
10722         * Button.cs: implement ProcessMnemonic
10723         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
10724           brushes everytime
10725         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
10726         * ButtonBase.cs: Show HotkeyPrefix (not the &)
10727
10728 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
10729         
10730         * MonthCalendar.cs: Implemented click-hold for next/previous month
10731           and date selection
10732           
10733 2004-12-11  Peter Bartok  <pbartok@novell.com>
10734
10735         * X11Structs.cs:
10736           - Added XKeyboardState (moved from XplatUIX11.cs)
10737           - Added XCreateGC related enums and structures
10738           - Added GXFunction for XSetFunction
10739
10740         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
10741
10742         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
10743           CaretVisible() calls
10744
10745         * ToolTip.cs: Added code to prevent stealing focus from app windows
10746
10747         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
10748           DestroyCaret, SetCaretPos and CaretVisible)
10749
10750         * XplatUIX11.cs:
10751           - Added implementation for caret functions
10752           - Moved hover variables into a struct, to make it a bit easier
10753             on the eyes and to debug
10754           - Removed XKeyboardState (moved to XplatUIX11.cs)
10755           - Moved Keyboard properties into the properties region
10756
10757         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
10758           call to get a graphics context for our control
10759
10760         * XplatUIOSX.cs: Added empty overrides for the new caret functions
10761
10762         * TreeView.cs: Fixed bug. No matter what color was set it would always
10763           return SystemColors.Window
10764
10765         * XplatUIWin32.cs: Implemented caret overrides
10766
10767 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
10768
10769         * ListBox.cs: fire events, implement missing methods and properties,
10770         sorting.
10771
10772 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
10773
10774         * MonthCalendar.cs: invalidation bug fixing
10775         * ThemeWin32Classic.cs: paint fixing
10776
10777 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
10778
10779         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
10780         prepare the CGContextRef there now.
10781
10782 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
10783
10784         * MonthCalendar.cs:
10785           - optimisationL only invalidate areas that have changed
10786         * ThemeWin32Classic.cs:
10787           - only paint parts that intersect with clip_area
10788
10789 2004-12-09  Peter Bartok  <pbartok@novell.com>
10790
10791         * Application.cs: Undid changes from r37004 which cause problems
10792         on X11
10793
10794 2004-12-09  Ravindra  <rkumar@novell.com>
10795
10796         * ToolBar.cs: Added support for displaying ContextMenu
10797         attached to a button on ToolBar.
10798         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
10799         property.
10800
10801 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10802
10803         * Label.cs: autosize works in text change and removes unnecessary
10804         invalidate
10805
10806 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
10807
10808         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
10809         remove warnings
10810
10811 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
10812
10813         * XplatUIOSX.cs: Added mouse move/click/grab support
10814         Remove some debugging WriteLines not needed anymore.
10815         Add window resizing/positioning.
10816         Fix visibility on reparenting.
10817
10818 2004-12-08  Peter Bartok  <pbartok@novell.com>
10819
10820         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
10821
10822 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
10823
10824         * XplatUIOSX.cs: Initial checkin
10825         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
10826
10827 2004-12-03  Ravindra <rkumar@novell.com>
10828
10829         * ListView.cs: Added some keybindings and fixed scrolling.
10830         ScrollBars listen to ValueChanged event instead of Scroll
10831         Event. This would let us take care of all changes being
10832         done in the scrollbars' values programmatically or manually.
10833         * ListView.cs (CanMultiselect): Added a check for shift key.
10834         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
10835         * ListViewItem.cs (Clone): Fixed. We need to make a copy
10836         of ListViewSubItemCollection as well.
10837
10838 2004-12-06  Peter Bartok <pbartok@novell.com>
10839
10840         * Control.cs (Parent): Added check and exception to prevent
10841         circular parenting
10842
10843 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
10844
10845         * ListBox.cs: implemented clipping, selection single and multiple,
10846         bug fixing
10847
10848 2004-12-03  Ravindra <rkumar@novell.com>
10849
10850         * ListView.cs (ListView_KeyDown):
10851         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
10852         when CTRL key is pressed.
10853         * ListViewItem.cs (Selected): Fixed setting the property.
10854
10855 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10856
10857         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
10858
10859         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
10860         MinimizeBox, ShowInTaskbar, TopMost properties.
10861
10862         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
10863         will be implemented).
10864
10865 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
10866
10867         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
10868
10869         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
10870         tests.
10871         
10872         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
10873         
10874         * TreeView.cs: BackColor is Colors.Window.
10875
10876 2004-12-01  Jackson Harper  <jackson@ximian.com>
10877
10878         * TreeView.cs: When resizing the tree if the user is making it
10879         smaller we don't get expose events, so we need to handle adding
10880         the horizontal scrollbar in the size changed handler as well as
10881         the expose handler.
10882
10883 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
10884
10885         * DrawItemState.cs: fixes wrong enum values
10886
10887 2004-12-01  Jackson Harper  <jackson@ximian.com>
10888
10889         * TreeView.cs: Resize the hbar as well as the vbar on resize.
10890
10891 2004-12-01  Jackson Harper  <jackson@ximian.com>
10892
10893         * NodeLabelEditEventArgs.cs:
10894         * NodeLabelEditEventHandler.cs:
10895         * OpenTreeNodeEnumerator.cs:
10896         * TreeNode.cs:
10897         * TreeNodeCollection.cs:
10898         * TreeView.cs:
10899         * TreeViewAction.cs:
10900         * TreeViewCancelEventArgs.cs:
10901         * TreeViewCancelEventHandler.cs:
10902         * TreeViewEventArgs.cs:
10903         * TreeViewEventHandler.cs: Initial implementation.
10904
10905 2004-12-01  Ravindra <rkumar@novell.com>
10906
10907         * ListView.cs (CalculateListView): Fixed scrolling related
10908         calculations. Also, removed some debug statements from other
10909         places.
10910         * ListViewItem.cs: Changed access to 'selected' instance variable
10911         from private to internal.
10912         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
10913
10914 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
10915
10916         * ThemeWin32Classic.cs: remove cache of brush and pens for
10917         specific controls and use the global system, fixes scrollbutton
10918         bugs (for small sizes, disabled, etc)
10919         
10920         * ScrollBar.cs: does not show the thumb for very small controls
10921         (as MS) and allow smaller buttons that the regular size
10922
10923 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
10924
10925         * UpDownBase.cs: Add abstract methods for the interface.
10926         Add new virtual methods (need to be hooked up to TextEntry when it
10927         exists).
10928         Add override methods for most features.
10929         Computes the size, forces the height of the text entry.
10930
10931         * NumericUpDown.cs: Put here the current testing code.
10932
10933         * Set eol-style property on all files that do not have mixed line
10934         endings, to minimize the future problems.  There are still a few
10935         files with mixed endings, and someone should choose whether they
10936         want to move it or not.
10937
10938 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
10939
10940         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
10941         System.Colors
10942         
10943 2004-11-30  Ravindra <rkumar@novell.com>
10944
10945         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
10946         drawing and replaced use of SystemColors by theme colors.
10947         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
10948         * ListView.cs (ListViewItemCollection.Add): Throw exception when
10949         same ListViewItem is being added more than once.
10950
10951 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
10952
10953         * MonthCalendar.cs:
10954           - ControlStyles love to make the control not flicker
10955           
10956 2004-11-30  Peter Bartok  <pbartok@novell.com>
10957
10958         * CharacterCasing.cs: Added
10959
10960 2004-11-29  Peter Bartok  <pbartok@novell.com>
10961
10962         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10963           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
10964           I am removing these files as they conflict with already completed
10965           work. While it is fantastic to get contributions to MWF, I
10966           respectfully ask that everyone please coordinate their contributions
10967           through mono-winforms-list or #mono-winforms at this time. We're
10968           explicitly avoiding stubbing and don't want controls that don't have
10969           their basic functionality implemented in svn. Please also see
10970           http://www.mono-project.com/contributing/winforms.html
10971
10972
10973 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
10974
10975         * Application.cs (ModalRun): Don't hang after exit.
10976
10977         * Theme.cs: New TreeViewDefaultSize property.
10978
10979         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
10980         with less hardcoded SystemColors constant.
10981         Implemented TreeViewDefaultSize.
10982
10983         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
10984         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
10985
10986
10987 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
10988
10989         * MonthCalendar.cs:
10990           - Fix NextMonthDate and PrevMonthDate click moving calendar
10991
10992 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
10993
10994         * MonthCalendar.cs:
10995           - Fix usage of ScrollChange Property when scrolling months
10996
10997 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
10998
10999         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
11000          - Fixes menu destroying
11001          - Support adding and removing items on already created menus
11002
11003 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
11004
11005         * MonthCalendar.cs:
11006           - Re-worked all bolded dates handling to match win32
11007         * ThemeWin32Classic.cs:
11008           - Fixed rendering with bolded dates
11009
11010 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
11011
11012         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
11013         - Horizontal scroolbar
11014         - Multicolumn
11015         - Fixes
11016
11017
11018 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
11019
11020         * MonthCalendar.cs:
11021           - Fix Usage of MaxSelectionCount from SelectionRange
11022           - Fixed Shift + Cursor Selection
11023           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
11024           - Fixed normal cursor selection to be compat with win32
11025           - Fixed Shift + Mouse Click selection
11026
11027 2004-11-24  Peter Bartok <pbartok@novell.com>
11028
11029         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
11030         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
11031         * XplatUIX11.cs:
11032           - CreatedKeyBoardMsg now updates keystate with Alt key
11033           - Added workaround for timer crash to CheckTimers, Jackson will
11034             develop a proper fix and check in later
11035           - Implemented DispatchMessage
11036           - Removed calling the native window proc from GetMessage (call
11037             now moved to DispatchMessage)
11038
11039         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
11040           the keydata (Fixes bug #69831)
11041
11042         * XplatUIWin32.cs:
11043           - (DispatchMessage): Switched to return IntPtr
11044           - Added DllImport for SetFocus
11045
11046 2004-11-24  Ravindra <rkumar@novell.com>
11047
11048         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
11049         background drawing.
11050         * ListViewItem.cs: Fixed various properties, calculations
11051         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
11052         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
11053         and some internal properties. Fixed MouseDown handler and Paint
11054         method.
11055
11056 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11057
11058         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
11059
11060 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11061
11062         * ContainerControl.cs: correct accidental check in of local changes
11063
11064 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
11065
11066         * ThemeWin32Classic.cs:
11067                 - Fixed Drawing Last month in grid (sometimes not showing)
11068         * MonthCalendar.cs:
11069                 - Fixed title width calculation bug (makeing title small)
11070
11071 2004-11-23  Peter Bartok <pbartok@novell.com>
11072
11073         * XplatUIX11.cs:
11074           - Added generation of WM_MOUSEHOVER event
11075           - Added missing assignment of async_method atom
11076           - Fixed WM_ERASEBKGND; now only redraws the exposed area
11077
11078 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11079
11080         * ThemeWin32Classic.cs:
11081                 - Fixed Drawing of today circle when showtodaycircle not set
11082                 - fixed drawing of first and last month in the grid (gay dates)
11083         * MonthCalendar.cs:
11084                 - Fixed Drawing of today circle
11085                 - Fixed drawing of grady dates
11086                 - Fixed HitTest for today link when ShowToday set to false
11087                 - Fixed DefaultSize to obey ShowToday
11088
11089 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
11090
11091         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
11092         * System.Windows.Forms/Theme.cs
11093         * MonthCalendar.cs: added for MonthCalendar
11094         * SelectionRange.cs: added for MonthCalendar
11095         * Day.cs: added for MonthCalendar: added for MonthCalendar
11096         * DateRangeEventArgs.cs: added for MonthCalendar
11097         * DateRangeEventHandler.cs: added for MonthCalendar
11098
11099 2004-11-22  Ravindra <rkumar@novell.com>
11100
11101         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
11102         property.
11103
11104 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
11105
11106         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
11107         event handler.
11108         
11109         * NumericUpDown.cs: Added new implementation.
11110         * UpDownBase.cs: Added new implementation.
11111
11112         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
11113         implementations.
11114         
11115         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
11116         implementations.
11117
11118         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
11119         methods.
11120
11121 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
11122
11123         * Timer.cs  (Dispose): Should call the base dispose when
11124         overriding.
11125
11126 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11127
11128         * ScrollBar.cs: updates thumb position when max, min or increment
11129         is changed
11130
11131 2004-11-21  Ravindra <rkumar@novell.com>
11132
11133         * ListView.cs: Implemented item selection, activation and
11134         column header style. Fixed properties to do a redraw, if
11135         required. Added support for MouseHover, DoubleClick, KeyDown
11136         and KeyUp event handling and some minor fixes.
11137         * ListViewItem.cs: Fixed constructor.
11138         * ThemeWin32Classic.cs: Improved drawing for ListView.
11139
11140 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
11141
11142         * ThemeWin32Classic.cs: initial listbox drawing code
11143         * DrawMode.cs: new enumerator
11144         * ListControl.cs: stubbed class
11145         * ListBox.cs: initial implementation
11146         * Theme.cs: new methods definitions
11147         * SelectionMode.cs: new enumerator
11148
11149 2004-11-17  Peter Bartok  <pbartok@novell.com>
11150
11151         * XplatUIWin32.cs: Added double-click events to the class style
11152         * Control.cs (WndProc):
11153           - Added handling of click-count to MouseDown/ MouseUp events.
11154           - Added handling of middle and right mouse buttons
11155           - Removed old debug code
11156
11157 2004-11-17  Jackson Harper  <jackson@ximian.com>
11158
11159         * XplatUIX11.cs: Use the new Mono.Unix namespace.
11160
11161 2004-11-17  Ravindra <rkumar@novell.com>
11162
11163         * ListView.cs: Added event handling for MouseMove/Up/Down.
11164         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
11165         * ThemeWin32Classic.cs: We need to clear the graphics context and
11166         draw column header in a proper state.
11167
11168
11169 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
11170
11171         *  Menu.cs: fixes signature
11172
11173 2004-11-16  Peter Bartok  <pbartok@novell.com>
11174
11175         * XplatUIX11.cs (GetMessage): Implemented generation of
11176           double click mouse messages
11177
11178 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
11179
11180         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
11181         not by menu
11182
11183 2004-11-11  Peter Bartok  <pbartok@novell.com>
11184
11185         * HandleData.cs: Added Visible property
11186         * XplatUIX11.cs (IsVisible): Now uses Visible property from
11187           HandleData
11188         * XplatUIX11.cs: Removed old debug leftovers
11189         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
11190         * Control.cs (WndProc): Removed old debug leftovers,
11191           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
11192           needed WM_SIZE handling
11193
11194 2004-11-11  Jackson Harper  <jackson@ximian.com>
11195
11196         * OwnerDrawPropertyBag.cs:
11197         * TreeViewImageIndexConverter.cs: Initial implementation
11198
11199 2004-11-10  Jackson Harper  <jackson@ximian.com>
11200
11201         * ThemeWin32Classic.cs:
11202         * TabControl.cs: instead of moving tabs by the slider pos just
11203         start drawing at the tab that is offset by the slider. This way
11204         scrolling always moves by exactly one tab.
11205
11206 2004-11-10  Jackson Harper  <jackson@ximian.com>
11207
11208         * TabControl.cs: You can only scroll left when the slider has
11209         already ben moved right.
11210         
11211 2004-11-10  Jackson Harper  <jackson@ximian.com>
11212
11213         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
11214         the clip area.
11215         
11216 2004-11-10  Jackson Harper  <jackson@ximian.com>
11217
11218         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
11219         clip area.
11220         
11221 2004-11-09  Jackson Harper  <jackson@ximian.com>
11222
11223         * TabControl.cs (CalcXPos): New helper method so we can determine
11224         the proper place to start drawing vertical tabs.
11225         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
11226         
11227 2004-11-09  Jackson Harper  <jackson@ximian.com>
11228
11229         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
11230         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
11231         and Bottom, left and right are illegal values for this and
11232         multiline is enabled when the alignment is set to left or right.
11233         (DrawTab): Each alignment block should draw the text itself now
11234         because Left requires special love. Also add rendering for Left
11235         aligned tabs.
11236         
11237 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
11238
11239         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
11240         does not destroy the windows, removes debugging messages
11241
11242 2004-11-09  jba  <jba-mono@optusnet.com.au>
11243
11244         * ThemeWin32Classic.cs
11245         (DrawButtonBase): Fix verticle text rect clipping in windows
11246         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11247         rendering and incorrect text rect clipping
11248         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
11249         rendering and incorrect text rect clipping
11250         
11251 2004-11-08  Jackson Harper  <jackson@ximian.com>
11252
11253         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
11254         bottom when they are bottom aligned so the bottoms of the tabs get
11255         displayed.
11256         * TabControl.cs (DropRow): Move rows up instead of down when the
11257         tab control is bottom aligned.
11258
11259 2004-11-08 13:59  pbartok
11260
11261         * XplatUIX11.cs:
11262           - Added handling for various window styles
11263           - Added handling for popup windows
11264           - Added SetTopmost handling
11265
11266 2004-11-08 13:55  pbartok
11267
11268         * XplatUIWin32.cs:
11269           - Added argument to SetTopmost method
11270           - Fixed broken ClientToScreen function
11271
11272 2004-11-08 13:53  pbartok
11273
11274         * XplatUIStructs.cs:
11275           - Added missing WS_EX styles
11276
11277 2004-11-08 13:53  pbartok
11278
11279         * XplatUI.cs, XplatUIDriver.cs:
11280           - Added argument to SetTopmost
11281
11282 2004-11-08 13:52  pbartok
11283
11284         * X11Structs.cs:
11285           - Added XSetWindowAttributes structure
11286           - Improved XWindowAttributes structure
11287           - Added SetWindowValuemask enum
11288           - Added window creation arguments enum
11289           - Added gravity enum
11290           - Added Motif hints structure
11291           - Added various Motif flags and enums
11292           - Added PropertyMode enum for property functions
11293
11294 2004-11-08 13:50  pbartok
11295
11296         * Form.cs:
11297           - Fixed arguments for updated SetTopmost method
11298
11299 2004-11-08 13:49  pbartok
11300
11301         * ToolTip.cs:
11302           - Fixed arguments for updated SetTopmost function
11303           - Fixed usage of PointToClient
11304
11305 2004-11-08 13:44  pbartok
11306
11307         * MenuAPI.cs:
11308           - Added Clipping of children and siblings
11309
11310 2004-11-08 13:41  pbartok
11311
11312         * MainMenu.cs:
11313           - Removed SetMenuBarWindow call. We do this in Form.cs
11314
11315 2004-11-08 13:40  jackson
11316
11317         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
11318           scrolling jimmi in the correct location with bottom aligned tabs
11319
11320 2004-11-08 13:36  pbartok
11321
11322         * ContainerControl.cs:
11323           - Implemented BindingContext
11324           - Implemented ParentForm
11325
11326 2004-11-08 12:46  jackson
11327
11328         * TabControl.cs: Put bottom rendered tabs in the right location
11329
11330 2004-11-08 07:15  jordi
11331
11332         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
11333           removes dead code
11334
11335 2004-11-05 17:30  jackson
11336
11337         * TabControl.cs: When selected tabs are expanded make sure they
11338           don't go beyond the edges of the tab control
11339
11340 2004-11-05 14:57  jackson
11341
11342         * TabControl.cs: Reset show_slider so if the control is resized to
11343           a size where it is no longer needed it's not displayed anymore
11344
11345 2004-11-05 13:16  jackson
11346
11347         * TabControl.cs: Make tab pages non visible when added to the
11348           control
11349
11350 2004-11-05 12:42  jackson
11351
11352         * TabControl.cs: Implement SizeMode.FillToRight
11353
11354 2004-11-05 12:16  jackson
11355
11356         * Control.cs: Do not call CreateHandle if the handle is already
11357           created
11358
11359 2004-11-05 11:46  jackson
11360
11361         * TabControl.cs: Remove superflous call to CalcTabRows
11362
11363 2004-11-05 09:07  jackson
11364
11365         * XplatUIX11.cs: Update for Mono.Posix changes
11366
11367 2004-11-05 07:00  ravindra
11368
11369         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
11370           scrolling.
11371
11372 2004-11-04 22:47  jba
11373
11374         * ThemeWin32Classic.cs:
11375           - Fix Button rendering for FlatStyle = Flat or Popup
11376           - Fix RadioButton and CheckBox rendering when Appearance = Button
11377             (normal and flatstyle).
11378           - Correct outer rectangle color when drawing focus rectangle
11379           - Adjust button bounds to be 1 px smaller when focused
11380           - Make button not draw sunken 3d border when pushed (windows compat)
11381           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
11382           - Offset the text in RadioButton and Checkbox when being rendered as
11383           a button.
11384           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
11385           radiobuttons
11386           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
11387           - Fixed disabled text rendering for normally rendered radiobuttons
11388
11389 2004-11-04 10:26  jackson
11390
11391         * TabControl.cs: Recalculate tab rows when resizing
11392
11393 2004-11-04 07:47  jordi
11394
11395         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
11396           collection completion, drawing issues, missing features
11397
11398 2004-11-04 05:03  ravindra
11399
11400         * ScrollBar.cs:
11401                 - We need to recalculate the Thumb area when
11402                 LargeChange/maximum/minimum values are changed.
11403           - We set the 'pos' in UpdatePos() method to minimum, if it's less
11404                 than minimum. This is required to handle the case if large_change is
11405                 more than max, and use LargeChange property instead of large_change
11406                 variable.
11407           - We return max+1 when large_change is more than max, like MS does.
11408
11409 2004-11-04 04:29  ravindra
11410
11411         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
11412                 - Changed default value signatures (prefixed all with ListView).
11413                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
11414                 ListView.
11415           - Fixed calculations for ListViewItem and implemented Clone()
11416           method.
11417
11418 2004-11-04 04:26  ravindra
11419
11420         * Theme.cs, ThemeWin32Classic.cs:
11421                 - Changed default ListView values signatures (prefixed all with
11422                 ListView).
11423           - Fixed default size values for VScrollBar and HScrollBar.
11424                 - Fixed DrawListViewItem method.
11425
11426 2004-11-04 04:05  ravindra
11427
11428         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
11429
11430 2004-11-04 04:04  ravindra
11431
11432         * ImageList.cs: Implemented the missing overload for Draw method.
11433
11434 2004-11-03 19:29  jackson
11435
11436         * TabControl.cs: Handle dropping rows on selection properly
11437
11438 2004-11-03 11:59  jackson
11439
11440         * TabControl.cs: remove debug code
11441
11442 2004-11-03 11:52  jackson
11443
11444         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
11445           the scrolly widgerywoo
11446
11447 2004-11-02 13:52  jackson
11448
11449         * TabControl.cs: Resize the tab pages and tabs when the tab control
11450           is resized
11451
11452 2004-11-02 13:40  jackson
11453
11454         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
11455           selected tab to the bottom
11456
11457 2004-11-02 13:39  jackson
11458
11459         * TabPage.cs: Store the tab pages row
11460
11461 2004-11-02 12:33  jordi
11462
11463         * MenuItem.cs: fixes handle creation
11464
11465 2004-11-02 11:42  jackson
11466
11467         * TabControl.cs: signature fix
11468
11469 2004-11-02 08:56  jackson
11470
11471         * TabControl.cs: Calculate whether the tab is on an edge properly.
11472           Remove top secret debugging code
11473
11474 2004-11-01 19:57  jackson
11475
11476         * TabControl.cs: Add click handling, and proper sizing
11477
11478 2004-11-01 19:47  jackson
11479
11480         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
11481           tab controls
11482
11483 2004-11-01 19:39  jackson
11484
11485         * TabPage.cs: add internal property to store the bounds of a tab
11486           page
11487
11488 2004-10-30 04:23  ravindra
11489
11490         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
11491           values.
11492
11493 2004-10-30 04:21  ravindra
11494
11495         * ListView.cs, ListViewItem.cs: Added support for scrolling and
11496           fixed calculations.
11497
11498 2004-10-30 03:06  pbartok
11499
11500         * XplatUIX11.cs:
11501           - Removed extension of DllImported libs
11502
11503 2004-10-29 09:55  jordi
11504
11505         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
11506           navigation, itemcollection completion, menu fixes
11507
11508 2004-10-27 22:58  pbartok
11509
11510         * XplatUIX11.cs:
11511           - Now throws a nice error message when no X display could be opened
11512
11513 2004-10-26 13:51  jordi
11514
11515         * ListView.cs: removes warning
11516
11517 2004-10-26 03:55  ravindra
11518
11519         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
11520           ThemeWin32Classic.cs: Some formatting for my last checkins.
11521
11522 2004-10-26 03:36  ravindra
11523
11524         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
11525           control and default values.
11526
11527 2004-10-26 03:35  ravindra
11528
11529         * Theme.cs: Added some default values for ListView control.
11530
11531 2004-10-26 03:33  ravindra
11532
11533         * ToolBar.cs: ToolBar should use the user specified button size, if
11534           there is any. Added a size_specified flag for the same.
11535
11536 2004-10-26 03:33  ravindra
11537
11538         * ColumnHeader.cs: Added some internal members and calculations for
11539           ColumnHeader.
11540
11541 2004-10-26 03:32  ravindra
11542
11543         * ListViewItem.cs: Calculations for ListViewItem.
11544
11545 2004-10-26 03:31  ravindra
11546
11547         * ListView.cs: Added some internal members and calculations for
11548           ListView.
11549
11550 2004-10-22 13:31  jordi
11551
11552         * MenuAPI.cs: speedup menus drawing
11553
11554 2004-10-22 13:16  jackson
11555
11556         * XplatUIX11.cs: Make sure to update exposed regions when adding an
11557           expose event
11558
11559 2004-10-22 11:49  jackson
11560
11561         * Control.cs: oops
11562
11563 2004-10-22 11:41  jackson
11564
11565         * Control.cs: Check to see if the window should have its background
11566           repainted by X when drawing.
11567
11568 2004-10-22 11:31  jackson
11569
11570         * XplatUIX11.cs: When invalidating areas only use XClearArea if
11571           clear is true, this way we do not get flicker from X repainting the
11572           background
11573
11574 2004-10-22 11:28  jackson
11575
11576         * XEventQueue.cs: Queue properly
11577
11578 2004-10-21 09:38  jackson
11579
11580         * XEventQueue.cs: Fix access modifier
11581
11582 2004-10-21 09:36  jackson
11583
11584         * XEventQueue.cs: Don't loose messages
11585
11586 2004-10-21 09:22  jackson
11587
11588         * XEventQueue.cs: Don't loose messages
11589
11590 2004-10-20 04:15  jordi
11591
11592         * BootMode.cs: enum need it by SystemInfo
11593
11594 2004-10-19 21:58  pbartok
11595
11596         * XplatUIWin32.cs:
11597           - Small sanity check
11598
11599 2004-10-19 21:56  pbartok
11600
11601         * Form.cs:
11602           - Added private FormParentWindow class which acts as the container
11603             for our form and as the non-client area where menus are drawn
11604           - Added/Moved required tie-ins to Jordi's menus
11605           - Fixed/Implemented the FormStartPosition functionality
11606
11607 2004-10-19 21:52  pbartok
11608
11609         * Control.cs:
11610           - Removed unneeded locals
11611           - Added code to all size and location properties to understand and
11612             deal with the parent container of Form
11613
11614 2004-10-19 21:33  pbartok
11615
11616         * Application.cs:
11617           - Fixed to deal with new Form subclasses for menus
11618
11619 2004-10-19 17:48  jackson
11620
11621         * XEventQueue.cs: commit correct version of file
11622
11623 2004-10-19 16:50  jackson
11624
11625         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
11626
11627 2004-10-19 16:15  jordi
11628
11629         * MenuAPI.cs: MenuBarCalcSize returns the height
11630
11631 2004-10-19 08:31  pbartok
11632
11633         * Control.cs:
11634           - Added missing call to PreProcessMessage before calling OnXXXKey
11635           methods
11636
11637 2004-10-19 00:04  ravindra
11638
11639         * ToolTip.cs: Fixed constructor.
11640
11641 2004-10-18 09:31  jordi
11642
11643         * MenuAPI.cs: menuitems in menubars do not have shortcuts
11644
11645 2004-10-18 09:26  jordi
11646
11647         * MenuItem.cs: fixes MenuItem class signature
11648
11649 2004-10-18 08:56  jordi
11650
11651         * MenuAPI.cs: prevents windows from showing in the taskbar
11652
11653 2004-10-18 00:28  ravindra
11654
11655         * ToolTip.cs: Suppressed a warning message.
11656
11657 2004-10-18 00:27  ravindra
11658
11659         * Control.cs: Default value of visible property must be true.
11660
11661 2004-10-17 23:19  pbartok
11662
11663         * ToolTip.cs:
11664           - Complete implementation
11665
11666 2004-10-17 23:19  pbartok
11667
11668         * XplatUIX11.cs:
11669           - Added EnableWindow method
11670           - Added SetModal stub
11671           - Added generation of WM_ACTIVATE message (still needs testing)
11672           - Added SetTopMost stub
11673           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
11674
11675 2004-10-17 23:17  pbartok
11676
11677         * XplatUIWin32.cs:
11678           - Removed VirtualKeys to XplatUIStructs
11679           - Implemented SetTopMost method
11680           - Implemented EnableWindow method
11681           - Bugfix in ScreenToClient()
11682           - Bugfixes in ClientToScreen()
11683
11684 2004-10-17 22:51  pbartok
11685
11686         * XplatUIStructs.cs:
11687           - Added WS_EX styles to WindowStyles enumeration
11688
11689 2004-10-17 22:50  pbartok
11690
11691         * XplatUI.cs, XplatUIDriver.cs:
11692           - Added method for enabling/disabling windows
11693           - Added method for setting window modality
11694           - Added method for setting topmost window
11695
11696 2004-10-17 22:49  pbartok
11697
11698         * ThemeWin32Classic.cs:
11699           - Added ToolTip drawing code
11700
11701 2004-10-17 22:49  pbartok
11702
11703         * Theme.cs:
11704           - Added ToolTip abstracts
11705
11706 2004-10-17 22:47  pbartok
11707
11708         * Form.cs:
11709           - Fixed Form.ControlCollection to handle owner relations
11710           - Added Owner/OwnedForms handling
11711           - Implemented Z-Ordering for owned forms
11712           - Removed unneeded private overload of ShowDialog
11713           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
11714             so I hope)
11715           - Fixed Close(), had wrong default
11716           - Added firing of OnLoad event
11717           - Added some commented out debug code for Ownership handling
11718
11719 2004-10-17 22:16  pbartok
11720
11721         * Control.cs:
11722           - Fixed/implemented flat list of controls
11723
11724 2004-10-17 22:14  pbartok
11725
11726         * Application.cs:
11727           - Added code to simulate modal dialogs on Win32
11728
11729 2004-10-17 16:11  jordi
11730
11731         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
11732           mouse event
11733
11734 2004-10-17 13:39  jordi
11735
11736         * MenuAPI.cs: menu drawing fixes
11737
11738 2004-10-15 09:10  ravindra
11739
11740         * StructFormat.cs: General Enum.
11741
11742 2004-10-15 09:09  ravindra
11743
11744         * SizeGripStyle.cs: Enum for Form.
11745
11746 2004-10-15 09:08  ravindra
11747
11748         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
11749           in Theme for ListView.
11750
11751 2004-10-15 09:06  ravindra
11752
11753         * ColumnHeader.cs: Flushing some formatting changes.
11754
11755 2004-10-15 09:05  ravindra
11756
11757         * ListViewItem.cs: Implemented GetBounds method and fixed coding
11758           style.
11759
11760 2004-10-15 09:03  ravindra
11761
11762         * ListView.cs: Implemented Paint method and fixed coding style.
11763
11764 2004-10-15 07:34  jordi
11765
11766         * MenuAPI.cs: fix for X11
11767
11768 2004-10-15 07:32  ravindra
11769
11770         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
11771                 - Renamed Paint() method to Draw() for clarity. Also, moved
11772                 DrawImage() to OnPaint().
11773
11774 2004-10-15 07:25  ravindra
11775
11776         * CheckBox.cs, RadioButton.cs:
11777                 - Removed Redraw (), we get it from ButtonBase.
11778                 - Implemented Paint (), to do class specific painting.
11779
11780 2004-10-15 07:16  ravindra
11781
11782         * ButtonBase.cs:
11783                 - Redraw () is not virtual now.
11784                 - Added an internal virtual method Paint (), so that
11785                 derived classes can do their painting on their own.
11786                 - Modified OnPaint () to call Paint ().
11787
11788 2004-10-15 06:43  jordi
11789
11790         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
11791           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
11792
11793 2004-10-15 00:30  ravindra
11794
11795         * MessageBox.cs:
11796                 - MessageBox on windows does not have min/max buttons.
11797                 This change in CreateParams fixes this on Windows. We
11798                 still need to implement this windowstyle behavior in
11799                 our X11 driver.
11800
11801 2004-10-14 05:14  ravindra
11802
11803         * ToolBar.cs:
11804                 - Changed Redraw () to do a Refresh () always.
11805                 - Fixed the MouseMove event handling when mouse is pressed,
11806                 ie drag event handling.
11807                 - Replaced the usage of ToolBarButton.Pressed property to
11808                 ToolBarButton.pressed internal variable.
11809
11810 2004-10-14 05:10  ravindra
11811
11812         * ToolBarButton.cs:
11813                 - Added an internal member 'inside' to handle mouse move
11814                 with mouse pressed ie mouse drag event.
11815                 - Changed 'Pressed' property to return true only when
11816                 'inside' and 'pressed' are both true.
11817                 - Some coding style love.
11818
11819 2004-10-14 00:17  ravindra
11820
11821         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
11822           public method.
11823
11824 2004-10-14 00:15  ravindra
11825
11826         * ButtonBase.cs: Redraw () related improvements.
11827
11828 2004-10-14 00:14  ravindra
11829
11830         * MessageBox.cs: Moved InitFormSize () out of Paint method and
11831           removed unnecessary calls to Button.Show () method.
11832
11833 2004-10-13 17:50  pbartok
11834
11835         * XplatUIX11.cs:
11836           - Formatting fix
11837           - Removed destroying of window until we solve the problem of X
11838             destroying the window before us on shutdown
11839
11840 2004-10-13 16:32  pbartok
11841
11842         * ButtonBase.cs:
11843           - Now Redraws on MouseUp for FlatStyle Flat and Popup
11844
11845 2004-10-13 14:18  pbartok
11846
11847         * XplatUIX11.cs:
11848           - Added code to destroy the X window
11849
11850 2004-10-13 14:18  pbartok
11851
11852         * XplatUIWin32.cs:
11853           - Added code to destroy a window
11854
11855 2004-10-13 14:12  pbartok
11856
11857         * ButtonBase.cs:
11858           - Added the Redraw on Resize that got dropped in the last rev
11859
11860 2004-10-13 09:06  pbartok
11861
11862         * ThemeWin32Classic.cs:
11863           - Path from John BouAntoun:
11864             * Fix check rendering (centre correctly for normal style, offset
11865               correctly for FlatStyle).
11866             * Fix border color usage (use backcolor) for FlatStyle.Popup
11867             * Use checkbox.Capture instead of checkbox.is_pressed when
11868               rendering flatstyle states.
11869
11870 2004-10-12 21:48  pbartok
11871
11872         * ThemeWin32Classic.cs:
11873           - Removed all occurences of SystemColors and replaced them with the
11874             matching theme color
11875
11876 2004-10-12 21:41  pbartok
11877
11878         * ThemeWin32Classic.cs:
11879           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
11880             him using the function for flatstyle drawing
11881           - Changed functions to use the new version of CPDrawBorder3D
11882
11883 2004-10-12 21:15  pbartok
11884
11885         * ControlPaint.cs:
11886           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
11887             match MS documentation. They need to return defined colors if the
11888             passed color matches the configured control color. Thanks to John
11889             BouAntoun for pointing this out.
11890
11891 2004-10-12 20:57  pbartok
11892
11893         * Control.cs:
11894           - Fix from John BouAntoun: Raise ForeColorChanged event when text
11895             color is changed
11896
11897 2004-10-12 20:46  pbartok
11898
11899         * CheckBox.cs:
11900           - Fix from John BouAntoun: Now properly sets the Appearance property
11901
11902 2004-10-12 20:45  pbartok
11903
11904         * ThemeWin32Classic.cs:
11905           - Fixes from John BouAntoun: now handles forecolors and backcolors
11906             for flatstyle rendered controls much better; It also fixes normal
11907             checkbox rendering when pushed or disabled.
11908
11909 2004-10-08 02:50  jordi
11910
11911         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
11912           work
11913
11914 2004-10-07 08:56  jordi
11915
11916         * ThemeWin32Classic.cs: Removes deletion of cached brushes
11917
11918 2004-10-06 03:59  jordi
11919
11920         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
11921           XplatUIWin32.cs: removes warnings from compilation
11922
11923 2004-10-05 12:23  jackson
11924
11925         * RadioButton.cs: Fix ctor
11926
11927 2004-10-05 11:10  pbartok
11928
11929         * MessageBox.cs:
11930           - Partial implementation by Benjamin Dasnois
11931
11932 2004-10-05 10:15  jackson
11933
11934         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
11935           by John BouAntoun
11936
11937 2004-10-05 03:07  ravindra
11938
11939         * ToolBar.cs:
11940                 - Removed a private method, Draw ().
11941                 - Fixed the ButtonDropDown event handling.
11942                 - Fixed MouseMove event handling.
11943
11944 2004-10-05 03:04  ravindra
11945
11946         * ThemeWin32Classic.cs:
11947                 - Added DrawListView method and ListViewDefaultSize property.
11948                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
11949                 - Changed DOS style CRLF to Unix format (dos2unix).
11950
11951 2004-10-05 03:03  ravindra
11952
11953         * Theme.cs:
11954                 - Added DrawListView method and ListViewDefaultSize property.
11955
11956 2004-10-05 02:42  ravindra
11957
11958         * ToolBarButton.cs: Added an internal member dd_pressed to handle
11959           clicks on DropDown arrow.
11960
11961 2004-10-04 22:56  jackson
11962
11963         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
11964           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
11965           Control handle the buffers, derived classes should not have to
11966           CreateBuffers themselves.
11967
11968 2004-10-04 21:20  jackson
11969
11970         * StatusBar.cs: The control handles resizing the buffers now.
11971
11972 2004-10-04 21:18  jackson
11973
11974         * Control.cs: When resizing the buffers should be invalidated. This
11975           should be handled in Control not in derived classes.
11976
11977 2004-10-04 14:45  jackson
11978
11979         * TabPage.cs: oops
11980
11981 2004-10-04 02:14  pbartok
11982
11983         * LeftRightAlignment.cs:
11984           - Initial check-in
11985
11986 2004-10-04 01:09  jordi
11987
11988         * ThemeWin32Classic.cs: fixes right button position causing right
11989           button not showing on horizontal scrollbars
11990
11991 2004-10-02 13:12  pbartok
11992
11993         * XplatUIX11.cs:
11994           - Simplified the Invalidate method by using an X call instead of
11995             generating the expose ourselves
11996           - Added an expose when the window background is changed
11997           - Implemented ClientToScreen method
11998
11999 2004-10-02 13:08  pbartok
12000
12001         * XplatUIWin32.cs:
12002           - Added Win32EnableWindow method (test for implementing modal
12003           dialogs)
12004           - Added ClientToScreen method and imports
12005
12006 2004-10-02 13:07  pbartok
12007
12008         * XplatUI.cs, XplatUIDriver.cs:
12009           - Added ClientToScreen coordinate translation method
12010
12011 2004-10-02 13:06  pbartok
12012
12013         * KeyPressEventArgs.cs:
12014           - Fixed access level for constructor
12015
12016 2004-10-02 13:06  pbartok
12017
12018         * NativeWindow.cs:
12019           - Changed access level for the window_collection hash table
12020
12021 2004-10-02 13:05  pbartok
12022
12023         * Form.cs:
12024           - Added KeyPreview property
12025           - Added Menu property (still incomplete, pending Jordi's menu work)
12026           - Implemented ProcessCmdKey
12027           - Implemented ProcessDialogKey
12028           - Implemented ProcessKeyPreview
12029
12030 2004-10-02 13:02  pbartok
12031
12032         * Control.cs:
12033           - Added private method to get the Control object from the window
12034           handle
12035           - Implemented ContextMenu property
12036           - Implemented PointToScreen
12037           - Implemented PreProcessMessage
12038           - Implemented IsInputChar
12039           - Implemented IsInputKey
12040           - Implemented ProcessCmdKey
12041           - Completed ProcessKeyEventArgs
12042           - Fixed message loop to call the proper chain of functions on key
12043           events
12044           - Implemented ProcessDialogChar
12045           - Implemented ProcessDialogKey
12046           - Implemented ProcessKeyMessage
12047           - Implemented ProcessKeyPreview
12048           - Added RaiseDragEvent stub (MS internal method)
12049           - Added RaiseKeyEvent stub (MS internal method)
12050           - Added RaiseMouseEvent stub (MS Internal method)
12051           - Added RaisePaintEvent stub (MS Internal method)
12052           - Added ResetMouseEventArgs stub (MS Internal method)
12053           - Implemented RtlTranslateAlignment
12054           - Implemented RtlTranslateContent
12055           - Implemented RtlTranslateHorizontal
12056           - Implemented RtlTranslateLeftRight
12057           - Added generation of KeyPress event
12058
12059 2004-10-02 05:57  ravindra
12060
12061         * ListViewItem.cs: Added attributes.
12062
12063 2004-10-02 05:32  ravindra
12064
12065         * ListView.cs: Added attributes.
12066
12067 2004-10-01 11:53  jackson
12068
12069         * Form.cs: Implement the Close method so work on MessageBox can
12070           continue.
12071
12072 2004-09-30 14:06  pbartok
12073
12074         * XplatUIX11.cs:
12075           - Bug fixes
12076
12077 2004-09-30 11:34  jackson
12078
12079         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
12080
12081 2004-09-30 07:26  ravindra
12082
12083         * ListViewItemConverter.cs: Converter for ListViewItem.
12084
12085 2004-09-30 07:26  ravindra
12086
12087         * SortOrder.cs: Enum for ListView control.
12088
12089 2004-09-30 07:25  ravindra
12090
12091         * ColumnHeader.cs: Supporting class for ListView control.
12092
12093 2004-09-30 07:24  ravindra
12094
12095         * ListView.cs, ListViewItem.cs: Initial implementation.
12096
12097 2004-09-30 07:20  ravindra
12098
12099         * ItemActivation.cs: Enum for ListView Control.
12100
12101 2004-09-29 20:29  pbartok
12102
12103         * XplatUIX11.cs:
12104           - Added lookup of pixel value for background color; tries to get a
12105             color 'close' to the requested color, it avoids having to create a
12106             colormap.  Depending on the display this could mean the used color
12107             is slightly off the desired color. Might have to change it to a more
12108             resource intensive colormap approach, but it will work as a
12109           workaround to avoid red screens.
12110
12111 2004-09-29 14:27  jackson
12112
12113         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
12114
12115 2004-09-28 12:44  pbartok
12116
12117         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
12118           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
12119           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
12120           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
12121           TrackBar.cs, VScrollBar.cs:
12122           - Streamlined Theme interfaces:
12123             * Each DrawXXX method for a control now is passed the object for
12124               the control to be drawn in order to allow accessing any state the
12125               theme might require
12126
12127             * ControlPaint methods for the theme now have a CP prefix to avoid
12128               name clashes with the Draw methods for controls
12129
12130             * Every control now retrieves it's DefaultSize from the current
12131             theme
12132
12133 2004-09-28 12:17  jackson
12134
12135         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
12136           drawing
12137
12138 2004-09-24 14:57  jackson
12139
12140         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
12141           Gives us a nice little performance boost.
12142
12143 2004-09-24 12:02  jackson
12144
12145         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
12146           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
12147           Control and supporting classes. Initial checkin
12148
12149 2004-09-23 13:08  jackson
12150
12151         * Form.cs: Temp build fixage
12152
12153 2004-09-23 01:39  ravindra
12154
12155         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
12156           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
12157           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
12158           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
12159           EventHandlers needed by ListView Control.
12160
12161 2004-09-22 14:12  pbartok
12162
12163         * ScrollableControl.cs:
12164           - Implemented DockPadding property
12165           - Implemented AutoScroll property
12166           - Implemented AutoScrollMargin property
12167           - Implemented AutoScrollMinSize property
12168           - Implemented AutoScrollPosition property
12169           - Implemented DisplayRectangle property (still incomplete)
12170           - Implemented CreateParams property
12171           - Implemented HScroll property
12172           - Implemented VScroll property
12173           - Implemented OnVisibleChanged property
12174
12175 2004-09-22 14:09  pbartok
12176
12177         * Form.cs:
12178           - Added Form.ControllCollection class
12179           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
12180             RemoveOwnedForm (still incomplete, missing on-top and common
12181             minimize/maximize behaviour)
12182           - Added StartPosition property (still incomplete, does not use when
12183             creating the form)
12184           - Added ShowDialog() methods (still incomplete, missing forcing the
12185             dialog modal)
12186
12187 2004-09-22 14:05  pbartok
12188
12189         * Application.cs:
12190           - Added message loop for modal dialogs
12191
12192 2004-09-22 14:02  pbartok
12193
12194         * GroupBox.cs:
12195           - Fixed wrong types for events
12196
12197 2004-09-22 14:00  pbartok
12198
12199         * Shortcut.cs, FormWindowState.cs:
12200           - Fixed wrong values
12201
12202 2004-09-22 12:01  jackson
12203
12204         * Control.cs: Text is never null
12205
12206 2004-09-20 22:14  pbartok
12207
12208         * XplatUIWin32.cs:
12209           - Fixed accessibility level for Idle handler
12210
12211 2004-09-20 18:54  jackson
12212
12213         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12214           XplatUIX11.cs: New message loop that uses poll so we don't get a
12215           busy loop
12216
12217 2004-09-17 10:43  pbartok
12218
12219         * ScrollBar.cs:
12220           - Fixed behaviour of arrow buttons. Now properly behaves like
12221             Buttons (and like Microsoft's scrollbar arrow buttons)
12222
12223 2004-09-17 10:14  pbartok
12224
12225         * ScrollBar.cs:
12226           - Added missing release of keyboard/mouse capture
12227
12228 2004-09-17 06:18  jordi
12229
12230         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
12231           Theme.cs: Very early menu support
12232
12233 2004-09-16 17:45  pbartok
12234
12235         * XplatUIWin32.cs:
12236           - Fixed sending a window to the front
12237           - Added overload for SetWindowPos to avoid casting
12238
12239 2004-09-16 17:44  pbartok
12240
12241         * Control.cs:
12242           - Added SendToBack and BringToFront methods
12243
12244 2004-09-16 07:00  ravindra
12245
12246         * Copyright: Added Novell URL.
12247
12248 2004-09-16 07:00  ravindra
12249
12250         * ToolBar.cs: Invalidate should be done before redrawing.
12251
12252 2004-09-15 21:19  ravindra
12253
12254         * ColumnHeaderStyle.cs: Enum for ListView Control.
12255
12256 2004-09-15 21:18  ravindra
12257
12258         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
12259           ListView Control.
12260
12261 2004-09-13 18:26  jackson
12262
12263         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
12264           properly
12265
12266 2004-09-13 18:13  jackson
12267
12268         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
12269           a second thread and post messages into the main threads message
12270           queue. This makes timing much more consistent. Both win2K and XP
12271           have a minimum timer value of 15 milliseconds, so we now do this
12272           too.
12273
12274 2004-09-13 15:18  pbartok
12275
12276         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12277           XplatUIX11.cs:
12278           - Added Z-Ordering methods
12279
12280 2004-09-13 10:56  pbartok
12281
12282         * Form.cs:
12283           - Fixed #region names
12284           - Moved properties and methods into their proper #regions
12285
12286 2004-09-13 10:51  pbartok
12287
12288         * Form.cs:
12289           - Added Accept and CancelButton properties
12290           - Added ProcessDialogKey() method
12291
12292 2004-09-13 08:18  pbartok
12293
12294         * IWindowTarget.cs:
12295           - Initial check-in
12296
12297 2004-09-10 21:50  pbartok
12298
12299         * Control.cs:
12300           - Added DoDragDrop() [incomplete]
12301           - Properly implemented 'Visible' handling
12302           - Added SetVisibleCore()
12303           - Implemented FindChildAtPoint()
12304           - Implemented GetContainerControl()
12305           - Implemented Hide()
12306
12307 2004-09-10 19:28  pbartok
12308
12309         * Control.cs:
12310           - Moved methods into their appropriate #regions
12311           - Reordered methods within regions alphabetically
12312
12313 2004-09-10 18:57  pbartok
12314
12315         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12316           - Added method to retrieve text from window
12317
12318 2004-09-10 18:56  pbartok
12319
12320         * Control.cs:
12321           - Moved some internal functions into the internal region
12322           - Implemented FontHeight
12323           - Implemented RenderRightToLeft
12324           - Implemented ResizeRedraw
12325           - Implemented ShowFocusCues
12326           - Implemented ShowKeyboardCues
12327           - Implemented FromChildHandle
12328           - Implemented FromHandle
12329           - Implemented IsMnemonic
12330           - Implemented ReflectMessage
12331           - All public and protected Static Methods are now complete
12332
12333 2004-09-10 16:54  pbartok
12334
12335         * Control.cs:
12336           - Implemented remaining missing public instance properties
12337           - Alphabetized some out of order properties
12338
12339 2004-09-10 05:51  ravindra
12340
12341         * PictureBox.cs: Added a check for null image.
12342
12343 2004-09-10 00:59  jordi
12344
12345         * GroupBox.cs: remove cvs tag
12346
12347 2004-09-09 05:25  ravindra
12348
12349         * ToolBar.cs: Make redraw accessible from ToolBarButton.
12350
12351 2004-09-09 05:23  ravindra
12352
12353         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
12354           parent redraw.
12355
12356 2004-09-09 02:28  pbartok
12357
12358         * ThemeWin32Classic.cs:
12359           - Improve disabled string look
12360
12361 2004-09-09 01:15  jordi
12362
12363         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
12364           args and handler
12365
12366 2004-09-08 23:56  ravindra
12367
12368         * ItemBoundsPortion.cs: It's enum, not a class!
12369
12370 2004-09-08 23:47  ravindra
12371
12372         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
12373           Enums for Form.
12374
12375 2004-09-08 21:13  ravindra
12376
12377         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
12378           ListView control.
12379
12380 2004-09-08 21:03  ravindra
12381
12382         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
12383           avoid crash.
12384
12385 2004-09-08 21:01  ravindra
12386
12387         * ScrollableControl.cs: Removed unreachable code.
12388
12389 2004-09-08 06:45  jordi
12390
12391         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
12392
12393 2004-09-08 01:00  jackson
12394
12395         * XplatUIX11.cs: Only run the timers when updating the message
12396           queue. This effectively gives X messages a higher priority then
12397           timer messages. Timers still need love though
12398
12399 2004-09-07 14:01  jackson
12400
12401         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
12402           this for us and the handle is no longer valid.
12403
12404 2004-09-07 13:59  jackson
12405
12406         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
12407           loop that manages to not crash. TODO: Add poll and cleanup timers
12408
12409 2004-09-07 11:12  jordi
12410
12411         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
12412
12413 2004-09-07 03:40  jordi
12414
12415         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
12416           fixes, methods, multiple links
12417
12418 2004-09-06 06:55  jordi
12419
12420         * Control.cs: Caches ClientRectangle rectangle value
12421
12422 2004-09-05 02:03  jordi
12423
12424         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
12425           certain situations
12426
12427 2004-09-04 11:10  jordi
12428
12429         * Label.cs: Refresh when font changed
12430
12431 2004-09-02 16:24  pbartok
12432
12433         * Control.cs:
12434           - Added sanity check to creation of double buffer bitmap
12435
12436 2004-09-02 16:24  pbartok
12437
12438         * ButtonBase.cs:
12439           - Fixed selection of text color
12440           - Fixed handling of resize event; now properly recreates double
12441             buffering bitmap
12442           - Added missing assignment of TextAlignment
12443           - Added proper default for TextAlignment
12444
12445 2004-09-02 14:26  pbartok
12446
12447         * RadioButton.cs:
12448           - Added missing RadioButton.RadioButtonAccessibleObject class
12449
12450 2004-09-02 14:26  pbartok
12451
12452         * Control.cs:
12453           - Added missing Control.ControlAccessibleObject class
12454           - Started to implement Select()ion mechanisms, still very incomplete
12455
12456 2004-09-02 14:25  pbartok
12457
12458         * AccessibleObject.cs:
12459           - Added missing methods
12460
12461 2004-09-02 14:23  pbartok
12462
12463         * AccessibleNavigation.cs, AccessibleSelection.cs:
12464           - Initial check-in
12465
12466 2004-09-02 10:32  jordi
12467
12468         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
12469           pool for pens, brushes, and hatchbruses
12470
12471 2004-09-01 15:30  jackson
12472
12473         * StatusBar.cs: Fix typo
12474
12475 2004-09-01 14:44  pbartok
12476
12477         * RadioButton.cs:
12478           - Fixed state
12479
12480 2004-09-01 14:39  pbartok
12481
12482         * Button.cs, RadioButton.cs:
12483           - Functional initial check-in
12484
12485 2004-09-01 14:01  pbartok
12486
12487         * CheckBox.cs:
12488           - Added missing default
12489           - Added missing region mark
12490
12491 2004-09-01 09:10  jordi
12492
12493         * Label.cs: fixes method signatures, new methods, events, fixes
12494           autosize
12495
12496 2004-09-01 07:19  jordi
12497
12498         * Control.cs: Init string variables with an empty object
12499
12500 2004-09-01 04:20  jordi
12501
12502         * Control.cs: fires OnFontChanged event
12503
12504 2004-08-31 20:07  pbartok
12505
12506         * ButtonBase.cs:
12507           - Enabled display of strings
12508
12509 2004-08-31 20:05  pbartok
12510
12511         * Form.cs:
12512           - Added (partial) implementation of DialogResult; rest needs to be
12513             implemented when the modal loop code is done
12514
12515 2004-08-31 19:55  pbartok
12516
12517         * CheckBox.cs:
12518           - Fixed to match the removal of the needs_redraw concept
12519
12520 2004-08-31 19:55  pbartok
12521
12522         * ButtonBase.cs:
12523           - Removed the rather odd split between 'needs redraw' and redrawing
12524           - Now handles the events that require regeneration (ambient
12525             properties and size)
12526
12527 2004-08-31 19:41  pbartok
12528
12529         * Control.cs:
12530           - Added firing of BackColorChanged event
12531           - Added TopLevelControl property
12532           - Fixed handling of WM_ERASEBKGRND message
12533
12534 2004-08-31 12:49  pbartok
12535
12536         * ButtonBase.cs:
12537           - Removed debug
12538           - Minor fixes
12539
12540 2004-08-31 12:48  pbartok
12541
12542         * CheckBox.cs:
12543           - Finished (famous last words)
12544
12545 2004-08-31 04:35  jordi
12546
12547         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
12548           scrolling bugs, adds new methods
12549
12550 2004-08-30 14:42  pbartok
12551
12552         * CheckBox.cs:
12553           - Implemented CheckBox drawing code
12554
12555 2004-08-30 14:42  pbartok
12556
12557         * ButtonBase.cs:
12558           - Made Redraw() and CheckRedraw() virtual
12559           - Improved mouse up/down/move logic to properly track buttons
12560
12561 2004-08-30 09:44  pbartok
12562
12563         * CheckBox.cs:
12564           - Updated to fix broken build. Not complete yet.
12565
12566 2004-08-30 09:28  pbartok
12567
12568         * CheckState.cs:
12569           - Initial checkin
12570
12571 2004-08-30 09:17  pbartok
12572
12573         * Appearance.cs:
12574           - Initial check-in
12575
12576 2004-08-27 16:12  ravindra
12577
12578         * ToolBarButton.cs: Added TypeConverter attribute.
12579
12580 2004-08-27 16:07  ravindra
12581
12582         * ImageIndexConverter.cs: Implemented.
12583
12584 2004-08-27 14:17  pbartok
12585
12586         * Control.cs:
12587           - Removed unneeded stack vars
12588           - First attempt to fix sizing issues when layout is suspended
12589
12590 2004-08-25 15:35  jordi
12591
12592         * ScrollBar.cs: more fixes to scrollbar
12593
12594 2004-08-25 14:04  ravindra
12595
12596         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
12597           Added the missing divider code and grip for ToolBar Control.
12598
12599 2004-08-25 13:20  pbartok
12600
12601         * Control.cs:
12602           - Control now properly passes the ambient background color to child
12603             controls
12604
12605 2004-08-25 13:20  jordi
12606
12607         * ScrollBar.cs: small bug fix regarding bar position
12608
12609 2004-08-25 12:33  pbartok
12610
12611         * Timer.cs:
12612           - Now only calls SetTimer or KillTimer if the enabled state has
12613           changed
12614
12615 2004-08-25 12:33  pbartok
12616
12617         * XplatUIWin32.cs:
12618           - Fixed timer handling, now seems to work
12619           - Improved error message for window creation
12620
12621 2004-08-25 12:32  pbartok
12622
12623         * Control.cs:
12624           - Fixed generation of MouseUp message
12625
12626 2004-08-25 12:29  jordi
12627
12628         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
12629           and fixes for progressbar
12630
12631 2004-08-24 18:43  ravindra
12632
12633         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
12634           in ToolBar control.
12635
12636 2004-08-24 17:15  pbartok
12637
12638         * Panel.cs:
12639           - Added #region
12640           - Added missing events
12641           - Alphabetized
12642
12643 2004-08-24 17:14  pbartok
12644
12645         * StatusBar.cs, PictureBox.cs:
12646           - Now uses Control's CreateParams
12647
12648 2004-08-24 16:36  pbartok
12649
12650         * XplatUIX11.cs:
12651           - Fixed background color handling
12652           - Fixed sending of enter/leave events on a grab
12653
12654 2004-08-24 16:35  pbartok
12655
12656         * X11Structs.cs:
12657           - Refined definitions for CrossingEvent
12658
12659 2004-08-24 12:37  jordi
12660
12661         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
12662           formmating, methods signature, and adds missing events
12663
12664 2004-08-24 12:24  jordi
12665
12666         * Control.cs: fire OnEnabledChanged event
12667
12668 2004-08-24 11:17  pbartok
12669
12670         * XplatUIWin32.cs:
12671           - Implemented SetTimer() and KillTimer()
12672
12673 2004-08-24 11:16  pbartok
12674
12675         * XplatUIX11.cs:
12676           - Now uses Remove instead of Add to kill the timer
12677
12678 2004-08-24 10:16  jackson
12679
12680         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
12681           picture boxes in the theme now. Draw picture box borders and obey
12682           sizing modes
12683
12684 2004-08-24 05:49  jackson
12685
12686         * Timer.cs: Remove top secret debugging code
12687
12688 2004-08-24 05:34  jackson
12689
12690         * PictureBox.cs: Temp hack to make picture boxes draw their full
12691           image
12692
12693 2004-08-24 05:29  jackson
12694
12695         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
12696           XplatUIX11.cs: Move timers to the driver level. On X they are
12697           queued by the driver and checked on idle.
12698
12699 2004-08-24 01:07  jackson
12700
12701         * XplatUIX11.cs: Use a queue for async messages instead of passing
12702           them as ClientMessages since that was totally broken. Also simply
12703           check for events and return an idle message if none are found. This
12704           gives us an idle handler, and prevents deadlocking when no messages
12705           are in the queue.
12706
12707 2004-08-23 18:19  ravindra
12708
12709         * XplatUIWin32.cs: Removed the unwanted destructor.
12710
12711 2004-08-23 17:27  pbartok
12712
12713         * ButtonBase.cs:
12714           - Finishing touches. Works now, just needs some optimizations.
12715
12716 2004-08-23 16:53  jordi
12717
12718         * ScrollBar.cs: small fix
12719
12720 2004-08-23 16:45  pbartok
12721
12722         * Application.cs:
12723           - Removed debug output
12724           - Simplifications
12725
12726 2004-08-23 16:43  jordi
12727
12728         * ScrollBar.cs: [no log message]
12729
12730 2004-08-23 16:10  pbartok
12731
12732         * Form.cs:
12733           - Fixed handling of WM_CLOSE message
12734           - Removed debug output
12735
12736 2004-08-23 16:09  pbartok
12737
12738         * Application.cs:
12739           - Added handling of Idle event
12740           - Added handling of form closing
12741           - Fixed reporting of MessageLoop property
12742           - Removed some unneeded code, should provide a bit of a speedup
12743
12744 2004-08-23 15:22  pbartok
12745
12746         * Control.cs:
12747           - Added InitLayout() method
12748           - Added code to properly perform layout when Anchor or Dock property
12749             is changed
12750           - Changed 'interpretation' of ResumeLayout. MS seems to have a
12751             LAMESPEC, tried to do it in a way that makes sense
12752
12753 2004-08-23 14:10  jordi
12754
12755         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
12756           properties and methods
12757
12758 2004-08-23 13:55  pbartok
12759
12760         * Control.cs:
12761           - Properly fixed Jordi's last fix
12762           - Now uses Cursor's Position property instead of calling XplatUI
12763           directly
12764
12765 2004-08-23 13:44  jordi
12766
12767         * PaintEventHandler.cs: Adding missing attribute
12768
12769 2004-08-23 13:39  pbartok
12770
12771         * Cursor.cs:
12772           - Implemented Position property
12773
12774 2004-08-23 13:39  pbartok
12775
12776         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
12777           - Added method to move mouse cursor
12778
12779 2004-08-23 13:39  pbartok
12780
12781         * XplatUIX11.cs:
12782           - Fixed setting of background color
12783           - Added method to move mouse cursor
12784
12785 2004-08-23 13:16  jordi
12786
12787         * Control.cs: avoids null exception
12788
12789 2004-08-22 17:46  jackson
12790
12791         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
12792           PictureBox
12793
12794 2004-08-22 17:40  jackson
12795
12796         * XplatUIX11.cs: Add some missing locks
12797
12798 2004-08-22 15:10  pbartok
12799
12800         * Control.cs, Form.cs:
12801           - Removed OverlappedWindow style from Control, instead it's default
12802             now is child
12803           - Made form windows OverlappedWindow by default
12804
12805 2004-08-22 13:34  jackson
12806
12807         * ScrollBar.cs: Update the position through the Value property so
12808           the OnValueChanged event is raised.
12809
12810 2004-08-22 12:04  pbartok
12811
12812         * SWF.csproj:
12813           - Added Cursor.cs and UserControl.cs
12814
12815 2004-08-22 12:03  pbartok
12816
12817         * Cursor.cs:
12818           - Started implementation, not usable yet
12819
12820 2004-08-22 12:00  pbartok
12821
12822         * UserControl.cs:
12823           - Implemented UserControl (complete)
12824
12825 2004-08-21 19:20  ravindra
12826
12827         * ToolBar.cs: Correcting the formatting mess of VS.NET.
12828
12829 2004-08-21 18:49  ravindra
12830
12831         * ToolBar.cs: Probably this completes the missing attributes in
12832           toolbar control.
12833
12834 2004-08-21 18:03  ravindra
12835
12836         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
12837           Fixed toolbar control signatures.
12838
12839 2004-08-21 16:32  pbartok
12840
12841         * LinkLabel.cs:
12842           - Signature Fixes
12843
12844 2004-08-21 16:30  pbartok
12845
12846         * Label.cs:
12847           - Signature fixes
12848
12849 2004-08-21 16:19  pbartok
12850
12851         * Control.cs, Label.cs:
12852           - Signature fixes
12853
12854 2004-08-21 15:57  pbartok
12855
12856         * ButtonBase.cs:
12857           - Added loads of debug output for development
12858           - Fixed typo in method name
12859
12860 2004-08-21 15:52  pbartok
12861
12862         * ToolBarButtonClickEventArgs.cs:
12863           - Added missing base class
12864
12865 2004-08-21 14:53  pbartok
12866
12867         * Control.cs:
12868           - Updated to match new GrabWindow signature
12869
12870 2004-08-21 14:51  pbartok
12871
12872         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12873           - Added method to get default display size
12874
12875 2004-08-21 14:23  pbartok
12876
12877         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
12878           - Added method to query current grab state
12879           - Added argument to allow confining a grab to a window
12880
12881 2004-08-21 14:22  pbartok
12882
12883         * Keys.cs:
12884           - Added [Flags] attribute so that modifiers can be used in bitwise
12885           ops
12886
12887 2004-08-21 14:21  pbartok
12888
12889         * TrackBar.cs, ScrollBar.cs:
12890           - Replaced direct XplatUI calls with their Control counterpart
12891
12892 2004-08-21 13:32  pbartok
12893
12894         * Control.cs:
12895           - Implemented Created property
12896
12897 2004-08-21 13:28  pbartok
12898
12899         * Control.cs:
12900           - Implemented ContainsFocus
12901
12902 2004-08-21 13:26  pbartok
12903
12904         * Control.cs:
12905           - Implemented CausesValidation
12906
12907 2004-08-21 13:21  pbartok
12908
12909         * Control.cs:
12910           - Implemented CanFocus
12911           - Implemented CanSelect
12912           - Implemented Capture
12913
12914 2004-08-21 12:35  pbartok
12915
12916         * XplatUIWin32.cs:
12917           - Fixed bug with Async message handling
12918           - Implemented getting the ModifierKeys
12919
12920 2004-08-21 12:32  jackson
12921
12922         * AsyncMethodResult.cs: Make sure we have the mutex before we
12923           release it. Fixes BeginInvoke on windows
12924
12925 2004-08-21 11:31  pbartok
12926
12927         * XplatUIWin32.cs, XplatUIX11.cs:
12928           - Drivers now return proper mouse state
12929
12930 2004-08-21 10:54  jackson
12931
12932         * Control.cs: Implement EndInvoke
12933
12934 2004-08-21 10:48  jackson
12935
12936         * Timer.cs: Remove unneeded finalizer
12937
12938 2004-08-20 19:52  ravindra
12939
12940         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
12941           in mouse event handling in the ToolBar control.
12942
12943 2004-08-20 19:50  ravindra
12944
12945         * ImageList.cs: Changed draw method to use the arguments passed in
12946           to draw the image.
12947
12948 2004-08-20 18:58  pbartok
12949
12950         * XplatUIStructs.cs:
12951           - Added private message for async communication
12952
12953 2004-08-20 17:38  ravindra
12954
12955         * Control.cs: Made RightToLeft property virtual and removed a
12956           Console.WriteLine.
12957
12958 2004-08-20 14:39  jordi
12959
12960         * ThemeGtk.cs: use style_attach
12961
12962 2004-08-20 14:39  pbartok
12963
12964         * XplatUIWin32.cs:
12965           - Added jackson's Async code from X11 to Win32
12966
12967 2004-08-20 14:09  pbartok
12968
12969         * SWF.csproj:
12970           - Added all new files
12971
12972 2004-08-20 14:09  pbartok
12973
12974         * Control.cs:
12975           - Added call to set window background color
12976
12977 2004-08-20 14:03  pbartok
12978
12979         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
12980           - Added method for setting the window background
12981
12982 2004-08-20 14:02  pbartok
12983
12984         * XplatUIWin32.cs:
12985           - Added method for setting the background color
12986           - Added handling for erasing the window background
12987
12988 2004-08-20 13:45  jordi
12989
12990         * TrackBar.cs: fixes timer, new properties and methods
12991
12992 2004-08-20 13:34  jackson
12993
12994         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
12995           correct thread
12996
12997 2004-08-20 13:22  jackson
12998
12999         * Timer.cs: Timer Tick events are now handed through Controls Async
13000           mechanism so the callbacks are executed in the same thread as X
13001
13002 2004-08-20 13:19  jackson
13003
13004         * XplatUIDriver.cs: Expose functionality to send async messages
13005           through the driver
13006
13007 2004-08-20 13:18  jackson
13008
13009         * Control.cs: Implement Begininvoke
13010
13011 2004-08-20 13:14  jackson
13012
13013         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
13014           messages through the driver
13015
13016 2004-08-20 13:12  jackson
13017
13018         * XplatUIX11.cs: Lock before all X operations. Also added Async
13019           method functionality through XSendEvent
13020
13021 2004-08-20 13:11  jackson
13022
13023         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
13024           This will screw up on 64 bit systems)
13025
13026 2004-08-20 13:10  jackson
13027
13028         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
13029           Async messages through X/Win32
13030
13031 2004-08-19 19:39  pbartok
13032
13033         * XplatUIX11.cs:
13034           - Updated code to match new HandleData.DeviceContext type
13035
13036 2004-08-19 19:38  pbartok
13037
13038         * HandleData.cs:
13039           - Made DeviceContext a generic object to allow usage from various
13040           drivers
13041           - Added support for queueing Windows messages
13042
13043 2004-08-19 19:37  pbartok
13044
13045         * XplatUIWin32.cs:
13046           - Added generation of MouseEnter, MouseLeave and MouseHover events
13047           - Added cleanup on EndPaint
13048
13049 2004-08-19 19:17  pbartok
13050
13051         * Control.cs:
13052           - Added handling of WM_MOUSEHOVER
13053           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
13054           code
13055
13056 2004-08-19 18:55  jordi
13057
13058         * ThemeGtk.cs: fixes button order
13059
13060 2004-08-19 18:12  jordi
13061
13062         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
13063
13064 2004-08-19 17:09  pbartok
13065
13066         * Control.cs:
13067           - Added Right property
13068           - Added RightToLeft property
13069
13070 2004-08-19 16:27  jordi
13071
13072         * ThemeGtk.cs: experimental GTK theme support
13073
13074 2004-08-19 16:26  jordi
13075
13076         * ITheme.cs, Theme.cs: move themes from an interface to a class
13077
13078 2004-08-19 16:25  jordi
13079
13080         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
13081           theme enhancaments
13082
13083 2004-08-19 16:04  pbartok
13084
13085         * XplatUIX11.cs:
13086           - Added colormap basics
13087           - Added a way to re-initialize with a different display handle
13088           - Fixed setting of the window background color
13089           - Added various X11 imports related to colors and colormaps
13090
13091 2004-08-19 15:51  pbartok
13092
13093         * X11Structs.cs:
13094           - Removed packing hints (Paolo suggested this a while back)
13095           - fixed colormap type
13096           - Added default Atom types
13097           - Added Screen and color structs and enums
13098
13099 2004-08-19 15:39  pbartok
13100
13101         * ImageList.cs:
13102           - Added missing Draw() method
13103           - Added missing RecreateHandle event
13104
13105 2004-08-19 15:30  pbartok
13106
13107         * Form.cs:
13108           - Added handling of WM_CLOSE
13109
13110 2004-08-18 13:16  jordi
13111
13112         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
13113           a table
13114
13115 2004-08-18 09:56  jordi
13116
13117         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
13118
13119 2004-08-17 15:31  ravindra
13120
13121         * SWF.csproj: Updated project.
13122
13123 2004-08-17 15:25  pbartok
13124
13125         * Control.cs:
13126           - Drawing improvement; don't call UpdateBounds if we are not visible
13127             (or have been minimized)
13128
13129 2004-08-17 15:24  pbartok
13130
13131         * XplatUIWin32.cs:
13132           - Finished IsVisible
13133           - Added Win32GetWindowPlacement
13134
13135 2004-08-17 15:08  jackson
13136
13137         * Panel.cs: Initial checkin of the Panel
13138
13139 2004-08-17 14:25  pbartok
13140
13141         * Control.cs:
13142           - Fixed broken handling of default window sizes
13143
13144 2004-08-17 13:29  jackson
13145
13146         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
13147           has a large startup time.
13148
13149 2004-08-17 10:25  jackson
13150
13151         * HandleData.cs: union areas properly
13152
13153 2004-08-17 10:12  jackson
13154
13155         * HandleData.cs: union areas properly
13156
13157 2004-08-16 20:00  ravindra
13158
13159         * ToolBar.cs, ToolBarButton.cs: Added attributes.
13160
13161 2004-08-16 18:48  ravindra
13162
13163         * ToolBar.cs: Added attributes.
13164
13165 2004-08-16 17:17  ravindra
13166
13167         * SWF.csproj: Updated project.
13168
13169 2004-08-16 17:16  jackson
13170
13171         * XplatUIX11.cs: Check for more expose events before sending a
13172           WM_PAINT so they can all be grouped together. This makes dragging a
13173           window across another window redraw in a sane way.
13174
13175 2004-08-16 15:47  pbartok
13176
13177         * Control.cs:
13178           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
13179             support OnMouseEnter/Leave()
13180           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
13181             exposure handling
13182
13183 2004-08-16 15:46  pbartok
13184
13185         * XplatUIStructs.cs, XplatUIX11.cs:
13186           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
13187           OnMouseEnter/Leave()
13188
13189 2004-08-16 15:34  jackson
13190
13191         * XplatUIX11.cs: Group multiple expose events in HandleData, make
13192           sure messages get the message field set to WM_NULL if they are not
13193           handled.
13194
13195 2004-08-16 15:24  jackson
13196
13197         * HandleData.cs: HandleData is used for storing message information
13198           for window handles
13199
13200 2004-08-15 17:23  ravindra
13201
13202         * ColorDepth.cs: Added attribute.
13203
13204 2004-08-15 17:23  ravindra
13205
13206         * SWF.csproj: Updated project for ToolBar Control.
13207
13208 2004-08-15 17:20  ravindra
13209
13210         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
13211           control and also dos2unix format.
13212
13213 2004-08-15 17:13  ravindra
13214
13215         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
13216           ToolBarButtonClickEventArgs.cs,
13217           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
13218           ToolBarTextAlign.cs: First Implementation of ToolBar control.
13219
13220 2004-08-15 15:31  pbartok
13221
13222         * ButtonBase.cs:
13223           - First (mostly) working version
13224
13225 2004-08-13 16:15  pbartok
13226
13227         * Control.cs:
13228           - Fixed Anchor default
13229
13230 2004-08-13 15:43  pbartok
13231
13232         * Control.cs:
13233           - Changed GetCursorPos signature
13234
13235 2004-08-13 15:42  pbartok
13236
13237         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
13238           - Changed signature for GetCursorPos
13239
13240 2004-08-13 15:25  pbartok
13241
13242         * XplatUIX11.cs:
13243           - Cleanup
13244           - Fixed resizing/exposure handling
13245
13246 2004-08-13 15:22  jordi
13247
13248         * ThemeWin32Classic.cs: removes redundant code and fixes issues
13249           with tickposition
13250
13251 2004-08-13 14:55  jordi
13252
13253         * TrackBar.cs: change from wndproc to events
13254
13255 2004-08-13 13:00  jordi
13256
13257         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13258           XplatUIX11.cs: implements PointToClient (ScreenToClient)
13259
13260 2004-08-13 12:53  pbartok
13261
13262         * XplatUIWin32.cs:
13263           - Changed GetWindowPos to also provide client area size
13264           - Fixed broken prototypes for several win32 functions
13265
13266 2004-08-13 12:53  pbartok
13267
13268         * XplatUI.cs, XplatUIDriver.cs:
13269           - Changed GetWindowPos to also provide client area size
13270
13271 2004-08-13 12:52  pbartok
13272
13273         * XplatUIX11.cs:
13274           - Added generation of WM_POSCHANGED
13275           - Changed GetWindowPos to also provide client area size
13276
13277 2004-08-13 12:52  pbartok
13278
13279         * Control.cs:
13280           - Added Dispose() and destructor
13281           - Fixed resizing and bounds calculation
13282           - Fixed Layout
13283           - Added memory savings for invisible windows
13284
13285 2004-08-13 12:46  jordi
13286
13287         * TrackBar.cs: adds timer and grap window
13288
13289 2004-08-13 10:25  jackson
13290
13291         * Timer.cs: SWF Timer
13292
13293 2004-08-12 16:59  pbartok
13294
13295         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13296           - Implemented method to get current mouse position
13297
13298 2004-08-12 14:29  jordi
13299
13300         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
13301           enhancement, fix mouse problems, highli thumb, etc
13302
13303 2004-08-12 13:31  pbartok
13304
13305         * Control.cs:
13306           - Fixed Anchoring bugs
13307
13308 2004-08-12 13:01  jackson
13309
13310         * StatusBar.cs: Don't forget things
13311
13312 2004-08-12 12:54  jackson
13313
13314         * ThemeWin32Classic.cs: Handle owner draw status bars
13315
13316 2004-08-12 12:54  jackson
13317
13318         * StatusBar.cs: Implement missing properties, events, and methods.
13319           Handle mouse clicking
13320
13321 2004-08-12 10:19  jackson
13322
13323         * StatusBarPanelClickEventArgs.cs,
13324           StatusBarPanelClickEventHandler.cs: Classes for handling status
13325           bar panel click events
13326
13327 2004-08-12 10:10  jackson
13328
13329         * Control.cs: Add missing properties
13330
13331 2004-08-12 09:46  pbartok
13332
13333         * BindingsManagerBase.cs:
13334           - Name changed to BindingManagerBase.cs
13335
13336 2004-08-12 09:25  jordi
13337
13338         * ScrollableControl.cs: calls ctrlbase instead of exeception
13339
13340 2004-08-11 16:28  pbartok
13341
13342         * InputLanguageChangingEventArgs.cs:
13343           - Never check in before compiling. Fixes the last check-in
13344
13345 2004-08-11 16:26  pbartok
13346
13347         * InputLanguageChangingEventArgs.cs:
13348           - More signature fixes
13349
13350 2004-08-11 16:20  pbartok
13351
13352         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
13353           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
13354           ImageListStreamer.cs, InputLanguage.cs,
13355           InputLanguageChangedEventArgs.cs,
13356           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
13357           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
13358           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
13359           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13360           - Signature fixes
13361
13362 2004-08-11 16:16  pbartok
13363
13364         * Application.cs:
13365           - Fixed Signature
13366           - Added .Net 1.1 method
13367
13368 2004-08-11 15:25  pbartok
13369
13370         * SWF.csproj:
13371           - Fixed BindingManagerBase.cs filename
13372
13373 2004-08-11 15:22  pbartok
13374
13375         * BindingManagerBase.cs:
13376           - Was checked in with wrong filename
13377
13378 2004-08-11 14:50  pbartok
13379
13380         * SWF.csproj:
13381           - Updated
13382
13383 2004-08-11 13:41  jordi
13384
13385         * XplatUIWin32.cs: Fixes ClientRect
13386
13387 2004-08-11 13:19  pbartok
13388
13389         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13390           XplatUIX11.cs:
13391           - We had SetWindowPos and MoveWindow to set window positions and
13392             size, removed MoveWindow. We have GetWindowPos, so it made sense to
13393             keep SetWindowPos as matching counterpart
13394           - Added some X11 sanity checking
13395
13396 2004-08-11 12:59  pbartok
13397
13398         * Control.cs:
13399           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
13400             (It seems that SetBounds is just a front for SetBoundsCore and
13401              SetBoundsCore updates the underlying window system and
13402              UpdateBounds is responsible for updating the variables associated
13403              with the Control and sending the events)
13404           - Major cleanup of Size handling; we now have two sizes, client_size
13405             and bounds. Bounds defines the window with decorations, client_size
13406             without them.
13407
13408 2004-08-11 12:55  pbartok
13409
13410         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13411           - Added method to calculate difference between decorated window and
13412             raw client area
13413
13414 2004-08-11 12:54  pbartok
13415
13416         * Label.cs:
13417           - Forcing redraw on resize
13418
13419 2004-08-11 11:43  pbartok
13420
13421         * ImageList.cs:
13422           - Removed disposing of the actual images when the list is disposed
13423
13424 2004-08-11 09:13  pbartok
13425
13426         * Control.cs:
13427           - Now properly reparents windows
13428
13429 2004-08-11 08:37  pbartok
13430
13431         * Control.cs:
13432           - Duh!
13433
13434 2004-08-11 07:47  pbartok
13435
13436         * Control.cs:
13437           - Rewrote the collection stuff. Might not be as fast now, not
13438             keeping the number of children around and accessible directly, but
13439             it's more straightforward
13440
13441 2004-08-11 07:44  pbartok
13442
13443         * AccessibleObject.cs:
13444           - Fixed to match ControlCollection rewrite
13445
13446 2004-08-11 07:43  pbartok
13447
13448         * ImageList.cs:
13449           - Added missing creation of the collection list
13450
13451 2004-08-10 20:08  jackson
13452
13453         * StatusBar.cs: Get the paint message from WndProc
13454
13455 2004-08-10 19:31  jackson
13456
13457         * ThemeWin32Classic.cs: Create Brushes as little as possible
13458
13459 2004-08-10 19:20  jackson
13460
13461         * UICues.cs: Add Flags attribute
13462
13463 2004-08-10 19:19  jackson
13464
13465         * StatusBarPanel.cs: Signature cleanup
13466
13467 2004-08-10 19:10  jackson
13468
13469         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
13470           Initial implementation of status bar item drawing
13471
13472 2004-08-10 17:27  jordi
13473
13474         * TrackBar.cs: add missing methods, properties, and restructure to
13475           hide extra ones
13476
13477 2004-08-10 16:24  jackson
13478
13479         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
13480           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
13481           attribute
13482
13483 2004-08-10 13:21  jordi
13484
13485         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
13486           enhancements and standarize on win colors defaults
13487
13488 2004-08-10 12:52  jackson
13489
13490         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
13491           ThemeWin32Classic.cs: Implement DrawItem functionality
13492
13493 2004-08-10 12:47  jordi
13494
13495         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
13496
13497 2004-08-10 12:32  jordi
13498
13499         * Control.cs: throw ontextchange event
13500
13501 2004-08-10 11:43  pbartok
13502
13503         * Control.cs:
13504           - Added more to the still unfinished Dock/Anchor layout code
13505
13506 2004-08-10 11:39  pbartok
13507
13508         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
13509           - Added GetWindowPos method
13510
13511 2004-08-10 11:36  pbartok
13512
13513         * XplatUIWin32.cs:
13514           - Implemented several methods
13515
13516 2004-08-10 09:47  jackson
13517
13518         * TrackBar.cs: Allow control to handle buffering
13519
13520 2004-08-10 09:41  jackson
13521
13522         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
13523
13524 2004-08-10 09:24  jackson
13525
13526         * Label.cs, LinkLabel.cs: Let Control handle buffering.
13527
13528 2004-08-10 09:09  jackson
13529
13530         * StatusBar.cs: Let Control handle all the buffering.
13531
13532 2004-08-10 09:08  jackson
13533
13534         * Control.cs: Control will now handle the buffering code, so each
13535           control does not have to implement this.
13536
13537 2004-08-10 08:34  jackson
13538
13539         * XplatUIDriver.cs: Use default colors from the theme
13540
13541 2004-08-09 17:12  pbartok
13542
13543         * ImageList.cs:
13544           - Fixed several bugs Ravindra pointed out
13545
13546 2004-08-09 16:11  pbartok
13547
13548         * Control.cs:
13549           - Added incomplete dock layout code
13550           - Added support for mouse wheel
13551
13552 2004-08-09 16:09  pbartok
13553
13554         * XplatUIX11.cs:
13555           - Added handling for middle and right mousebutton
13556           - Added handling for mouse wheel
13557           - Added handling for key state and mouse state and position
13558           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
13559           messages
13560
13561 2004-08-09 15:40  jackson
13562
13563         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
13564           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
13565           checkin
13566
13567 2004-08-09 15:37  jackson
13568
13569         * StatusBar.cs: Initial implementation of StatusBar
13570
13571 2004-08-09 15:36  jackson
13572
13573         * ITheme.cs: Add support for drawing status bar and getting status
13574           bar item sizes
13575
13576 2004-08-09 15:35  pbartok
13577
13578         * MouseButtons.cs:
13579           - Fixed values
13580
13581 2004-08-09 15:34  jackson
13582
13583         * ThemeWin32Classic.cs: Add support for drawing status bar and get
13584           status bar item sizes
13585
13586 2004-08-09 15:21  jackson
13587
13588         * ThemeWin32Classic.cs: Use known colors for default control
13589           colours
13590
13591 2004-08-09 15:12  jackson
13592
13593         * ThemeWin32Classic.cs: Make the default font static, it is static
13594           in control so this doesn't change functionality and creating fonts
13595           is sloooooow.
13596
13597 2004-08-09 14:56  pbartok
13598
13599         * X11Structs.cs:
13600           - Added GrabMode enum
13601
13602 2004-08-09 14:55  pbartok
13603
13604         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13605           - Removed Run method, was only required for initial development
13606
13607 2004-08-09 14:51  pbartok
13608
13609         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
13610           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
13611           capture
13612
13613 2004-08-09 13:48  pbartok
13614
13615         * XplatUIX11.cs:
13616           - Fixed default sizing for child windows
13617
13618 2004-08-09 12:56  pbartok
13619
13620         * XplatUIX11.cs:
13621           - Added generation of WM_DESTROY message
13622           - Added handling of window manager induced shutdown
13623
13624 2004-08-09 11:31  jackson
13625
13626         * ThemeWin32Classic.cs: New names for control properties
13627
13628 2004-08-09 11:25  jackson
13629
13630         * Control.cs: Use new color names
13631
13632 2004-08-09 11:02  jackson
13633
13634         * XplatUI.cs: Get default window properties from the theme
13635
13636 2004-08-09 11:01  jackson
13637
13638         * ITheme.cs: The theme engine now controls default window
13639           properties
13640
13641 2004-08-09 11:00  jackson
13642
13643         * ThemeWin32Classic.cs: Add default window color properties
13644
13645 2004-08-09 10:17  jackson
13646
13647         * ThemeWin32Classic.cs: Use correct default back color
13648
13649 2004-08-09 10:05  jackson
13650
13651         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
13652           the theme now.
13653
13654 2004-08-09 09:56  jackson
13655
13656         * XplatUI.cs: Remove defaults, these are handled by the theme now.
13657
13658 2004-08-09 09:54  jackson
13659
13660         * Control.cs: Get default properties from the theme.
13661
13662 2004-08-09 09:53  jackson
13663
13664         * ITheme.cs: Themes now handle default control properties
13665
13666 2004-08-09 09:53  jackson
13667
13668         * ThemeWin32Classic.cs: Themes now handle default control
13669           properties so coloring will be consistent
13670
13671 2004-08-08 16:54  jordi
13672
13673         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
13674
13675 2004-08-08 15:08  jordi
13676
13677         * XplatUIX11.cs: fixes keyboard crash
13678
13679 2004-08-08 13:47  jordi
13680
13681         * Label.cs: add cvs header info
13682
13683 2004-08-08 12:09  jackson
13684
13685         * ThemeWin32Classic.cs: Add pen_buttonface
13686
13687 2004-08-08 11:52  jordi
13688
13689         * Label.cs, LinkLabel.cs: [no log message]
13690
13691 2004-08-08 11:34  jordi
13692
13693         * ThemeWin32Classic.cs: Use Windows Standard Colours
13694
13695 2004-08-07 17:32  jordi
13696
13697         * TrackBar.cs: throw exceptions of invalid enums values
13698
13699 2004-08-07 17:31  jordi
13700
13701         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
13702           draw method name
13703
13704 2004-08-07 16:56  jackson
13705
13706         * HorizontalAlignment.cs: Initial checkin
13707
13708 2004-08-07 13:16  jordi
13709
13710         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
13711           methods
13712
13713 2004-08-07 13:05  jordi
13714
13715         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
13716           GetSysColor defines
13717
13718 2004-08-06 18:01  pbartok
13719
13720         * ThemeWin32Classic.cs:
13721           - Fixed some rounding issues with float/int
13722
13723 2004-08-06 18:00  jackson
13724
13725         * DockStyle.cs, AnchorStyles.cs:
13726
13727                   Add flags and serializable attributes.
13728
13729 2004-08-06 17:46  pbartok
13730
13731         * XplatUIX11.cs:
13732           - Implemented GetParent
13733
13734 2004-08-06 17:18  pbartok
13735
13736         * TrackBar.cs:
13737           - Fixed some rounding issues with float/int
13738
13739 2004-08-06 17:17  pbartok
13740
13741         * X11Structs.cs, XplatUIX11.cs:
13742           - Fixed Refresh and Invalidate
13743
13744 2004-08-06 15:30  pbartok
13745
13746         * Control.cs, X11Structs.cs, XplatUIX11.cs:
13747           - Fixed recursive loop when resizing
13748           - Improved/fixed redrawing on expose messages
13749
13750 2004-08-06 09:53  jordi
13751
13752         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
13753           keyboard navigation
13754
13755 2004-08-06 08:02  pbartok
13756
13757         * X11Structs.cs, XplatUIX11.cs:
13758           - Fixed reparenting
13759           - Fixed window border creation
13760
13761 2004-08-05 15:38  pbartok
13762
13763         * XplatUIX11.cs:
13764           - Attempted fix for reparenting problems
13765
13766 2004-08-04 15:14  pbartok
13767
13768         * Control.cs:
13769           - Fixed Invalidation bug (calculated wrong client area)
13770           - Added ClientSize setter
13771
13772 2004-08-04 15:13  pbartok
13773
13774         * Form.cs:
13775           - Added AutoScale properties
13776
13777 2004-08-04 15:13  pbartok
13778
13779         * SWF.csproj:
13780           - Added latest files
13781
13782 2004-08-04 14:11  pbartok
13783
13784         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
13785           XplatUIX11.cs:
13786           - Added Invalidate handling
13787
13788 2004-08-03 17:09  jordi
13789
13790         * XplatUIDriver.cs: fixes spelling mistake
13791
13792 2004-07-27 09:53  jordi
13793
13794         * TrackBar.cs: fixes trackbar events, def classname, methods
13795           signature
13796
13797 2004-07-27 09:29  jordi
13798
13799         * ScrollBar.cs: fixes scrollbar events
13800
13801 2004-07-27 04:38  jordi
13802
13803         * Control.cs: changes to be able to run winforms samples
13804
13805 2004-07-26 11:42  jordi
13806
13807         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
13808           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
13809
13810 2004-07-26 05:41  jordi
13811
13812         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
13813           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
13814           implementation
13815
13816 2004-07-22 09:22  jordi
13817
13818         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
13819           check link overlapping, implement events, and fixes
13820
13821 2004-07-21 10:28  jordi
13822
13823         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
13824
13825 2004-07-21 10:19  jordi
13826
13827         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
13828           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
13829           LinkLabelLinkClickedEventArgs.cs,
13830           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
13831           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
13832           implementation
13833
13834 2004-07-19 13:09  jordi
13835
13836         * Control.cs, Label.cs: label control re-written: added missing
13837           functionlity, events, and properties
13838
13839 2004-07-19 10:49  jordi
13840
13841         * Control.cs: fixes SetBounds logic
13842
13843 2004-07-19 01:29  jordi
13844
13845         * Control.cs: Call RefreshWindow only if the window has created
13846
13847 2004-07-15 14:05  pbartok
13848
13849         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
13850           - Implemented ImageList and ImageList.ImageCollection classes
13851           - Added ColorDepth enumeration
13852           - Updated SWF VS.Net project
13853
13854 2004-07-15 11:06  jordi
13855
13856         * XplatUIStructs.cs: added MsgButons enum
13857
13858 2004-07-15 11:03  jordi
13859
13860         * Control.cs: added basic mouse handeling events
13861
13862 2004-07-15 03:38  jordi
13863
13864         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
13865           Vertical TrackBar control implementation
13866
13867 2004-07-13 09:33  jordi
13868
13869         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
13870
13871 2004-07-13 09:31  jordi
13872
13873         * Control.cs, Form.cs: commit: new properties and fixes form size
13874           problems
13875
13876 2004-07-09 14:13  miguel
13877
13878         * ProgressBar.cs: Spelling
13879
13880 2004-07-09 11:25  pbartok
13881
13882         * ProgressBar.cs:
13883           - Removed usage of Rectangle for drawing. Miguel pointed out it's
13884           faster
13885
13886 2004-07-09 11:17  miguel
13887
13888         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
13889
13890                 * ProgressBar.cs: Fixed spelling for `block'
13891
13892                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
13893                 style guidelines.
13894
13895                 Avoid using the += on rect.X, that exposed a bug in the compiler.
13896
13897 2004-07-08 23:21  pbartok
13898
13899         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
13900           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
13901           BaseCollection.cs, Binding.cs, BindingContext.cs,
13902           BindingMemberInfo.cs, BindingsCollection.cs,
13903           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
13904           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
13905           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
13906           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
13907           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
13908           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
13909           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
13910           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
13911           FrameStyle.cs, GiveFeedbackEventArgs.cs,
13912           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
13913           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
13914           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
13915           InputLanguageChangedEventArgs.cs,
13916           InputLanguageChangedEventHandler.cs,
13917           InputLanguageChangingEventArgs.cs,
13918           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
13919           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
13920           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
13921           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
13922           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
13923           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
13924           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
13925           QueryAccessibilityHelpEventArgs.cs,
13926           QueryAccessibilityHelpEventHandler.cs,
13927           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
13928           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
13929           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
13930           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
13931           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
13932           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
13933           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
13934           XplatUIX11.cs, lang.cs:
13935           - Initial check-in
13936