2007-05-29 Everaldo Canuto <ecanuto@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
2
3         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
4         Fixes #80147.
5
6 2007-05-29  Jackson Harper  <jackson@ximian.com>
7
8         * TreeNode.cs: Fix off by one on calculating whether or not a node
9         is visible.
10
11 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
12
13         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
14         * ScrollableControl.cs: Force an UpdateDistances when we move the
15         scrollbars.
16         [Fixes bug #80605]
17
18 2007-05-29  Andreia Gaita  <avidigal@novell.com>
19
20         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
21         update the page setup screen.
22
23 2007-05-29  Andreia Gaita  <avidigal@novell.com>
24
25         * PageSetupDialog.cs: Fix landscape mode.
26
27 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
28
29         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
30         IconSizeHorizontalSpacing.
31
32 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
33
34         * ListView.cs: The declaration of prev_tooltip_item should be inside
35         a NET_2_0 conditional (avoid a warning).
36
37 2007-05-28  Andreia Gaita  <avidigal@novell.com>
38
39         * PageSetupDialog.cs: Implement PrintPreview control to display
40         the preview thumbnail. Change unit conversion to use 
41         PrinterUnitConvert methods.
42         
43         Note: there is a huge bug in ms.net where the default margins are 
44         interpreted as centimeters (?), when in fact they are set in inches. When 
45         loading the page setup dialog initially (ms.net), the default margins 
46         are set to 1 inch, and the dialog shows them with value 10, when in fact 
47         it should be 25 (properly converted). Our dialog doesn't have this bug.
48         
49         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
50         RectangleF.
51         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
52
53 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
54
55         * ListView.cs:
56         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
57         items.
58
59 2007-05-28  Andreia Gaita  <avidigal@novell.com>
60
61         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
62         an IntPtr on csc (it builds fine on mcs, could it be a compiler
63         bug?), convert the ptr to Int32 first.
64
65 2007-05-28  Jackson Harper  <jackson@ximian.com>
66
67         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
68         recieved, we will exit the dnd tracking loop.
69
70 2007-05-28  Jackson Harper  <jackson@ximian.com>
71
72         * X11Dnd.cs: Keep tracking until the xdnd finished event is
73         recieved. TODO: I should probably stick a timer on the dropped
74         event, and finish the drag if the XDND Finished event never shows
75         (because some apps don't seem to send it).
76
77 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
78
79         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
80         #81733.
81
82 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
83
84         * MonthCalendar.cs: Only mark the keypresses we actually handle as
85           handled.
86
87 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
88
89         * MonthCalendar.cs: Set the size after initializing all the relevant
90           variables. Fixes #81742.
91
92 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
93
94         * KeyEventArgs.cs: Fix typo.
95
96 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
97
98         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
99         to match MS. Fixed MinDate to only accept value less than or equal
100         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
101         Removed TODO's that are now verified by unit tests.
102
103 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
104
105         * TreeNodeCollection.cs: Minor corrections to exceptions to match
106         MS.
107
108 2007-05-25  Jackson Harper  <jackson@ximian.com>
109
110         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
111         it's own message loop.
112         * XplatUIX11.cs: Remove some of the dnd hooks
113
114 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
115
116         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
117         instead of MinimizedWindowSize.
118
119 2007-05-25  Jackson Harper  <jackson@ximian.com>
120
121         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
122
123 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
124
125         * KeyEventArgs.cs: Added SuppressKeyPress.
126         * Control.cs: Added support for SuppressKeyPress.
127
128 2007-05-24  Andreia Gaita  <avidigal@novell.com>
129
130         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
131         problems with PieChart. suppress_validation should not be a counter,
132         if there are several BeginInit calls, the first EndInit will 
133         activate validation. Fix exceptions thrown by set_Value.
134         * UpDownBase.cs: ValidateText only if it's the user editing it.
135
136 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
137
138         * ListControl.cs: FilterItemOnProperty should return the filtered
139         item proeprty even if DataSource is null. The same applies for
140         GetItemText. Fixes #80427.
141
142 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
143
144         * Control.cs: If a control doesn't have a parent when it's Dock is
145         set, but it has children, it needs to do a layout.  Fixes some nested
146         controls issues.  [Fixes bug #81199]
147
148 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
149
150         * ComboBox.cs: If there are few items in the drop down list, make it
151           the exact size the items need, no bigger. Fixes #81612.
152
153 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
154
155         * Application.cs: When we have captured the keyboard for a menu,
156         check for mouse down events in case we need to close the menu.
157         * Control.cs, Form.cs: Remove mouse down checks for menus.
158
159 2007-05-24  Jackson Harper  <jackson@ximian.com>
160
161         * TextControl.cs: Handle tabs in non multiline mode a little
162         differently.
163
164 2007-05-24  Jackson Harper  <jackson@ximian.com>
165
166         * TextControl.cs: We need to manually break apart tabbed text and
167         move the tabs, since the system.drawing tabbing mechanism relies
168         on tab stops.
169         * TextBoxBase.cs: Move the caret properly when the user enters a
170         tab.
171
172 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
173
174         * ContainerControl.cs: Don't check CanSelect before calling
175         ProcessMnemonic.
176         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
177         release a KeyboardActive on click if it's not ours.
178
179 2007-05-23  Andreia Gaita  <avidigal@novell.com>
180
181         * ColumnHeader.cs: Add TypeConverter
182
183 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
184
185         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
186
187 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
188
189         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
190
191 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
192
193         * LinkLabel.cs: Implement public Padding property.
194
195 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
196
197         * LinkLabel.cs: Implement public FlatStyle.
198
199 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
200
201         * Control.cs: Apply patch from George to call parent.PerformLayout
202         when Visible is changed.  [Fixes bugs #81118, 81718]
203
204 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
205
206         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
207
208 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
209
210         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
211
212 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
213
214         * ContextMenu.cs: Implement Collapse.
215
216 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
217
218         * ToolBarButton.cs: Implement Name.
219
220 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
221
222         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
223         use current_item, it prevents some NRE. Fixes #81675.  
224
225 2007-05-22  Andreia Gaita  <avidigal@novell.com>
226
227         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
228         without updating the text.
229
230 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
231
232         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
233         without calling DeleteObject.  [Should fix bug #81709]
234
235 2007-05-22  Jackson Harper  <jackson@ximian.com>
236
237         * RichTextBox.cs: Set the line endings correctly, when flushing
238         RTF text.
239
240 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
241
242         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
243          {Width=0,Height=0}.
244
245 2007-05-22  Jackson Harper  <jackson@ximian.com>
246
247         * TreeView.cs: Setting top with a null node should set to the very
248         top.
249
250 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
251
252         * Form.cs: ShowDialog: destroy the handle when message loop is
253           finished, matches MS behaviour. Refactor parts of WmClose into
254           RaiseCloseEvents, that only raises events if they haven't already
255           been raised. Fixes #81688 and #81521.
256         * Application.cs: Don't call close on the form when exiting a modal
257           loop, it will raise all the (Form)Closed/Closing events again if
258           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
259           which doesn'r raise any events it they have been raised before.
260
261 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
262
263         * Control.cs: Add OnPrint.
264         * ToolStrip.cs: Add GetChildAtPoint.
265         * ToolStripContainer.cs: Add OnRightToLeftChanged.
266         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
267
268 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
269
270         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
271
272 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
273
274         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
275           isn't visible anymore. Fixes #81651.
276
277 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
278
279         * Control.cs: WmShowWindow: Update children's z-order after setting
280           their parent. SetParent may show the window, thereby corrupting
281           z-order, since the window will be shown on top.
282         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
283           multiple (and redundant) WM_SHOWWINDOW messages.
284         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
285           event has already been raised.
286         * Form.cs: Change is_changing_visible_state to a counter, since
287           SetVisibleCore can be called recursively. CreateHandle: when
288           creating mdi children, send (De)Activated events.
289         * MdiClient.cs: Update use of is_changing_visible_state.
290         * Application.cs: OnThreadException: Surround exception handling with
291           try/finally to ensure we always reset the error-handling state
292           before leaving.
293
294 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
295
296         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
297           (#81704).
298
299 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
300
301         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
302         SmallIcon views, now that we have a standarized horizontal spacing.
303
304         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
305         4, just like the other views (Match .Net).
306
307 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
308
309         * Control.cs: Delay calculating anchor distances until we actually layout.
310         Always query the WM for the actual size and location it put us at instead of
311         only when we send negative values.
312         [Fixes bugs #81694, 81695]
313
314 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
315
316         * Application.cs: Avoid a possible stack overflow when trying to exit
317           the application.
318
319 2007-05-19  Marek Safar  <marek.safar@gmail.com>
320
321         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
322         enum value.
323
324 2007-05-19  Andreia Gaita  <avidigal@novell.com>
325
326         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
327         * NumericUpDownAcceleration.cs, 
328           NumericUpDownAccelerationCollection.cs: Added 2.0
329           implementation.
330
331 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
332
333         * RichTextBox.cs: Recalculate the document after the ScrollBars
334         property is changed. Fixes bug #81681.
335
336 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
337
338         * DataObject.cs: Implement 2.0 methods.
339
340 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
341
342         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
343         in the center of the checkbox, not in the left-top corner. 
344         Fixes #80037.
345
346 2007-05-18  Jackson Harper  <jackson@ximian.com>
347
348         * RichTextBox.cs: Recalculate the document after the scrollbars
349         property is changed.
350         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
351         81486.
352
353 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
354
355         * CreateParams.cs: Make HasWindowManager marginally faster.
356         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
357           into Hwnd so that other drivers can use it as well.
358         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
359           the default location from Hwnd. Fixes MDI client windows always
360           showing up at (0,0) in Windows (Win32 won't set the default
361           location since the window styles aren't correct).
362
363 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
364
365         * TreeView.cs: Modified DoubleBuffered to just use the base
366         implementation.
367
368 2007-05-18  Jackson Harper  <jackson@ximian.com>
369
370         * TreeView.cs: Set the top node to the last child node when
371         expanding all
372         - When we get focus, if there is no selected node, use the top
373         node.
374
375 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
376
377         * KeysConverter.cs: Add CanConvertTo.
378         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
379         * LinkConverter.cs: Added.
380
381 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
382
383         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
384         it prevents error when file dont have write access. Fixes #81669 and #81667.  
385
386 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
387
388         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
389         button text. Fixes #79640.  
390
391 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
392
393         * Control.cs: According to MSDN controls created in the designer theres 
394         keyboard accelerators visible by default. So included check for design
395         in ShowKeyboardCuesInternal.  
396
397 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
398
399         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
400         text. Fixes #81621.  
401
402 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
403
404         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
405         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
406
407 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
408
409         * Control.cs: Finish implementation of UI State using WmChangeUIState
410         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
411         in some controls to check for show_keyboard_cues to draw accell keys "_".  
412
413 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
414
415         * ListBox.cs: When calculating the horizontal scrollbar
416         in single column mode, don't use values less than 0 for
417         Maximum. Fixes #81474.
418
419 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
420
421         * ListBox.cs: Throw the some missing exceptions in
422         ListBox.ObjectCollection methods.
423
424 2007-05-17  Jackson Harper  <jackson@ximian.com>
425
426         * TextBoxBase.cs: Recalculate the document when the word wrap
427         value has changed. This fixes 81488.
428
429 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
430
431         * Clipboard.cs: Implement missing GetText overload.
432
433 2007-05-17  Chris Toshok  <toshok@ximian.com>
434
435         * Control.cs (CheckDataBindings): remove the binding_context arg
436         to binding.Check.
437
438         * CurrencyManager.cs (OnItemChanged): fix this now that
439         BindingManagerBase is fixed. also remove the comment telling where
440         the fix should go.  We set transfering_data to true/false around
441         the call to PushData to keep UpdateIsBinding from being called.
442         (ListChangedHandler): remove the extra OnMetaDataChanged call for
443         PropertyDescriptorAdded in the 1.1 case.  The extra call is
444         actually generated by System.Data generating 2 metadata changed
445         events of its own per column add.  The fix should go there.  Add a
446         comment to that affect in our test's Assert.Ignore.
447
448         * BindingManagerBase.cs: Rework PullData and PushData slightly.
449         we keep a boolean flag (transfering_data) that keeps us from
450         calling UpdateIsBinding multiple times if we re-enter either of
451         them.
452
453         * ControlBindingsCollection.cs (AddCore): remove the
454         binding_context arg to binding.Check.
455
456         * Binding.cs (IsBinding): don't check if we're binding here, just
457         return our cached value.  we update it in UpdateIsBinding.
458         (Check): don't take the binding_context arg, we'll just use our
459         control's.  Also, for some reason MS doesn't use the data member
460         field when getting the bindingmanager for this binding.  it just
461         uses the datasource.  Make this method callable multiple times,
462         and only do the is_null_desc stuff if manager.Position != -1 (so
463         we don't get an exception accessing manager.Current).
464         (UpdateIsBinding): move the code from IsBinding here.
465         (PositionChangedHandler): call Check here to we can initialize
466         things that require a non- -1 position.
467
468 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
469
470         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
471         control.
472
473 2007-05-17  Andreia Gaita  <avidigal@novell.com>
474
475         * TabControl.cs: Add 2.0 methods and events, including
476         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
477         * TabPage.cs: Add 2.0 methods
478
479 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
480
481         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
482         keyboard_cues is properly handled by message method.  
483
484 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
485
486         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
487
488 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
489
490         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
491
492 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
493
494         * Control.cs: 
495         - WmUpdateUIState added to handle state changes, it make call to
496         OnChangeUICues event.
497         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
498         SystemInformation.
499
500 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
501
502         * ImageKeyConverter.cs: Added.
503         * TreeViewImageKeyConverter.cs: Added.
504
505 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
506         
507         * ToolTips.cs: Update Text if SetToolTip is called for a control
508         already showing the tooltip, as well as restarting its timer; show
509         tooltip if we are inside the control bounds by the time of calling
510         SetToolTip. Inside ShowTooltip remove the check to not show the 
511         tooltip again for the active control (it is allowed by .Net to 
512         show the tooltip on the same control multiple times).
513
514 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
515
516         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
517
518 2007-05-16  Andreia Gaita <avidigal@novell.com> 
519
520         * ContainerControl.cs: only process tab key if there are no 
521         modifier keys present, otherwise the control does the 
522         tab processing, if it needs to. Fixes #81622
523         * TabControl.cs: Fixes calculation for which tab to select on
524         shift+ctrl+tab.
525
526 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
527
528         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
529
530 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
531
532         * Control.cs: Make IsInputCharInternal to allow controls to
533         override it and still match MS API.
534         * TextBoxBase.cs: Override IsInputCharInternal and always
535         return true.
536         [Fixes bug #81616]
537
538 2007-05-15  Jackson Harper  <jackson@ximian.com>
539
540         * TextBox.cs: Disable some of the menu options when using a
541         readonly textbox.
542
543 2007-05-15  Jackson Harper  <jackson@ximian.com>
544
545         * TextBox.cs:
546         * TextBoxBase.cs:
547         * RichTextBox.cs: Some new 2.0 methods
548
549 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
550
551         * FileDialog.cs: On 1.0 profile, do not support multidotted 
552         extensions.
553
554 2007-05-14  Jackson Harper  <jackson@ximian.com>
555
556         * TextBoxBase.cs: Implement some of the new 2.0 methods.
557         * RichTextBox.cs: We need to override these methods on 2.0.
558         * MaskedTextBox.cs: These are implemented now
559         * TextControl.cs: This was off by one.
560
561 2007-05-14  Jackson Harper  <jackson@ximian.com>
562
563         * TextControl.cs: Because the line endings are including in the
564         text, we don't need to add them in anymore.
565
566 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
567
568         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
569         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
570
571 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
572
573         * ToolBar.cs: Adjust size to default size when button theres no text and
574         image, it fixes remaining issues from #81524.
575
576 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
577
578         * ToolBar.cs: 
579         - When not flat call redraw to recalculate sizes on creare handle to match
580         win32 behavior.
581         - Revert 77220 because it causes some regressions in toobar
582         button.
583
584 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
585
586         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
587           now actually enters a usable state.
588
589 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
590
591         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
592         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
593         3 buttons.
594
595 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
596
597         * ToolBar.cs: Save default_size on create handle to use later for buttons
598         without text, needed to mimic win32 behavior.
599
600 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
601
602         * ToolBar.cs: Fix button layour to best fit width or height according to
603         vertical or not. Fixes #81524.
604
605 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
606
607         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
608         toolbar size info because different styles theres different sizes.
609         Fixes #81522.
610
611 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
612
613         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
614         if we are using checkboxes, checked is true, and we have less
615         than two images in StateImageList; for the 1.1 in the same scenario
616         draw the first image if we have at least one image in StateImageList.
617         Fixes part of #81191.
618
619 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
620
621         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
622         the owner's Items collection on merge.
623
624 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
625
626         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
627         * ToolStripItemCollection.cs: Lots of fixes to when events get called
628         and parent/owner gets changed based on gert's unit tests.
629
630 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
631
632         * MaskedTextBox.cs: Started implementing parts of it.
633
634 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
635
636         * ListView.cs: When clicking the checkbox on the items
637         take into account the double clicks even if we have only
638         one image in StateImageList (only for 1.0/1.1). Also 
639         generate an extra change of checked state when we receive
640         the second click on checkbox (match .Net behaviour). 
641         Fixes part of #81191.
642
643 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
644
645         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
646
647 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
648
649         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
650         even if OnLoad is overriden and base.OnLoad is not called.
651         [Fixes bug #81582]
652
653 2007-05-10  Andreia Gaita  <avidigal@novell.com>
654
655         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
656         shame. (I blame my ever-persisting and annoying cold)
657
658 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
659
660         * ListView.cs: Don't eat navigation keys.  Let them flow through to
661         KeyDown/KeyPress routines.  [Fixes bug #81569]
662
663 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
664
665         * ListView.cs: When handling keys for selecting the item based off
666         keyboard input, do not consider keys pressed with Alt or Control.  Also,
667         correctly handle keys when the Shift key is down. [Fixes bug #81578]
668
669 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
670
671         * Control.cs: When using UseWaitCursor, we have to store the requested
672         Cursor to use when UseWaitCursor is turned off.
673
674 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
675
676         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
677         to false.
678         * Application.cs: Use PreProcessControlMessage instead of
679         PreProcessMessage.
680         * PreProcessControlMessage.cs: Make internal for 1.1.
681
682 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
683
684         * Control.cs: Add InternalContains focus property, which hast the same
685         functionality of ContainsFocus, but also including implicit controls.
686         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
687         since we need to know if the focus is contained in our implicit
688         ItemControl when calculating Layout. Fixes part of #80888.
689
690 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
691
692         * ToolTip.cs: Remove center form string alignment as it must be align to
693         left.
694
695 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
696
697         * ToolStripItemCollection.cs: Set the new item's parent and owner
698         in Insert like we do in Add.  [Fixes bug #81568]
699
700 2007-05-08  Jackson Harper  <jackson@ximian.com>
701
702         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
703         - Off by one error in SetTop
704         - Disable DoubeBuffering
705         
706 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
707
708         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
709           control as much as necessary in order to make it entirely visible,
710           instead of centering the control in the container (matches MS
711           behaviour). CalculateCanvasSize: we need to take the current scroll
712           position into account when calculating the maximum canvas,
713           otherwise the following scenario will fail: resize so that the
714           scrollbars appear, use the scrollbars to scroll, resize again
715           smaller, and now the canvas size is too small. Recalculate: when
716           showing scrollbars make sure they start off at 0, and try to scroll
717           the active control into view. Fixes #79540. HandleScrollBar: don't
718           scroll anywhere if the scrollbar isn't visible.
719
720 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
721
722         * ListView.cs: When focus changed, call Layout/Invalidate
723         in the focused item to update the selected state (should show
724         entire label when ListView is focused, and a part of it if is not).
725         * ListViewItem.cs: When doing layout for LargeIcon, take into account
726         for displaying the entire label not only the Focused state of the
727         item, but also the Focused state of the ListView (match .Net
728         behaviour).
729
730 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
731
732         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
733         Implement UseWaitCursor. 
734
735 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
736         Applying contributed patch from Sergey Volk.
737
738         * Clipboard.cs: Implement SetDataObject retry logic and new overload
739         of SetDataObject.
740         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
741
742 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
743
744         * Control.cs: Implement DrawToBitmap.
745
746 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
747         Applying contributed patch from Stefan Noack.
748         
749         * Control.cs: Add [Get|Set]AutoSizeMode.
750
751 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
752
753         * MdiClient.cs: Unmerge menus when the last child is closed.
754
755 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
756
757         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
758         * ToolStripManager.cs: Call Merge on DropDowns.
759         [Fixes bug #81477]
760
761 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
762
763         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
764           uints.
765         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
766           visibility. We can't create forms visible, since we have to set the
767           owner before making the form visible (otherwise Win32 will do
768           strange things with task bar icons). The problem is that we set the
769           internal is_visible to true before creating the control, so
770           is_changing_visible_state is the only way of determining if we're
771           in the process of creating the form due to setting Visible=true -
772           this works because SetVisibleCore explicitly makes the form
773           visibile afterwards anyways. Fixes #80775.
774
775 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
776
777         * ThemeWin32Classic.cs: When drawing ListViewItems,
778         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
779         or LargeIcon _and_ item is not focused (match .Net behaviour).
780
781 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
782
783         * Control.cs, Form.cs: Fix some obsolete method warnings.
784
785 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
786
787         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
788         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
789
790 2007-05-04  Andreia Gaita  <avidigal@novell.com>
791
792         * ContainerControl.cs: Fix active_control attribution when going
793         up the parent chain so that the first parent container gets the control
794         and the rest of the parent containers get the child containers (skips
795         non-containers). Fixes #80729
796
797 2007-05-04  Randolph Chung  <tausq@debian.org>
798
799         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
800         [Fixes bug #81499]
801
802 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
803
804         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
805           takes a size parameter, since the CreateParam's size isn't true for
806           minimized forms. Fixes #81518,
807
808 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
809
810         * Form.cs: Add OnDeactivateInternal.
811         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
812
813 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
814
815         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
816           accessing the parent. Fixes #81508.
817
818 2007-05-03  Chris Toshok  <toshok@ximian.com>
819
820         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
821         2.0 block, pass listposition + 1 to ChangeRecordState when a row
822         was added before the current listposition.  Fixes the
823         TestInsertRowBeforeCurrent unit test.
824
825 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
826
827         * Application.cs: Add RaiseIdle.
828         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
829         XplatUIX11.cs: Implement RaiseIdle.
830
831 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
832         corcompare work: N - Z
833         * NotifyIcon.cs
834         * ProgressBar.cs
835         * RadionButton.cs
836         * ScrollableControl.cs
837         * SplitContainer.cs
838         * SplitterPanel.cs
839         * StatusBar.cs
840         * SystemInformation.cs
841         * TabControl.cs
842         * TableLayoutControlCollection.cs
843         * TableLayoutPanel.cs
844         * TabPage.cs
845         * ToolBar.cs
846         * ToolBarButton.cs
847         * ToolStrip.cs
848         * ToolStripComboBox.cs
849         * ToolStripContainer.cs
850         * ToolStripContentPanel.cs
851         * ToolStripDropDown.cs
852         * ToolStripDropDownItem.cs
853         * ToolStripDropDownMenu.cs
854         * ToolStripItem.cs
855         * ToolStripItemCollection.cs
856         * ToolStripMenuItem.cs
857         * ToolStripPanel.cs
858         * ToolStripSplitButton.cs
859         * ToolTip.cs
860         * TreeNode.cs
861         * TreeNodeCollection.cs
862         * TreeNodeMouseHoverEventArgs.cs
863         * TreeView.cs
864
865 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
866
867         * ContextMenu.cs: Add public method Show with alignment property to 2.0
868         stuff. Thanks aatdark for the patch. 
869
870 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
871
872         * GridItem.cs: Implement 2.0 Tag property.
873
874 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
875
876         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
877         count instead of Nodes.Length.  [Fixes bug #81448]
878
879 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
880
881         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
882         [Fixes bug #81506]
883
884 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
885         corcompare work: A - M
886         * BindingNavigator.cs
887         * Button.cs
888         * ButtonBase.cs
889         * CheckBox.cs
890         * Control.cs
891         * FlowLayoutPanel.cs
892         * Form.cs
893         * Label.cs
894         * LinkLabel.cs
895         * ListView.cs
896
897 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
898
899         * Application.cs: Give toolstrips a chance to process mnemonics.
900         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
901         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
902         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
903
904 2007-05-01  Jackson Harper  <jackson@ximian.com>
905
906         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
907         wider area too.
908         - Don't set the BoundsSpecified
909
910 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
911
912         * Application.cs: When using the toolstrip shortcut mechanism, allow the
913         message to pass through to a regular control if it hosted by a toolstrip.
914         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
915         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
916
917 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
918
919         * TextRenderer.cs: Use the flags argument when using the MeasureString
920         fallback algorithm.
921
922 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
923
924         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
925         the MDI menu item.  [Fixes bug #81483]
926
927 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
928
929         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
930         string. When setting Name to null, use zero-length string instead.
931
932 2007-04-29  Andreia Gaita  <avidigal@novell.com>
933
934         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
935         DeselectTab). Implement missing 2.0 TabPageCollection methods
936         (Add, ContainsKey, RemoveByKey, IndexOfKey)
937
938 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
939
940         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
941
942 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
943
944         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
945         Fixes bug #81479. Include details of exception when LoadFile fails.
946
947 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
948
949         * DrawListViewSubItemEventArgs.cs: Added missing setter
950
951 2007-04-27  Andreia Gaita  <avidigal@novell.com>
952
953         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
954         Hide methods (not complete). Implement missing 2.0 OnPopup event.
955
956 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
957
958         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
959         removed in ly last commit (it was breaking the Label edit feature).
960
961         * ThemeWin32Classic.cs: When drawing a ListViewItem use
962         StringAlignment.Near for LineAlignment (match .Net).
963
964 2007-04-27  Andreia Gaita  <avidigal@novell.com>
965
966         * TabControl.cs: Change SetTab so it adds the tabpage to the list
967         of controls if it isn't already there - was blowing up when doing
968         tabcontrol.TabPages[i]=new TabPage(). 
969         SetTab now does a replace by removing the page at the index. 
970         Add a new InsertTab method that inserts a page in a given index 
971         instead of replacing. 
972         Implements TabPageCollection.Insert(int, TabPage).
973
974 2007-04-27  Chris Toshok  <toshok@ximian.com>
975
976         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
977         internal handler that can be invoked from our subclasses.)  Also,
978         add a comment to PushData about how we need to fix it.
979
980         * CurrencyManager.cs: tons of changes here.  trying to get things
981         matching the behavior of .net wrt event orders (ItemChanged,
982         CurrentChanged, PositionChanged.)  I've implemented a private .net
983         symbol (ChangeRecordState) that appears in stack traces because
984         it's actually easier to do this than to effective inline all its
985         various behaviors at every call site.
986
987         * RelatedPropertyManager.cs: guard against an exception here by
988         not using parent.Current if the position is set to -1 (if the
989         parent datasource is cleared, for instance).
990
991         * Binding.cs: don't parse data in PushData (this might be wrong,
992         but it jives with MS's behavior.)  Also, don't call PushData when
993         we get a CurrentChanged event.
994
995 2007-04-27  Andreia Gaita  <avidigal@novell.com>
996
997         * WebBrowser.cs,
998           WebBrowserBase.cs,
999           WebBrowserSiteBase.cs,
1000           HtmlDocument.cs: Added stubbed out classes, no real implementations 
1001           yet.
1002
1003 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
1004
1005         * MainMenu.cs: In draw method without parameters call draw method with 
1006         PaintEvent, another one (just rect) adjust rectangle and we dont need it
1007         as Rect property is already adjusted. Fixes #80694.
1008
1009 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
1010
1011         * Application.cs: Need to handle keyboard menu deselection here.
1012         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
1013         navigation, allowing keyboard to work on X11.
1014         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
1015
1016 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
1017
1018         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
1019         menu bar. It fixes some drawing issues in menu bar.
1020
1021 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
1022
1023         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
1024         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
1025         when <alt> key is pressed.
1026
1027 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
1028
1029         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
1030         example just set visible to false and make this prevent from other problems.
1031         In SystrayAdd always remove pending expose. Fixes #81072.
1032
1033 2007-04-26  Marek Safar  <marek.safar@gmail.com>
1034
1035         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
1036         value is set.
1037
1038 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
1039
1040         * ListView.cs: Added three missing 2.0 events and corresponding
1041         EventHandlers. Added the OwnerDraw property.
1042         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
1043
1044 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
1045
1046         * DrawListViewItemEventArgs.cs
1047         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
1048
1049 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
1050
1051         * TextControl.cs: Fixed typo in constructor
1052
1053 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
1054
1055         * Application.cs: Create a shortcut path so that currently selected
1056         MenuStrips can intercept keyboard events without having focus.
1057         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
1058         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
1059         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
1060         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
1061         generate WM_SYSCOMMAND message in X11 for other platforms.
1062         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
1063         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
1064         * ToolStripSplitButton.cs: Add DefaultItem property.
1065         
1066 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
1067
1068         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
1069         fixes some menu draw problem on Windows with border diferent from default
1070         it also fixes #81403.
1071
1072 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1073
1074         * Form.cs: Refactor WndProc into separate methods, just like Control is
1075           doing it.
1076
1077 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1078
1079         * Control.cs: set_Text: move the call to the driver into a seperate
1080           virtual method so that Form can override it.
1081         * MaskedTextBox.cs: Corcompare fixes.
1082         * Form.cs: Override UpdateWindowText and only update the styles if the
1083           form has been shown (fixes #81405).
1084
1085 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
1086
1087         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
1088         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
1089         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
1090         the form lost focus or another control was clicked.
1091
1092 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
1093
1094         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
1095         fixed.
1096
1097 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1098
1099         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
1100           DrawListViewItemEventHandler.cs,
1101           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
1102           Added.
1103         * X11Structs.cs: More ToString implementation.
1104
1105 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
1106
1107         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
1108         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
1109
1110 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1111
1112         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
1113           handle.
1114         * FormCollection.cs: Don't add a form if it's already in the
1115           collection.
1116         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
1117           according to behaviour and MSDN. The ownerWin32 is the active
1118           window at the moment when we call ShowDialog, not the context's
1119           main form (the context's main form may open another form that opens
1120           a form with ShowDialog, the win32 owner is the second form). Add
1121           and remove forms to the Application.OpenForms in other places to
1122           better match MS behaviour. Add an IsActive property that raises
1123           On(de)Activated only if the active state has changed (we were
1124           raising OnDeactivated before OnActivated while creating forms).
1125         * Application.cs: Refactor Enabling/Disabling of windows for modal
1126           dialog loops out to separate methods, and restore the thread
1127           context when we quit the method. Fixes #81407.
1128
1129 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1130
1131         * ListView.cs: In ItemControl.HandleClicks, also fire 
1132         2.0 MouseClick or MouseDoubleClick events on the parent,
1133         not only the Click/DoubleClick events.
1134
1135 2007-04-24  Andreia Gaita  <avidigal@novell.com>
1136
1137         * TableLayoutSettings.cs: 
1138         - Added a GetControls method and a support structure to help the 
1139         TypeConverter to enumerate the controls for     serialization. 
1140         - Added a new serialization constructor. 
1141         - Added a isSerialized flag initialized to true on the 
1142         serialization constructor so that the TableLayoutPanel.LayoutSettings 
1143         setter does not throw the designed NotSupportedOperation exception
1144         when the object is built through deserialization.
1145         - Implemented GetObjectData
1146         
1147         * TableLayoutPanel.cs: Added check on LayoutSettings.
1148
1149 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1150
1151         * ListView.cs: Report Click and DoubleClick events to the parent
1152         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
1153         from breaking the click count state when using dialog forms (Control
1154         reports the clicks in a similar fashion). In the previous behaviour
1155         the last WM_LBUTTONUP message in a  double click was sent to the
1156         ListView's form, instead of the ListView, which was breaking the click
1157         count for it. Fixes #80387.
1158
1159 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
1160
1161         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
1162
1163 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
1164
1165         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
1166         us from created dropdowns for menu items that do not have subitems.
1167         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
1168         Check HasDropDownItems before calling DropDown so a dropdown will not be
1169         created if it isn't needed.
1170
1171 2007-04-24  Jackson Harper  <jackson@ximian.com>
1172
1173         * TreeView.cs: Set the first node to the selected node when we get
1174         focus if there is no selected node.
1175
1176 2007-04-24  Andreia Gaita  <avidigal@novell.com>
1177
1178         * MimeIcon.cs: remove using blocks so that image streams are
1179         not disposed of. Fixes #80151
1180
1181 2007-04-24  Jackson Harper  <jackson@ximian.com>
1182
1183         * TextBoxBase.cs: Fixup the height of textboxes when the control
1184         is created.
1185
1186 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
1187
1188         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
1189         for each ToolStripItem when the parent's RightToLeftChanged is called.
1190
1191 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1192
1193         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
1194           Fixes #80163.
1195         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
1196           property, so that the setter can be overriden too.
1197         * TextBox.cs: Change GetContextMenuInternal() to use
1198           ContextMenuInternal.
1199
1200 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1201
1202         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
1203           #81406.
1204
1205 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1206
1207         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
1208           #81406.
1209
1210 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1211
1212         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
1213           avoid duplicate work. Mostily skeleton code, it's not working at
1214           all yet.
1215
1216 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
1217
1218         * NotifyIcon.cs : stub for MouseClick event
1219         * Application.cs: stub for SetUnhandledExceptionMode
1220
1221 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
1222
1223         * BindingNavigator.cs : Initial (partial) implementation
1224
1225 2007-04-23  Jackson Harper  <jackson@ximian.com>
1226
1227         * TreeView.cs: Do not create the treeview's handle when setting
1228         the scroll position.
1229         - ExpandAll needs to compute the scrollbars so it knows which
1230         position to set the bar too.
1231         * TreeNode.cs: 
1232         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
1233
1234 2007-04-23  Jackson Harper  <jackson@ximian.com>
1235
1236         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
1237         key. Fixes #81408.
1238
1239 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
1240
1241         * ToolStripItem.cs: Make GetImageSize internal.
1242         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
1243         need to draw an item.  Fixes a reported issue where images on menus
1244         that were not 16x16 were drawing incorrectly.
1245
1246 2007-04-21  Miguel de Icaza  <miguel@novell.com>
1247
1248         * Padding.cs: Use the converter, fixes the resgen2 issue with
1249         XMLNotePad. 
1250
1251 2007-04-21  Jackson Harper  <jackson@ximian.com>
1252
1253         * TreeView.cs: Dont try to unhighlight the selected node if there
1254         isn't a selected node.
1255
1256 2007-04-21  Jackson Harper  <jackson@ximian.com>
1257
1258         * UpDownBase.cs:
1259         * TextBoxBase.cs:
1260         * ListView.cs:
1261         * ListBox.cs:
1262         * TreeView.cs: Use the InternalBorderStyle property to set the
1263         initial border style, this forces the client rectangle to be sized
1264         correctly.
1265
1266 2007-04-20  Jackson Harper  <jackson@ximian.com>
1267
1268         * TreeView.cs: Simplify scrolling to the last node after expanding
1269         all.
1270         - Fix some off by ones with setting the bottom.
1271
1272 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
1273
1274         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
1275         that.  We were incorrectly doing it the other way around.  Also,
1276         update ClientSize if we change the BorderStyle before the control
1277         is created.
1278
1279 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
1280
1281         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
1282         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
1283         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
1284         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
1285         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
1286         Caption to CaptionHeight.
1287         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
1288         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
1289         and FixedFrameBorderSize to return value from current XplatUI driver.
1290         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
1291         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
1292         and FixedFrameBorderSize using win32 API. Renamed Caption to
1293         CaptionHeight.
1294         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
1295         * SystemInformation.cs: Fixed typo in BorderSize.
1296
1297 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
1298
1299         * XplatUI.cs: Added MenuAccessKeysUnderlined.
1300         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
1301         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
1302         returning false.
1303         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
1304         value from XplatUI driver.
1305         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
1306         SystemParametersInfo.
1307         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
1308         override.
1309         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
1310         returning false.
1311
1312 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1313
1314         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
1315
1316 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1317
1318         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
1319
1320 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
1321
1322         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
1323         MenuStrips that contain ToolStripSeparators.
1324
1325 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1326
1327         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
1328           DefineStdCursorBitmap.
1329         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
1330           has been created off a standard cursor. This is used to get a
1331           bitmap of the standard cursor when Draw or DrawStretched is called
1332           in order to draw the cursor.
1333         * X11Structs.cs: Added XcursorImage and XcursorImages.
1334         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
1335           DefineStdCursorBitmap.
1336         * Cursors.cs: Update all relevant creations of Cursor to use the new
1337           internal constructor.
1338
1339 2007-04-19  Jackson Harper  <jackson@ximian.com>
1340
1341         * TextBox.cs: Move the has_been_focused into the base control, so
1342         some of the text adding methods can manipulate it (probably time
1343         for a better name for this flag too).
1344         - Call a new version of selectall that doesn't scroll
1345         * TextBoxBase.cs: When we append text, if the document is empty,
1346         don't scroll.  If the document has text already, we scroll to the
1347         end of the appended text.
1348         - When the text is changed, we reset the has_been_focused, so the
1349         next time the control gets focused, all the text is selected.
1350
1351 2007-04-19  Jackson Harper  <jackson@ximian.com>
1352
1353         * TextControl.cs: Move the margins to the document, add a method
1354         so the margin sizes can be updated.
1355         * TextBoxBase.cs: When the border style is changed, update the
1356         border sizes.
1357
1358 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
1359
1360         * Control.cs: Respect DefaultPadding.
1361         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
1362         padding into account.
1363         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
1364
1365 2007-04-19  Jackson Harper  <jackson@ximian.com>
1366
1367         * TextControl.cs: Oops, we need to use the ClientRect not the
1368         bounds here.
1369
1370 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1371
1372         * ListView.cs: In ItemControl.ItemsMouseDown, take into
1373         account the double clicks when CheckBoxes are used and
1374         the pointer is inside the checkbox. Fixes part of #81191.
1375
1376 2007-04-18  Jackson Harper  <jackson@ximian.com>
1377
1378         * TextControl.cs: Pressing the end key shouldn't move the caret
1379         past the line ending.
1380         * TextBoxBase.cs: We can still delete if we are in the line
1381         ending and the combine will just kill the existing line ending.
1382
1383 2007-04-18  Jackson Harper  <jackson@ximian.com>
1384
1385         * TextControl.cs: We can't move lines, then invalidate their
1386         bounds, we need to get the old bounds and combine that with the
1387         new bounds.
1388         * TextBoxBase.cs: Before combining two lines for a delete, we need
1389         to invalidate the area of the old line, since that will be moved
1390         in the combine operation.
1391
1392 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
1393
1394         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
1395         with transparent background. Fixes #80482.
1396
1397 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
1398
1399         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
1400         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
1401         [Fixes bug #81391]
1402
1403 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1404
1405         * CreateParams.cs: Add a couple of helper methods and do a less string
1406           concatenation in ToString.
1407         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
1408           overload that takes a Control parameter, since this method may be
1409           called before a control is assigned to the hwnd (from
1410           CreateWindow), and update CreateWindow to use the new overload. In
1411           GetMenuOrigin subtract the title bar from the y position if the
1412           form has a window manager (since we're painting it and not X).
1413         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
1414           CreateParams to calculate the origin (since border sizes may vary).
1415           In ScreenToMenu only subtract the title height if we actually have
1416           a title.
1417         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
1418           mdi children never have menus of themselves.
1419         * InternalWindowManager.cs: Implement menu handling like form does.
1420           Added GetMenuOrigin to calculate the menu origin, can't use the
1421           CreateParams from the form like normally since it's lying.
1422         * Hwnd.cs: Implement GetBorderSize better (in the sense more
1423           windows-like) and add Inflate and comparison operators to the
1424           Borders type. When calculating MenuOrigin and it's a form with a
1425           window manager, use the window manager to calculate it.
1426
1427 2007-04-17  Chris Toshok  <toshok@ximian.com>
1428
1429         * Control.cs (CreateControl): turns out in 2.0 we don't need this
1430         OnBindingContextChanged thing here.  It's only generated from
1431         ContainerControl.OnCreateControl.  Fixes a newly written unit test
1432         - BindingTest.BindingContextChangedTest4.
1433         
1434 2007-04-17  Jackson Harper  <jackson@ximian.com>
1435
1436         * ScrollBar.cs: When setting values, make sure the current
1437         position stays within the new values range.
1438
1439 2007-04-17  Chris Toshok  <toshok@ximian.com>
1440
1441         * Control.cs (CreateControl): talk about a bizarre corner case.
1442         Don't emit OnBindingContextChanged here if we're a parentless
1443         control (i.e. if we're a form.).  Fixes
1444         BindingTest.BindingContextChangedTest2.
1445
1446 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
1447
1448         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
1449         from win32. Fixes #81255.
1450
1451 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
1452
1453         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
1454         already present in CalculateButtonTextAndImageLayout.
1455
1456 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1457
1458         * XplatUIX11.cs: When setting min/max size for a window we need to
1459           translate the coordinates to x coordinates. Create an overload of
1460           SetWindowMinMax that takes a CreateParams handling this, and change
1461           SetWMStyles to call this function (can't use Control.FromHandle in
1462           the SetWindowMinMax to get the control/CreateParams from the handle
1463           because the handle might not have been assigned to the control
1464           yet). Fixes #81371.
1465
1466 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1467
1468         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
1469         if StateImageList is non-null and it has less than two items (match MS
1470         behaviour). Also, in HandleNavKeys handle the Space key, calling
1471         the new ToggleItemsCheckState method, which tries to change the
1472         checked state of the selected items. Fixes part of #81191.
1473
1474 2007-04-16  Jackson Harper  <jackson@ximian.com>
1475
1476         * RichTextBox.cs: namespace cleanup.
1477
1478 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
1479
1480         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
1481
1482 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
1483
1484         [Fixes #79447]
1485         * Control.cs: Call invalidate in set_Region.
1486
1487         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
1488         it dont works here.
1489
1490 2007-04-16  Jackson Harper  <jackson@ximian.com>
1491
1492         * TextBoxBase.cs: When enter is pressed, we need to update all
1493         lines below the current.
1494
1495 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
1496
1497         * MdiClient.cs: Implement implicit menu merging for MDI
1498         children.  When a child form is active, if it has a menustrip
1499         and the parent form has a MainMenuStrip, automatically merge
1500         the menus.
1501
1502 2007-04-15  Andreia Gaita  <avidigal@novell.com>
1503
1504         * TabControl.cs: Refactored sizing methods to not repeat
1505         code all over the place. Tab bounds are now calculated
1506         as if alignment is top and single line, and only when 
1507         setting the bounds are the positions adjusted according
1508         to alignment. Replaced hardcoded positions, spacings and
1509         paddings by getting the values the ThemeEngine. 
1510         Fixes #79619.
1511         
1512         * Theme.cs: Change TabControl properties and methods so
1513         that all start with TabControl*. Added more properties
1514         to help remove hardcoded values on tabcontrol.
1515         Add CPDrawBorder3D declaration so the Theming classes
1516         can access it.
1517         
1518         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
1519
1520         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
1521         on the Theming namespace, and call the appropriate methods here.
1522         Change CPDrawBorder3D to public.
1523
1524 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1525
1526         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
1527         the control after firing the OnMouseUp event, instead of sending
1528         the message before the mentioned event. This is so we can match the
1529         MS behaviour. Fixes part of #80385.
1530
1531 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
1532
1533         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
1534         RightToLeft property.
1535
1536 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
1537
1538         * ToolStrip.cs: Add properties and internal methods to support merging.
1539         * ToolStripItem.cs: Add MergeAction and MergeIndex.
1540         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
1541         not trigger reparenting or layouts.
1542         * ToolStripManager.cs: Add Merge and RevertMerge methods.
1543         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
1544         is hosting the overflow menu.
1545
1546 2007-04-13  Jackson Harper  <jackson@ximian.com>
1547
1548         * TextControl.cs: Set the line ending correctly for the first
1549         inserted line.
1550
1551 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
1552
1553         * Theme.cs: Update GetMethod to get the new definition for 
1554         KnownColors.Update (and fix theme color updates).
1555
1556 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
1557
1558         * MessageBox.cs: Fix some test and button position.
1559
1560 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1561
1562         * Form.cs: Consider the implicit controls in
1563         GetRealChildAtPoint. We need it since this method
1564         is called on Form when handling the some messages in
1565         WndProc, and need to consider those implicit ones too.
1566         Fixes #80385.
1567
1568 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
1569
1570         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
1571         if there are no ShortcutKeys set.
1572         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
1573         set, use it when painting.
1574
1575 2007-04-12  Jackson Harper  <jackson@ximian.com>
1576
1577         * TextControl.cs: Fix some off-by-one issues in line duplication
1578         and insertion in the undo manager. Also, overwrite the first tag
1579         of a line on insert, if it is just a zero lengthed tag. This
1580         prevents us from getting an extra stranded tag at the beginning of
1581         the first line.
1582
1583 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
1584
1585         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
1586         to calculated proper size including when handle was not created yet.
1587
1588 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1589
1590         * MdiWindowManager.cs: When moving a form, allow the form to be moved
1591           when the mouse is outside of it's parent's client rectangle. Fixes
1592           #79982 (take 3, part 2).
1593
1594 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1595
1596         * X11Structs.cs: Add a few ToString() overrides.
1597         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
1598           the window location in a window-manager independent way. Reworked
1599           FrameExtents, it now actually works. Reworked AddConfigureNotify
1600           and ReparentNotify handling to use GetTopLevelWindowLocation
1601           instead of the earlier, more hacky solution. Reworked SetWMStyles,
1602           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
1603           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
1604           for all other windows (fixes #81281 part 1), a toolwindow is hidden
1605           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
1606           and generally refactored to do as few calculations as possible
1607           inside the lock.
1608
1609 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
1610
1611         * Theme.cs: Change "reflective-contract" between MWF and SD to 
1612         minimize # of calls, avoid Color serialization and avoid updating 
1613         every "known colors" each time a single one is updated.
1614
1615 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
1616
1617         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
1618         when not readonly and the text is explicitly set. Code style updates.
1619         * DataGridTableStyle.cs: Removed extra line.
1620         * DataGrid.cs: Code style updates. Removed extra whitespace.
1621         * DataGridColumnStyle.cs: Code style updates. Removed extra 
1622         whitespace.
1623
1624 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1625
1626         * XplatUIX11.cs: Added comment that "fixes" #80021.
1627
1628 2007-04-09  Jackson Harper  <jackson@ximian.com>
1629
1630         * TextControl.cs: We don't need this -1 on the line count anymore.
1631
1632 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
1633
1634         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
1635         entered value to underlying type, and convert it back to a string to
1636         apply formatting. Modified GetFormattedValue to use TypeConverter
1637         if available.
1638
1639 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
1640
1641         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
1642         Use SubItems property when we want to ensure there's at least one
1643         subitem. Modified SubItems property to ensure there's always at least
1644         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
1645         the NRE's reported by MS.
1646
1647 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
1648
1649         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
1650         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
1651         Spaces to tabs. Removed extra tabs.
1652
1653 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
1654
1655         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
1656         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
1657
1658 2007-04-06  Jackson Harper  <jackson@ximian.com>
1659
1660         * TextBoxBase.cs: When a delete removes a line, recalculate all
1661         lines below that line (they need to get offsets setup correctly)
1662         and invalidate.
1663
1664 2007-04-05  Jackson Harper  <jackson@ximian.com>
1665
1666         * TextControl.cs: We need to invalidate across the width of the
1667         document when we are invalidating multiple lines.
1668         * TextBoxBase.cs: Don't delete into the line ending.
1669
1670 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1671
1672         * ListView.cs: Restore the check for the MouseHover event
1673         in ListView. It looks like the ListView fires more than one MouseHover
1674         event when HoverSelection is true  _only_ in weird-corner scenarios, but
1675         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
1676         event.
1677
1678 2007-04-05  Mike Kestner  <mkestner@novell.com>
1679
1680         * ListView.cs : raise MouseDown before updating selection.
1681         [Fixes #80373 tab 1&3]
1682
1683 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
1684
1685         * ToolStripRenderer.cs: Add static method to mirror image.
1686         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
1687         and RightToLeftAutoMirrorImage.
1688         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
1689
1690 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
1691
1692         * ToolStripSplitStackLayout.cs: Support Alignment property.
1693         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
1694
1695 2007-04-05  Jackson Harper  <jackson@ximian.com>
1696
1697         * TextControl.cs: Move around the line endings when crossing line
1698         boundaries.
1699         - When combining lines, strip the ending text off the first line.
1700
1701 2007-04-05  Jackson Harper  <jackson@ximian.com>
1702
1703         * TextControl.cs:
1704         * TextBoxBase.cs: Try to never move the cursor into the line
1705         ending.
1706         
1707 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1708
1709         * ToolStripItem.cs: Make sure we aren't firing mouse events when
1710         the item is disabled.  Also add a few missing methods.
1711
1712 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1713
1714         * ListView.cs: We don't need the MouseEnter/MouseLeave check
1715         to fire just one MouseHover event when HoverSelection is true, since
1716         .Net does fire more than one MouseHover event in that scenario. Also,
1717         fix the selection in HoverSelection, by invoking UpdateMultiSelect
1718         if MultiSelect is true, instead of only setting ListViewItem.Selected.
1719         Finally, we need to reset the Hover logic in MouseMove, even when we
1720         don't have a selected item.
1721
1722 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1723
1724         * ToolStrip.cs: Add several missing methods, properties, and events.
1725
1726 2007-04-04  Chris Toshok  <toshok@ximian.com>
1727
1728         * DataGridTextBoxColumn.cs: set the bounds of the text box to
1729         (0,0,0,0) in Commit, as MS does.
1730
1731         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
1732         make sure we set CurrentRow on a row header click *before* calling
1733         Select.  This moves the current cell (and the textbox) to the new
1734         row.  The call to Select then hides the textbox, giving us the
1735         correct behavior.  Fixes #80362.
1736
1737         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
1738         (ListChangedHandler): reorder the position/current changed events,
1739         and call UpdateIsBinding in the ItemAdded case.
1740
1741         * GridColumnStylesCollection.cs: add some columns events, one of
1742         which raises the CollectionChanged event.
1743
1744 2007-04-04  Jackson Harper  <jackson@ximian.com>
1745
1746         * TextControl.cs: When we delete multiple selection lines
1747         invalidate the selection area, don't need to do that for single
1748         lines because the final update view will handle it.
1749
1750 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
1751
1752         * Control.cs: When we CreateControl, we need to also create all of the
1753         control's children.  The child's OnLoad must also fire before the parent's
1754         OnLoad.  Fixes the toolbox size in PDN.
1755
1756 2007-04-04  Jackson Harper  <jackson@ximian.com>
1757
1758         * TextBoxBase.cs: When the user presses enter, insert a line
1759         ending into the text. (Maybe this would be a good spot for
1760         Environment.NewLine).
1761         * TextControl.cs: Remove undo manager hack, line endings get
1762         inserted properly now.
1763         
1764 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
1765
1766         * MenuAPI.cs: 
1767         - Remove unneeded parameters in UpdateCursor.
1768         - Fix UpdateCursor to check if menu is active.
1769         - Call UpdateCursor when menu deactivate my click.
1770         [Fixes remaining issues from #80410]
1771
1772 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
1773
1774         * Control.cs: GetRealChildAtPoint method added, it make an
1775         recursive child control search for the point. 
1776
1777         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
1778         menu.
1779
1780         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
1781
1782 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
1783
1784         * Form.cs: Fix mouse position when send back mouse event after closes
1785         menu.
1786
1787 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
1788
1789         * Form.cs: Simplify the BUTTONDOWN for active tracker.
1790
1791 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
1792
1793         * Control.cs: Fix an issue where if a user resized a control inside
1794         a sizing method like OnResize, we would overwrite their explicit
1795         value.  Also, only call DefaultSize once in the constructor instead
1796         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
1797         nothing actually changed.
1798
1799 2007-04-03  Jackson Harper  <jackson@ximian.com>
1800
1801         * TextControl.cs: Don't attempt to copy text for lines with no
1802         text in them (technically this shouldn't happen, but we aren't
1803         always inserting line endings when we should be).
1804
1805 2007-04-03  Jackson Harper  <jackson@ximian.com>
1806
1807         * TextBoxBase.cs: Calculate the scrollbars before calculating the
1808         document, because this sets some of the document size properties
1809         that are needed.
1810
1811 2007-04-03  Jackson Harper  <jackson@ximian.com>
1812
1813         * TextBoxBase.cs: We need to calculate maximums even if this is
1814         not a multiline control, because the maxs are used for scrolling.
1815         - Display the caret after doing a page up/down, we need to
1816         manually display it because a proper CaretMoved event isn't
1817         triggered (this is because of the way the math is done to
1818         determine how far to scroll).
1819
1820 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
1821
1822         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
1823         (ToolBar was relying on SetBoundsCore to default the values sent 
1824         base off of BoundsSpecified.)
1825
1826 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1827
1828         * DateTimePicker.cs: Change Text so that when a null value or empty
1829           string is assigned to the test we always raise ValueChanged and
1830           TextChanged (earlier implementation would only raise ValueChanged
1831           if the current date value was different from DateTime.Now).
1832
1833 2007-04-03  Andreia Gaita <avidigal@novell.com> 
1834
1835         * ButtonBase: Call update after invalidation, fixes #80194
1836
1837 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1838
1839         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
1840           #79335.
1841
1842 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1843
1844         * XplatUIX11.cs: SetWMStyles: If the control is a form with
1845           FormBorderStyle = None, don't give the window any decorations.
1846           Fixes #81276.
1847
1848 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1849
1850         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
1851         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
1852           to check for is a mix of several styles (such as WS_CAPTION for
1853           instance).
1854         * Control.cs: Don't paint an area bigger than the client area when
1855           painting the background colour. Add an internal GetCreateParams.
1856           Update calls to XplatUI.CalculateWindowRect due to API change.
1857         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
1858           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
1859           the size if it hasn't been handled by any windows. When creating
1860           and moving windows, X wants the location of the entire window, but
1861           the size of the client window, so add
1862           TranslateClientRectangleToXClientRectangle,
1863           TranslateWindowSizeToXWindowSIze and
1864           TranslatedXWindowSizeToWindowSize to cope with this, and call them
1865           before every window creation and move. Update CalculateWIndowRect
1866           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
1867           In AddConfigureNotify don't do anything if the hwnd is a zombie
1868           (fixes the BadWindow we were getting while running the tests),
1869           always calculate the offsets when it's a parentless window, not
1870           only when reparented, and translate the window size, since we're
1871           getting the client size of the whole window, excluding entire
1872           window.
1873         * Theme.cs: Added BorderSizableSize.
1874         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
1875           anymore. Update calls to XplatUI.CalculateWindowRect due to API
1876           chang
1877         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
1878           change. Fake the window styles here instead of in XplatUIWin32 so
1879           that all back-ends get the same window styles (and it's Form that's
1880           deciding when to use wm, not the Win32 backend anyways)
1881         * Hwnd.cs: Completely reworked GetWindowRectangle and
1882           GetClientRectangle - they are now passed a CreateParams and they
1883           only use Style and ExStyle to determine the rectangles (they should
1884           now work just like Win32AdjustWindowRectEx - though quite a few
1885           special cases are probably missing). They should also be 100%
1886           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
1887           == rect), and all numbers (borders, menu sizes) are taken from the
1888           current theme. Added a GetBorders helper function that will return
1889           the borders for any given CreateParams (including captions and
1890           menus), and GetBorderSize that returns the given border size only.
1891         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
1892           Hwnd.GetClientRectangle.
1893
1894 2007-04-02  Chris Toshok  <toshok@ximian.com>
1895
1896         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
1897         logic between the values we present to the user and the values
1898         which are stored in the column's property.  Also, don't call
1899         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
1900
1901 2007-04-02  Jackson Harper  <jackson@ximian.com>
1902
1903         * TextBoxBase.cs: Scroll faster!
1904
1905 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
1906
1907         * StatusStrip.cs: Layout fixes for PDN.
1908         * ToolStrip.cs: Set item's available to true, and placement to main when
1909         added.
1910         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
1911         changing in setter before doing any work, add InternalVisible.
1912         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
1913         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
1914         infinite loop.
1915
1916 2007-04-02  Jackson Harper  <jackson@ximian.com>
1917
1918         * TextBox.cs: LBUTTON does not make the textbox select all of it's
1919         text on focus.
1920
1921 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1922
1923         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
1924           Makes ToolStripComboBoxes show up again.
1925
1926 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1927
1928         * ListView.cs: Add a hover_pending field in ListView
1929         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
1930         cycle (we are resetting the MouseHover logic in XplatUI
1931         to handle HoverSelection). Fixes #80429.
1932
1933 2007-04-02  Jackson Harper  <jackson@ximian.com>
1934
1935         * TextControl.cs: Make sure the attributes get set on the last
1936         tag.
1937         - Still have to do the end tag if we have stepped all the ways to
1938         the end.
1939
1940 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
1941
1942         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
1943         on an internal libgdiplus call when the information is already 
1944         available via the public API.
1945
1946 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
1947
1948         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
1949           control is removed from a control collecftion.
1950         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
1951           Fixes FormPropertyTest (failed on rare occasions).
1952         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
1953           of Win32SetParent (when changing from no parent to a parent it
1954           might add the new parent's location in screen coordinates to this
1955           window's location).
1956         * Form.cs: Rework ChangingParent once again, now the handle is
1957           recreated whenever a FormWindowManager is added or removed (that is
1958           whenever a normal form is parented or abandoned). Also change
1959           CreateParams so that all non-toplevel windows always get the
1960           specified sice (StartupPosition is never considered for
1961           non-TopLevel forms).
1962         * ContainerControl.cs: Add ChildControlRemoved, the container control
1963           needs to be notified when a control is removed from it's
1964           collection, in the case the removed control is the active control.
1965
1966 2007-04-02  Jackson Harper  <jackson@ximian.com>
1967
1968         * RichTextBox.cs: Use the new methods for setting the font and
1969         color, these methods set the specified attribute without
1970         overriding the other attributes.
1971
1972 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
1973
1974         * ToolStripPanel.cs: Fixes for better layouts in PDN.
1975
1976 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
1977
1978         * TextBox.cs: Added internal ChangeBackColor method to special-case
1979         Color.Empty. Added check for invalid ScrollBars value.
1980         * TextBoxBase.cs: Added internal ChangeBackColor method.
1981         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
1982         internal ChangeBackColor method to special-case Color.Empty. Added
1983         check for invalid ScrollBars value.
1984
1985 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
1986
1987         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
1988
1989 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
1990
1991         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
1992         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
1993         [Based on submitted patch from Olivier Duff.]
1994
1995 2007-03-30  Jackson Harper  <jackson@ximian.com>
1996
1997         * TextBox.cs: Only select all on initial focus if the user has not
1998         specified a selection area.
1999
2000 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
2001
2002         * UserControl.cs: Override CreateParams.
2003
2004 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2005
2006         [ Fixes #80995 ]
2007
2008         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
2009         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
2010           check for is a mix of several styles (such as WS_CAPTION for instance).
2011         * Control.cs: Don't paint an area bigger than the client area when painting
2012           the background colour. Add an internal GetCreateParams. Update calls to
2013           XplatUI.CalculateWindowRect due to API change.
2014         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
2015           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
2016           hasn't been handled by any windows. When creating and moving windows, X
2017           wants the location of the entire window, but the size of the client
2018           window, so add TranslateClientRectangleToXClientRectangle,
2019           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
2020           to cope with this, and call them before every window creation and move.
2021           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
2022           removing DeriveStyles). In AddConfigureNotify don't do anything if the
2023           hwnd is a zombie (fixes the BadWindow we were getting while running the
2024           tests), always calculate the offsets when it's a parentless window, not
2025           only when reparented, and translate the window size, since we're getting
2026           the client size of the whole window, excluding entire window.
2027         * Theme.cs: Added BorderSizableSize.
2028         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
2029           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
2030         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
2031           Fake the window styles here instead of in XplatUIWin32 so that all
2032           back-ends get the same window styles (and it's Form that's deciding when
2033           to use wm, not the Win32 backend anyways)
2034         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
2035           they are now passed a CreateParams and they only use Style and ExStyle
2036           to determine the rectangles (they should now work just like
2037           Win32AdjustWindowRectEx - though quite a few special cases are probably
2038           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
2039           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
2040           sizes) are taken from the current theme. Added a GetBorders helper
2041           function that will return the borders for any given CreateParams
2042           (including captions and menus), and GetBorderSize that returns the given
2043           border size only.
2044         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
2045           Hwnd.GetClientRectangle.
2046
2047 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2048
2049         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
2050           layout of the mdi children is handled by CreateParams. Fixes
2051           #79964,
2052
2053 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
2054
2055         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
2056         processed.
2057
2058         * Form.cs: When active tracker mouse down is not processed, send event 
2059         back to control inside mouse position. [Fixes #81227]
2060
2061 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
2062
2063         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
2064         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
2065         stealing focus from the active form on Windows.  (Control will be made
2066         visible in ShowWindow.)
2067
2068 2007-03-29  Mike Kestner  <mkestner@novell.com>
2069
2070         * ImageList.cs : add internal Changed event.
2071         * ListView.cs : hook up to StateImageList.Changed to perform
2072         invalidations when the the state icon list changes. [Fixes #81191]
2073
2074 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
2075
2076         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
2077         to prevent tooltips from stealing focus from the active form on Windows.
2078
2079 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
2080
2081         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
2082
2083         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
2084
2085 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
2086
2087         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
2088         balloons.
2089
2090 2007-03-29  Jackson Harper  <jackson@ximian.com>
2091
2092         * TextControl.cs: When deleting text from non multiline textboxes,
2093         we need to update the entire document, because line offsets will
2094         be shifting.
2095
2096 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
2097
2098         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
2099         added to theme, now we can create themes that uses diferent notify engines
2100         like notification-daemon from galago project or growl for Mac OS.
2101
2102 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
2103
2104         * NotifyIcon.cs: Prevent Balloon to show in task bar.
2105
2106 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
2107
2108         * XplatUIX11.cs: Prevent system to open more than one balloon.
2109
2110         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
2111         some compiler warning messages.
2112
2113 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
2114
2115         [Fixes #79149]
2116
2117         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
2118
2119         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
2120         implemented, this methods is used by NotifyIcon.BalloonWindow class.
2121
2122         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
2123         systems.
2124
2125 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2126
2127         * ListViewItem.cs: Forgot to make Invalidate internal.
2128
2129 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2130
2131         * ListView.cs: Add a InvalidateSelection method to
2132         invalidate methods which are currently selected, and call
2133         it when setting FullRowSelect and HideSelection, instead of
2134         calling Redraw.
2135
2136 2007-03-28  Chris Toshok  <toshok@ximian.com>
2137
2138         * XplatUIX11.cs (UnmapWindow): reindent this block.
2139
2140         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
2141         the selection_start if we're moving the selection (that is, not
2142         extending it). Fixes bug #80461.
2143
2144 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
2145
2146         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
2147         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
2148         create private ControlCollection.
2149
2150 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
2151
2152         * Control.cs: We need to call OnVisibleChanged for our implicit
2153         children as well as our normal children.  Fixes scrollbars in
2154         comboboxes not showing up.
2155
2156 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
2157
2158         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
2159         the check for IsHandleCreated first.  The check in CreateHandle is not
2160         good enough because CreateHandle can be overriden, and the override 
2161         should not be called if the handle is already created.
2162
2163 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
2164
2165         * ToolStrip.cs: Remove MonoTODO for tooltips.
2166         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
2167         * ToolStripContainer.cs: Add custom ControlCollection class.
2168         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
2169         * ToolStripDropDown.cs: Add some missing properties/methods.
2170         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
2171         * ToolStripItem.cs: Remove MonoTODO for tooltips.
2172         * ToolStripManager.cs: Add IsShortcutDefined.
2173         * ToolStripOverflow.cs: Override LayoutEngine.
2174         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
2175         * ToolStripSeparator.cs: Add ImageKey.
2176
2177 2007-03-28  Jackson Harper  <jackson@ximian.com>
2178
2179         * TextControl.cs: If a char delete removes a line ending, we need
2180         to update the ending style.
2181         - Make sure the line ending calcs get called.
2182
2183 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2184
2185         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
2186           it was making the new code not work. Fixed a typo in the new code
2187           as well. Fixes #79826.
2188
2189 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2190
2191         * XplatUIWin32.cs:
2192         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
2193         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
2194         - SystrayBalloon method implemented.
2195         [Add support for notifyicon balloon on win32, #79149]
2196
2197 2007-03-27  Mike Kestner  <mkestner@novell.com>
2198
2199         * ThemeWin32Classic.cs : update StateImageList selection to mirror
2200         the ms behavior when only one image is added to the list.
2201         [Fixes #81191]
2202
2203 2007-03-27  Jackson Harper  <jackson@ximian.com>
2204
2205         * TextControl.cs: Improvements to non multiline line ending
2206         drawing/measuing.
2207
2208 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2209
2210         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
2211
2212 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2213
2214         * NotifyIcon.cs: 
2215         - Balloon message handling added.
2216         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
2217
2218         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2219         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
2220         to SystrayBalloon to me like other Systray method, also a
2221         handle parameter added.
2222
2223 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2224
2225         * ListView.cs: Show scrollbars even when items.Count == 0
2226         but the columns Width is bigger than the ListView.Width.
2227         Also, when columns.Count == 0 set layout_wd and layout_ht
2228         to the ClientRectangle values, so we don't show any scrollbar
2229         in that case.
2230
2231 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2232
2233         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
2234
2235 2007-03-27  Jackson Harper  <jackson@ximian.com>
2236
2237         * RichTextBox.cs: The RTF library decodes the text properly for us
2238         now.
2239
2240 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2241
2242         * ListView.cs: Display HeaderControl even when columns.Count == 0.
2243         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
2244         ListView header (HeaderControl), instead of Control.BackColor.
2245
2246 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
2247
2248         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
2249         Fixes tab control issues where controls would not show up because they
2250         never received their OnVisibleChanged call.
2251
2252 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
2253
2254         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
2255         BalloonTipShown).
2256
2257 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
2258
2259         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
2260         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
2261         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
2262         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
2263         the handle.  Fix WindowState by using the internal variable until we are 
2264         sure that we've been shown.
2265         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
2266         max or min.
2267         [Fixes bug #81198]
2268
2269 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2270
2271         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
2272           (at least borders). Fixes #79386 on Linux (with a small difference
2273           in behaviour: when trying to resize a caption-less window metacity
2274           shows the sysmenu. Resizing is still possible though).
2275         * XplatUIWin32.cs: When setting window styles send request an extra
2276           WM_NCCALCSIZE when it's a form without title (due to no text and no
2277           caption), since Win32 seems to calculate it wrong the first time we
2278           get the message, though the second time things work as they should.
2279         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
2280           newly reparented window might show up unparented. Update
2281           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
2282           there's no title text. Fixes #79386.
2283
2284 2007-03-27  Mike Kestner  <mkestner@novell.com>
2285
2286         * ListBox.cs : don't perform invalidations if the handle hasn't been
2287         created.  [Fixes #80753]
2288
2289 2007-03-27  Mike Kestner  <mkestner@novell.com>
2290
2291         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
2292         [Fixes #80428]
2293
2294 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2295
2296         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
2297         needed to implement Balloon.
2298
2299 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2300
2301         * ListViewItem.cs: In the constructors that take
2302         an array of strings, don't use ListViewSubItemCollection.AddRange
2303         method to add items, since we need to have a different behaviour (in
2304         the constructors we add an item for each null string, opposed to
2305         the behaviour of AddRange, which adds nothing).
2306
2307 2007-03-26  Andreia Gaita  <avidigal@novell.com>
2308
2309         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
2310
2311 2007-03-26  Jackson Harper  <jackson@ximian.com>
2312
2313         * TextControl.cs: Draw and measure line endings when in non
2314         multiline mode.
2315         - When searching the text, count the end of the last line as a
2316         word boundary.
2317
2318 2007-03-26  Jackson Harper  <jackson@ximian.com>
2319
2320         * RichTextBox.cs: The selection_start and selection_end don't
2321         really track the correct tags for the selection. So we'll manually
2322         compute the correct tag here.
2323
2324 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2325
2326         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
2327           and Continuous styles. Fixes #79469.
2328
2329 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
2330
2331         * ToolStrip.cs: Implement Tooltips.
2332         * ToolStripItem.cs: Create internal method for determining tooltip.
2333
2334 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
2335
2336         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
2337
2338 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2339
2340         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
2341         it prevents a problem thak keeps icon visible after application 
2342         closes on win32.
2343
2344 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
2345
2346         * NotifyIcon.cs: Balloon properties and methods created.
2347
2348         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
2349         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
2350
2351 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
2352
2353         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
2354
2355 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
2356
2357         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
2358         parameter indicates which aspects were explicit/user-set.
2359         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
2360
2361 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
2362
2363         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
2364         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
2365         SmallChange, and Value (2.0).
2366         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
2367
2368 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2369
2370         * ListView.cs: Always set item_control.Width in LayoutDetails
2371         if View is Details. Setting it later in CalculateScrollBars
2372         in a not-so-corner scenario (the sum of columns width is
2373         not bigger than the ListView width when handle is created, and then
2374         that sum gets bigger by increasing the width of the columns)
2375         causes a very weird recursion path (which shouldn't be happening,
2376         since header_control sets it in CalculateScrollBars too). This bug
2377         appeared after Chris' fixes for handle created issues, so probably
2378         it's related to some handle-creation time.
2379
2380 2007-03-23  Chris Toshok  <toshok@ximian.com>
2381
2382         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
2383         case where there's an add row, just so we don't end up in a case
2384         where it's not displayed (this happens when the row is partially
2385         obscured).  Fixes bug #79574.
2386
2387 2007-03-23  Jackson Harper  <jackson@ximian.com>
2388
2389         * TextControl.cs:
2390         * TextBoxBase.cs:
2391         * RichTextBox.cs: Preserve line endings in the lines text buffer,
2392         also added an enum that represents the line ending type. 
2393
2394 2007-03-23  Andreia Gaita  <avidigal@novell.com>
2395
2396         * NumericUpDown.cs: Fix logic so Text and Value properties are not
2397         messed with in every method call, but only from DownButton, 
2398         UpButton, UpdateEditText() and ValidateText. Fixes #80346
2399
2400 2007-03-23  Chris Toshok  <toshok@ximian.com>
2401
2402         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
2403         format objects if the format spec is "".  Fixes bug #80889.
2404
2405 2007-03-22  Miguel de Icaza  <miguel@novell.com>
2406
2407         * ToolStripPanel.cs (Join): added stubs to build PDN3
2408
2409         * Control.cs (AutoScrollOffset): Add.
2410
2411         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
2412         property, its only implemented for Win32, on X11 it defaults to
2413         some hardcoded value.
2414
2415         * ToolStripItem.cs (AllowDrop): Add property
2416
2417 2007-03-22  Mike Kestner  <mkestner@novell.com>
2418
2419         * ListView.cs : in FullRowSelect Details mode, only enable box
2420         selection if the user clicks over the "item" column outside of the
2421         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
2422
2423 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2424
2425         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
2426           handle is not created yet.
2427         * Form.cs: Select: Don't call CreateHandle if the handle is already
2428           created, avoids a stack overflow on Windows when we are recreating
2429           controls.
2430         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
2431           they are made visible, and override AfterTopMostControl to keep
2432           them on top when other controls are brought to front.
2433           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
2434           or force_*scroll_visible is true (old implementation always shows
2435           scrollbars when needed, no matter what auto_scroll was set to).
2436         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
2437           IsHandleCreated check.
2438
2439 2007-03-22  Andreia Gaita  <avidigal@novell.com>
2440
2441         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
2442         row or col separator.
2443         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
2444
2445 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2446
2447         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
2448
2449 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2450
2451         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
2452         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
2453         every time. Fixes #80410.
2454
2455 2007-03-22  Chris Toshok  <toshok@ximian.com>
2456
2457         * BindingSource.cs (AddNew): partially implement.
2458
2459         remove a couple of NotImplementedException's
2460         to get bug #81148 closed.
2461
2462 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
2463
2464         [Fixes #80380]
2465         
2466         * Control.cs:
2467         - UpdateCursor method added to update the screen cursor.
2468         - GetAvailableCursor method added to return cursor for enabled tree,
2469         it searches for cursor on control and it's parent's for enabled control.
2470         - Call UpdateCursor method on setter of Cursor property.
2471         - On setter of Enabled call UpdateCursor when it is false, we need to
2472         change cursor to normal (or to this parent cursor) because cursor 
2473         setting theres no effect to disabled controls.
2474         - Some minor source changes to follow the coding style guidelines.
2475
2476         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
2477         controls.
2478
2479 2007-03-22  Chris Toshok  <toshok@ximian.com>
2480
2481         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
2482         generates.
2483
2484 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2485
2486         * XplatUIX11.cs: Implement default locations for forms.
2487         * Form.cs: Completely rework startup location for forms. Fixes #79964.
2488         * Hwnd.cs: Add previous_child_startup_location (to track the current
2489           startup location for any child forms of the current form) and
2490           previous_main_startup_location (to track the startup location for
2491           the current toplevel form).
2492
2493 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2494
2495         * Control.cs: Don't trigger a layout if an implicit control is added
2496         that isn't visible.  Also, don't notify the owner when an implicit control
2497         is added.  (Owners shouldn't even know about their implicit controls.)
2498
2499 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2500
2501         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
2502         to save some re-layouts.
2503
2504 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
2505
2506         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
2507         [Fixes #81203]
2508
2509 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
2510
2511         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
2512         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
2513
2514 2007-03-21  Mike Kestner  <mkestner@novell.com>
2515
2516         * ListView.cs : disable selection update for non-left button clicks
2517         with mods and over selected items.  [Fixes #80524]
2518
2519 2007-03-20  Jackson Harper  <jackson@ximian.com>
2520
2521         * TextControl.cs:
2522         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
2523         \r\r\n, \n.
2524
2525 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2526
2527         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
2528           very probably a more complicated calculation there. Update the
2529           textbox' ForeColor and BackColor when the ComboBox' colors are
2530           changed. Change the border change in LayoutComboBox to only affect
2531           the textbox, not all the calculations there. Seems to fix most of
2532           #79436.
2533
2534 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2535
2536         * ComboBox.cs: Handle Home and End keys as well as all combinations of
2537           modifiers + navigation keys as input keys, enables advanced text
2538           selection in the combobox (like Shift+Left Arrow for instance).
2539           ComboTextBox now overrides Focused and returns whatever
2540           ComboBox.Focused returns, since it really should be focused
2541           whenever the ComboBox is. Fixes #80795. Also make the border around
2542           the text box one pixel bigger, as mentioned in #79436.
2543
2544 2007-03-20  Jackson Harper  <jackson@ximian.com>
2545
2546         * TreeView.cs: Don't offset the images, this was causing some
2547         artifacts when expanding/collapsing with images that were the
2548         exact height of the treenode.
2549
2550 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2551
2552         * TrackBar.cs: Query the theme for the correct value when the mouse
2553           moves and the thumb is pressed. 
2554         * Theme.cs: Added TrackBarValueFromMousePosition
2555         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
2556           implementation was updating the trackbar value when drawing, now
2557           the drawing methods only draw. Fixes #80900. Refactored the
2558           calculations out to TrackBarValueFromMousePosition and
2559           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
2560           according to the mouse position whenever it wants to. Changed the
2561           light coloured pen when drawing the thumb from ControlLight to
2562           ControlLightLight, because the ControlLight is the same colour as
2563           the background so the 3D effect is lost. 
2564
2565 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2566
2567         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
2568         defined. Fixes #80784.
2569
2570 2007-03-20  Marek Habersack  <mhabersack@novell.com>
2571
2572         * ContextMenuStrip.cs: align with the change introduced in
2573         revision 74664.
2574
2575 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2576
2577         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
2578         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
2579         in SetTopmost.
2580
2581 2007-03-19  Chris Toshok  <toshok@ximian.com>
2582
2583         * Control.cs (WmPaint): don't make use of the Handle property
2584         after an event is emitted, as the user could have closed the
2585         form/destroyed the control.  Store the Handle in a local variable
2586         and make use of that.  Fixes bug #80768.
2587
2588 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2589
2590         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
2591         behavior in X11 environments.
2592
2593 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2594
2595         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
2596         because on setter of topmost we dont call SetTopmost when handle is not
2597         created.
2598
2599 2007-03-20  Jackson Harper  <jackson@ximian.com>
2600
2601         * TextControl.cs: Need to use SelectionLength () not
2602         selection_length, since that var is reset to -1.
2603         - Draw the caret when we don't have focus.
2604         * TextBox.cs: The selectall actually doesn't occur until the first
2605         focus.
2606         * TextBoxBase.cs: Need to update the caret position after a
2607         selectall.
2608         
2609 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2610
2611         * ListView.cs: Enable scrolling when using Tile view.
2612
2613 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
2614
2615         [Fixes #80902]
2616
2617         * XplatUIDriver.cs: Abstract SetOwner method created.
2618
2619         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
2620         must be implemented and was masked as todo.
2621
2622         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
2623         GWL_HWNDPARENT.
2624
2625         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
2626         cheking for null owner to remove transient. The SetTopmost will be change
2627         on a decond step.
2628
2629         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
2630         SetTopmost. Now owned forms will work properly in win32 and X11.
2631
2632 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2633
2634         * MdiWindowManager.cs: Update function name.
2635         * Form.cs: After closing a form MdiParent is always null.
2636         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
2637           better what it should do: necessary book-keeping when the form is
2638           closed, it should not close the form itself.
2639
2640 2007-03-19  Andreia Gaita  <avidigal@novell.com>
2641
2642         * ListViewItem.cs: Fix back and fore color. The subitems only
2643         use their own colors if they are set, otherwise use the listview's
2644         colors. Don't set default colors on constructor for subitem.
2645         Fixes #79315.
2646
2647 2007-03-19  Mike Kestner  <mkestner@novell.com>
2648
2649         * ListView.cs : make box selection for Details views with 
2650         FullRowSelect conform to MS behavior when clicking in the "item" 
2651         column and clicking outside the defined columns.
2652         [Fixes case 5-6 of #80374]
2653
2654 2007-03-19  Chris Toshok  <toshok@ximian.com>
2655
2656         * ScrollableControl.cs: create the controls from within the ctor,
2657         but don't actually add them until our handle is created.  this
2658         fixes a NRE possibility jpobst found (if you override OnLayout in
2659         a subclass, it's called before your ctor).  Also, add a
2660         IsHandleCreated guard to UpdateSizeGripVisibility as well.
2661
2662 2007-03-19  Jackson Harper  <jackson@ximian.com>
2663
2664         * TextBox.cs: Reduce the amount of invalidation we do.
2665         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
2666         some of them are true by default on MS.
2667         - Add some functions to reduce the amount of invalidates we do.
2668         * TextControl.cs: Less invalidation.
2669
2670 2007-03-19  Chris Toshok  <toshok@ximian.com>
2671
2672         [ Fixes #81773, and *seems* to fix #81553 as well ]
2673
2674         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
2675         AccumulateDestroyedHandles.  We need to do it *after* we send
2676         WM_DESTROY, as the user's code can access Control.Handle in
2677         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
2678         move the WM_DESTROY/zombie handling to before the call to
2679         XDestroyWindow.  For some reason without this ordering
2680         FormTest.RecreateHandle hangs.  This ordering is semantically
2681         equivalent, however, as XDestroyWindow is async anyway.
2682
2683 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
2684
2685         * RichTextBox.cs: Reset backcolor_set after setting default.
2686
2687 2007-03-19  Chris Toshok  <toshok@ximian.com>
2688
2689         * ScrollableControl.cs: the scroll position should not effect the
2690         canvas size.  commit patch from georgegiolfan@yahoo.com, which
2691         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
2692         
2693 2007-03-19  Chris Toshok  <toshok@ximian.com>
2694
2695         * ScrollableControl.cs: clean this up a bit.  create the
2696         scrollbars in the ctor and just show/hide them as needed.  Also,
2697         make hscroll_visible/vscroll_visible internal to Recalculate, and
2698         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
2699         everywhere else.  This seems to fix the scrollbars appearing
2700         beneath the content for me (i have *no* idea why that is,
2701         however.)
2702
2703 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
2704
2705         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
2706         some redundacy for stuff in Anchor and Dock that base will take care of.
2707         [Fixes #80762]
2708
2709 2007-03-19  Mike Kestner  <mkestner@novell.com>
2710
2711         * ListView.cs : make box selection for Details views without 
2712         FullRowSelect dependent on the text bounds, not item bounds.
2713         * ListViewItem.cs : add an internal property to obtain the TextBounds
2714         in Details view.  [Fixes case 1-4 of #80374]
2715
2716 2007-03-19  Andreia Gaita  <avidigal@novell.com>
2717
2718         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
2719         we're < 2.0. #78448 && #80316
2720
2721 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
2722
2723         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
2724         have the same style available as the previously selected one.  Also,
2725         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
2726
2727 2007-03-19  Jackson Harper  <jackson@ximian.com>
2728
2729         * TextControl.cs: Add an alignment property that all new lines
2730         will be given.
2731         - Make sure to use the align shift when calculating the line's X
2732         position.
2733         * TextBox.cs: Set the alignment on the document as well as on all
2734         the document lines.
2735
2736 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2737
2738         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
2739           throw if setting the parent of an mdichild that already has an
2740           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
2741           AssemblyProductAttribute in the assembly, use the type's namespace (as
2742           MS seems to do). CreateControl: don't create the handle if the control
2743           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
2744           create handle if the control is not a form. Change FocusInternal to
2745           virtual so that it can be overriden by Form.
2746         * TextBox.cs: Update call to FocusInternal.
2747         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
2748           form is not a toplevel form when it's a mdi child, so update is_toplevel
2749           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
2750           hasn't been created. Show (IWin32Window): Don't allow this overload for
2751           toplevel windows. CenterToParent/CenterToScreen/Select: create the
2752           handle as MS does. SetVisibleCore: if called on a MdiChild and the
2753           parent isn't visible yet, save the visibility and restore it when the
2754           parent is made visible.
2755         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
2756           methods, since the visibility of the scrollbars can be changed from
2757           several places, not only from AutoScroll.
2758           [Fixes #81179]
2759
2760 2007-03-19  Jackson Harper  <jackson@ximian.com>
2761
2762         * RichTextBox.cs: Enable shortcuts by default.
2763         * TextBoxBase.cs: Add conditional shortcuts.  
2764
2765 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
2766
2767         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
2768
2769 2007-03-19  Chris Toshok  <toshok@ximian.com>
2770
2771         [ Fixes bug #80604]
2772         
2773         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
2774         swallow the message we're waiting on, instead of delivering it, as
2775         this is only used for the WM_SHOWWINDOW raised from
2776         MapWindow/UnmapWindow, and the message needs to be generated
2777         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
2778         before doing the Map/Unmap.  Also make sure that the Hwnd is still
2779         alive after the message has been handled.
2780
2781         *before* the window is shown.
2782
2783         * Control.cs (CreateControl): guard a few more things inside the
2784         if (!is_created) block, as we might end up being called again -
2785         yay .net.
2786         (WmShowWindow): call CreateControl if we're showing the control.
2787
2788 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2789
2790         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
2791           controls without a handle if they have any parent with a handle. In
2792           Dispose add a check whether the handle is created or not before
2793           calling BeginInvoke, this removes the need of the extra disposing
2794           parameter (which was bogus anyway since it didn't prevent the
2795           invoke from happening, it only skipped the check for an existing
2796           handle, meaning that the invoke would call on an inexistent
2797           handle).
2798
2799 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
2800
2801         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
2802         appears in taskbar.
2803
2804 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
2805
2806         * MessageBox.cs:
2807         - Fixed a problem that dont show help button for messages with 3 buttons.
2808         - Refactory button size and position calculations, now dont use fixed 
2809         values, also fixed button sizes (#80043) and form's border space.
2810         - AddButton method created, now all other AddButton methods call this one.
2811         - Some other source code cosmetic changes.
2812
2813 2007-03-18  Jackson Harper  <jackson@ximian.com>
2814
2815         * RichTextBox.cs: Don't do this all fonts must match check if
2816         there is only one char selected.
2817
2818 2007-03-18  Jackson Harper  <jackson@ximian.com>
2819
2820         * TreeView.cs: ScrollWindow works properly now, so we don't need
2821         to screw around with the scroll area.  This fixes some artifacts
2822         when expanding and collapsing.
2823
2824 2007-03-18  Jackson Harper  <jackson@ximian.com>
2825
2826         * TextBoxBase.cs: Allow updating the selection position when the
2827         cursor is outside the textarea, but we have a capture.
2828         * TextControl.cs: A special case for when the cursor is outside
2829         the bounds of the TB.
2830         
2831 2007-03-18  Jackson Harper  <jackson@ximian.com>
2832
2833         * TextBoxBase.cs: Remove image pasting code for now.  There is no
2834         way to get an image on the clipboard right now anyways.
2835         * TextControl.cs:
2836         * RichTextBox.cs: Use the new RTF Picture class for pictures.
2837
2838 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
2839
2840         * MessageBox.cs:
2841         - Set window properties in constructor intead of on CreateParams.
2842         - Remove topmost from Window ExStyle.
2843         - Set ShowInTaskbar to false.
2844         - Set form border to FixedDialog.
2845         - Some cosmetic changes and remove unneeded comments.
2846         - It fixes itens 2,3 and 4 of bug #80043.
2847
2848 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
2849
2850         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
2851         none was explicitly set. Fixes part of bug #79949.
2852
2853 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
2854
2855         * ToolStripComboBox.cs: Add AutoComplete*.
2856
2857 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
2858
2859         * ToolStripComboBox.cs: Add FlatStyle.
2860
2861 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
2862
2863         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
2864         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
2865
2866 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2867
2868         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
2869           CheckBox.cs, RadioButton.cs, BindingSource.cs,
2870           DataGridColumnStyle.cs: Remove warnings.
2871
2872 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2873
2874         * Menu.cs: MergeMenu: Check menu argument for null before looping over
2875           it.
2876         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
2877           visibility of mdi child forms. FormSizeChangedHandler: update the
2878           maximized size if size has changed while maximized.
2879         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
2880           creating the handle.
2881         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
2882           avoid creating the handle if not created.
2883         * XplatUI.cs: Update debug output.
2884         * XplatUIStructs.cs: Added ToString's for a couple of structs.
2885
2886 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
2887
2888         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
2889         ProcessCmdKey().
2890         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
2891         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
2892         Implement keyboard shortcuts.
2893
2894 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
2895
2896         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
2897         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
2898         ColorDialog and all derived classes.
2899
2900 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
2901
2902         [ Fixes bug #79828 ]
2903
2904         * ToolBar.cs:
2905         - Rename ToolBarButtonInfor to ToolBarItem.
2906         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
2907         - Maintain an array of ToolBarItem, used instead of ToolBarButton
2908         collection to be able add same button more than one time on a toolbar.
2909         - Refactory all properties and methods to use ToolBarItem. 
2910
2911         * ToolBarButton.cs: 
2912         - Remove all propeties and methods that is now in ToolBarItem.
2913         - Rectangle propery now gets the rectangle from first ToolBarItem to
2914         mimic win32 behavior.
2915         - Size calculation and layout methods also removed.
2916
2917         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
2918         ToolBarItem instead of ToolBarButton to right drawing buttons when
2919         same button/separator was added more than one time to ToolBar.
2920
2921         * ThemeNice.cs: Same as above. 
2922
2923 2007-03-15  Andreia Gaita  <avidigal@novell.com>
2924
2925         * XplatUIX11.cs: Fire extra MouseMove events right after
2926         MouseDown and MouseUp, emulating win32's <censored> behaviour
2927         for apps that rely on it.
2928
2929 2007-03-15  Jackson Harper  <jackson@ximian.com>
2930
2931         * TextControl.cs:
2932         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
2933         it is drawn on the controls client window and there is no NC
2934         area.
2935         - Set the background color to gray on 2.0 when we are readonly.
2936
2937 2007-03-15  Chris Toshok  <toshok@ximian.com>
2938
2939         [ Fixes bug #81144 ]
2940         
2941         * XplatUIX11.cs: implement VirtualScreen independently of
2942         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
2943         property.
2944
2945 2007-03-15  Chris Toshok  <toshok@ximian.com>
2946
2947         * Hwnd.cs: add an internal field for the cached_window_state.
2948
2949         * XplatUIX11.cs: cache the window state, invalidating the cache
2950         (and thus re-querying the X server) only when we see an update to
2951         the _NET_WM_STATE property.
2952
2953 2007-03-15  Chris Toshok  <toshok@ximian.com>
2954
2955         * BindingSource.cs: get a lot of the unit tests working.
2956
2957 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
2958
2959         * Control.cs: Modify UpdateStyles to store distances when bounds >=
2960         0 instead of just bounds > 0.  [Fixes bug #80912]
2961
2962 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
2963
2964         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
2965         and methods.
2966
2967 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
2968         
2969         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
2970         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
2971         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
2972         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
2973
2974 2007-03-15  Chris Toshok  <toshok@ximian.com>
2975
2976         [ Fixes #81101 ]
2977         
2978         * Control.cs: add Ivan's fix for 81101, with a slight modification
2979         - you can set control.Target to null.
2980
2981 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
2982
2983         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
2984         HideDropDown, use Hide instead to prevent an NRE.
2985         [Fixes bug #81147]
2986
2987 2007-03-14  Jackson Harper  <jackson@ximian.com>
2988
2989         * TextBoxBase.cs: Mess with the creation stuff a little. We need
2990         to calculate the document before the handle is created, in some
2991         cases. (Actually just one case).
2992
2993 2007-03-14  Jackson Harper  <jackson@ximian.com>
2994
2995         * TextBoxBase.cs: Need to display the caret after letting the base
2996         wndproc handle the focus methods, because the caret display
2997         methods check the focus state.
2998         - Try to display the caret after updating it's position with SelectWord.
2999         - Don't need to do an immediate update on this recalc, since there
3000         will be an invalidate anyways.
3001
3002 2007-03-14  Jackson Harper  <jackson@ximian.com>
3003
3004         * TreeView.cs: Some workarounds so that we can match event order a
3005         little better.
3006
3007 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
3008
3009         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
3010         #80803. Avoid NullReferenceException when Control does not have
3011         parent. Fixed different blinkstyle issues. Only subscribe to Tick
3012         event a single time. Only draw error icon when control is created and
3013         visible. Fixes failing unit tests.
3014
3015 2007-03-14  Andreia Gaita  <avidigal@novell.com>
3016
3017         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
3018         Selecting events. Fire Leave and Enter events when changing tabs.
3019
3020 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
3021
3022         * TreeView.cs: Add TreeViewNodeSorter.
3023         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
3024
3025 2007-03-14  Chris Toshok  <toshok@ximian.com>
3026
3027         * Form.cs: go ahead and remove the RecreateHandles that jpobst
3028         removed earlier and I had him add back it.  It turns out metacity
3029         *does* in fact handle the MOTIF_WM_HINTS property changing, it
3030         just doesn't redraw the window titlebar until you resize the
3031         window.  This also means we aren't recreating the entire window
3032         hierarchy on X when you change this property.  And it looks better
3033         on windows, too.
3034
3035 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3036
3037         * ListViewItem.cs:
3038         * ListView.cs: Collecting selection information
3039         is now done in SelectedIndexCollection rather than in
3040         SelectedListViewItemCollection. This is done so we can
3041         have the selection information code in one single place
3042         (virtual mode selection information entirely depends on
3043         SelectedIndexCollection).
3044
3045 2007-03-13  Miguel de Icaza  <miguel@novell.com>
3046
3047         * ErrorProvider.cs: Add stubs for ISupportInitialize
3048
3049 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3050
3051         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
3052         in the right order with the right values, from the Checked property, 
3053         just as MS does (instead of triggering them from ListView).
3054
3055         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
3056
3057 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3058
3059         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
3060         the correct handler in OnItemCheck method (ItemCheckEventHandler 
3061         instead of EventHandler). This used to throw an InvalidCastException.
3062
3063 2007-03-13  Jackson Harper  <jackson@ximian.com>
3064
3065         * TextBoxBase.cs: Calculate the document before the handle is
3066         created, so there isn't an extra invalidate called.
3067
3068 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
3069
3070         * Form.cs: Don't set owner in ShowDialog until we are sure
3071         that we aren't going to throw an exception.  [Fixes bug #80773]
3072
3073 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
3074
3075         * TreeView.cs: Make it compile.
3076
3077 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
3078
3079         * Control.cs: Another place we don't call SizeFromClientSize.
3080         * Form.cs: Another place we don't call SizeFromClientSize.
3081         [Fixes bug #81125]
3082
3083 2007-03-12  Jackson Harper  <jackson@ximian.com>
3084
3085         * TreeView.cs: Basically emulating some strangness here with
3086         exanding nodes and setting node positions when windows aren't
3087         created.
3088         - Also attempting to walk the node tree less than previously, and
3089         just use visible order calculations for determining offsets.
3090         - oops made scrolling backwards.
3091         * TreeNode.cs: We need to start nodes with a zero visible order,
3092         because the order calcs are based on the first nodes order.
3093
3094 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
3095
3096         * Form.cs: Don't exit the program if RecreateHandle is called on
3097         the main form.
3098
3099 2007-03-12  Chris Toshok  <toshok@ximian.com>
3100
3101         * XEventQueue.cs: remove the use of PostQuitState.
3102
3103         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
3104         WM_QUIT message in GetMessage, return false (and if we're in the
3105         nested WaitForHwndMessage, repost the WM_QUIT message).
3106
3107 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
3108
3109         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
3110         or the MaximizeBox properties.  [Part of bug #80640]
3111
3112 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
3113
3114         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
3115         no links.
3116
3117 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
3118
3119         * ToolStripItem.cs: Fix some tests I broke by checking Visible
3120         instead of visible.
3121
3122 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
3123
3124         * FileDialog.cs: Use text of File name combobox to determine what
3125         files the user selected. Added tokenizer to parse the file names.
3126         Fixes bug #81123.
3127
3128 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
3129
3130         * Control.cs: We can't call SizeFromClientSize in the constructor,
3131         but we still need to do the same work, so make an internal version.
3132         [Fixes bug #80621]
3133
3134 2007-03-12  Jackson Harper  <jackson@ximian.com>
3135
3136         * TreeView.cs:
3137         * TreeNode.cs:
3138         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
3139         IsExpanded.
3140
3141 2007-03-12  Jackson Harper  <jackson@ximian.com>
3142
3143         * TextBoxBase.cs: Now that the handles are being created a little
3144         later, we need to make sure that the document is recalculated when
3145         the handle is created.
3146
3147 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
3148
3149         * Theme.cs: GetLinkFont abstract method added.
3150         
3151         * LinkLabel.cs: 
3152         - Remove CalcTrimRectangle, no longer needed.
3153         - Factor also remove, position issues must be fixed in libgdiplus.
3154         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
3155         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
3156         care about font used to draw links.
3157         - Set TabStop to true when control is "Selectable", control is selectable
3158         when have one or more links. Fixes #80501 (test case is also added).
3159         - Set the LinkArea values after links change, LinkArea values must be
3160         based in first link position and size, a test case was created.
3161         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
3162         the attribute must be true LinkArea.Length > 0. The same was applied to
3163         TabStop.
3164         
3165         * ThemeWin32Classic.cs: 
3166         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
3167         in draw method.
3168         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
3169         color change.
3170         - Draw focus rectangle for every parts focused, including parts that 
3171         is on another line, its because regions returns various rectangles
3172         and not only one. Needed to mimic W32 look.
3173         - Uses Graphics.Clip to delimite region painted, it mean that now 
3174         complete text is passed to DrawString, with this we solve layout
3175         issues without create another text renderer.
3176         - Uses Region.Intersect to fix some flickers problems, now only needed
3177         parts will redrawed.
3178         - This changes fixes #79614 and some other unreported issues, on Linux 
3179         some layout problems still remain, the problem is under 
3180         MeasureCharacterRanges but it is an libgdiplus bug.
3181
3182 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
3183
3184         * TextBox.cs: Set for foreground color.
3185         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
3186         this is already done in Control.
3187
3188 2007-03-10  Jackson Harper  <jackson@ximian.com>
3189
3190         * TextBox.cs: Set the background color, but reset the
3191         backcolor_set flag which is just for the user setting the
3192         background color.
3193
3194 2007-03-09  Chris Toshok  <toshok@ximian.com>
3195
3196         * Control.cs: really remove the call to XplatUI.SetVisible from
3197         CreateHandle(), like I said I did when I merged the branch.
3198
3199         * BindingSource.cs: implement some more of this stuff.
3200
3201 2007-03-09  Jackson Harper  <jackson@ximian.com>
3202
3203         * TextBox.cs: Don't explicitly set our background colors.
3204         * TextControl.cs:
3205         * TextBoxBase.cs: Draw readonly text.
3206         - Need to invalidate when backcolor or readonly are changed.
3207         
3208 2007-03-09  Jackson Harper  <jackson@ximian.com>
3209
3210         * TextBoxBase.cs: Don't set the forecolor until the handle is
3211         created.
3212         - Do not raise OnPaint, and removed some old debug code.
3213
3214 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
3215
3216         * ScrollableControl.cs: Fix mouse wheel scrolling.
3217
3218 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
3219
3220         * Control.cs: Wire up MouseDoubleClick event.
3221
3222 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
3223
3224         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
3225         top or bottom.
3226         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
3227         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
3228         item is added.  This logic was moved to ToolStrip.OnItemAdded.
3229         [Fixes bug #81090]
3230
3231 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3232
3233         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
3234
3235 2007-03-08  Jackson Harper  <jackson@ximian.com>
3236
3237         * TreeView.cs: Show the correct image for selected node (this used
3238         to work, not sure how the code got deleted). Also implemented 2.0 feature
3239         SelectedImageKey.
3240
3241 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3242
3243         * ListView.cs:
3244         * ListViewItem.cs: Cache index in items when retrieving them
3245         in VirtualMode.
3246
3247 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3248
3249         * ToolStripItem.cs: Don't return the explicit_size if we are using 
3250         AutoSize.  Fixes invalidation issue when user has explicitly set a
3251         size and has AutoSize = true.
3252
3253 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3254
3255         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
3256
3257 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3258
3259         * DataGridView.cs: Remove event handler from DataView when a
3260         DataTable is used as DataSource.
3261
3262 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
3263
3264         * Control.cs: Create internal setter for client_size to allow it to be
3265         set without triggering resizing code.
3266         * Form.cs: Calculate client_size in constructor, only change client_size
3267         in FormBorderStyle property if Handle has been created.
3268         [Fixes #80574, #80791]
3269
3270 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
3271
3272         * SystemInformation.cs: Add TerminalServerSession.
3273
3274 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3275
3276         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
3277         TreeView code.
3278
3279 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3280
3281         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
3282         Handle before we were supposed to.  Now checks ActivateOnShow property
3283         in Control.
3284         * Control.cs: Add internal ActivateOnShow property.
3285         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
3286         for ActivateOnShow.
3287         * Hwnd.cs Remove no longer needed no_activate field.
3288
3289 2007-03-07  Jackson Harper  <jackson@ximian.com>
3290
3291         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
3292         2.0 properties
3293         * DrawTreeNodeEventHandler.cs: Add
3294         * DrawTreeNodeEventArgs.cs: Correct default value.
3295         
3296 2007-03-07  Chris Toshok  <toshok@ximian.com>
3297
3298         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
3299         to be called before NativeWindow.WndProc.  Put the HwndCreating
3300         magic there to hook up our Hwnd's to handles.
3301
3302 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
3303
3304         * DataGridView.cs: Comment out debug code.
3305
3306 2007-03-07  Chris Toshok  <toshok@ximian.com>
3307
3308         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
3309         to make the rest of the world happy]
3310
3311         * Control.cs (CreateHandle): there's no need to call
3312         XplatUI.SetVisible here, it's effectively done by
3313         XplatUI.CreateWindow on X now, and always was on windows.
3314
3315         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
3316         shortcircuit out of the loop if we have a message loop running on
3317         this thread.
3318
3319         [Changelog from merge]
3320
3321         2007-03-05  Chris Toshok  <toshok@ximian.com>
3322
3323                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
3324                 causes handle creation.
3325
3326         2007-02-28  Chris Toshok  <toshok@ximian.com>
3327
3328                 * ApplicationContext.cs: Add a flag to make sure we only raise the
3329                 ThreadExit event once (ExitThreadCore can be indirectly called
3330                 from a few places.)  I don't like the additional flag, but it
3331                 makes the event ordering/count correct.
3332
3333                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
3334                 without locking the collection.  An enumerator doesn't give us any
3335                 protection from modification anyway.  Lock the thread hash and
3336                 replace the complicated enumerator loop with a foreach.
3337                 (Application.CloseForms): make internal so it can be called from
3338                 ApplicationContext.  This should probably be moved to MWFThread.
3339                 (Application.ExitThread): don't call MWFThread.Current.Exit()
3340                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
3341                 when the runloop exits (in response to WM_QUIT.)
3342                 (Application.RunLoop): add a comment (and check) for
3343                 context.MainForm being null after setting context.MainForm.Visible
3344                 = true.  This is because you're perfectly free to dispose of a
3345                 form in VisibilityChanged.  Chalk this up to another case where we
3346                 need to synchronously generate WM_ACTIVATE from Control.Show.
3347                 Also, add handling for WM_QUIT here so we'll exit the loop.
3348                 
3349                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
3350                 fact that we don't wait if we're only unmapping the whole_window
3351                 makes me a bit nervous, but it doesn't seem to cause any problems
3352                 yet.
3353
3354                 also, add a comment about the stupid, broken and wrong resetting
3355                 of PostQuitState to false in GetMessage().
3356
3357                 In PostQuitMessage, we need to add a WM_QUIT message to the
3358                 thread's queue.  We use the FosterParent to get the right
3359                 handle/hwnd/queue.
3360
3361                 Lastly, in SetVisible, we need to unmap both windows, since the
3362                 waiting only happens when we're unmapping the client window.  So
3363                 now, the *only* time we unmap just the whole_window is in the hack
3364                 for resizing a control to 0,0.
3365                 
3366         2007-02-21  Chris Toshok  <toshok@ximian.com>
3367
3368                 * Application.cs (CloseForms): rewrite this so that we don't
3369                 modify the list while we're traversing it.
3370
3371         2007-02-20  Chris Toshok  <toshok@ximian.com>
3372
3373                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
3374                 of OnHandleCreated.
3375                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
3376                 handle is created.  otherwise we'll create it here.
3377                 (VerticalScrollEvent): same here.
3378
3379                 * Application.cs (CloseForms): call Form.Dispose, don't post
3380                 WM_CLOSE_INTERNAL.
3381
3382                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
3383                 here. Application should Dispose() of the Form's.
3384
3385                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
3386                 WM_DESTROY as well.
3387                 (MapWindow,UnmapWindow): only actually do the waiting for
3388                 SHOWWINDOW if the control we're dealing with is a Form.
3389                 (CreateWindow): if the control isn't a form, SendMessage
3390                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
3391
3392                 * Control.cs (SetVisibleCore): always use is_visible here, not
3393                 value.  If we use value, we can end up re-setting something
3394                 visible if, for instance, you do Control.Hide() in a delegate
3395                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
3396
3397         2007-02-20  Chris Toshok  <toshok@ximian.com>
3398
3399                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
3400                 the message we need.  PeekMessage returning false should not be a
3401                 condition under which we exit the loop.
3402
3403         2007-02-15  Chris Toshok  <toshok@ximian.com>
3404
3405                 * Control.cs (Refresh): only refresh if we've got a handle and are
3406                 visible.
3407                 (CreateAccessibilityInstance): CreateControl() here.
3408                 (UpdateChildrenZOrder): complicate the code loop even more by
3409                 taking into account controls that haven't had their handle
3410                 created, and those that aren't visible.  But on the flip side,
3411                 simplify the code by splitting it into two loops.  one which
3412                 builds up the list of child controls we're interested in, and the
3413                 other that sets the z order of those children.
3414
3415         2007-02-14  Chris Toshok  <toshok@ximian.com>
3416
3417                 * Control.cs: Control.AccessibilityObject causes the control to be
3418                 created, not just the handle.
3419
3420         2007-02-14  Chris Toshok  <toshok@ximian.com>
3421
3422                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
3423                 problem on X where a window might have its handle created (and be
3424                 visible) while the window is unmapped.  calling XConfigureWindow
3425                 on an unmapped window is bad, and generates X errors.
3426
3427         2007-02-13  Chris Toshok  <toshok@ximian.com>
3428
3429                 * Control.cs (CreateHandle): don't loop over our children setting
3430                 their parent here.  do it when in WndProc when we're shown.
3431                 (UpdateChildrenZOrder): make this internal so we can call it from
3432                 ScrollableControl.
3433                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
3434                 creating its handle.  Also, remove the calls to PerformLayout from
3435                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
3436                 OnVisibleChanged only seems to be called directly here for the
3437                 toplevel control.  It's propagated down the window hierarchy by
3438                 calls to child.OnParentVisibleChanged.
3439                 (OnVisibleChanged): don't do layout here - it's done (oddly
3440                 enough, according to a glance at stack traces on ms.net..) in
3441                 ScrollableControl.
3442                 
3443                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
3444                 z order of our children before calling PerformLayout.
3445
3446         2007-02-12  Chris Toshok  <toshok@ximian.com>
3447
3448                 [big change, fixes #80020]
3449                 
3450                 * AccessibleObject.cs: we need to make owner internal again to fix
3451                 some of ControlAccessibleObject.
3452
3453                 * Control.cs: lots of changes here.  add support for WM_CREATE,
3454                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
3455                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
3456                 we create child controls.  leave the MonoTODO's for the
3457                 accessibility calls, but fix the exceptions so the tests pass.
3458
3459                 Add the InvalidOperationExceptions to Invoke methods, and remove a
3460                 couple of InvokeInternal methods we aren't using.
3461                 
3462                 Also, add a couple of CreateHandle calls in places where we know
3463                 the handles are being created but our code doesn't reference
3464                 .Handle.
3465
3466                 Make SetVisibleCore call OnVisibleChange if the handle isn't
3467                 created.  If the handle is created, we rely on XplatUI.SetVisible
3468                 generating the event synchronously.
3469                 
3470                 Lastly, make sure we don't use this.Handle inside CreateHandle,
3471                 because we can call back into client (and that code can dispose of
3472                 the control).
3473
3474                 * XplatUIStructs.cs: misc/cleanup.
3475
3476                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
3477                 although we don't populate the wParam properly.
3478                 (CreateWindow): generate WM_CREATE.
3479                 (MapWindow,UnmapWindow): make these calls synchronous, at great
3480                 performance expense (particularly in the unmap case), to match
3481                 win32 behavior.
3482
3483                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
3484                 to call it.
3485                 (set_MdiParent): don't recreate the handle unless it's been
3486                 created already.
3487                 
3488                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
3489                 it's created.
3490
3491                 * NativeWindow.cs: this is probably the weirdest part of the
3492                 patch.  We need a way to link up the window being created to the
3493                 WM_CREATE message.  Since we can only be creating one window at a
3494                 time on a given thread, we keep track of a per-thread reference so
3495                 we can dispatch it properly.  We also need to keep track of the
3496                 Hwnd currently being created so that the win32 backend doesn't
3497                 have problems.
3498                 
3499                 * XplatUIWin32.cs: a similar change to the one we made in
3500                 NativeWindow.cs.
3501
3502 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
3503
3504         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
3505         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
3506         to draw the menu shortcut string.
3507
3508 2007-03-07  Jackson Harper  <jackson@ximian.com>
3509
3510         * TreeNode.cs: Add the 2.0 collapse method.
3511
3512 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3513
3514         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
3515
3516 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3517
3518         * DataGridView.cs: Change DataSource will clear column and row
3519         lists. Call Invalidate() to reflect DataSource change.
3520
3521 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3522
3523         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
3524         and a new row is added to it.
3525
3526 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
3527
3528         * DataGridView.cs: Add columns when DataSource is en empty list but
3529         is a System.Data.DataView (from a System.Data.DataTable).
3530
3531 2007-03-06  Andreia Gaita  <avidigal@novell.com>
3532
3533         * Label.cs: Implement AutoEllipsis (2.0)
3534
3535 2007-03-06  Jackson Harper  <jackson@ximian.com>
3536
3537         * TreeView.cs: Implement 2.0 TopNode setter property.
3538         - Use a local var instead of the skipped_nodes field for computing
3539         how many nodes to skip.  Otherwise we won't scroll because the
3540         valuechanged handler checks if skipped_nodes is equal to the new
3541         value.
3542         - Implement 2.0 Sort method.
3543         - Add useless 2.0 DoubleBuffer property
3544         - Implement 2.0 LineColors property.  Lets you change the color of
3545         the lines in the tree. Terribly useful for creating non cohesive
3546         desktops.
3547         - Implement 2.0 image key feature.
3548
3549 2007-03-06  Jackson Harper  <jackson@ximian.com>
3550
3551         * TreeView.cs: We can't get the bounds of the nodes before raising
3552         the AfterSelect event, because that event could change the node's
3553         bounds (scrolling, font change, etc).
3554
3555 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3556
3557         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
3558         * Form.cs: Don't recreate handle when creating FormWindowManager, just
3559           update window styles. In CreateParams us VisibleInternal instead of
3560           VIsible to get the actual visible flag set for this form.
3561         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
3562           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
3563           handle the case when the form is already maximized, in which case
3564           it should be restored. Fixes #81043.
3565
3566 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3567
3568         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
3569
3570 2007-03-05  Jackson Harper  <jackson@ximian.com>
3571
3572         * TreeViewHitTestInfo.cs: implement.
3573
3574 2007-03-05  Jackson Harper  <jackson@ximian.com>
3575
3576         * InternalWindowManager.cs: class status fix.
3577
3578 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3579
3580         * InternalWindowManager.cs: All windows that have a parent
3581         are confined to their parent when they're being moved.
3582         Fixes #80822.
3583
3584 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
3585
3586         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
3587         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
3588
3589 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3590
3591         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
3592           buttons invisible before deciding which ones should be visible
3593           (fixes minimize/maximize buttons showing up in toolwindows). Remove
3594           an unused variable.
3595         * InternalWindowManager.cs: Remove warning.
3596
3597 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3598
3599         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
3600         to throw an InvalidOperationException is virtual mode is being used.
3601
3602 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
3603
3604         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
3605         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
3606         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
3607         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
3608         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
3609         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
3610
3611 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3612
3613         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
3614           driver.KeyboardDelay from XplatUI.KeyboardDelay 
3615         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
3616           (patch by Sergey Volk)
3617
3618 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3619
3620         * ToolWindowManager.cs: Added, contains logic for
3621           tool windows.
3622         * CreateParams.cs: Add a few helper methods and an
3623           internal variable to know which control the CreateParams belongs
3624           to.
3625         * Control.cs: Call Form.ChangingParent when the
3626           parent is about to be changed.
3627         * XplatUIX11.cs: DeriveStyles (): Set
3628           caption_height for all windows that have captions and are children.
3629           Update to use ToolWindowManager instead of InternalWindowManager
3630           for ToolWindows.
3631         * XplatUIWin32.cs: Set fake window styles for all
3632           windows that have window managers.
3633         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
3634           now duplicated for mdi windows when they are
3635           maximized, first for the buttons the window itself has, then for
3636           the buttons that appear in the menu bar. Makes things a little
3637           easier). Updated UpdateWindowDecorations, SetWindowState and the
3638           mouse eventhandlers accordingly.
3639         * Form.cs: Add ChangingParent (), contains the
3640           logic of what should happen when the parent changes. In MdiParent
3641           don't set things that ChangingParent () is doing. When handling
3642           WM_CLOSE, we can close the form if there are any other modal forms
3643           and the current form is a descendent of the modal form.
3644         * InternalWindowManager.cs: A lot of refactoring,
3645           the title buttons are now extracted to a separate container class
3646           that takes care of all button code (clicks, tooltips, etc). Moved
3647           Iconic|Maximized|Normal Bounds properties to this class from
3648           MdiWindowManager, so that the window state logic can succeed for
3649           other than mdi wm's. Implemented general window state change logic.
3650           Moved CreateButtons to ThemeWin32Classic, since the theme might
3651           override which buttons are available when as well as the exact
3652           location.
3653         * FormWindowManager.cs: Added, contains logic for
3654           normal forms.
3655         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
3656           which buttons go where (and if they are at all visible). 
3657           Removed special handling of maximized windows, since they aren't special. 
3658           In DrawManagedWindowDecorations don't try to draw the text if it is
3659           empty.
3660         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
3661           use whatever the wm gives us.
3662
3663 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
3664
3665         * ButtonBase.cs: Add 2.0 properties.
3666         * Button.cs: Override Draw for 2.0.
3667         * Control.cs: Add Entered and Selected properties.
3668         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
3669         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
3670         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
3671         buttons.
3672         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
3673
3674 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
3675
3676         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
3677
3678 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
3679
3680         * XplatUIWin32.cs: Register a new class with Windows each time we get
3681         a new ClassStyle.  [Fixes bugs #79432, #80817]
3682         * Controls.cs: Set the correct ClassStyle in CreateParams.
3683         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
3684
3685 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
3686
3687         * ListView.cs: Add fireEvent argument to ReorderColumn since the
3688         ColumnReordered event must not be signaled when modifying DisplayIndex
3689         of a ColumnHeader. Added internal ReorderColumns method which takes
3690         care of drawing, and updating the internal DisplayIndex of the
3691         ColumnHeader. Added AddColumn method which is invoked from
3692         ColumnHeaderCollection when adding or inserting columns, and which
3693         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
3694         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
3695         Recalculated dispay indices after removing a ColumnHeader.
3696         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
3697         match MS. Allows last display index to be returned after ListView
3698         is disposed. Update actual location of ColumnHeader when DisplayIndex
3699         is modified.
3700
3701 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
3702
3703         * LinkLabel.cs: Improve CalcTrimRectangle.
3704         
3705         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
3706
3707 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
3708
3709         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
3710         get rectangle as a result value.
3711
3712 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
3713
3714         * LinkLabel.cs: Theres some diferences between rectangle return from 
3715         MeasureCharacterRanges and the area used for DrawString to fix this 
3716         CalcMeasurementFactor method was created, it calcules the diferences
3717         to be use later to adjust rectangle in draw operations. Fixes #80473.
3718         
3719         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
3720         to adjust draw rectangle.
3721
3722 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
3723
3724         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
3725         text and some other changes to reduce and optimize source code.
3726
3727 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
3728
3729         * RadioButton.cs: Implement 2.0 event.
3730         * RelatedImageListAttribute.cs: Implement new class.
3731
3732 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
3733
3734         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
3735
3736 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
3737
3738         * CheckBox.cs: Implement 2.0 functionality.
3739
3740 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3741
3742         * ListView.cs: Refactor Add and AddRange methods of
3743         ListViewItemCollection, to not update the ListView
3744         everytime an item is added in AddRange. Also move the update
3745         code to a new CollectionChanged method, and call it
3746         from other methods that need it as well (this should also fix some
3747         bugs when Sorting is used).
3748
3749 2007-02-27  Jackson Harper  <jackson@ximian.com>
3750
3751         * TextControl.cs: Try to never let the caret stay in a non-text
3752         tag.
3753         * TextBoxBase.cs: Update the caret.
3754
3755 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
3756
3757         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
3758         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
3759         delete POINT structure, duplicate of one in XplatUIStructs.
3760         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
3761
3762 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
3763
3764         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
3765         edit box since otherwise the Label would immediately be set (even if
3766         the user did not modify the label). In OnKeyDown set Handled to true
3767         if Return or Escape was pressed. In ColumnHeaderCollection unlink
3768         columns that are to be removed. In ListViewItemCollection unlink items
3769         that are to be removed.
3770
3771 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
3772
3773         * TextRenderer.cs: If we set a GDI clip region, we need to clear
3774         it when we are done.  [Fixes bug #80949]
3775
3776 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3777
3778         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
3779
3780 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3781
3782         * ListView.cs: I forgot to commit the changes for ListView 
3783         in my previous patch.
3784
3785 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3786
3787         * Clipboard.cs: Partially implement an overload of SetDataObject.
3788         * Form.cs: Implement ShowWithoutActivation.
3789         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
3790
3791 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3792
3793         This is a first set of changes to make the Virtual mode works,
3794         by avoiding the retrieval of ListViewItem instances until
3795         draw time.
3796
3797         * ListView.cs: Store item position in the ListView instead of the
3798         ListViewItem, this way we don't request the Bounds property of
3799         ListViewItem inside the ListView calculations, as well as cache the item
3800         size in item_size field. Store indexes instead of ListViewItem
3801         instances in the matrix used by icon view. Add a ItemMatrixLocation
3802         struct to hold the row and col info of the matrix info.
3803
3804         * ListViewItem.cs: Don't store the location anymore, and only cache
3805         the rectangles for GetBounds. Use the ListView.GetItemLocation
3806         method to retrieve the actual location.
3807
3808 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3809
3810         * TextRenderer.cs: Add clipping support, thanks to George.
3811         [Fixes bug #80949]
3812
3813 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3814
3815         * ListViewItem.cs: Cancel label edit when item is removed from 
3816         ListView.
3817         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
3818         event before the edit textbox is displayed.  Added CancelEdit method
3819         which is used end to editing while ignoring the value set by the
3820         user. In EndEdit, set focus to ListView to avoid losing focus to
3821         other controls. In ListViewItemCollection.Clear, cancel editing of
3822         any of the items.  In Remove, cancel editing of item being removed.
3823         Avoid udplicate code by modifing RemoveAt to invoke Remove.
3824
3825 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3826
3827         * FileDialog.cs: Update FSEntry when move is successful. Fixes
3828         bug #80948.  
3829
3830 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3831
3832         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
3833         compatible with non X11 systems. Fixes #80901.
3834
3835 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
3836
3837         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
3838         whether the item should be unselected and reselect. We do no want this
3839         when we're starting to edit the label. Do not fire the 
3840         SelectedIndexChanged event from ListView when its already been fired
3841         by modifying ListViewItem.Selected. Fixes bug #80943.
3842
3843 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3844
3845         * TextRenderer.cs: Previos commit logic was backwards.
3846
3847 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
3848
3849         * TextRenderer.cs: Don't add padding on MeasureText if we were
3850         sent the NoPadding flag.
3851
3852 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3853
3854         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
3855         after DrawButton. To prevent image overlaps button borders SetClip and 
3856         ResetClip added before and after draw image. Fixes #79129.
3857
3858 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
3859
3860         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
3861         window size, it fix problem when you run under win32 that theres
3862         Size diferent than ClientSize. Also fix controls size and positions
3863         to mimic Win32. Fixes #80837.
3864
3865 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
3866
3867         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
3868         menu area to fix some problems for non X11 systems. Fixes #80613.
3869
3870 2007-02-22  Jackson Harper  <jackson@ximian.com>
3871
3872         * TreeNode.cs: When a node is expanded, set its is_expanded flag
3873         even if it doesn't have any children.
3874
3875 2007-02-22  Jackson Harper  <jackson@ximian.com>
3876
3877         * TreeView.cs: Calculate the top node 'on the fly', this
3878         eliminates issues where you need to click on the tree before
3879         scrolling it to get the top node computed correctly.
3880         * TreeNodeCollection.cs: We don't need to mess with the top node
3881         anymore.
3882
3883 2007-02-22  Jackson Harper  <jackson@ximian.com>
3884
3885         * DataGridViewRow.cs: Fix typo so height can actually be set.
3886         Patch by Peter Grimm.
3887
3888 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3889
3890         * FileDialog.cs: Fixed support for renaming files and directories.
3891         * ListView.cs: Do not lose focus when edit is canceled. Process
3892         Escape as regular key (to prevent closing of dialogs).
3893
3894 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3895
3896         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
3897         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
3898
3899 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
3900
3901         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
3902         did not modify label.
3903         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
3904         modified the text. Reset Label when user presses Escape in edit mode.
3905         Move focus to ListView after having cancelled or finished editing the
3906         label.
3907
3908 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
3909
3910         * ComboBox.cs: Removed unnecessary initializations. Marked items field
3911         private. Clear textbox when Text is set to null and SelectedIndex is
3912         already -1.
3913         * FileDialog.cs: Removed unnecessary initializations. Removed 
3914         workarounds for ComboBox bugs that are now fixed. Modified
3915         DefaultExt, InitialDirectory and Title property to change null to
3916         zero-length string in getters. Avoid directly accessing fields.
3917
3918 2007-02-20  Jackson Harper  <jackson@ximian.com>
3919
3920         * TextControl.cs: Remove RecalAlignments call, that was some
3921         debugging leftovers.
3922         - Don't use the line indent when we shouldn't.
3923         * RichTextBox.cs: Add support for paragraph left indents.
3924
3925 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3926
3927         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
3928         Seems like the class status pages doesn't catch params differences.
3929
3930 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
3931
3932         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
3933
3934 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
3935
3936         * ComboBox.cs: Setting Text should have no effect if item text of
3937         selected item exactly matches value. First lookup text using
3938         case-sensitive comparison, and fallback to case-insensitive comparison.
3939         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
3940         allow startIndex to be last index. Changed ArgumentOutOfRangeException
3941         paramname to match MS. Restart from first item if string is not found
3942         after startIndex. Fixed paramname of ArgumentNullException that is
3943         thrown for null value in ObjectCollection.Contains.
3944
3945 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
3946
3947         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
3948
3949 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3950
3951         * ListControl.cs: In SelectedValue use value.Equals to compare for
3952         equality instead of ==, otherwise it will fail for strings.
3953         Fixes #80794.
3954
3955 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3956         
3957         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
3958         since the caret won't show up unless ShowSelection is true. 
3959         Fixes #80795.
3960
3961 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3962
3963         * Application.cs: When disabling all forms but the main form, do not
3964           disable any descendants of the main form (such as mdi children or
3965           other parented forms). Fixes #80822 on Windows.
3966         * Form.cs: If we have a parent, set the WS_CHILD style.
3967         * Control.cs: Update the window styles if the control whose parent has
3968           changed is a form (the WS_CHILD style has to be switched).
3969
3970 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
3971
3972         * XplatUIStructs.cs: MsgUIState structure added.
3973
3974 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
3975
3976         * FileDialog.cs: Removed need for separate fileName field. On 2.0
3977         profile, do not check filename(s) for illegal character if filename(s)
3978         were set non-interactively but always check on 1.0 profile. Fixed NRE
3979          in DefaultExt and only strip off first leading dot. Improve exception
3980         message when invalid Filter is set. Do not ignore InitialDirectory if
3981         it does no exist. Store specified Title, and if empty use default
3982         title (depending on type of dialog). Added an internal DialogTitle 
3983         property for retrieving dialog title. Fixed logic of displayed dir to
3984         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
3985         string as its buggy.
3986         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
3987         FileName is a zero-length string (it can never be null). Override 
3988         DialogTitle property to set default title of dialog box.
3989         * SaveFileDialog.cs: Override DialogTitle property to set default
3990         title of dialog box.
3991
3992 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
3993
3994         * FileDialog.cs: Modify default text of filename and filetype labels
3995         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
3996         after we've updated the SelectedIndex. Fixes part of bug #80887.
3997         * SaveFileDialog.cs: Set text of filetype label.
3998
3999 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4000
4001         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
4002         label field. Needed by latest Jackson's fixes for ListView.
4003
4004 2007-02-16  Andreia Gaita  <avidigal@novell.com>
4005
4006         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
4007         print preview images.
4008
4009 2007-02-16  Jackson Harper  <jackson@ximian.com>
4010
4011         * ListView.cs: Make AfterLabelEdit work correctly.
4012         * FileDialog.cs: After changing the name of the folder, we have to
4013         make sure that it is created, or that we pop up an error because
4014         it already exists.
4015
4016 2007-02-16  Jackson Harper  <jackson@ximian.com>
4017
4018         * X11Dnd.cs: Implement aliases on mime handlers, so things like
4019         System.String are mapped to text.
4020         - Handle dataobjects, getting all the possible formats out of them
4021         - We dont need the drag event args before we give feedback. This
4022         allows feedback cursors to be immediate before selections have
4023         been converted.
4024
4025 2007-02-16  Jackson Harper  <jackson@ximian.com>
4026
4027         * TextBoxBase.cs: Modified the method for inserting images to
4028         taking a line and position instead of tag and position.
4029         * RichTextBox.cs: Handle PngBlip data by inserting the png image
4030         into the RTF file.
4031         * TextControl.cs: Allow images to be inserted as the first tag of
4032         a line.
4033         - Fix some off by one issues when we assume the first tag is a
4034         text tag, not an image tag.
4035
4036 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4037
4038         * ListView.cs: Set focus to ListView when ItemControl gets a
4039         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
4040         Fixes part of #80467.
4041
4042 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4043
4044         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
4045           validate Text input (if null or empty string reset Value to default
4046           value). Fixes #80830.
4047
4048 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4049
4050         * ListView.cs: Set owner as null for columns and items when
4051         Dispose is invoked. Fixes #80607.
4052
4053 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
4054
4055         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
4056         showing DropDowns, don't show a Grip when doing Flow layout.
4057         [This fixes the toolbox in PDN 2.72.]
4058         * ToolStripItem.cs: Add Anchor property and some internal properties to
4059         reduces needed changes to FlowLayout.
4060         * ToolStripOverflow.cs: Remove unused variable.
4061         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
4062         use it in the layout calculations.
4063
4064 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
4065
4066         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
4067         reported in #79640.
4068         
4069         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
4070         size calculation.
4071
4072 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
4073
4074         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
4075         MeasureString format, it can make button very large in some cases, it is
4076         strange but is what win32 do.
4077
4078 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
4079
4080         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
4081         size calculation.
4082
4083         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
4084         rendering, the value is based on MenuAccessKeysUnderlined.
4085
4086 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
4087
4088         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
4089         for most themes.
4090         
4091         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
4092         
4093         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
4094         and use MenuAccessKeysUnderlined instead.
4095
4096 2007-02-13  Andreia Gaita  <avidigal@novell.com>
4097
4098         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
4099         A selected control would not get a Focus call if:
4100                 - the default active control of the container is the same as
4101                   the one that was selected
4102                 - we are switching from one container to another
4103         Under these conditions, the container being selected already has
4104         an active_control, which is the same as the one being activated, 
4105         so set_ActiveControl would always return and not send the Focus
4106         call. Fix to check if the currently active control of the container
4107         is actually focused.
4108
4109 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
4110
4111         * StatusStrip.cs: Implement the spring layout.
4112         * ToolStripControlHost.cs: Make sure the hosted control's visibility
4113         always matches the host.
4114         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
4115         and TextAfterImage.
4116
4117 2007-02-13  Andreia Gaita  <avidigal@novell.com>
4118
4119         * Control.cs: Code reorganization only.
4120           - Reorganize the WndProc cases so that each case has it's own handling method, 
4121           to help with the no-line-numbering stack traces.
4122           - Formatting changes (it's vstudio's fault, really :p)
4123
4124 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4125
4126         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
4127           Thread.CurrentUICulture to match DateTimePicker's (and MS)
4128           behaviour.
4129
4130 2007-02-12  Jackson Harper  <jackson@ximian.com>
4131
4132         * RichTextBox.cs:
4133         * TextBox.cs: By default we have a non multiline document
4134         - use the multiline property instead of the internal variable
4135         * TextBoxBase.cs: Treat multiline and non multiline the same in
4136         most places.
4137         - Use the documents multiline flag instead of tracking it ourself
4138         * TextControl.cs: Attempt at getting multiline to match MS
4139         behavior.  Lines now track an offset, which is either their X or Y
4140         offset depending on whether or not we are in multiline mode.
4141         - Update all the methods to understand that lines have an X value.
4142         - Fix crash in Undo::Duplicate when empty lines are deleted.
4143
4144 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
4145
4146         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
4147         code moved to properties PreferredHeight and PreferredWidth. It solve the
4148         all problems when preferred sizes must be recalculated. Fixes #80801.
4149
4150 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
4151
4152         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
4153         font height when compatible_text_rendering is false. Partially fix #80801.
4154
4155 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
4156
4157         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
4158
4159 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
4160
4161         * Form.cs: Improved exception messages in ShowDialog.
4162
4163 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
4164
4165         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
4166         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
4167         if not set. Fixes bug #80764. Avoid accessing current_settings field
4168         directly.
4169
4170 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
4171
4172         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
4173         false.
4174
4175         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
4176         public in 2.0 and for easy maintenance and dont break compatibility it is 
4177         internal in 1.1.
4178         
4179 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
4180
4181         * ToolStripItem.cs: Implement using images from ImageList.
4182
4183 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4184
4185         * DateTimePicker.cs: Change default date-formatting culture from
4186           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
4187           seems to be the way MS does it.
4188
4189 2007-02-08  Andreia Gaita  <avidigal@novell.com>
4190
4191         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
4192         (the 6 was cut off on the right side)
4193
4194 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
4195
4196         * Form.cs: Tell MenuStrips to close when the form is clicked.
4197         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
4198         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
4199         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
4200         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
4201         support for Overflow, where items that do not fit are automatically
4202         reparented to a drop down menu.
4203         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
4204         Also: fixes bug #80747.
4205
4206 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4207
4208         * ComboBox.cs: Remove warning (unused code).
4209         * ScrollableControl.cs: Remove warning for 1.1 profile.
4210
4211 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4212
4213         * Form.cs: Remove a warning.
4214
4215 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4216
4217         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
4218           'g' specifier, not documented anywhere, but seems to always show up
4219           as a single space (might have something to do with the DateTime 'g'
4220           specifier, which is the era format, but since DateTimePicker can't
4221           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
4222           won't crash if the format has an unmatched quote. Now shows
4223           single-character formats correctly. Fixes #80744.
4224
4225 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
4226
4227         * StatusStrip.cs: Stretch property needs to call base.Stretch,
4228         not this.Stretch to fix stack overflow. [Fixes bug #80760]
4229
4230 2007-02-07  Chris Toshok  <toshok@ximian.com>
4231
4232         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
4233         background color.  it overwrites the background image we've
4234         already painted.  Fixes #80599.
4235
4236 2007-02-07  Chris Toshok  <toshok@ximian.com>
4237
4238         * DataGrid.cs: return immediately from Edit() when there are no
4239         columns.  Fixes #80662.
4240
4241 2007-02-07  Chris Toshok  <toshok@ximian.com>
4242
4243         * MessageBox.cs: fix #80625.  don't always show the Help button in
4244         2.0.  use the displayHelpButton parameter to determine if we
4245         should show it. Also, make the internal show_help field private.
4246
4247 2007-02-07  Chris Toshok  <toshok@ximian.com>
4248
4249         * Control.cs (SetVisibleCore): check in the proposed patch for
4250         80604, and set is_visible before calling CreateControl.
4251
4252 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
4253
4254         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
4255         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
4256         on it.
4257
4258 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
4259
4260         * MenuAPI.cs: hotkey_active internal field added, it is required because
4261         we need to know when hotkeys must be draw, before this change a keystate
4262         Navigating was used but we can have menu in navigating state without
4263         hotkeys. Fixes #80694.
4264         
4265         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
4266
4267 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4268
4269         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
4270           corresponding events and methods to be internal for 1.1 profile and
4271           public for 2.0 profile (required by SizeGrip).
4272         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
4273           implicit control list). Don't set the size nor the location of the
4274           SizeGrip anymore as it's not needed.
4275         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
4276           draw directly on the captured control (fixes #80656). Removed
4277           ShowGrip (it wasn't used anywhere), redraw (always true), added
4278           GetDefaultSize and GetDefaultRectangle to calculate defaults.
4279         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
4280           be called from SizeGrip.
4281
4282 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4283
4284         * Timer.cs: Throw ArgumentException if Interval <= 0.
4285
4286 2007-02-05  Jackson Harper  <jackson@ximian.com>
4287
4288         * TreeView.cs: We need to check scrollbar visibility when window
4289         visibility is updated, because non visible trees don't ever add
4290         scrollbars.
4291         * Cursor.cs: We want the override cursor to be reset to NULL when
4292         we set current cursor to the default cursor.
4293
4294 2007-02-05  Jackson Harper  <jackson@ximian.com>
4295
4296         * TextControl.cs: Don't have crlfs when we are non multiline.
4297         - Consolidate the line position.
4298
4299 2007-02-05  Jackson Harper  <jackson@ximian.com>
4300
4301         * X11Keyboard.cs: BACK+CTRL gets a special char code.
4302
4303 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4304
4305         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
4306           handling LeaveNotify->NotifyUngrab in order to send
4307           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
4308           after calling XUngrabPointer, so we call WindowUngrabbed directly
4309           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
4310         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
4311           MouseCaptureChanged correctly. Also create handles if changing
4312           Capture (matches MS behaviour).
4313
4314 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4315
4316         * SizeGrip.cs: Make the last change 2.0 only.
4317
4318 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4319
4320         * SizeGrip.cs: If resizing and the capture is lost, revert any size
4321           changes to initial size (fixes #80597).
4322
4323 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4324
4325         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
4326
4327 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4328
4329         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
4330           background) and only allow dragging if enabled. This way the
4331           sizegrip can be used to fill the open square that otherwise would
4332           have been shown in the bottom right corner of ScrollableControl
4333           when ScrollableControl is not suppose to support sizing.
4334         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
4335           sizegrip is shown and enabled, and hook up with necessary events.
4336
4337 2007-02-01  Chris Toshok  <toshok@ximian.com>
4338
4339         * DataGridTextBoxColumn.cs: clean up the
4340         GetFormattedString/GetColumnValueAtRow combination of functions.
4341         Also fix UpdateUI, and the initial state of
4342         IsInEditOrNavigateMode.
4343
4344         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
4345         aren't supposed to scroll the textbox here, we're supposed to
4346         scroll the datagrid.
4347
4348 2007-02-01  Chris Toshok  <toshok@ximian.com>
4349
4350         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
4351         setting the position.
4352
4353 2007-02-01  Chris Toshok  <toshok@ximian.com>
4354
4355         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
4356         here, since the most recent focus fixes keep us from generating
4357         the Leave event when our textbox gets focus.
4358         (Edit): we should be passing null for the column style's
4359         instantText parameter.
4360         
4361 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
4362
4363         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
4364         raised.  Fixes menu text/icons not showing up in PDN.
4365
4366 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4367
4368         * Control.cs: Remove code in constructor that makes every
4369         control with WS_CHILD set have initial location -1, -1.
4370
4371 2007-01-31  Jackson Harper  <jackson@ximian.com>
4372
4373         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
4374         XplatUIX11.
4375         * XplatUIX11.cs: Give teh keyboard to teh dnd.
4376
4377 2007-01-31  Jackson Harper  <jackson@ximian.com>
4378
4379         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
4380         - Remove some debug code.
4381
4382 2007-01-31  Jackson Harper  <jackson@ximian.com>
4383
4384         * XplatUIX11.cs: If you set the override cursor during a grab, it
4385         should actually override the grab cursor.  This comes into play
4386         when you are setting custom cursors in a DND feedback method.
4387
4388 2007-01-31  Jackson Harper  <jackson@ximian.com>
4389
4390         * X11Dnd.cs: Add support for handling the QueryContinue and
4391         GiveFeedback events.
4392         - Cancel drag and drop actions when the escape key is clicked.
4393         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
4394         can handle the ESCAPE key.
4395         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
4396         done when dnd events are continued after the button is released.
4397         - Add a new helper method so that dnd can translate key events.
4398
4399 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
4400
4401         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
4402         make it more obvious what is happening.
4403
4404 2007-01-30  Jackson Harper  <jackson@ximian.com>
4405
4406         * XplatUIX11.cs: Don't break when handling button release in drag
4407         and drop operations. We need that BUTTONUP message to get through
4408         so capture is released.
4409         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
4410         this is handled automatically when the mouse is down.
4411
4412 2007-01-30  Jackson Harper  <jackson@ximian.com>
4413
4414         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
4415         is closed, so we need to make sure that we aren't changing the
4416         dialog result when the OK (Open or Save) button has been clicked
4417         and we are closing the window ourselves.  Note we don't need to
4418         worry about the cache being written in this case, because it was
4419         already done in the previous FilOk call.
4420
4421 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4422         
4423         * DateTimePicker.cs: Remove a warning.
4424         * ComboBox.cs: Remove a couple of warnings.
4425
4426 2007-01-29  Chris Toshok  <toshok@ximian.com>
4427
4428         * XplatUIX11.cs: don't crash, and remove the icon if the user has
4429         set one, if SetIcon is passed a null icon.
4430
4431 2007-01-29  Andreia Gaita  <avidigal@novell.com>
4432
4433         * TextBox.cs: Redraw when the password characters changes
4434         * TextControl.cs: Check if textbox has a password char and draw 
4435         a line of password chars instead of the text in the line. LineTag gets 
4436         an extra Draw() method which allows document.Draw to override the text 
4437         that will be drawn. Removes 1024 char limitation on length of passworded 
4438         lines.
4439
4440 2007-01-29  Jackson Harper  <jackson@ximian.com>
4441
4442         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
4443         single chars is not.
4444
4445 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
4446
4447         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
4448         one pixel.  Fix a StackOverflowException caused by an overload wrongly
4449         calling itself.
4450
4451 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
4452
4453         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
4454         also remove ProcessArrowKey and put the code inside ProcessKeys.
4455
4456 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
4457
4458         * PaddingConverter.cs: Added.
4459
4460 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4461         
4462         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
4463         ShowPanels is false (fixes #80600). Only draw up to 127 characters
4464         of text (fixes #80601). For panels clip the text to draw to the
4465         panel (fixes #80603).
4466
4467 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4468
4469         * ComboBox.cs: Fixed implementation of ResetText.
4470
4471 2007-01-25  Jackson Harper  <jackson@ximian.com>
4472
4473         * TextControl.cs: For the last char of a line we need to use the
4474         line size, not that chars width, since it won't actually be
4475         computed since the right side of a char is based on the start of
4476         the left side of the next char, and the next char does not exist.
4477
4478 2007-01-25  Chris Toshok  <toshok@ximian.com>
4479
4480         * Splitter.cs: fix the new unit tests, and reindent some switch
4481         statements.
4482
4483 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4484
4485         * ComboBox.cs: Implemented 2.0 methods and events.
4486         * TextBoxBase.cs: Added OnTextUpdate, so that
4487         ComboBox.ComboTextBox can inform ComboBox of it.
4488
4489 2007-01-25  Jackson Harper  <jackson@ximian.com>
4490
4491         * TextControl.cs: Respect ShowSelection when deciding whether or
4492         not to display the caret, this allows comboboxes to have carets
4493         when the combotextbox does not have focus.
4494
4495 2007-01-25  Jackson Harper  <jackson@ximian.com>
4496
4497         * TextControl.cs: Add a Suspend/Resume for updating, basically the
4498         same as the Suspend/Resume for recalc, except this will do actual
4499         Invalidates.
4500         - New Undo manager, works much like the MS version.
4501         - Implemented Redo
4502         * TextBoxBase.cs: The Cut operation is undoable.
4503
4504 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4505         
4506         * TextBoxBase.cs: Don't antialias text. Makes it look way better
4507         on Windows (no difference on Linux).    
4508
4509 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4510
4511         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
4512         we don't want to activate any windows. Fixes #79433.
4513
4514 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
4515
4516         - ButtonBase.cs: Fix capitalization of parameter: disposing.
4517         [Fixes bug #80609]
4518
4519 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
4520
4521         * FileDialog.cs:
4522         - Move to using System.ComponentModel.EventHandlerList
4523         - Replace Refresh with Invalidate
4524         - Clear the mime filecache on closing
4525         - Some other memory reducing work. After beeing closed FD now uses
4526           only about 300 KB for the fdo mime stuff plus the memory of the
4527           cached icons.
4528         * Mime.cs: Changed coding style and removed unnecessary commented
4529         code. Some more memory memory reducing work.
4530
4531 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4532
4533         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
4534         a few other missing 2.0 properties.
4535         * Theme.cs: Added DrawFlatStyleComboBox.
4536         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
4537
4538 2007-01-24  Chris Toshok  <toshok@ximian.com>
4539
4540         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
4541         wake_waiting flag, not just when there's data to be read.  if we
4542         don't, then future wakeup's won't reach us and we'll be doomed to
4543         wait for the entire 1 second timeout forever (unless there are X
4544         events to be had).
4545
4546 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
4547
4548         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
4549         until you pass Items.Count, not Items.Count - 1 like 1.1.
4550
4551 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
4552
4553         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
4554
4555 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
4556
4557         * ToolStripContainer.cs: The recent Dock fix exposed that I was
4558         adding the panels in the wrong order.
4559
4560 2007-01-24  Jackson Harper  <jackson@ximian.com>
4561
4562         * TextBoxBase.cs: When we move the caret we also need to move the
4563         selection, this fixes some random crashing after doing select
4564         text, unselect, delete a char, paste.
4565
4566 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4567
4568         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
4569
4570 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4571
4572         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
4573         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
4574         * ToolBar.cs: Force redraw in BackgroundImageChanged.
4575
4576 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4577
4578         * ToolBar.cs:
4579         - Implement support for vertical toolbars. Fixes #80539;
4580         - Call LayoutToolBar when resize, it fix some other problems in layout.
4581         - Rename requested_height to requested_size, as we can have width on it
4582         when toolbar is vertical.
4583         - Create a private property "Vertical" that uses Dock to verify when 
4584         toolbar is vertical or not.
4585         - Set ControlStyles when change Dock property.
4586         - Refactory in LayoutToolBar to have better variables names and to support
4587         vertical toolbars.
4588         - Fixes default value for ButtonSize when button count is equal zero, size
4589         must be (39, 36) test case writed.
4590
4591 2007-01-23  Chris Toshok  <toshok@ximian.com>
4592
4593         * Control.cs: fix the checks so that they work correctly for mdi
4594         parents/children.
4595
4596 2007-01-23  Chris Toshok  <toshok@ximian.com>
4597
4598         * Control.cs: ControlCollection seems to have super-secret
4599         abstraction breaking knowledge of Mdi containers.  allow MdiClient
4600         to add toplevel controls.
4601
4602 2007-01-23  Chris Toshok  <toshok@ximian.com>
4603
4604         * Control.cs: throw an ArgumentException if a toplevel control is
4605         added to our control collection from ControlCollection.Add, as
4606         well as from ControlCollection.IList.Add.  This fixes the
4607         ControlSetTopLevelTest.TestTopLevelAdd unit test.
4608
4609         Also, in ControlCollection.IList.Add, don't through an
4610         ArgumentNullException, throw an ArgumentException, when value ==
4611         null.  This matches MS.
4612
4613 2007-01-23  Chris Toshok  <toshok@ximian.com>
4614
4615         * BindingSource.cs: initial, incomplete, implementation of
4616         BindingSource.
4617
4618 2007-01-23  Jackson Harper  <jackson@ximian.com>
4619
4620         * TextControl.cs:
4621         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
4622         that I can fix a broken unit test (TextBoxTest::ClearUndo)
4623         
4624 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
4625
4626         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
4627
4628 2007-01-23  Andreia Gaita  <avidigal@novell.com>
4629
4630         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
4631         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
4632         IndexOfKey() for 2.0
4633
4634 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4635
4636         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
4637         to prevent it from changing z-order.
4638         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
4639         leave UI updates in MdiWindowManager.
4640         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
4641         1 sized (NC handling goes weird on Linux otherwise).
4642         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
4643         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
4644         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
4645         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
4646         and SetWindowState(s) to allow for changing the size of an activated child
4647         before activating it (reduces a lot of flicker).
4648
4649 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
4650
4651         * Form.cs: Changing FormBorderStyle has different semantics based
4652         on whether the Form is visible or not.  If not visible, don't change
4653         the Size.  But InvalidateNC needs to be called to force the window
4654         to pick up the changes and redraw itself.  [Fixes bug #80574]
4655
4656 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
4657
4658         [Moma work]
4659         * ContainerControl.cs: ProcessCmdKey.
4660         * ErrorProvider.cs: new constructor.
4661         * Form.cs: fix AutoValidateEvent compiler warning.
4662         * Label.cs: fix OnAutoSizeChanged compiler warning.
4663         * MenuStrip.cs: fix CanOverflow compiler warning.
4664         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
4665         * TextBox.cs: Dispose.
4666         * ToolStrip.cs: CanOverflow, re-enable double buffering.
4667         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
4668         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
4669         * ToolStripItem.cs: Overflow, RightToLeft properties.
4670
4671 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4672
4673         * Form.cs: Move the layout of the main form to MdiWindowManager.
4674         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
4675         do a layout of the main window to update MdiClient's client area to
4676         the right area. Fixes #80533. Remove the calculation of nc size, 
4677         it was just wrong and the correct one is the same as for 
4678         InternalWindowManager. 
4679
4680 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
4681
4682         * Control.cs: Setting Anchor or Dock needs to reset the other
4683         to its default.  [Fixes bug #80556]
4684
4685 2007-01-20  Chris Toshok  <toshok@ximian.com>
4686
4687         * CheckedListBox.cs: class status changes.
4688
4689         * ScrollableControl.cs: same.
4690
4691         * RichTextBox.cs: same.
4692
4693         * ContainerControl.cs: same.
4694
4695         * ListView.cs: same.
4696
4697         * NotifyIcon.cs: same.
4698
4699         * MenuStrip.cs: same.
4700
4701         * RadioButton.cs: same.
4702
4703         * CheckBox.cs: same.
4704
4705         * PrintPreviewDialog.cs: same.
4706
4707         * Form.cs: same.
4708
4709 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
4710
4711         * TreeNode.cs: Apply Alan's patch for Name property.
4712
4713 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4714         
4715         * Form.cs: Implemented SizeGripStyle.
4716         * SizeGrip.cs: Check for minimum and maximum size for the
4717         control being resized and only resize if size has actually
4718         changed.
4719
4720 2007-01-19  Chris Toshok  <toshok@ximian.com>
4721
4722         * DataGridColumnStyle.cs: stop setting _readonly in the
4723         PropertyDescriptor setter.  fixes a unit test failure.
4724
4725         also, rename ParentReadOnly to TableStyleReadOnly, and have it
4726         just consult our table style (if we have one).  We don't need to
4727         consult the datagrid readonly attribute because that's passed in
4728         as the _ro arg to Edit.  this simplifies things a little.
4729         
4730         * DataGrid.cs: use CurrentColumn instead of
4731         current_cell.ColumnNumber just to simplify some of the code.
4732
4733         switch the order of some things in the CurrentCell setter to keep
4734         the previous cell from getting a textbox again -
4735         EnsureCellVisibility causes scrolling to happen, which calls Edit.
4736         So we need to set the new cell before calling it.
4737         
4738         call Edit in OnEnter, as does Microsoft.
4739         
4740         also, make sure the current table style isn't the one we create
4741         initially when checking to see if it's different than the one
4742         we're setting it to in BindColumns (this fixes #80421).
4743
4744         * GridTableStylesCollection.cs: table styles can have "" for a
4745         mapping name.  part of the fix for #80421.
4746
4747         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
4748         Edit significantly.
4749
4750 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4751
4752         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
4753         and less GDI object leaky-er.
4754
4755 2007-01-18  Andreia Gaita  <avidigal@novell.com>
4756
4757         * LinkLabel.cs: Add opaque control style
4758
4759 2007-01-18  Jackson Harper  <jackson@ximian.com>
4760
4761         * TextControl.cs: Calculate width properly.
4762         - Don't store the tag's X offset, this can be figured out very
4763         easily.
4764         - When getting the caret tag make sure to get the last empty tag.
4765
4766 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4767
4768         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
4769         [Fixes bug #79959]
4770
4771         * Control.cs: Color.Empty shouldn't count for previous transparent
4772         redraw changes.
4773
4774 2007-01-18  Jackson Harper  <jackson@ximian.com>
4775
4776         * TextBox.cs:
4777         * RichTextBox.cs:
4778         * TextControl.cs: Starting to merge in some pieces of my older
4779         undo work.  Basically just some slight cleanup of the undo API.
4780
4781 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4782
4783         * TrackBar.cs: Fix signature of RightToLeftLayout.
4784         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
4785         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
4786         * Application.cs: Implemented UseWaitCursor.
4787
4788 2007-01-18  Jackson Harper  <jackson@ximian.com>
4789
4790         * TextControl.cs: We can't skip tags if any part of the tag is
4791         visible.
4792
4793 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4794
4795         * ContainerControl.cs: Override OnLayout.
4796
4797 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4798
4799         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
4800
4801         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
4802         everything else.
4803
4804 2007-01-18  Chris Toshok  <toshok@ximian.com>
4805
4806         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
4807         (leftover from the container_selected days, I'd wager).  fixes bug
4808         #80546.
4809
4810 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4811
4812         * Control.cs: Apply patch from George to fix the new testcase on
4813         bug #80451.  We can't just check for Color.Transparent, we need 
4814         to check if the back color's alpha channel is < 255.
4815
4816 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
4817
4818         * Form.cs: Move setting show_icon = true to before the constructor
4819         so that the base constructor has that information when it calculates
4820         the form's size.  Was causing forms to be (6, 6) bigger than they
4821         were supposed to be.  Thanks for catching this Rolf!
4822
4823 2007-01-18  Jackson Harper  <jackson@ximian.com>
4824
4825         * TextControl.cs: When replacing a selection we need to invalidate
4826         from the initial selection start, because selection start is moved
4827         to the end of the replacement.
4828
4829 2007-01-18  Andreia Gaita  <avidigal@novell.com>
4830
4831         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
4832
4833 2007-01-18  Chris Toshok  <toshok@ximian.com>
4834
4835         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
4836         I just added.
4837
4838 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
4839
4840         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
4841         layout methods and properties from ToolBarButton must be available
4842         into ToolBarButtonInfo.
4843
4844 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4845
4846         * Control.cs: If the control has a transparent background, we
4847         need to refresh it when it moves and when it's parent's background
4848         image changes.  [Fixes bug #80451]
4849
4850 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4851
4852         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
4853
4854 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
4855
4856         * XplatUIWin32.cs: Implement proper double buffering for Windows.
4857         [Fixes bug #80447, and probably speeds up things as well]
4858
4859 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4860
4861         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
4862         * XplatUIWin32.cs: We need to recalculate NC size after changing 
4863         window style to toolwindow (otherwise the client rectangle will be
4864         3 pixels to small for some reason).
4865         * MdiWindowManager.cs: Revert NC size calculations to match how
4866         they are calculated only based on window styles (to match
4867         Win32AdjustWindowRectEx, since otherwise when setting size or 
4868         location, Control will call Win32AdjustWindowRectEx to update client 
4869         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
4870         calculate a different value of client size causing another paint 
4871         (and flickering))
4872         * InternalWindowManager.cs: When moving or resizing a window only
4873         update size or location if they actually changed.
4874         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
4875         (seems to match Windows behaviour better). Cleaned up 
4876         ManagedWindowDecorations to draw what's needed and nothing else
4877         (was drawing borders and lines where they shouldn't be)
4878         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
4879         (style = 0xFFFF) and takes into account caption height when 
4880         calculating window rectangle.   
4881
4882 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
4883
4884         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
4885         can be added to toolbar multiple times, we need to maintain a list of 
4886         button information for each positions.
4887
4888 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
4889
4890         * ToolBar.cs: Some small stetic changes.
4891
4892 2007-01-16  Jackson Harper  <jackson@ximian.com>
4893
4894         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
4895         that allow us to have nested recalc = false blocks.
4896         - Add paste support for images in the RichTextBox
4897         * RichTextBox.cs: flush the text after the color is changed, so
4898         the change takes effect.
4899         - Use SuspendRecalc
4900         - Some extra debugging info
4901         * TextControl.cs: Tags no longer track their length, it is just
4902         computed from the next tags length, this makes things a little
4903         simpler and reduces places that we have to track length changes.
4904         - Refactored the linetag class a little so we could make it
4905         a base class for different kinds of tags
4906         - Created a image tag, a tag that can have a single image inserted
4907         into it
4908         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
4909         that we can call suspend multiple times.
4910         - Add some debugging methods
4911
4912 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4913
4914         * MdiClient.cs: Add ActivatePreviousChild for 
4915         mdi child window navigation.
4916         * Form.cs: Use MdiClient.ActivateNextChild/
4917         ActivatePreviousChild instead of Form.SelectNextControl
4918         to select the next/previous child since 
4919         SelectNextControl doesn't do it in the same order
4920         as mdi children should do it.
4921
4922 2007-01-16  Chris Toshok  <toshok@ximian.com>
4923
4924         * Control.cs: remove container_selected field.
4925
4926 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4927
4928         * MdiClient.cs: Update main form's ActiveChild when
4929         updating keyboard focus for the mdi child.
4930
4931 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
4932
4933         * Control.cs: PreferredSize fix.
4934
4935         * Form.cs: Add several 2.0 events, properties, and methods.
4936
4937 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
4938
4939         * Form.cs: Provide meaningful message when MdiParent is assigned a
4940         Form that is not an MdiContainer.
4941
4942 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4943
4944         * MdiClient.cs: Update main form's ActiveChild when
4945         activating a mdi child.
4946
4947 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
4948
4949         * MdiWindowManager.cs: Fix NRE when merging menus and main form
4950         doesn't have a menu.
4951
4952         * Form.cs: Request NCRecalc after creating a mdi child window.
4953         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
4954         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
4955         
4956         * MdiClient.cs: Add new method SendFocusToActiveChild that either
4957         sends keyboard focus to the active child, or to the MdiClient
4958         if there are no child forms.
4959         
4960 2007-01-15  Chris Toshok  <toshok@ximian.com>
4961
4962         * ListView.cs: drop the *Internal overrides, just do our work in
4963         ItemControl's WndProc instead.
4964
4965         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
4966         of the various controls, and forward the events properly (in the
4967         same manner as MS) from the textbox to the UpDown.  Also the
4968         ActiveControl of the UpDownBase gets set properly now.  Finally,
4969         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
4970
4971         * NumericUpDown.cs: set Text in the ctor.
4972
4973         * DomainUpDown.cs: call UpdateEditText in the ctor.
4974         
4975         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
4976         so even a Selectable = false textbox can be focused if you click
4977         in it.  Go figure.
4978
4979         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
4980         just add their handling in their respective WndProc's.  Also add
4981         an explicit FocusInternal method that doesn't consult CanFocus
4982         before calling Select(this).
4983
4984         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
4985         do our work in WndProc instead.
4986
4987         * TabControl.cs: same.
4988
4989         * ComboBox.cs: same.
4990
4991 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
4992
4993         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
4994         Fixes #80006.
4995
4996 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
4997
4998         * ListViewItem.cs:
4999         * ThemeWin32Classic.cs: Don't draw the item text outside
5000         item bounds in Details view, as well as use trimming.
5001         Fixes bug #80376.
5002
5003 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
5004
5005         * Form.cs: Implement Form.ShowIcon.
5006         
5007         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
5008         null, which when combined with the DlgModalFrame window style removes
5009         the icon from the title bar.
5010
5011 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
5012
5013         * Control.cs: Call OnMouseClick after OnClick. (2.0)
5014
5015 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
5016
5017         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
5018         menu when mdi child windows theres a menu, uses insert to get icon
5019         at first position. Partially fix #80006.
5020
5021 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
5022
5023         * Clipboard.cs: Implement 2.0 methods.
5024
5025 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
5026
5027         * Menu.cs: Implement Insert method of MenuItemCollection class
5028         to fix MenuMerge.
5029
5030 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5031
5032         * ListView.cs: Implement 2.0 FindItemWithText method.
5033
5034 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
5035
5036         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
5037         to calculate menu bar size. Fixes #80290.
5038
5039 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
5040
5041         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
5042
5043 2007-01-11  Chris Toshok  <toshok@ximian.com>
5044
5045         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
5046         initial form.
5047
5048 2007-01-11  Chris Toshok  <toshok@ximian.com>
5049
5050         * LinkLabel.cs: make sure to call base.Select in our Select method
5051         if it turns out we're going to be selected (i.e. if we have a link
5052         that is going to receive focus).  That way our container's
5053         ActiveControl is updated properly.
5054
5055 2007-01-11  Chris Toshok  <toshok@ximian.com>
5056
5057         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
5058         they have 1 or more links.  this fixes the crash gert reported.
5059
5060 2007-01-11  Andreia Gaita  <avidigal@novell.com>
5061
5062         * ContainerControl.cs: Remove ContainerSelected flag, not needed
5063         anymore.
5064
5065         * Control.cs (Controls.Add): Check if control to be added to the collection
5066         is a top level control, and throw an ArgumentException if it is.
5067         Remove ContainerSelectedFlag, not needed anymore.
5068
5069         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
5070         top most control doesn't activate the form. This fixes a problem in the
5071         MessageBox, where the default button wouldn't get focus because the form
5072         was activated before being Loaded - when the Owner is set, SetTopMost is
5073         called, and it would activate it.
5074
5075 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
5076
5077         * Button.cs: When clicked and setting the parent form's DialogResult,
5078         use FindForm instead of Parent, since parent could be a container
5079         control and not the Form.  Fixes bug #80495.
5080
5081 2007-01-10  Chris Toshok  <toshok@ximian.com>
5082
5083         * Form.cs: move the call to SendControlFocus into the same
5084         is_loaded check.
5085
5086 2007-01-10  Chris Toshok  <toshok@ximian.com>
5087
5088         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
5089         It breaks in the face of the new ActiveControl stuff, and should
5090         be unnecessary.
5091
5092         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
5093         activecontrol's focus if it's not already set, after we set
5094         ActiveControl, but before we call OnActivated.  Re-fixes #79667
5095         after the previous focus/active control fixes regressed it.
5096
5097         * Control.cs: reindent some code.
5098         
5099 2007-01-10  Chris Toshok  <toshok@ximian.com>
5100
5101         * Splitter.cs: clearing some outstanding changes from my tree.
5102         Replace all accesses (not writes) to the internal dock_style field
5103         with the Dock property.
5104
5105 2007-01-10  Chris Toshok  <toshok@ximian.com>
5106
5107         * Control.cs: make FireEnter, FireLeave, FireValidating, and
5108         FireValidated virtual.
5109
5110         * Form.cs: override and don't chain up calls to FireEnter and
5111         FireLeave.
5112
5113 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5114
5115         * ListView.cs: Add more text padding space when using
5116         auto resize for columns (the previous value didn't work fine).
5117
5118         * ThemeWin32Classic.cs: Update text position inside columns,
5119         to match the appeareance of .Net.
5120
5121         * ColumnHeader.cs: When using auto resize, only the Width should
5122         depend on the sub items, not the Height. Also, set width after
5123         auto resizing (the value of Width should never remain as -1 or -2).
5124
5125 2007-01-10  Chris Toshok  <toshok@ximian.com>
5126
5127         * Application.cs: fix compilation errors when debug is enabled.
5128
5129 2007-01-10  Chris Toshok  <toshok@ximian.com>
5130
5131         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
5132         add some nice ascii art pictures and explanation of the process).
5133         (GetMostDeeplyNestedActiveControl): new utility function we need
5134         because our ActiveControl can refer to a child container with its
5135         own ActiveControl.
5136
5137         * Form.cs (OnActivated): remove the call to SelectActiveControl
5138         from here, since you can override this method and not chain up,
5139         and winforms still sets the active control.
5140         (OnCreateControl): also remove the unnecessary SelectActiveControl
5141         call from here.
5142         (WndProc): it's actually called from the WM_ACTIVATE block, just
5143         before calling OnActivated.
5144
5145         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
5146         inside the else.  the ActiveControl setter will end up setting
5147         focus on @control.  This keeps us from setting it again (and
5148         generating an extra LostFocus/GotFocus pair).
5149         (Select (bool, bool)): reindent.
5150
5151 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
5152
5153         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
5154         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
5155         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
5156         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
5157         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
5158         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
5159         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
5160         ToolStripTextBox.cs: Another wave of corcompare work.
5161
5162 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5163
5164         * ColumnHeader.cs: Implement 2.0 AutoResize method using
5165         the Width property.
5166
5167         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
5168         methods by callling Column.AutoResize method on columns.
5169
5170 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
5171
5172         * Control.cs: Provide proper implementations of PreferredSize
5173         and GetPreferredSize (2.0).
5174
5175 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
5176
5177         * Form.cs: Remove one character (!) to make my previous OnClosing
5178         stuff work for modal windows like MessageBox.
5179
5180 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5181
5182         * ListView.cs:
5183         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
5184         ListView.Columns to get the last displayed column. Fixes #80452.
5185
5186 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
5187
5188         * Label.cs, LinkLabel.cs: Source code identation fixes.
5189
5190 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
5191
5192         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
5193         we dont need to invalidate only borders because when we invalidate four
5194         border lines the invalidate's generates a complete redraw of button, 
5195         because it now invalidate a complete rect some other redraws operations
5196         are fixed. Fixes #80196.
5197         
5198         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
5199         Remove ToolBarInvalidateEntireButton as it is not used.
5200
5201 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
5202         
5203         * Form.cs: Make sure that both OnClosing and OnFormClosing are
5204         called for 2.0 profile.
5205         * CloseReason.cs: Make class internal for 1.1.
5206
5207 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
5208
5209         * ToolStripManager.cs: Implement FindToolStrip functionality.
5210         * ToolStrip.cs: Register and unregister with ToolStripManager.
5211
5212 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
5213
5214         * Control.cs: This was messy.  2.0 moves much of ControlCollection
5215         to ArrangedElementCollection.  Implemented this with as few #if's as 
5216         possible (which is still too many).
5217
5218 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
5219
5220         * Control.cs: Implement SizeFromClientSize() [2.0].
5221
5222 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
5223
5224         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
5225         use Theme.BorderSize to calculate area instead of static value 1, 
5226         by the way use new BorderStaticSize instead     Border3DSize when 
5227         border_static is true. Fixes #79537.
5228         
5229         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
5230         
5231         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
5232         it is not needed.
5233
5234 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
5235
5236         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
5237
5238 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
5239
5240         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
5241         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
5242         
5243         * Hwnd.cs: 
5244         - border_static field added, it will used to define when a control 
5245         theres 3D border but it must be static (thin).
5246         - In GetWindowRectangle use Theme.BorderSize to calculate area 
5247         instead of static value 1, by the way use new BorderStaticSize instead
5248         Border3DSize when border_static is true.
5249
5250         * XplatUIX11.cs, XplatUIOSX.cs: 
5251         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
5252         
5253         * Theme.cs: BorderStaticSize field added.
5254
5255 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
5256
5257         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
5258
5259 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
5260
5261         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
5262         mimic same behavior than win32 that set border only in CreateParams,
5263         it fix problems under CreateParams overrides. Fix #79442 and partial
5264         fix #79537.
5265         
5266         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
5267         of thi control you must call recreate handle. 
5268         
5269         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
5270         need to do anything as RecreateHangle will take care about borders.
5271
5272 2007-01-05  Mike Kestner  <mkestner@novell.com>
5273
5274         * ListView.cs: hack to eliminate Lost/Got focus notifications on
5275         cycles between the ItemControl and parent.  Fixes #80388.
5276
5277 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
5278
5279         * Control.cs: Lazy init layout engine. Do not directly use 
5280         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
5281
5282 2007-01-05  Chris Toshok  <toshok@ximian.com>
5283
5284         * DataGrid.cs: don't forceably rebind columns in SetDataSource
5285         unless our list manager has changed (i.e. unless we have reason to
5286         believe our columns have changed).  Fixes #80422.
5287         
5288         also, disable the call do BindColumns in
5289         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
5290         1.1 the event isn't raised in response to a column addition on a
5291         table.)
5292
5293 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
5294
5295         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
5296         that inheritors can not call it if they choose.  Fixes bug #80456.
5297
5298 2007-01-05  Andreia Gaita  <avidigal@novell.com>
5299
5300         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
5301         doesn't blow up with a null exception on marshalling.
5302         
5303 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
5304
5305         * Control.cs: Implement several 2.0 protected properties and methods.
5306         Ensure that all necessary events are being called when properties
5307         are set.
5308
5309 2007-01-05  Mike Kestner  <mkestner@novell.com>
5310
5311         * ListView.cs: implement PgUp/PgDn for Details view.  Also
5312         fixes First/LastVisibleIndex to use the item_control.ClientRect 
5313         instead of the parent control.  Fixes #80378.
5314
5315 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
5316
5317         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
5318           determine whether to use yard-pound or not (bug #78399).
5319
5320 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
5321
5322         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
5323         problems. So it is time to bring back the old popupbutton colors.
5324
5325 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5326
5327         * ColumnHeader.cs:
5328         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
5329         property by using the internal information of the
5330         columns order in ListView.
5331
5332 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
5333
5334         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
5335         Add 2.0 Tag properties.
5336
5337         * LinkArea.cs: Add 2.0 ToString method.
5338
5339 2007-01-03  Chris Toshok  <toshok@ximian.com>
5340
5341         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
5342         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
5343         when we're editing, which fixes #80047.
5344
5345 2007-01-03  Chris Toshok  <toshok@ximian.com>
5346
5347         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
5348         #80404.
5349
5350 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
5351
5352         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
5353         property and implementation.
5354
5355         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
5356         for MdiWindowListItem property.
5357
5358         * ToolStripDropDown.cs: Don't consider hidden menu items while
5359         laying out the menu.
5360
5361 2007-01-03  Andreia Gaita  <avidigal@novell.com>
5362
5363         * SendKeys.cs: window handle is not needed in win32, so just
5364         get the active window for X after parsing keys and don't use
5365         it when building the message; it is passed by parameter to the 
5366         Xplat method and used there to build the message instead. Also,
5367         wait for events to be processed on SendWait, as opposed to Send,
5368         which doesn't wait :) Playing with threads and Send() completely 
5369         hangs on ms.net, only SendWait() works.
5370         
5371         XplatUIX11.cs
5372         X11Display.cs: Check for valid window handle.
5373
5374 2007-01-03  Jackson Harper  <jackson@ximian.com>
5375
5376         * TextControl.cs: Need to prevent wrap calculations when replacing
5377         text (this was there before i removed it accidently).
5378         - Don't update the cursor during the positioning, just set it to
5379         selection_start at the end of the operaion.
5380
5381 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5382
5383         * Control.cs:
5384         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
5385         
5386 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5387
5388         * MonthCalendar.cs: Added Click and DoubleClick events again,
5389         but this time they only hide Control's Click and DoubleClick.
5390         
5391 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
5392
5393         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
5394         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
5395
5396 2007-01-02  Jackson Harper  <jackson@ximian.com>
5397
5398         * TextBoxBase.cs: We move the caret with the split now, so we
5399         don't need to explicitly move the caret after splitting.  This
5400         fixes the caret bumping down an extra line on Enter.
5401
5402 2007-01-02  Miguel de Icaza  <miguel@novell.com>
5403
5404         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
5405         2.72). 
5406
5407         * ScrollableControl.cs: Add Scroll event.
5408
5409 2007-01-02  Mike Kestner  <mkestner@novell.com>
5410
5411         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
5412         to fix all hdr height padding codepaths.  Fixes #80207.
5413
5414 2007-01-02  Chris Toshok  <toshok@ximian.com>
5415
5416         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
5417         setting it to the Control defaults anyway, and it being after the
5418         Dock set was screwing up layout.
5419         (set_Dock): don't short circuit out of setting base.Dock.  Also,
5420         no need to call UpdateStatusBar here, as it'll be re-layed out if
5421         it needs to be.
5422
5423 2007-01-02  Mike Kestner  <mkestner@novell.com>
5424
5425         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
5426         to header height for width == -1. Fixes the rest of #80207.
5427
5428 2007-01-02  Mike Kestner  <mkestner@novell.com>
5429
5430         * ListView.cs: rework the mouse event forwarding everaldo added
5431         to translate the coordinates to the parent control not
5432         raise the parent events until after we've done our work. Hover
5433         needs more work, in the case where HoverSelection is on, because
5434         the item control receives more than one MouseHover per Enter
5435         event, so we need to ensure only the "first" hover gets forwarded.
5436         Opening a minor bug for that.
5437
5438 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
5439
5440         * CheckedListBox.cs: Fixed SelectionMode to match MS.
5441         * ListControl.cs: Implemented AllowSelection property. Removed extra
5442         tabs.
5443         * ListBox.cs: Implemented AllowSelection property.
5444
5445 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5446
5447         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
5448         SelectedItem, it prevent for errors when you must disable item
5449         before perform click. Fixes #80409.
5450
5451 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5452
5453         * MenuAPI.cs: Prevent second level and beyond submenus to close
5454         until first level when move out side of popup.
5455         
5456 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5457
5458         * MenuAPI.cs:
5459         - Down submenu positin in three pixels.
5460         - Closes sub menu when mouse leaves from menu. Fixes #80402.
5461
5462 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
5463
5464         * ThemeWin32Classic.cs:
5465         - Fix popup menu size adding one pixel on the top.
5466         - Down menu item border from two to one to mimic Win32.
5467         - Some source identation fixes. 
5468
5469 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
5470
5471         * ThemeWin32Classic.cs: Use float numbers to calculate size and
5472         position of menu arrows, it fix wrong arrow size.
5473
5474 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
5475
5476         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
5477         instead of line, it simplify draw operation and fix it using 3D
5478         borders to mimic Win32.
5479
5480 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
5481
5482         * StatusStrip.cs: Add implementation of the sizing grip.
5483
5484         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
5485         StatusStrip rendering.
5486
5487 2006-12-31  Chris Toshok  <toshok@ximian.com>
5488
5489         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
5490         override the layout style (anchor/dock) of the control.  assign to
5491         Dock instead.  Fixes bug #80416.
5492
5493         * ToolStrip.cs: same.
5494
5495 2006-12-31  Andreia Gaita  <avidigal@novell.com>
5496
5497         * ContainerControl.cs: Use ContainerSelected flag to check if 
5498         a Container is directly selected, or if Select is called on a 
5499         non-container. If a container is directly selected, focus events 
5500         should not be raised.
5501         Apply #80411 patch to throw exception on set_ActiveControl if 
5502         control is the same as the current one.
5503         
5504         * Control.cs: Use ContainerSelected flag (see above).
5505         Add invalidation check to raise event but not invalidate if 
5506         dimensions are 0.       
5507         Apply #80411 patch.
5508         
5509
5510 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
5511
5512         * MenuAPI.cs: After click, dont close popup menu when menu is
5513         ContextMenu. Fixes #80399.
5514
5515 2006-12-30  Chris Toshok  <toshok@ximian.com>
5516
5517         * ContainerControl.cs: make sure we throw the exception if the
5518         container control doesn't contain the control we're setting
5519         ActiveControl to.
5520
5521 2006-12-30  Chris Toshok  <toshok@ximian.com>
5522
5523         * Control.cs (SetTopLevel): fix the exception raised by
5524         SetTopLevel for child controls.
5525         (set_Anchor): call UpdateDistances when setting the anchor type.
5526         This fixes bug #80336.
5527
5528 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5529
5530         * Theme.cs: For now, revert back to 8pt font.
5531
5532 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
5533
5534         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
5535         Fixes #80395.
5536
5537 2006-12-29  Chris Toshok  <toshok@ximian.com>
5538
5539         * Control.cs: reorder the code in OnResize to give the same event
5540         ordering as MS.
5541
5542 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5543
5544         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
5545         TileHorizontally and TileVertically.
5546         
5547 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
5548
5549         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
5550         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
5551         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
5552         Corrected copyright and email adress.
5553
5554 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5555
5556         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
5557         of Exception in FullPath property if no TreeView is associated with
5558         the TreeNode.
5559
5560 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
5561
5562         * Theme.cs: Marked default_font as private, and initialize it in ctor
5563         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
5564         on 2.0 profile.
5565         * ThemeGtk.cs: Removed default_font intialization.
5566         * ThemeWin32Classic.cs: Removed default_font initialization.
5567
5568 2006-12-28  Chris Toshok  <toshok@ximian.com>
5569
5570         * Control.cs: fix a couple of place where we were creating handles
5571         more aggressively than we should be.  Fixes ControlRefresh unit
5572         tests.
5573
5574 2006-12-28  Chris Toshok  <toshok@ximian.com>
5575
5576         * Control.cs: contrary to what the comment said, Control.Dock does
5577         not supercede Control.Anchor - the last one you assign to decides
5578         the layout behavior.  so we need to keep track of which was the
5579         last set.  Also, fix some of the affected property arguments in
5580         PerformLayout calls, and remove an redundant parent.PerformLayout
5581         call in OnResized.
5582
5583         Add a VisibleInternal property, which returns is_visible.  We
5584         can/should get rid of all the usage of this field elsewhere.
5585
5586 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5587         
5588         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
5589         control style, not DoubleBuffer. Added UseDoubleBuffering property
5590         that indicates whether doublebuffering is enabled and supported.
5591         (comment from and code based on Gert Driesen's patch in #80324).
5592         Fixes #80324.
5593
5594 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5595         
5596         * Control.cs: Fixed a NRE.
5597
5598 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5599
5600         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
5601         for 2.0.
5602
5603 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5604
5605         * Control.cs: Rewrote double buffering, now a seperate
5606         class handles all the buffering, no Graphics is disposed of
5607         until the painting is finished (earlier implementation 
5608         would crash if the control was resized in the OnPaint, 
5609         since it would cause the double buffer to be recreated
5610         and the old one disposed), a separate Graphics is 
5611         created for every paint (MS behaviour and anyways the state
5612         of the Graphics would have to be saved and restored otherwise)
5613         
5614         * XplatUIDriver.cs: 
5615         * XplatUIX11.cs:
5616         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
5617         so that we can get the graphics for the back buffer without
5618         having to create a new one and remove the offscreen_dc parameter
5619         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
5620         
5621 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5622
5623         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
5624         Also make virtual all the key-related methods.
5625
5626         * ListViewItem.cs: Make virtual the key related methods for
5627         ListViewSubItemCollection.
5628
5629 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5630
5631         * ListView.cs:
5632         * ListViewItem.cs:
5633         * ThemeWin32Classic.cs:
5634         * Theme.cs: Initial support for Tile view in ListView,
5635         as well as the implementation of the required bits for it (Item
5636         and Subitem).
5637
5638 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5639
5640         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
5641         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
5642         Provide useful exception messages.
5643
5644 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5645
5646         * TrackBar.cs: Remove a warning.
5647         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
5648         when used by DateTimePicker, fixes #80287. This also requires that 
5649         MonthCalendar implements it's own drawing for the yearly updown control,
5650         otherwise the Capture tracking would be too complicated. Removed the Click 
5651         and DoubleClick events (according to comments they were hiding the base class
5652         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
5653         raise these events, not that they cannot be raised. It is possible to raise 
5654         them by calling OnClick and OnDoubleClick). Added two internal fields in 
5655         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
5656         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
5657         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
5658         event, no longer needed.
5659         
5660 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5661
5662         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
5663         true if new value differs from current value.
5664
5665 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5666
5667         * Control.cs: ControlCollection.Count must be public. Fixed build of
5668         unit tests.
5669
5670 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5671
5672         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
5673
5674 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
5675
5676         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
5677
5678 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
5679
5680         * Control.cs: Invalidates control including when Width and Height is 
5681         equal zero or is not visible, only Paint event must be care about 
5682         this. Fixes #79913.
5683
5684 2006-12-26  Chris Toshok  <toshok@ximian.com>
5685
5686         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
5687         more corcompare work.
5688
5689         * DataGridView.cs: fix compiler warning.
5690
5691         * ColumnHeader.cs: some corcompare work, and also take the
5692         opportunity to make the internal fields private.
5693
5694         * ListView.cs: fix the fallout from the above field change.
5695
5696 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
5697
5698         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
5699         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
5700         ToolStripTextBox.cs: Fixes to events and corcompare.
5701
5702 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
5703
5704         * ListView.cs: Call owner.OnMousexx event to propagate events from
5705         item to ListView. Fixes #80367.
5706
5707 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5708
5709         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
5710         if value is less than one. ItemHeight should not be set to a value
5711         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
5712         Removed extra tabs.
5713
5714 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
5715
5716         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
5717         * ToolStripStatusLabel.cs: Add Spring for Moma.
5718
5719 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5720
5721         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
5722         Fixed code formatting. Removed debug code.
5723         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
5724
5725 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
5726
5727         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
5728         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
5729         ArgumentOutOfRangeException if ColumnCount is negative. In 
5730         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
5731         less than 4 or higher than 32768.
5732         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
5733         Fixed FormatProvider to return CurrentCulture unless explicitly set.
5734         Fixed IsFormatProviderDefault to return true if FormatProvider has
5735         not been explicitly set.
5736
5737 2006-12-25  Chris Toshok  <toshok@ximian.com>
5738
5739         * Application.cs: add a couple of 2.0 events.
5740
5741 2006-12-25  Chris Toshok  <toshok@ximian.com>
5742
5743         * Control.cs: fix compiler warning.
5744
5745         * AxHost.cs: corcompare fixes.
5746
5747         * ApplicationContext.cs: corcompare fixes.
5748
5749 2006-12-25  Chris Toshok  <toshok@ximian.com>
5750
5751         * Control.cs: only update dist_right/dist_bottom if the
5752         width/height is > 0.  this fixes anchored controls being resized
5753         smaller until they disappear and then resized larger again.
5754
5755 2006-12-25  Chris Toshok  <toshok@ximian.com>
5756
5757         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
5758         since they're nothing more than X/Left and Y/Top, respectively.
5759
5760         Also, move back to a per-control Bitmap/Graphics for
5761         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
5762         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
5763         Height.
5764
5765 2006-12-25  Miguel de Icaza  <miguel@novell.com>
5766
5767         * MessageBox.cs: Implemented overload that takes a new "bool
5768         displayHelpButton" by adding a new internal field "show_help".
5769         When clicked this will raise the HelpRequested on the owner or the
5770         main form. 
5771
5772         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
5773         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
5774
5775         * ListView.cs: Add support ColumnWidthChanged and
5776         ColumnWidthChanging. 
5777
5778         Add support for ColumnReordered event.
5779         (ReorderColumn): Add NET_2_0 specific support for cancelling the
5780         reorder.
5781
5782         Very nice codebase!
5783
5784         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
5785
5786         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
5787
5788 2006-12-24  Chris Toshok  <toshok@ximian.com>
5789
5790         * GridTablesFactory.cs: 2.0 corcompare work.
5791
5792         * ToolStripContainer.cs: add "override" to
5793         ContextMenuStripChanged, and remove the local event object.
5794
5795         * ToolStripDropDown.cs: same with a couple properties.
5796
5797         * ToolStripPanel.cs: same with AutoSizeChanged event.
5798
5799         * TextBoxBase.cs: add "override" to AutoSizeChanged.
5800
5801         * Form.cs: add the remaining 2.0 events, and do some corcompare
5802         attribute work.
5803
5804         * DateTimePicker.cs: add "new" to padding.
5805
5806         * ButtonBase.cs: use Control's use_compatible_text_rendering.
5807
5808         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
5809
5810         * DataGridView.cs: PaddingChanged is overridden.
5811
5812 2006-12-24  Chris Toshok  <toshok@ximian.com>
5813
5814         * Control.cs: corecompare work here too.
5815
5816         * DataGridViewElement.cs, DataGridView.cs,
5817         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
5818         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
5819         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
5820         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
5821         work.
5822
5823 2006-12-24  Miguel de Icaza  <miguel@novell.com>
5824
5825         * Control.cs: Switched the error message on the console for a
5826         todo.  A review of the code will have to cope with this anyways
5827         (since its a large feature, it is in our radar) and it was
5828         producing too much output when running PDN.
5829
5830         * ToolStripComboBox.cs: Set the text when the SelectedIndex
5831         changes.  Applications depend on this (PDN 2.72)
5832
5833 2006-12-23  Chris Toshok  <toshok@ximian.com>
5834
5835         * TableLayoutSettings.cs: finish up the corcompare work for this
5836         class.
5837
5838 2006-12-23  Chris Toshok  <toshok@ximian.com>
5839
5840         * Control.cs: make SetImplicitBounds internal, do some futzing
5841         with LayoutEngine so that it's available in 1.1, and remove the
5842         entire duplicated code mess from PerformLayout.  Use
5843         System.Windows.Forms.Layout.DefaultLayout instead.
5844
5845         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
5846
5847 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
5848
5849         * Form.cs: Add MainMenuStrip property.
5850
5851 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
5852
5853         * Control.cs: Add ContextMenuStrip property and implementation.
5854         Fix ContextMenu implementation to show menu centered on control when
5855         activated using the keyboard instead of showing at screen (0,0).
5856
5857         * ToolStripDropDown.cs: Fix needed overload of Show ().
5858
5859 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5860
5861         * Menu.cs: Name property added for 2.0 profile.
5862         
5863 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5864
5865         * Menu.cs: Update information about FindMenuItem, method to be
5866         implemented soon.
5867
5868 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5869
5870         * MenuAPI.cs: When deselect items deselect also selected subitems.
5871         
5872 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
5873
5874         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
5875         FindSubItemByCoord to found itens that is not active, also an
5876         cheking added to FindSubItemByCoord to search for items only 
5877         in visible popup windows. Fixes #80274.
5878
5879 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
5880
5881         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
5882         internal property, it be care about change ExStyle. 
5883
5884 2006-12-22  Andreia Gaita  <avidigal@novell.com>
5885
5886         * ContainerControl.cs: set activeControl for parent forms up the 
5887         tree when the new activecontrol is a container.
5888         When validating the active control, if it is a container, also
5889         raise up the validation for it's active control. Fixes #80280
5890         
5891         * Control.cs: Add internal property flag and check to prevent
5892         Focus events from getting raised when Select() is called for
5893         a ContainerControl. There are still too many focus events being
5894         raised at the moment though.
5895         Cleaned up the code a bit.
5896
5897 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5898
5899         * Control.cs: Added all missing 2.0 events.and
5900         fixed a couple of corcompare issues.
5901         * TrackBar.cs: Implemented missing 2.0 bits.
5902         * MonthCalendar.cs, 
5903         * DateTimePicker.cs, 
5904         * MdiClient.cs: Fixed some corcompare issues.
5905
5906 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5907
5908         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
5909         SplitterPanel.cs: corecompare work.
5910
5911 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5912
5913         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
5914         Clean up warnings for BackgroundImageChanged and PaddingChanged
5915         events now that they are implemented in Control.cs.
5916
5917 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
5918
5919         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
5920         
5921         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
5922         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
5923         of TableLayoutPanel and supporting cast.
5924
5925 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5926
5927         * XplatUIWin32.cs: 
5928         - GrabWindow now confines the mouse pointer to the confine window.
5929         - Added Win32ClipCursor and Win32GetClipCursor.
5930
5931         * Control.cs: 
5932         - Added CaptureWithConfine to be able to capture and confine 
5933         mouse pointer.
5934         
5935         * InternalWindowManager.cs: 
5936         - Call CaptureWithConfine instead of Capture if we're an
5937         MdiChild (fixes #79982).
5938
5939 2006-12-21  Chris Toshok  <toshok@ximian.com>
5940
5941         * DataGrid.cs: guard against the initial state of selection, where
5942         selection_start == -1.  make sure we only select from index >= 0.
5943         Fixes bug #80291.
5944
5945 2006-12-21  Chris Toshok  <toshok@ximian.com>
5946
5947         * Control.cs: we don't need to be so draconian with
5948         UpdateDistances, and we thusly don't need to call it before
5949         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
5950
5951 2006-12-21  Daniel Nauck  <dna@mono-project.de>
5952
5953         * ComboBox.cs,
5954         TextBox.cs: Implemented AutoComplete properties.
5955
5956 2006-12-20  Chris Toshok  <toshok@ximian.com>
5957
5958         * DataGridView*.cs: some corecompare work.
5959
5960 2006-12-20  Jackson Harper  <jackson@ximian.com>
5961
5962         * XplatUIX11.cs: We need to hide the caret when deleting it,
5963         otherwise you get carets left lying around everywhere.
5964         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
5965         prevents getting some weird half drawn caret tracers when
5966         scrolling.
5967         * TextControl.cs: Attempt to reduce the number of times we need to
5968         recreate the caret.
5969
5970 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
5971
5972         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
5973
5974 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5975
5976         * DateTimePicker.cs:
5977         - Implemented missing 2.0 bits.
5978         - Changed some default values to match MS.
5979         
5980 2006-12-20  Jackson Harper  <jackson@ximian.com>
5981
5982         * TextBoxBase.cs: When changing the font across the document we
5983         can't recalculate after changing each line, since that will cahnge
5984         the line count.
5985         - PreferredHeight is a little different than i thought.
5986         - When backspacing, move the caret before we do the actual char
5987         delete, because when that delete crosses a wrap boundary the
5988         positional information will change.
5989
5990 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
5991
5992         * Control.cs: Added some missing 2.0 bits: 
5993         BackgroundImageLayout, BackgroundImageLayoutChanged, 
5994         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
5995         add IBindableComponent and IDropTarget implementation.
5996         
5997         * MonthCalendar.cs: 
5998         - Added all missing 2.0 features:
5999         BackgroundImageLayout, RightToLeftLayout, 
6000         OnHandleDestroyed, RightToLeftLayoutChanged, 
6001         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
6002         PaddingChanged.
6003         - Rewrote all the BoldDate code, it was completely broken.
6004         - Fixed all the tests (the tests can now be re-enabled, the
6005         problems were not with the tests, but with the control, it was
6006         mostly broken).
6007         
6008         * DateTimePicker.cs: Changed the location where the 
6009         MonthCalendar is shown.
6010         
6011 2006-12-19  Chris Toshok  <toshok@ximian.com>
6012
6013         * DataGridView.cs: add IDropTarget implementation.
6014
6015         * ToolStripPanel.cs: add IDropTarget implementation.
6016
6017 2006-12-19  Jackson Harper  <jackson@ximian.com>
6018
6019         * TextControl.cs: soft now means something different than what it
6020         used to mean, we want to move the caret regardless of whether or
6021         not this break was soft (would we really have wanted the caret
6022         to not move with the break in the old context?)
6023         * TreeView.cs: Make sure we factor in the vert scrollbar when
6024         calculating the horizontal scrollbar's maximum.
6025
6026 2006-12-19  Andreia Gaita  <avidigal@novell.org>
6027
6028         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
6029         check for keywords in alternate casing, close bug #80049.
6030
6031 2006-12-19  Chris Toshok  <toshok@ximian.com>
6032
6033         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
6034         methods (which all do nothing).
6035
6036         * IDropTarget.cs: add the 4 missing methods.
6037
6038 2006-12-19  Chris Toshok  <toshok@ximian.com>
6039
6040         * TableLayoutRowStyleCollection.cs: corcompare work.
6041         
6042         * TableLayoutSettings.cs: same.
6043
6044         * TableLayoutStyle.cs: same.
6045
6046         * TableLayoutColumnStyleCollection.cs: same.
6047
6048 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
6049
6050         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
6051         TableLayoutPanel I've had in my local tree for way too long.
6052
6053 2006-12-19  Miguel de Icaza  <miguel@novell.com>
6054
6055         * TableLayoutSettings.cs: Finish the public API (still needs all
6056         the logic to update on changes). 
6057
6058         * TableLayoutPanelCellPosition.cs: new file.
6059         
6060         * TableLayoutRowStyleCollection.cs,
6061         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
6062         TableLayoutSettings.cs: Track the final 2.0 table api.
6063
6064 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6065
6066         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
6067         and Image List 2.0 members for ColummnHeader.
6068         * ListView.cs: Add key-related 2.0 methods for
6069         ColumnHeaderCollection.
6070
6071 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
6072
6073         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
6074         ArgumentNullException if items argument is null. Ignore null item in
6075         arrays. Removed extra tabs.
6076
6077 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
6078
6079         * MonthCalendar.cs: Fixed InvalidCastException.
6080
6081 2006-12-19  Jackson Harper  <jackson@ximian.com>
6082
6083         * TextControl.cs: Don't increment the position here.
6084         - When calculating char positions only add in the line break size
6085         for hard line breaks.
6086
6087 2006-12-19  Andreia Gaita  <avidigal@novell.org>
6088
6089         * SendKeys.cs: Changed some things to match ms.net behaviour
6090         when parsing shifted capital letters.
6091         
6092         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
6093         Add window handle as parameter to SendInput. X11 needs the 
6094         window handle, and the handle being passed      to it in the keys 
6095         queue is the active control handle (which windows needs), not 
6096         the window handle.
6097         
6098         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
6099         to support SendKeys on X.       
6100         
6101         * X11Keyboard: Implement helper method to lookup a linux keycode
6102         given the virtual keycode. Added table of keycode-2-virtualkey
6103         values to support this.
6104
6105 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6106
6107         * ListView.cs: Add support for SelectedIndexCollection
6108         and SelectedItemCollection 2.0 methods. Implement support
6109         for ImageKey too.
6110         * ListViewItem.cs: Add support for ListViewSubItemCollection
6111         2.0 methods. Also, fix an incorrect behavior of AddRange method
6112         (it shouldn't call Clear).
6113         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
6114
6115 2006-12-19  Jackson Harper  <jackson@ximian.com>
6116
6117         * RichTextBox.cs: 
6118         * TextBoxBase.cs: New args for FormatText
6119         * TextControl.cs: Rewrote the main drawing method, this version
6120         feels a little easier to understand and debug to me.  Hopefully it
6121         does to others also
6122         - Fix FormatText to OR in the new formating values.  Added
6123         FormatSpecified param, basically this works in the same way as
6124         BoundsSpecified in Control.
6125         - Set the caret properties when the caret is positioned.
6126         - When wrapping text make sure that we calculate the width of the
6127         last character
6128         - when calculating alignments we might have wrapped down to the
6129         next line, so don't search for an individual tag, search for the
6130         end of the line
6131         - We need to invalidate the selection area when we replace the
6132         selection.
6133         
6134 2006-12-19  Daniel Nauck  <dna@mono-project.de>
6135
6136         * Application.cs: add Restart () 2.0 support
6137
6138 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
6139
6140         * MenuItem.cs: Invalidate menu item rectangle after change Enable
6141         property. Fixes #80268.
6142         
6143 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
6144
6145         * MenuAPI.cs: Dont trigger select event when closes top menu
6146         item. Fixes #80270.
6147
6148 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
6149
6150         * MenuAPI.cs: When you click on menuitem only trigger onselect
6151         event for top menu itens. Fixes #80271.
6152         
6153 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6154
6155         * MdiWindowManager.cs: Make IconicBounds depend on
6156         the bottom of MdiClient, not the top (fixes #80267)
6157         
6158 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6159
6160         * MdiClient.cs: Added missing 2.0 attribute
6161
6162 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6163
6164         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
6165         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
6166
6167 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
6168
6169         * MenuAPI.cs: Fix click when menuitem is not popup,
6170         this regression was caused by last commit (#80272).
6171
6172 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
6173
6174         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
6175         fire click event or close menu. Fixes #80272.
6176
6177 2006-12-17  Daniel Nauck  <dna@mono-project.de>
6178
6179         * ListViewHitTestInfo.cs: add
6180
6181 2006-12-17  Daniel Nauck  <dna@mono-project.de>
6182
6183         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
6184         * FlatButtonAppearance.cs: add
6185         * DockingAttribute.cs: add
6186
6187 2006-12-17  Chris Toshok  <toshok@ximian.com>
6188
6189         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
6190         and rebind our columns when it does - this way, if you make
6191         changes to the DataTable (or set the Table attribute on a DataView
6192         after setting it as the DataGrid's DataSource, the changes are
6193         made visible.)  Fixes bug #80107.
6194
6195 2006-12-17  Daniel Nauck  <dna@mono-project.de>
6196
6197         * ListViewGroup.cs: add internal Location property for layouting.
6198         * Theme.cs: add abstract ListViewGroupHeight function.
6199         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
6200
6201 2006-12-16  Andreia Gaita  <avidigal@novell.com>
6202
6203         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
6204         Added reset of selected index to 0 when adding first tab page.
6205         Fixes #80264
6206         
6207         * NumericUpDown.cs: Fix NET_2_0 check
6208
6209 2006-12-16  Daniel Nauck  <dna@mono-project.de>
6210
6211         * ListViewGroup.cs: fixed DefaultValueAttribute value
6212
6213 2006-12-16  Daniel Nauck  <dna@mono-project.de>
6214
6215         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
6216
6217 2006-12-15  Miguel de Icaza  <miguel@novell.com>
6218
6219         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
6220         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
6221         ScrollableControl.cs: Add a handful of methods that are
6222         overwritten in 2.0 
6223
6224 2006-12-15  Chris Toshok  <toshok@ximian.com>
6225
6226         * XplatUIWin32.cs: initial implementation of the Reversible
6227         drawing functions.  there are some problems.  DrawReversibleFrame
6228         doesn't seem to work at all for Dashed FrameStyle, and in the
6229         Thick case there are drawing errors at the corners (we probably
6230         need to bind Rectangle instead of doing moveto/lineto's.)
6231
6232 2006-12-16  Andreia Gaita  <avidigal@novell.com>
6233         
6234         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
6235         to send blocks of key messages. Send accumulates keys to send with Flush, 
6236         while SendWait sends all keys immediately.
6237                 
6238         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
6239         XplatUIX11.cs,  XplatUIX11-new.cs:
6240         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
6241         to Win32 SendInput.
6242         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
6243         
6244         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
6245         testing for ms.net on this class is very tricky, as the tests run too fast 
6246         to allow the hook to release, essentially freezing the keyboard and the 
6247         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
6248         category :p
6249
6250 2006-12-16  Daniel Nauck  <dna@mono-project.de>
6251
6252         * Padding.cs: fixed serialization compability to MS ("_var" field names),
6253                         added missing attributes.
6254  
6255 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6256
6257         * ListViewGroup.cs: Added missing attributes.
6258         * ListViewGroupCollection.cs: Added missing attributes.
6259
6260 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6261
6262         * ListViewItem.cs: fixed ListViewSubItem text property.
6263
6264 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6265         
6266         * Control.cs: Added missing 2.0 attributes
6267         
6268 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6269         
6270         * MdiClient.cs: Added missing 2.0 attribute.
6271         * MonthCalendar.cs: Added some missing 2.0 attributes 
6272         and properties.
6273         
6274 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6275
6276         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
6277
6278 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
6279
6280         * MainMenu.cs: Add the new 2.0 constructor to help out people
6281         using the MainMenu in VS2005.
6282
6283 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6284         
6285         * MdiChildContext.cs: Removed it, no longer used.
6286         * MdiClient.cs: Added missing 2.0 attributes.
6287         
6288 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6289         
6290         * InternalWindowManager.cs: Fix a NullRef with previous 
6291         changes for toolwindows.
6292         
6293 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6294
6295         * Control.cs: 
6296         - Added AfterTopMostControl to allow for certain controls 
6297         to always stay on top when normal controls are brought to 
6298         front.
6299         
6300         * XplatUIWin32.cs: 
6301         - (DrawInversibleRectangle): Get window rectangle from Win32 
6302         in stead of from control, since Win32 doesn't calculate
6303         screen coords correctly from control's Location if it 
6304         have docked siblings.
6305         
6306         * MdiWindowManager.cs:
6307         - Correct the control menu popup location when clicked on
6308         the maximized form icon. (fixes #80223.1)
6309         - Don't show moving rectangle if mouse hasn't moved from
6310         the original clicked point.
6311         - Removed FormGotFocus handler (not used).
6312         - Calculate the control buttons location from the main
6313         window's size and not client size (fixes #79770).
6314         - Form is now closed when the form icon is double-clicked
6315         (fixes #79775). 
6316         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
6317         
6318         * InternalWindowManager.cs:
6319         - Moved some MDI-only methods to MdiWindowManager.
6320         - Removed unused properties and methods.
6321         - Unified method naming for methods handling wm messages.
6322         - Moved all message handling to seperate methods for
6323         each message.
6324         
6325         * ThemeWin32Classic.cs:
6326         - DrawManagedWindowDecorations now draws the title bar 
6327         with a gradient brush.
6328         - Add a CPDrawButtonInternal that allows us to specify
6329         light, normal and dark colors for the buttons (control 
6330         buttons for MDI children were drawn with the same light
6331         color as the background, therefore loosing the 3D effect).
6332         
6333         * SizeGrip.cs:
6334         - Add a CapturedControl property that is used to 
6335         determine the control to resize (defaults to parent). 
6336         Needed for MdiClient, since its SizeGrip's parent is
6337         MdiClient, but the control to resize is the main form.
6338         
6339         * MdiClient.cs:
6340         - Set SizeGrip's CapturedControl to the main form in order
6341         to resize the main form and not the MdiClient.
6342         - Override AfterTopMostControl to leave the scrollbars 
6343         always on top.
6344
6345 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6346
6347         * ListView.cs: fixed ListViewItemCollection AddRange and
6348                         implemented ListViewItemCollection AddRange 2.0 support.
6349
6350 2006-12-15  Daniel Nauck  <dna@mono-project.de>
6351
6352         * ListViewGroup.cs: Add.
6353         * ListViewGroupCollection.cs: Add
6354         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
6355         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
6356                                 stub for ImageKey 2.0 support.
6357
6358 2006-12-14  Mike Kestner  <mkestner@novell.com>
6359
6360         * ListView.cs: add text padding to the autocalculation for columns
6361         of width -2.  Fixes #80207.
6362  
6363 2006-12-14  Mike Kestner  <mkestner@novell.com>
6364
6365         * ListView.cs: add some index guarding for partial row navigation 
6366         logic.  Fixes #80250.
6367
6368 2006-12-14  Mike Kestner  <mkestner@novell.com>
6369
6370         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
6371         are added or inserted to the collection.  Fixes #81099.
6372
6373 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
6374
6375         * MenuAPI.cs: Closes menu when right click out side of popup
6376         it fix problem in ContextMenu and MainMenu. Fixes #80252.
6377
6378 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6379
6380         * ListViewItem.cs: Fix dumb error.
6381
6382         * ListView.cs: Add Find and ContainsKey methods in 
6383         ListViewItemCollection, and also return true for IsReadOnly
6384         and IsFixedSize (changes for 2.0). 
6385
6386 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
6387
6388         * Control.cs: Allow Region to be set to null.
6389
6390 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6391
6392         * MdiWindowManager.cs: Remove unused (commented out) code.
6393         * Form.cs: When the MdiChild is maximized, the form needs 
6394         WM_NCMOUSELEAVE, so request it.
6395         * InternalWindowManager.cs: 
6396         - Added tooltips to control buttons.
6397         - Removed duplicated control button handling code.
6398         - Removed unused (commented out) code.
6399         
6400 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
6401
6402         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
6403         was used because we must set cursor without trigger ChangeCursor event
6404         and without change Cursor control property. Fixes #79963.
6405
6406 2006-12-12  Andreia Gaita  <avidigal@novell.com>
6407         
6408         * Control.cs: Check if Region setter value is null, and ignore
6409
6410 2006-12-12  Jackson Harper  <jackson@ximian.com>
6411
6412         * TextControl.cs: We were almost always drawing one more line then
6413         needed, since the GetLineByPixel will return the last line found
6414         at that pixel. In most cases though, we were invalidating up to
6415         the junction between two lines.
6416         - Improve debug code.
6417
6418 2006-12-12  Chris Toshok  <toshok@ximian.com>
6419
6420         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
6421         and FillReversibleRectangle.
6422
6423         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
6424         and FillReversibleRectangle.
6425
6426         * XplatUIWin32.cs: add stubs which do nothing for
6427         DrawReversibleFrame, DrawReversibleLine, and
6428         FillReversibleRectangle.
6429
6430         * XplatUIOSX.cs: add stubs which raise NIE for
6431         DrawReversibleFrame, DrawReversibleLine, and
6432         FillReversibleRectangle.
6433
6434         * XplatUIX11.cs: add working implementation for
6435         DrawReversibleFrame, DrawReversibleLine, and
6436         FillReversibleRectangle.
6437         
6438         * ControlPaint.cs: implement DrawReversibleFrame,
6439         DrawReversibleLine, and FillReversibleRectangle, by calling into
6440         the appropriate XplatUI method.
6441
6442 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6443
6444         * Form.cs: Make MdiClient have the focus even if it's
6445         not selectable, since it should receive WM_KEY* and WM_MOUSE 
6446         messages. Fixes #79907.
6447         
6448 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6449
6450         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
6451         queried after the window is created.
6452         
6453         * XplatUIX11.cs: Added SendParentNotify to implement 
6454         WM_PARENTNOTIFY logic. Fixes #79965.
6455         
6456         * Control.cs: Added MakeParam.
6457         
6458 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6459
6460         * MdiClient.cs: Resume Layout before setting window
6461         states (fixes #80201).
6462
6463 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6464
6465         * MenuAPI.cs: Deselect a menu item after performing
6466         the click (fixes #80197).
6467
6468 2006-12-11  Jackson Harper  <jackson@ximian.com>
6469
6470         * TextBoxBase.cs: We need to cap this value, since Maximum -
6471         ViewPortHeight can be less than zero.
6472         - Only do selection with the left mouse button.
6473         * TextBox.cs: Don't tell the world that we have a context menu.
6474         * Control.cs: New method so that we can control whether or not the
6475         context menu is visible outside MWF.
6476
6477 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
6478
6479         * ToolBarButton.cs: Fix text positon. 
6480
6481 2006-12-11  Miguel de Icaza  <miguel@novell.com>
6482
6483         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
6484
6485         * Control.cs (DoubleBuffered): Add implementation.
6486
6487         * Application.cs (OpenForms): Add.
6488
6489 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
6490
6491         * Form.cs: Use opacity instead of Opactiy to determine if we need
6492         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
6493
6494 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
6495
6496         * Control.cs: Fix NRE if Control.Site was set to null.
6497
6498 2006-12-11  Chris Toshok  <toshok@ximian.com>
6499
6500         * Control.cs: ControlCollection.Remove should return if the arg is
6501         null, and ControlCollection.SetChildIndex should raise a ANE.
6502
6503 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
6504
6505         * Control.cs: Verify value set for Dock property. Code formatting
6506         updates.
6507
6508 2006-12-11  Jackson Harper  <jackson@ximian.com>
6509
6510         * TextControl.cs: Draw the caret and the selection when a flag is
6511         set on the owner.
6512         * TextBoxBase.cs: We want to draw the caret and the selection for
6513         TextBox but not for TextBoxBase.
6514         - If the window is resized and scrolling is no longer needed (the
6515         whole doc is visible) set the scroll position to zero.
6516         - The default SelectWord (the one TextBox uses) should move the
6517         caret to the end of the word.
6518         - SelectAll moves the caret to the end of the selection.
6519         * TextBox.cs: We don't selectall on focus, we just do it when the
6520         control is created.
6521         
6522 2006-12-11  Mike Kestner  <mkestner@novell.com>
6523
6524         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
6525
6526 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6527
6528         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
6529         2.0 support.
6530         * ListViewItem.cs: Add Name 2.0 property.
6531
6532 2006-12-11  Andreia Gaita  <avidigal@novell.com>
6533
6534         * TabControl.cs: Set visibility on selected or default tab 
6535         when tabcontrol handle is created, so that it's contents
6536         actually show up (duh). Fixes #80193
6537         Don't redraw the control if there is no handle created, as
6538         the selected index might be completely invalid. Added some tests
6539         to check for this.
6540
6541 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
6542
6543         * ToolBar.cs: Uses maximun width and height of all buttons as 
6544         button rectangle when ButtonSize specified, it looks strange but
6545         is what happens in Win32. Fixes #80189.
6546
6547 2006-12-11  Jackson Harper  <jackson@ximian.com>
6548
6549         * TextControl.cs: Need to track undo levels ourself, since
6550         compound actions will mess them up.
6551
6552 2006-12-10  Andreia Gaita  <avidigal@novell.com>
6553
6554         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
6555         SelectedIndex value is changed (even if it's not valid).
6556         Reset SelectedIndex to 0 when the handle is created and if
6557         the current index is invalid.
6558         Fixes SelectdeIndex unit tests and #80128
6559
6560 2006-12-08  Chris Toshok  <toshok@ximian.com>
6561
6562         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
6563         calls EndEdit, it needs to be called before we set current_cell to
6564         its new value.  Otherwise, we end up committing the value in the
6565         textbox to the new cell as well.  Fixes bug #80160.
6566
6567 2006-12-08  Chris Toshok  <toshok@ximian.com>
6568
6569         * Form.cs (set_CancelButton): if the button's DialogResult is
6570         None, set it to Cancel.  Fixes bug 80180.
6571
6572 2006-12-08  Jackson Harper  <jackson@ximian.com>
6573
6574         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
6575         to watch ourselves when setting the canvas size and setting the
6576         scrollbar values.
6577
6578 2006-12-08  Chris Toshok  <toshok@ximian.com>
6579
6580         * DataGrid.cs: comment out the two MakeTransparent calls for the
6581         time being so people using trunk (and not 1.2.2) on windows can
6582         actually use the datagrid.  This deals with bug #80151.
6583
6584 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
6585
6586         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
6587         Graphics.DrawImage (image, int, int, int, int) overload instead
6588         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
6589         the dpi difference and was blurring images it drew.
6590         [Fixes bug #79960]
6591
6592 2006-12-08  Chris Toshok  <toshok@ximian.com>
6593
6594         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
6595         rowcnt is 0 (such as with an empty datasource), and make sure we
6596         initialize not_usedarea.Y to cells.Y, so we don't draw over the
6597         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
6598
6599 2006-12-08  Chris Toshok  <toshok@ximian.com>
6600
6601         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
6602         grid.
6603
6604 2006-12-08  Chris Toshok  <toshok@ximian.com>
6605
6606         [ Fixes bug #80167 ]
6607         
6608         * ThemeWin32Classic.cs: don't draw the image if the button's flat
6609         style is FlatStyle.System.
6610
6611         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
6612         ButtonBase.flat_style private, and switch uses of it to the public
6613         property.
6614         
6615 2006-12-08  Chris Toshok  <toshok@ximian.com>
6616
6617         [ Fixes bug #80121 ]
6618         
6619         * ThemeWin32Classic.cs: center the caption text in the datagrid
6620         when we draw it.
6621
6622         * DataGrid.cs: lessen the amount we add to the caption height from
6623         6 to 2.  6 was making it huge.
6624
6625 2006-12-08  Andreia Gaita  <avidigal@novell.com>
6626
6627         * UpDownBase: Handle MouseWheel call directly instead of capturing
6628         the inner textbox's OnMouseWheel. Fixes #80166
6629
6630 2006-12-08  Jackson Harper  <jackson@ximian.com>
6631
6632         * TextControl.cs: We need to invalidate the textbox when we empty
6633         it (how had this not been discovered before?)
6634
6635 2006-12-08  Jackson Harper  <jackson@ximian.com>
6636
6637         * TextBoxBase.cs: Reworked the mouse down code so I could get it
6638         to behave like MS, we now ignore the eventargs.Click and just
6639         track state ourself, which we were already doing anyways.
6640         - Constrain the double click handler to the double click size.
6641         
6642 2006-12-08  Chris Toshok  <toshok@ximian.com>
6643
6644         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
6645         direction if that scrollbar isn't shown.  fixes bug #80158.
6646
6647 2006-12-08  Andreia Gaita  <avidigal@novell.com>
6648
6649         * NumericUpDown.cs: Update value on getter. Fixes #79950
6650
6651 2006-12-08  Chris Toshok  <toshok@ximian.com>
6652
6653         * MenuItem.cs: add back in the event cloning code.  I didn't know
6654         how to do it in the face of the EventHandlerList work i'd done
6655         last week.  Fixes bug #80183.
6656
6657 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
6658
6659         * Control.cs: Add an invalidate to the BackgroundImage setter.
6660         [Fixes 80184]
6661
6662 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
6663
6664         * ToolStrip*: Add some small properties reported by MoMA, fix event
6665         firing and default properties based off of unit tests, and add some
6666         attributes based off of the class status page.
6667
6668 2006-12-07  Jackson Harper  <jackson@ximian.com>
6669
6670         * TextBoxBase.cs: Take HideSelection into account when determining
6671         whether or not to show the selection.
6672         * RichTextBox.cs: After inserting the RTF into the document move
6673         the cursor to the beginning of the document.
6674
6675 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
6676
6677         * Control.cs: Remove static ArrayList "controls" which maintained
6678         a reference to every control created.
6679         * Application.cs: Create a static FormCollection to maintain a reference
6680         to every form created.  Use it in places that formerly enumerated through
6681         the controls one looking for forms.
6682         * Form.cs: Add and remove self from above FormCollection.
6683
6684 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
6685
6686         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
6687           not libgdk (though it makes me wonder why I didn't have any
6688           problems)
6689
6690 2006-12-07  Chris Toshok  <toshok@ximian.com>
6691
6692         [ you had to know this was coming after that last commit...]
6693         
6694         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
6695         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
6696         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
6697         XCopyArea).
6698
6699 2006-12-07  Chris Toshok  <toshok@ximian.com>
6700
6701         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
6702         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
6703         all the behavior we need for double buffering.
6704
6705         * XplatUIDriver.cs: implement the 3 double buffer methods using a
6706         client side Bitmap, just like the old Control-based double buffer
6707         code did.  The methods are virtual, so each XplatUI driver
6708         subclass can replace the implementation to use a faster, platform
6709         specific approach.
6710
6711         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
6712         double buffer code, and clean things up a bit in the process.
6713
6714 2006-12-06  Chris Toshok  <toshok@ximian.com>
6715
6716         * Control.cs: reindent WndProc.
6717
6718 2006-12-06  Chris Toshok  <toshok@ximian.com>
6719
6720         [ I wanna be like BenM when I grow up ]
6721         
6722         * Hwnd.cs: create a single static Graphics object on the static
6723         Bitmap we create.  use this for our text measurements.
6724
6725         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
6726         This was causing us to allocate a backbuffer for every control,
6727         even when it wasn't flagged as double buffered.  Instead use the
6728         single graphics instance.  This might have implications for
6729         multithreaded applications.  If we run into problems we can switch
6730         to creating 1 Graphics per control, on the static Hwnd bitmap.
6731
6732         this change nets us a 7M savings in private dirty mappings when
6733         running FormsTest.exe.
6734
6735 2006-12-06  Chris Toshok  <toshok@ximian.com>
6736
6737         * ListView.cs: the BackgroundImage override is just to set
6738         attributes.  chain up to base.BackgroundImage.
6739
6740         * RichTextBox.cs: same.
6741
6742         * ToolBar.cs: same, but we need to also redraw the toolbar when it
6743         changes, so instead a handler for BackgroundImageChanged.
6744         
6745         * Control.cs: make background_image private.
6746
6747 2006-12-06  Chris Toshok  <toshok@ximian.com>
6748
6749         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
6750         sure we even need this assignment, but roll with it for now.
6751
6752         * Control.cs: make the cursor field private.
6753
6754 2006-12-06  Chris Toshok  <toshok@ximian.com>
6755
6756         * Form.cs: we don't need to explicitly set ImeMode to
6757         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
6758         behavior in the face of ImeMode.Inherit.
6759
6760         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
6761         change the ctor's assignment to use ImeMode instead of ime_mode.
6762
6763         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
6764         ImeModeInherit.  Only check for the parent's imemode (and return
6765         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
6766         This fixes the button unit test, which sets both ImeMode and
6767         DefaultImeMode to ImeMode.Disable.
6768
6769         also make the ime_mode field private.
6770
6771 2006-12-06  Chris Toshok  <toshok@ximian.com>
6772
6773         * Control.cs: make control_style private.
6774
6775         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
6776         setting the styles to true, then setting them to false instead of
6777         reverting to their previous values.
6778
6779         also, call SetStyle on the scrollbars instead of using
6780         control_style directly.
6781
6782 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
6783
6784         * FormCollection.cs: Implement. [2.0]
6785
6786 2006-12-06  Chris Toshok  <toshok@ximian.com>
6787
6788         * Control.cs: make tab_stop private.
6789
6790         * Label.cs: set TabStop, not tab_stop.  reformat some event
6791         add/remove methods to make them more compact.
6792
6793 2006-12-06  Chris Toshok  <toshok@ximian.com>
6794
6795         * RadioButton.cs: fix TabStop handling.
6796
6797 2006-12-06  Chris Toshok  <toshok@ximian.com>
6798
6799         * TextBox.cs: remove the explicit assignments to has_focus.
6800         Control does that.
6801
6802         * ButtonBase.cs: remove the assignment to has_focus.  Control will
6803         manage that.
6804         
6805 2006-12-06  Chris Toshok  <toshok@ximian.com>
6806
6807         * ButtonBase.cs: remove all uses of is_enabled from this code.
6808         it's always true when any of the code containing the checks is
6809         executed.
6810
6811 2006-12-06  Chris Toshok  <toshok@ximian.com>
6812
6813         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
6814         with different semantics (some are present in both 1.1 and 2.0
6815         profiles) so that we match MS's behavior in our unit tests.
6816
6817 2006-12-06  Jackson Harper  <jackson@ximian.com>
6818
6819         * TextControl.cs: Make this operation undoable.
6820         * TextBoxBase.cs: Factor the border width into the preferred
6821         height.
6822         - implement Modified as per the spec.
6823
6824 2006-12-06  Chris Toshok  <toshok@ximian.com>
6825
6826         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
6827
6828 2006-12-06  Chris Toshok  <toshok@ximian.com>
6829
6830         * Control.cs: make right_to_left and context_menu fields private.
6831
6832 2006-12-06  Chris Toshok  <toshok@ximian.com>
6833
6834         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
6835         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
6836         Control.child_controls private.  switch all uses over to
6837         Control.Controls.
6838
6839 2006-12-06  Chris Toshok  <toshok@ximian.com>
6840
6841         * System.Windows.Forms/GroupBox.cs,
6842         System.Windows.Forms/AccessibleObject.cs,
6843         System.Windows.Forms/ErrorProvider.cs,
6844         System.Windows.Forms/Control.cs,
6845         System.Windows.Forms/UpDownBase.cs,
6846         System.Windows.Forms/ScrollBar.cs,
6847         System.Windows.Forms/DateTimePicker.cs,
6848         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
6849         System.Windows.Forms/ToolTip.cs,
6850         System.Windows.Forms/RadioButton.cs,
6851         System.Windows.Forms/LinkLabel.cs,
6852         System.Windows.Forms/Splitter.cs,
6853         System.Windows.Forms/TextBoxBase.cs,
6854         System.Windows.Forms/ToolStripTextBox.cs,
6855         System.Windows.Forms/ContainerControl.cs,
6856         System.Windows.Forms/ThemeWin32Classic.cs,
6857         System.Windows.Forms/SizeGrip.cs,
6858         System.Windows.Forms/ToolStripDropDown.cs,
6859         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
6860         private.  switch all uses over to Control.Parent.
6861
6862 2006-12-06  Chris Toshok  <toshok@ximian.com>
6863
6864         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
6865         Control does this before calling emitting these events.
6866
6867         * TabControl.cs: same.
6868
6869         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
6870         Control.client_rect.
6871
6872         * ButtonBase.cs: use the ClientSize property instead of the
6873         client_size field.
6874
6875         * ScrollableControl.cs: same.
6876
6877         * Control.cs: another pass at making properties private.  also,
6878         move the initialization of tab_stop to the ctor.
6879
6880 2006-12-05  Andreia Gaita <avidigal@novell.com>
6881
6882         * TabControl.cs: Let the selected index be set freely if the 
6883         control handle is not yet created.
6884
6885 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
6886
6887         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
6888         internal until I can rewrite DefaultLayout.
6889         * ToolStrip.cs: Fix build error and some general cleaning.
6890         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
6891         Fix build errors caused by making some of Control's fields private.
6892
6893 2006-12-05  Jackson Harper  <jackson@ximian.com>
6894
6895         * TextControl.cs: Redo Insert a little so that it use IndexOf
6896         instead of Split, this prevents it from messing up on things like
6897         \n\n\n. Also more effecient since the split array doesn't need to
6898         be created.
6899         * TextBoxBase.cs: AppendText doesnt handle multiline and non
6900         multiline text differently, this is the first of many fixes that
6901         will make multiline/non-multiline the same thing as far as the
6902         TextBoxBase is concerned.
6903         - Don't split the text and insert lines, this can lose some line
6904         endings (like is the last line a soft or hard break). Instead use
6905         the new Insert.
6906         - Fix an off by one when combining all the lines in the Text
6907         getter.
6908         - Remove separate multiline handling from the Text getter/setter.
6909
6910 2006-12-05  Chris Toshok  <toshok@ximian.com>
6911
6912         * ButtonBase.cs: a few changes:
6913
6914         - don't reinitialize internal Control fields in the ctor when they
6915         have the same values as Control sets them.
6916
6917         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
6918         this before calling those methods.
6919
6920         - we don't need to call Refresh for anything.  use Invalidate
6921         instead.
6922
6923         - OnEnabledChanged doesn't need to redraw at all - Control.cs
6924         calls Refresh in its OnEnabledChanged.
6925         
6926         - several of the events we were registered for in the ctor to
6927         redraw ourselves already include calls to Invalidate in the
6928         property setters that raise the events.  remove the extra
6929         invalidation.
6930
6931         - reformat a switch statement that was 83274658 columns wide.
6932         
6933 2006-12-05  Mike Kestner  <mkestner@novell.com>
6934
6935         * ComboBox.cs: fix a unit test regression from a TextBox
6936         SelectionLength return of -1 when there's no selection.  
6937
6938 2006-12-05  Chris Toshok  <toshok@ximian.com>
6939
6940         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
6941         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
6942         cleaning up some of the internal Control fields being used by
6943         subclasses.
6944
6945 2006-12-05  Mike Kestner  <mkestner@novell.com>
6946
6947         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
6948         listbox after AddImplicit calls since it defaults to hidden. Add a 
6949         hack to preserve requested heights across DropDownStyle changes.
6950
6951 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
6952
6953         * PropertyGrid.cs: Hide FindFirstItem method from public API.
6954
6955 2006-12-05  Chris Toshok  <toshok@ximian.com>
6956
6957         * DataGridView.cs: fix compiler warnings.
6958
6959         * PrintControllerWithStatusDialog.cs: same.
6960
6961         * ToolBar.cs: same.
6962
6963         * FolderBrowserDialog.cs: same.
6964
6965         * Splitter.cs: same.
6966
6967         * DataGridViewComboBoxCell.cs: same.
6968
6969         * XplatUIWin32.cs: same.
6970
6971         * PictureBox.cs: same.
6972
6973         * Win32DnD.cs: same.
6974
6975         * PageSetupDialog.cs: same.
6976
6977         * FileDialog.cs: same.
6978
6979         * PrintDialog.cs: same.
6980
6981         * DataGridTextBoxColumn.cs: same.
6982
6983         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
6984
6985 2006-12-05  Chris Toshok  <toshok@ximian.com>
6986
6987         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
6988         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
6989         System.ComponentModel.EventHandlerList work.
6990
6991 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
6992
6993         * DrawTreeNodeEventArgs.cs: Added.
6994
6995 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
6996         
6997         * InternalWindowManager.cs: Remove an unused field.
6998         
6999 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7000
7001         * InternalWindowManager.cs:
7002         - Save the point where the title bar is clicked.
7003         
7004         * MdiWindowManager.cs:
7005         - Only allow moving of the window as long as the 
7006         clicked point on the title bar does not get out of
7007         MdiClient's rectangle. Fixes #79982.
7008         
7009         * MdiClient.cs:
7010         - Added Horizontal/VerticalScrollbarVisible.
7011         - Simplified the scrollbar sizing algorithm.
7012         - Cache the difference in scrolled value in
7013         H/VBarValueChanged and move the calculation out
7014         of the for loop.
7015
7016 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7017
7018         * Control.cs: Make the Console.WriteLine in WndProc 
7019         write more info.
7020
7021 2006-12-05  Chris Toshok  <toshok@ximian.com>
7022
7023         * ToolStripManager.cs, ToolStripButton.cs,
7024         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
7025         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
7026         ToolStripSplitButton.cs, ToolStripSeparator.cs,
7027         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
7028         ToolStripProgressBar.cs, ToolStripContainer.cs,
7029         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
7030         to using System.ComponentModel.EventHandlerList.
7031
7032 2006-12-04  Chris Toshok  <toshok@ximian.com>
7033
7034         * LinkLabel.cs: fix up compiler warnings.
7035
7036         * TableLayoutSettings.cs: same.
7037
7038         * TreeView.cs: same.
7039
7040         * ToolBar.cs: same.
7041
7042         * TabControl.cs: same.
7043
7044         * RichTextBox.cs: same.
7045
7046         * ListViewItem.cs: same.
7047
7048         * PropertyGrid.cs: same.
7049
7050         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
7051
7052         * ToolTip.cs same.
7053
7054         * TextRenderer.cs: fix up compiler warnings.
7055
7056         * Label.cs: same.
7057
7058         * Form.cs: corcompare fixes.
7059
7060         * PictureBox.cs: fix up compiler warnings.
7061
7062         * ImageListStreamer.cs: same.
7063
7064         * TrackBar.cs: corcompare fix.
7065
7066         * Control.cs: fix up compiler warnings.
7067
7068         * SplitterPanel.cs: same.
7069
7070         * NumericTextBox.cs: same.
7071
7072         * ImageList.cs: same.
7073
7074         * StatusStrip.cs: same.
7075
7076         * ProgressBar.cs: corcompare fix.
7077
7078         * ToolStripButton.cs: fix up compiler warnings.
7079
7080         * ToolStripStatusLabel.cs: same.
7081
7082         * ToolStripSplitButton.cs: same.
7083
7084         * ToolStripSeparator.cs: same.
7085
7086         * ToolStripProgressBar.cs: same.
7087
7088         * ToolStripDropDownMenu.cs: same
7089
7090         * ToolStripDropDown.cs: same.
7091
7092         * ToolStripDropDownButton.cs: same.
7093
7094         * ToolStrip.cs: same.
7095
7096         * ToolStripControlHost.cs: same.
7097
7098         * ToolStripContentPanel.cs: same.
7099
7100         * ToolStripDropDown.cs: same.
7101
7102         * ToolStripContainer.cs: same.
7103
7104         * ToolStripPanel.cs: same, and add "new" where we need it to work
7105         with the new ArrangedElementCollection.
7106
7107         * ToolStripItemCollection.cs: add "new" where we need it to work
7108         with the new ArrangedElementCollection.
7109
7110 2006-12-04  Andreia Gaita <avidigal@novell.com>
7111
7112         * TabControl.cs: Fix default tab selection to after TabControl
7113         gets focus and not before. Fixes #80128
7114
7115 2006-12-04  Chris Toshok  <toshok@ximian.com>
7116
7117         * DataGridTableStyle.cs: remove the gross calling of
7118         datagrid.Refresh from here.  It's a broken idea and it doesn't
7119         work anyway.
7120
7121         * DataGrid.cs: instead, just register/unregister from the
7122         DataGridTableStyle events in CurrentTableStyle.  we play it
7123         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
7124         even though some would most likely not require it.  Fixes bug
7125         #80115 (and one portion of #80117 as a side effect).
7126
7127 2006-12-04  Chris Toshok  <toshok@ximian.com>
7128
7129         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
7130         so the textbox (if any) goes away.  Fixes bug #80117.
7131
7132 2006-12-04  Chris Toshok  <toshok@ximian.com>
7133
7134         * DataGridColumnStyle.cs: set the column's readonly property
7135         initially based on the property descriptor's IsReadOnly.  Fixes
7136         bug #80044.
7137
7138 2006-12-04  Chris Toshok  <toshok@ximian.com>
7139
7140         * ComboBox.cs: wrap the dropdown style changing work in
7141         SuspendLayout/ResumeLayout.  Fixes bug #79968.
7142
7143 2006-12-04  Jackson Harper  <jackson@ximian.com>
7144
7145         * TextBoxBase.cs: Fix off by one, since these are one-based.
7146         * TextBox.cs: Select all the text when we get focus.  The TextBox
7147         does this but the RTB does not.
7148
7149 2006-12-04  Chris Toshok  <toshok@ximian.com>
7150
7151         * DataGridTextBoxColumn.cs: remove some spew.
7152
7153         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
7154         but some part of me is saying "it shouldn't be here.."  At any
7155         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
7156         setting the value.
7157
7158 2006-12-04  Chris Toshok  <toshok@ximian.com>
7159
7160         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
7161         to reassign the propertydescriptor.
7162
7163 2006-12-04  Jackson Harper  <jackson@ximian.com>
7164
7165         * TextBoxBase.cs:
7166         * TextControl.cs: Remove some unused variables.  Maybe this will
7167         patch things up between mike and I.
7168         - don't split lines less then one char wide, if the viewport is
7169         that small text won't be visible anyways.
7170         
7171 2006-12-04  Jackson Harper  <jackson@ximian.com>
7172
7173         * TextBoxBase.cs: Default selection length is -1, need to do some
7174         more testing on windows to see when this is used for the property.
7175         - Redid the Lines [] property to that we properly remove soft line
7176         breaks
7177         - added support for preserving carriage returns
7178         -  CanUndo is not a variable like 'is undo enabled' it just returns
7179         true if there is undo operations available.
7180         - AppendText doesn't need to grab the last tag itself anymore,
7181         this happens automatically when we move the cursor.
7182         * TextControl.cs: Add CompoundActions to the undo class. This
7183         allows combining the other operations into one big option.  ie a
7184         paste will combine { delete old, insert new, move cursor }
7185         - Add InsertString undo operation
7186         - New method for deleting multiline text
7187         - Add carriage returns to lines. So we can preserve carriage
7188         returns when text is 'roundtripped'
7189
7190 2006-12-04  Chris Toshok  <toshok@ximian.com>
7191
7192         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
7193         minimum 0.  Fixes the scrollbar exception in bug #80136.
7194
7195 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7196
7197         * MdiClient.cs: 
7198         * MdiWindowManager: Removed unused fields and methods.
7199         
7200 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7201         
7202         * StatusBar.cs: Update all panels when a AutoSize=Contents
7203         panel needs updating.
7204         
7205         * StatusBarPanel.cs: Remove twidth and only use initialize.
7206         Fixes #80031.
7207                 
7208 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7209
7210         * Form.cs: When a form's MdiParent is set add it directly
7211         on top of the z-order in stead of relying on MdiClient's
7212         ActivateChild to do it. Fixes #80135.
7213         
7214         * MdiClient.cs: 
7215         - Remove original_order, mdi_child_list is already doing
7216         the same thing.
7217         - Create mdi_child_list on construction in
7218         stead of first use (avoids a few null checks).
7219
7220         * MenuItem.cs: Use an already existing list of mdi children
7221         to get the correct order of children and remove the other
7222         redundant list.
7223
7224 2006-12-04  Chris Toshok  <toshok@ximian.com>
7225
7226         * PropertyGridView.cs: cached_splitter_location is only used in
7227         !DOUBLEBUFFER code.
7228
7229         * PropertyGrid.cs: implement the ComComponentNameChanged event
7230         using Events, hoping that would fix the warning.  Looks like a
7231         compiler bug instead (#80144).
7232
7233         * PropertyManager.cs: remove unused method.
7234
7235 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
7236
7237         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
7238         include parentesis to fix expression evaluation. Fixes #79634.
7239
7240 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
7241         
7242         * MenuAPI.cs:
7243         - Changes to fix behavior in Menu control, some reported in #80097
7244         and other detected during behavior refactory like a select event
7245         problems.
7246         - Remove unneded "if's" conditions.
7247         - Created an internal to flag when popup is active in control, we need 
7248         it because in .NET you can have menu active but without popup active
7249         when you active menu using popup without visible items.
7250         - Mimic win32 behavior for Select and Popup events.  
7251         - Dont open popup menu when you dont have visible subitems.
7252         - Do nothing when click on disabled menu item.
7253         - Some small changes to follow the coding style guidelines.
7254         - Unselect menu only when another control gives focus. Fixes #80097.
7255         - Remove unused code.
7256         
7257         * MenuItem.cs: internal VisibleItems method to check if menu
7258         theres visible subitems, it will be usefull to fix some 
7259         behavior in Menu control.
7260         
7261 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
7262         
7263         * Timer.cs: Tag property for 2.0 profile.
7264         
7265 2006-12-01  Chris Toshok  <toshok@ximian.com>
7266
7267         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
7268         
7269         * Win32DnD.cs: comment out some unused fields.
7270
7271         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
7272         some unused properties/methods.
7273
7274         * XplatUIX11.cs: fix MousePosition so we override the base class's
7275         property instead of conflicting with it.
7276
7277         * PictureBox.cs: comment out some unused fields
7278
7279         * OSXStructs.cs: make some struct fields public.
7280
7281         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
7282         MousePosition so we override the base class's property instead of
7283         conflicting with it.
7284
7285         * X11Dnd.cs: comment out some unused fields
7286
7287         * X11DesktopColors.cs: fix some struct field visibility to quiet
7288         the compiler.
7289
7290         * X11Dnd.cs: remove some debug code.
7291
7292         * ThemeClearlooks.cs: comment out unused field.
7293
7294         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
7295
7296         * ThemeGtk.cs: comment out some unused pinvokes.
7297
7298         * Timer.cs: remove some unused fields.
7299
7300         * ThemeClearlooks.cs: comment out unused field.
7301
7302         * UpDownBase.cs: comment out unused field.
7303
7304         * DataObject.cs: comment out unused field.
7305
7306         * DataGridBoolColumn.cs: reomve unused field.
7307
7308         * DataGrid.cs: remove unused field.
7309
7310         * Cursor.cs: remove old ToBitmap code.
7311
7312         * ControlPaint.cs: remove unused method.
7313
7314         * ScrollBar.cs: remove unused fields.
7315
7316         * ComboBox.cs: remove unused field, and chain up to
7317         AccessibleObject ctor.
7318
7319         * ListBox.cs: remove unused field.
7320
7321         * ButtonBase.cs: wrap a couple fields in NET_2_0.
7322
7323         * GridEntry.cs: remove unused fields.
7324
7325         * Binding.cs: remove unused fields.
7326
7327         * AxHost.cs: remove unused method.
7328
7329         * ContainerControl.cs: remove unused field.
7330
7331         * ScrollableControl.cs: remove unused fields.
7332
7333 2006-12-01  Chris Toshok  <toshok@ximian.com>
7334
7335         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
7336         the Where/WhereString stuff.  it's easy enough to CWL
7337         Environment.StackTrace.
7338
7339         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
7340         unused private fields.
7341
7342 2006-12-01  Jackson Harper  <jackson@ximian.com>
7343
7344         * TextControl.cs: Do not update the view while inserting multiline
7345         text. If we update the view we might wrap lines, before entering
7346         the new lines, which causes the new line insertion calculations to
7347         be totally fubared.
7348         - Remove an old TODO
7349         - Make debug output a little nicer
7350         
7351 2006-12-01  Chris Toshok  <toshok@ximian.com>
7352
7353         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
7354
7355 2006-12-01  Chris Toshok  <toshok@ximian.com>
7356
7357         [ fix the majority of the CS0108 warnings we've been suppressing ]
7358         
7359         * TreeView.cs: mark BackgroundImageChanged as 'new'.
7360
7361         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
7362         to "LayoutToolBar" to quiet mcs.
7363         
7364         * TabControl.cs: mark our ControlCollection class as 'new'.
7365
7366         * TextBoxBase.cs: mark some events as 'new'.
7367
7368         * Splitter.cs: TabStop is 'new'.
7369
7370         * ControlBindingsCollection.cs: mark a few methods as new since
7371         they change the visibility from protected to public.
7372
7373         * RadioButton.cs: DoubleClick -> base class, and remove unused
7374         HaveDoubleClick.
7375
7376         * MonthCalendar.cs: ImeMode property -> base class, and mark many
7377         events as new.
7378
7379         * NumericUpDown.cs: TextChanged -> base class.
7380
7381         * CheckedListBox.cs: mark our ObjectCollection class as new to
7382         quiet mcs.
7383
7384         * FolderBrowserDialog.cs: make HelpRequest event new and have it
7385         muck with the base class.
7386
7387         * StatusBar.cs: fix some mcs warnings about Update being the same
7388         name as a base class method.
7389
7390         * RichTextBox.cs: mark some events as new, and make them do things
7391         to the base class impl.
7392
7393         * UserControl.cs: mark TextChanged as new, and have it manipulate
7394         base.TextChanged.
7395
7396         * UpDownBase.cs: mark some things new.
7397
7398         * CheckBox.cs: mark DoubleClick "new", and add some text about
7399         what we need to look at.
7400
7401         * Panel.cs: make the events "new", and manipulate the base
7402         version.  these are just here for attributes.
7403
7404         * AccessibleObject.cs: make owner private.
7405
7406         * Control.cs: deal with AccessibleObject.owner being private.
7407         cache our own copy if we need it.
7408
7409         * Button.cs: add "new" to the DoubleClickEvent.
7410
7411         * ListBox.cs: no need to track our own has_focus here.  let
7412         Control.has_focus do it for us.  Also some other work to clear up
7413         warnings about not overriding base class methods of the same name.
7414         
7415         * ComboBox.cs: clear up some warnings about not override base
7416         class methods of the same name.
7417
7418 2006-12-01  Chris Toshok  <toshok@ximian.com>
7419
7420         * Form.cs: flag a few things as "new" to quiet some of the mcs
7421         warnings.
7422
7423         * AxHost.cs: same.
7424
7425         * PrintPreviewDialog.cs: same.
7426
7427         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
7428         now DGV isn't so horrible on the class status page.  also, move
7429         all events to using System.ComponentModel.EventHandlerList.  my
7430         wrists hurt.
7431
7432 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7433
7434         * MdiWindowManager.cs:
7435         - Set form to active mdi child if shown,
7436         and update the active mdi child to the next 
7437         remaining child in the z-order if the form is hidden.
7438
7439         * Form.cs: 
7440         - Track if the form has been visible and if its 
7441         visibility is beeing changed, so that the MdiClient
7442         can properly decide the ActiveMdiChild. The MdiClient 
7443         cannot track this since the form can change visibility 
7444         before MdiClient is created.
7445
7446         * MdiClient.cs:
7447         - Don't activate anything of the parent form is changing
7448         its visibility.
7449         - Rework ActiveMdiChild to only return visible mdi 
7450         children and take into account several other corner 
7451         cases.
7452
7453 2006-12-01  Chris Toshok  <toshok@ximian.com>
7454
7455         * IBindableComponent.cs: new 2.0 interface.
7456
7457 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
7458
7459         * DataGrid.cs: Font for caption area is bold by default.
7460
7461 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
7462
7463         * Menu.cs: Tag property for 2.0.
7464         
7465 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
7466
7467         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
7468         
7469 2006-12-01  Chris Toshok  <toshok@ximian.com>
7470
7471         * TreeView.cs: doh, the Begin* events should be
7472         TreeViewCancelEventHandler.
7473
7474 2006-12-01  Chris Toshok  <toshok@ximian.com>
7475
7476         * Form.cs: Form.ControlCollection already stores off the
7477         form_owner field.  don't access the base class's internal "owner"
7478         field.
7479
7480         * Control.cs: make all the fields in Control.ControlCollection
7481         private.  there's no need for any internal fields here.
7482
7483 2006-12-01  Chris Toshok  <toshok@ximian.com>
7484
7485         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
7486         OnHandleCreated.  Fixes bug #80109.
7487
7488 2006-12-01  Chris Toshok  <toshok@ximian.com>
7489
7490         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
7491         SplitContainer.cs, Control.cs, StatusStrip.cs,
7492         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
7493         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
7494         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
7495         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
7496         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
7497         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
7498         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
7499         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
7500         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
7501         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
7502
7503         do most of the work to convert our code over to use
7504         System.ComponentModel.Component.Events for
7505         adding/removing/dispatching events.
7506
7507
7508 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
7509
7510         * DataGridView.cs: Fix an ArgumentNullException reported 
7511         twice today in IRC.
7512
7513 2006-11-30  Mike Kestner  <mkestner@novell.com>
7514
7515         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
7516         grabbed listbox.  Fixes #80036 and #80101.
7517
7518 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
7519
7520         * Message.cs: Changed ToString() to match MS.
7521         
7522 2006-11-30  Jackson Harper  <jackson@ximian.com>
7523
7524         * TextBoxBase.cs: You can still change the selected text on a read
7525         only textbox.
7526         * TextControl.cs: Lower magic number for wrap calculations. This
7527         lets text get closer to the right (far) edge.
7528
7529 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
7530
7531         * Control.cs: Tweak 2.0 layout properties.
7532         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
7533         * TextRenderer.cs: Add a new overload.
7534         * ToolStrip*: Huge amount of changes and new features.
7535
7536 2006-11-30  Mike Kestner  <mkestner@novell.com>
7537
7538         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
7539         scroll range correct.  Fixes #79994.
7540
7541 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
7542
7543         * MdiWindowManager.cs: Update main form's text when
7544         a form is closed. (fixes #80038)
7545         
7546 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
7547
7548         * ToolBar.cs:
7549         - Fix an regression in ButtonSize.
7550         - Get ImeMode default value change to "Disable".
7551         - Get ShowTooltips default value change to true, default value is 
7552         "false" but after make a test in .NET we get "true" result as default.
7553         
7554 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
7555
7556         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
7557
7558 2006-11-29  Chris Toshok  <toshok@ximian.com>
7559
7560         * XplatUIWin32.cs (GetWindowTransparency): check return value of
7561         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
7562         SetWindowTransparency hasn't been called.
7563
7564 2006-11-29  Chris Toshok  <toshok@ximian.com>
7565
7566         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
7567         if it's supported.
7568         (set_AllowTransparency): reorder things a little so that the
7569         WS_EX_LAYERED style is removed properly.
7570
7571 2006-11-29  Chris Toshok  <toshok@ximian.com>
7572
7573         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
7574         
7575         * Form.cs: only call the XplatUI transparency method (get/set) if
7576         SupportsTransparency says it's supported. Otherwise fallback to
7577         doing nothing (in the set case) or returning the instance field we
7578         cache (in the get case).
7579
7580         * XplatUIStructs.cs: add TransparencySupport flag enum.
7581         
7582         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
7583         change to SupportsTransparency.
7584
7585         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
7586         TransparencySupport.None from SupportsTransparency.
7587
7588         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
7589         TransparencySupport.Set from SupportsTransparency.
7590
7591         * XplatUIWin32.cs: implement GetWindowTransparency calling
7592         GetLayeredWindowAttributes, and implement SupportsTransparency by
7593         checking whether or not both
7594         GetWindowTransparency/SetWindowTransparency are available
7595         entrypoints.  We need to do this since SetWindowTransparency is
7596         available as of win2k, but GetWindowTransparency requires winxp.
7597         yay win32 api.
7598
7599         * XplatUI.cs: Add GetWindowTransparency, and change
7600         SupportsTransparency to allow for either/both Get/Set.
7601
7602 2006-11-29  Chris Toshok  <toshok@ximian.com>
7603
7604         * DataGrid.cs: keep from going into an infinite loop redrawing a
7605         datagrid that has no datasource.  Fixes bug #80033.
7606
7607 2006-11-29  Chris Toshok  <toshok@ximian.com>
7608
7609         * MenuItem.cs: fix the NRE when we assign text (and therefore call
7610         Invalidate) before the mainmenu has been assigned to a control.
7611
7612 2006-11-29  Chris Toshok  <toshok@ximian.com>
7613
7614         * DataGrid.cs: detect when we should be double the double click
7615         row/column autosize stuff, although that codepath has yet to be
7616         written.  part of the work for bug #79891.
7617
7618 2006-11-29  Chris Toshok  <toshok@ximian.com>
7619
7620         * Binding.cs (SetControl): fix unit test.
7621
7622 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7623
7624         * PageSetupDialog.cs: Validate the margins and set them in
7625         PageSettings. 
7626         * NumericTextBox.cs: New class to mimic the behavior of the
7627         textboxes used in the printing dialogs.
7628
7629 2006-11-29  Andreia Gaita  <avidigal@novell.com>
7630         
7631         * Form.cs: Revert previous change (remove call UpdateBounds
7632         from form constructor), because it messes with the handle creation
7633         order, and that one needs lots and lots of love.
7634         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
7635         for valid printer and throw InvalidPrinterException if document
7636         is set but printer not valid), adding a MonoTODO. Once 
7637         handle creation is done properly, we can put this back in.
7638
7639 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7640
7641         * MenuItem.cs: Create a invalidate method for menu item, to be
7642         calling from set text, it make text changes to imadiate update
7643         on screen. Fixes #80013. 
7644         
7645 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7646
7647         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
7648         fixes bug #80070 and some other problem on toolbar buttons
7649         layout.
7650
7651 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
7652
7653         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
7654         with dotted brush.      Fixes #79564
7655         
7656 2006-11-28  Andreia Gaita  <avidigal@novell.com>
7657
7658         * Form.cs: Removed call to UpdateBounds on Form
7659         constructor, it was causing a call to CreateHandle
7660         before it was supposed to.
7661         * PrintControllerWithStatusDialog: Applied patch
7662         by Chris Toshok to hide controller when there are
7663         no printers available.
7664         PrintDialog.cs: initialize printer settings to 
7665         null - correct DefaultValues test #5
7666         * PrintPreviewControl.cs: Move PrintController
7667         initialization to GeneratePreview
7668         * PrintPreviewDialog.cs: 
7669         - Remove Preview generation     from Document_set(). It is 
7670         called on OnPaint
7671         - Throw InvalidPrinterException on CreateHandle if
7672         a Document is set but there are no printers or 
7673         printer is not valid.
7674         * ThemeWin32Classic: don't paint PrintPreviewControl
7675         if there is nothing to paint    
7676
7677 2006-11-28  Miguel de Icaza  <miguel@novell.com>
7678
7679         * Form.cs: Add another popular method.
7680
7681         * TabPage.cs: ditto.
7682
7683 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7684
7685         * MenuItem.cs: Fixed a warning.
7686         * InternalWindowManager: Fixed a warning.
7687
7688 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7689
7690         * MenuItem.cs:
7691         - When cloning a menu also clone MdiList and clone the 
7692           window menu items properly (as the forms and menuitems
7693           are kept in an internal hashtable, these need updating 
7694           as well)
7695         - Rewrote the window menu code, menu items are added in the
7696           order the forms were added to their parent, and they are
7697           updated every time the window menu is shown (before the
7698           list was only generated once, in the current order of the
7699           forms, and would never be updated). A checkmark is shown
7700           next to the item corresponding to the active mdi child.
7701
7702 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7703
7704         * XplatUIStructs.cs: 
7705         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
7706         
7707         * XplatUIWin32.cs: 
7708         - Added TME_NONCLIENT to TMEFlags.
7709         - Handles WM_NCMOUSEMOVE in GetMessage to 
7710           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
7711
7712         * MdiWindowManager:
7713         - Now merges mdi child menu to parent menu when maximized.
7714         - Recalculate NC areas of both mdi child and mdi parent. 
7715           Fixes #79757 (4).
7716           on window state and size changes.Fixes #79844 (3).
7717         - Handle WM_NCCALCSIZE to properly calculate borders.
7718
7719         * Form.cs:
7720         - Add/remove to the mdi containers list of mdi children 
7721           in the order they are added.
7722         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
7723           to the maximized mdi child.
7724         
7725         * InternalWindowManager.cs:
7726         - Only execute a click on the control buttons on the mouse up,
7727           not on the mouse down. Show the state of the button 
7728           (was only showing Normal state, never Pressed state). The
7729           pressed button now follows the mouse (if you click the Close 
7730           button and move the mouse over the Maximize button, the 
7731           Maximize button will be shown as pressed). Since Win32 does
7732           not generate WM_NCLBUTTONUP if you release the button outside
7733           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
7734           it as a mouse up.
7735         
7736         * ThemeWin32Classic.cs:
7737         - Draw a missing border around mdi child forms. Fixes #79844 (2).
7738
7739         * MdiClient.cs:
7740         - Added a list of forms which contains the order the forms are
7741           added to the mdi parent.
7742         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
7743         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
7744         - If the active form changes set the scrollbars to the top
7745           of the Z order, otherwise the form could hide them.
7746         - Scrollbars are now sized according to ClientSize, not 
7747           to Size, and they take into account the other scrollbar
7748           to determine maximum.
7749         
7750 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
7751         
7752         * XplatUI.cs:
7753         * XplatUIDriver.cs:
7754         * XplatUIX11.cs:
7755         * XplatUIWin32.cs:
7756         * XplatUIOSX.cs:
7757         - Added RequestAdditionalWM_NCMessages for windows to 
7758           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
7759           Currently only implemented in XplatUIWin32.
7760
7761 2006-11-27  Chris Toshok  <toshok@ximian.com>
7762
7763         * Hwnd.cs: only add the hwnd to the windows hash in
7764         set_WholeWindow and set_ClientWindow if whole_window/client_window
7765         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
7766
7767 2006-11-27  Mike Kestner  <mkestner@novell.com>
7768
7769         * ComboBox.cs: remove redundant OnDropDown call.  It is called
7770         from the ComboListBox.ShowWindow code. Fixes #79969.
7771
7772 2006-11-27  Chris Toshok  <toshok@ximian.com>
7773
7774         * Hwnd.cs: remove the setters for ExposePending and
7775         NCExposePending - noone uses them.
7776
7777 2006-11-27  Jackson Harper  <jackson@ximian.com>
7778
7779         * TextControl.cs: new param for ReplaceSelection which determines
7780         whether we select the new selection, or set the cursor to the end
7781         of the new selection.
7782         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
7783         pasting, select the new text.
7784         * RichTextBox.cs: Use new param for ReplaceSelection.
7785
7786 2006-11-27  Jackson Harper  <jackson@ximian.com>
7787
7788         * TextBoxBase.cs: Set the selection to the caret after the caret
7789         is moved, otherwise they get out of sync.
7790
7791 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
7792
7793         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
7794         it fixes #80015
7795
7796 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
7797
7798         * ThemeWin32Classic.cs: 
7799         - Fix toolbar drop down arrow position.
7800         - Fix drop down appearance when ToolBar.Appearance is normal,
7801         it fixes #80018.
7802         
7803 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
7804
7805         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
7806         * Control.cs: Same.
7807         * UpDownBase.cs: Same.
7808         * ButtonBase.cs: Same.
7809         * ScrollBar.cs: Same.
7810         * TrackBar.cs: Same.
7811         * PictureBox.cs: Same.
7812         * UserControl.cs: Same.
7813         * Label.cs: Same.
7814         * ListControl.cs: Same.
7815         * TextBoxBase.cs: Same.
7816         * ListView.cs: Same.
7817         * RichTextBox.cs: Same.
7818         * TreeView.cs: Same.
7819
7820 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
7821
7822         * PrintDialog.cs:
7823         - Text label for where 
7824         - Text label comment was not shown
7825
7826 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
7827
7828         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
7829
7830 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7831
7832         * InternalWindowManager.cs: 
7833         - Handle WM_PARENTNOTIFY to activate the form
7834         if any child control is clicked.
7835         - The form is only sizable if not minimized.
7836
7837         * MdiWindowManager.cs:
7838         - Save the IconicBounds if the form is moved.
7839         - Rework SetWindowState, now the window bounds 
7840         are stored only if the old window state is Normal.
7841         
7842         * MdiClient.cs:
7843         - In SetWindowStates store the old window state if 
7844         the window is maximized and restore window state if
7845         the window looses focus.
7846         - Don't handle any scrollbar value changes if 
7847         initializing the scroll bars. Fixes #79771.
7848         - Reworked ArrangeIconicWindows. Current algorithm
7849         tests bounds agains all other minimized windows, if
7850         any intersections create new bounds (going left to 
7851         right, bottom to top) and then test again. When 
7852         successful the bounds are saved and never computed
7853         again. Fixes #79774.
7854
7855 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7856
7857         * InternalWindowManager.cs: Added HandleTitleBarUp.
7858
7859 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7860
7861         * NumericUpDown.cs: In .NET 1.1, user entered text is still
7862         hexadecimal in ParseUserEdit.
7863
7864         
7865 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
7866
7867         * MdiWindowManager.cs: 
7868         - Handle a click on the form's icon to show the 
7869         system menu (when maximized). Fixes #79775.
7870         - Change the existing click handler for the form's
7871         icon when not maximized to show on MouseUp.
7872         Fixes #79776.
7873
7874         * Form.cs: In OnResize only layout the mdi child's
7875         parent if it actually has a parent. Might not if
7876         the window is closing.
7877
7878
7879 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7880
7881         * MdiClient.cs: Ignore active MDI client for text of parent, if
7882         child has no text set.
7883
7884 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
7885
7886         * ToolBar.cs: Fixed ToString to match MS.
7887
7888 2006-11-22  Andreia Gaita  <avidigal@novell.com>
7889
7890         * NumericUpDown: 
7891         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
7892         update inner values on set. Fixes #79966.
7893         - Override OnLostFocus to update value on NET 2. Fixes #79950.
7894         - Fix hexadecimal parsing.
7895         
7896         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
7897         parent. Fixes #79957
7898
7899 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7900
7901         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
7902         the actual size has to be queried, since if height /
7903         width is negative Win32 changes it to 0. 
7904         Fixes #79999 on Windows.
7905         
7906         * XplatUIX11.cs: Set height / width to 0 if negative
7907         in SetWindowPos. Fixes #79999 on Linux.
7908         
7909 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
7910
7911         * ThemeWin32Classic.cs: Fix text redenring when button is
7912         pressed.
7913
7914 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
7915
7916         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
7917         and later navigate by mouse. Fixes #79528.
7918
7919 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
7920
7921         * ToolBar.cs: Set default value for TabStop to false in
7922         constructor, it fixes remaining behavior of bug #79863.
7923
7924 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7925
7926         * MdiWindowManager.cs:
7927         * InternalWindowManager.cs:
7928         - Moved a few methods specific to Mdi from 
7929         InternalWindowManager to MdiWindowManager.
7930         Fixes #79996.
7931         
7932 2006-11-21  Chris Toshok  <toshok@ximian.com>
7933
7934         * XplatUIOSX.cs: stub out InvalidateNC.
7935
7936         * XplatUIWin32.cs: implement InvalidateNC using the call I found
7937         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
7938
7939         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
7940
7941         * XplatUIDriver.cs: add InvalidateNC abstract method.
7942
7943         * XplatUI.cs: add InvalidateNC.
7944
7945 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
7946
7947         * ToolBar.cs: Invalidate complete button area when pressed status 
7948         was changed.
7949         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
7950         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
7951         by 1 when button is pressed.
7952
7953 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
7954
7955         * ToolButton.cs: Invalidate middle of DropDown button when
7956         ToolBar theres DropDownArrows.
7957         * ThemeWin32Classic.cs: Change position of DropDown arrow and
7958         fix DropDown drawing operations.
7959
7960 2006-11-20  Chris Toshok  <toshok@ximian.com>
7961
7962         * NativeWindow.cs: fix the formatting of functions ('{' on the
7963         following line), and enable the thread exception dialog.
7964
7965         * Application.cs: remove the duplicate exception catching from
7966         here.
7967
7968 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
7969
7970         * Toolbar.cs: Triggers button click event when click on icon
7971         of dropdown ToolBarButton. Fixes #79912.
7972         
7973 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7974
7975         * Theme.cs:
7976         * ThemeWin32Classic.cs:
7977         - Added a property WindowBorderFont to enable themeing
7978           of mdi child windows' Text.
7979           
7980 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
7981
7982         * InternalWindowManager.cs:
7983         * Form.cs:
7984         * MdiClient.cs:
7985         * MdiWindowManager.cs: 
7986         - If mdi child is maximized, set mdi parent's
7987           text to "Parent - [Child]". Fixes #79770.
7988         - If there is any maximized mdi child windows, only the active 
7989           window (and any new windows) is maximized, the rest are normal.
7990         - On a WindowState change only save mdi child's window bounds 
7991           if the old window state was normal. Fixes #79774.
7992         - The scroll bars are now calculated on hopefully all
7993           necessary events. Fixed #79771 / #79844->6 / #79906.
7994         - MdiClient.SizeScrollBars() now takes into account docked 
7995           controls in the parent when calculating available space.
7996         - InternalWindowManager now always repaints the entire title
7997           area. Fixes #79844->1/4/5.
7998         - Added RequestNCRecalc on mdi child windowstate changes.
7999           Fixes #79772.
8000
8001 2006-11-20  Mike Kestner  <mkestner@novell.com>
8002
8003         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
8004         in the MouseUp handler of the listbox and move the return handling
8005         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
8006
8007 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
8008
8009         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
8010
8011 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
8012
8013         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
8014           working in 1.2.x anymore. So, updated.
8015
8016 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
8017
8018         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
8019         NumberGroupSeparator of current culture instead of assuming en-US.
8020         Fixed bug #79967.
8021
8022 2006-11-17  Mike Kestner  <mkestner@novell.com>
8023
8024         * Control.cs: Add the concept of implicit bounds setting so that
8025         dock/undock round trips preserve explicitly set size/locations.
8026         Fixes #79313.
8027
8028 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
8029
8030         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
8031           can't handle those filters. (Fixes bug #79961)
8032
8033 2006-11-17  Chris Toshok  <toshok@ximian.com>
8034
8035         [ fixes the exit/crashes associated with #79835.  it's clearly
8036         suboptimal though, we need to figure out a better way to solve
8037         this. ]
8038         
8039         * PrintPreviewControl.cs: deal with the new invalid printer
8040         exceptions.
8041
8042         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
8043         and return false (so CommonDialog.ShowDialog doesn't actually show
8044         the form.)
8045
8046         * PrintDialog.cs: enable/disable the Ok button depending on
8047         whether or not the printer is valid.
8048
8049         * CommonDialog.cs (ShowDialog): only actually show the form if
8050         RunDialog returns true.
8051
8052 2006-11-17  Jackson Harper  <jackson@ximian.com>
8053
8054         * TextControl.cs: When soft splitting a line, mark it as a soft
8055         split line. Also carry over the current line break to the next
8056         line.
8057
8058 2006-11-17  Chris Toshok  <toshok@ximian.com>
8059
8060         * XplatUIX11.cs: when scrolling a window with an invalid area, we
8061         only want to shift the part of the invalid area that overlaps the
8062         area we're scrolling.  we also don't want to clear the invalid
8063         area unless the invalid area was entirely contained within the
8064         scrolling area.
8065
8066 2006-11-16  Chris Toshok  <toshok@ximian.com>
8067
8068         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
8069         also make sure to free the memory returned by XGetWindowProperty
8070         in GetText().
8071
8072         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
8073
8074 2006-11-16  Chris Toshok  <toshok@ximian.com>
8075
8076         * XplatUI.cs: add a new super secret way to get at the totally
8077         unsupported X11 backend.
8078
8079 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
8080
8081         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
8082
8083 2006-11-16  Jackson Harper  <jackson@ximian.com>
8084
8085         * TreeView.cs: Allow more explicit setting of top node position
8086         for scrollbars. Slower algo, but more accurate.
8087         - CollapseAll should maintain the current top node.
8088         * TextBoxBase.cs: When positioning the caret, use the line, pos
8089         method, since the x, y method does not grab the correct tag, and
8090         the caret height never gets set correctly. (Maybe I should just do
8091         away with the caret having its own height, and always use the
8092         carets current tag for height).
8093
8094 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
8095
8096         [Fixes 79778, 79923]
8097
8098         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
8099         Parent to the FosterParent instead.
8100
8101 2006-11-16  Jackson Harper  <jackson@ximian.com>
8102
8103         * TreeView.cs: Need to recalc the topnode when we expand or
8104         collapse. The scrolling methods can't handle this on their own,
8105         since they use differences between the last scroll position, and
8106         those difference get completely messed up since we are expanding
8107         nodes.  This problem should probably be fixed in the scrolling
8108         methods, so they can figure out exactly where they are, but this
8109         will slow things down a little.
8110         * ThemeWin32Classic.cs: Special case for groupboxes with empty
8111         strings, makes nunit-gui look a lot nicer.
8112
8113 2006-11-16  Chris Toshok  <toshok@ximian.com>
8114
8115         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
8116         the broken multithreaded event handling we have in here.  File
8117         this entry under "Why we should move to the new X11 backend".
8118
8119         Any thread can make it into UpdateMessageQueue, which gets events
8120         from the X socket - some of which could belong to hwnds being
8121         managed by a different thread.  We can also have multiple threads
8122         in UpdateMessageQueue at the same time, with each one reading from
8123         the X socket.  This leads to many problems, with the following
8124         solutions:
8125
8126         We can't use hwnd.Queue.Enqueue anywhere in here and must use
8127         EnqueueLocked.
8128
8129         The MotionNotify compression we do can't work across threads
8130         (without locking the entire queue, perhaps) since we call
8131         hwnd.Queue.Peek, so we just punt and don't compress motion events
8132         unless the owning thread is the one which got the X event.
8133
8134         ConfigureNotify is another fun one, since it modifies the hwnd's
8135         bounds and then enqueues the event.  We add a lock to Hwnd which
8136         is held when setting configure_pending to true (and enqueuing the
8137         event).
8138
8139         There is a race wrt the wake socket.  we need to make sure that
8140         only 1 thread is waiting on that socket, or else a thread could
8141         sleep waiting for data that never comes.  It's difficult (but not
8142         impossible) to make happen, because it seems to require something
8143         like the following:
8144
8145             1. Thread 1 polls on wake_receive
8146         
8147             2. poll returns saying there's data to be read on
8148                wake_receive.
8149         
8150             3. Thread 2 polls on wake_receive and immediately returns
8151                saying there's data to be read.
8152
8153             4. Thread 2 reads the wakeup byte from wake_receive
8154
8155             5. Thread 1 attempts to read the wakeup byte from
8156                wake_receive.
8157
8158             6. Thread 2 exits (due to a form closing, perhaps).
8159
8160             7. Thread 1 blocks forever.
8161         
8162         Fun, eh?
8163
8164         Fixing the Expose handling isn't done yet, and the races inherent
8165         in that piece of code are responsible for the drawing mistakes you
8166         see when generating expose events in a MT app (like NPlot).  This
8167         one is the likely to be the hardest to bandaid, and it doesn't
8168         appear to cause anything but drawing problems.  The other issues
8169         caused apps to exit or hang.
8170
8171         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
8172         called from a different thread than the one that should be calling
8173         these functions.
8174
8175         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
8176
8177 2006-11-15  Chris Toshok  <toshok@ximian.com>
8178
8179         * Application.cs: null out the context's MainForm when we exit
8180         RunLoop.  Fixes a newly checked in unit test as well as the last
8181         ODE from bug #79933.
8182
8183 2006-11-15  Chris Toshok  <toshok@ximian.com>
8184
8185         * Form.cs (set_Owner): allow a null value so we can clear the
8186         form's owner.
8187         (Dispose): set all our owned_form's Owner properties to null, and
8188         clear the owned_forms collection.
8189         (WM_CLOSE): clean up this a little bit.. still not right though.
8190
8191         * ApplicationContext.cs: OnMainFormClosed should only call
8192         ExitThreadCore if the main form isn't recreating.  Fixes unit
8193         test.
8194
8195 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
8196
8197         [Fixes 78346]
8198
8199         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
8200
8201 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
8202
8203         [Fixes 79433]
8204
8205         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
8206         keep popup window types from stealing focus from the main form
8207         on Windows.
8208
8209         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
8210
8211         * MenuAPI.cs: Set above flag to true.
8212
8213 2006-11-15  Chris Toshok  <toshok@ximian.com>
8214
8215         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
8216         the button being released is not in wParam.
8217
8218 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
8219
8220         * Form.cs: Add the released button to MouseEventArgs.Button
8221         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
8222         on Win32.
8223
8224 2006-11-15  Chris Toshok  <toshok@ximian.com>
8225
8226         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
8227         GetText().  untested because it's unused in our implementation.
8228         Control.Text always caches the text, even if
8229         ControlStyles.CacheText is not set.
8230
8231         fixes bug #79939.
8232
8233 2006-11-15  Chris Toshok  <toshok@ximian.com>
8234
8235         [ fixes #79933 ]
8236         
8237         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
8238         message.  no hiding, no disposing.
8239
8240         in the WM_CLOSE handler, hide the form if it's modal.
8241
8242 2006-11-15  Chris Toshok  <toshok@ximian.com>
8243
8244         * XplatUIX11.cs: use AddExpose instead of sending a message.
8245         fixes textbox border drawing.
8246
8247 2006-11-15  Chris Toshok  <toshok@ximian.com>
8248
8249         * PropertyGridView.cs: keep from crashing on mouse move/down when
8250         the property grid is empty.
8251
8252 2006-11-14  Jackson Harper  <jackson@ximian.com>
8253
8254         * TextControl.cs: Make PageUp and PageDown more like the MS
8255         versions.
8256         * TextBoxBase.cs: When we set the text property position the
8257         cursor at the beginning of the document.
8258
8259 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8260
8261         * Form.cs: if a mdi child's WindowState has changed
8262         before it's creation, it would display wrong control
8263         buttons.
8264         
8265 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
8266
8267         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
8268           (Fixes bug #79927)
8269
8270 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8271
8272         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
8273         the window gets to paint its borders even if the window is
8274         getting smaller.
8275         
8276         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
8277         otherwise the old control buttons would still be painted 
8278         if the window gets bigger.
8279         
8280         * PaintEventArgs.cs: add an internal method so that the clip 
8281         rectangle can be changed.
8282         
8283 2006-11-13  Chris Toshok  <toshok@ximian.com>
8284
8285         [ fixes bug #79745 ]
8286         
8287         * NotifyIcon.cs: lots of cleanup.
8288
8289         * X11Structs.cs: add an enum for XEMBED messages.
8290
8291         * XplatUIX11.cs: reindent one of the giant switch statements, it
8292         was taking up an additional tab stop, and this file is already way
8293         too wide for my laptop's screen.
8294
8295         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
8296         we get it, resize the hwnd to the WMNormalHints max_width/height.
8297
8298 2006-11-13  Jackson Harper  <jackson@ximian.com>
8299
8300         * TextBoxBase.cs: Compute the value changes for the mouse wheel
8301         teh simple way.
8302
8303 2006-11-13  Chris Toshok  <toshok@ximian.com>
8304
8305         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
8306         #79898.  force a reference to the Region to stick around so the
8307         unmanaged object isn't collected (rendering our handle in the MSG
8308         stale).
8309
8310 2006-11-13  Chris Toshok  <toshok@ximian.com>
8311
8312         * XplatUIX11.cs: fix #79917 for window managers which support
8313
8314         using XStoreName on the raw utf8, and we need to convert to
8315         COMPOUND_TEXT if it's non-latin1.
8316
8317 2006-11-13  Chris Toshok  <toshok@ximian.com>
8318
8319         * Form.cs (set_DialogResult): we need to set closing to false if
8320         we're setting our result to None.  fixes bug #79908.
8321
8322 2006-11-13  Jackson Harper  <jackson@ximian.com>
8323
8324         * TextControl.cs: When formatting text, compute the adjusted tag
8325         lengths correctly, using FindTag for the end tag instead of trying
8326         to figure it out outselves.
8327         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
8328         the item, ItemHeight doesn't work, because trees with large
8329         imagelists use those for their height
8330         * TreeView.cs: ActualItemHeight factors in the image height
8331         - compute left edge of checkboxes correctly
8332         - when expanding/collapsing move the bottom down one pixel, so we
8333         aren't moving part of the node
8334
8335 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8336
8337         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
8338         stack in PaintEventStart so that it won't get disposed by the gc
8339         before reaching PaintEventEnd.
8340
8341 2006-11-13  Jackson Harper  <jackson@ximian.com>
8342
8343         * TextBoxBase.cs: Don't select the word if we are on a line with
8344         no text.
8345         - We don't need to position the caret on mouse up, since the mouse
8346         move handler should be doing this
8347         - When double clicking a blank line, the caret is advanced to the
8348         next line.
8349
8350 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
8351
8352         * TreeNodeCollection.cs: Avoid duplicating indexer code.
8353
8354 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
8355
8356         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
8357         Fixes part of bug #79910.
8358
8359 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
8360
8361         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
8362           (bug #79903). Some minor string updates to match ms.
8363
8364 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8365
8366         * FileDialog.cs: Don't add an extension if the filename
8367           already ends with that extension.
8368
8369 2006-11-10  Jackson Harper  <jackson@ximian.com>
8370
8371         * TreeView.cs: Use the currently highlighted node for the
8372         BeforeSelect event.
8373         * TextBoxBase.cs: There is no need to expand selection on
8374         MouseMove.
8375         - CanUndo means 'is there any undo operations', not 'is undo
8376         allowed on this textcontrol. Fixed ClearUndo unit test.
8377
8378 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
8379
8380         * Button.cs: only perform click when button is Selectable (so as 
8381         not to activate default buttons when they're disabled)
8382         
8383         * Control.cs: Rewrite of the SelectNextControl and related 
8384         methods. HandleClick now selects next control if the current one
8385         is being disabled.
8386         
8387         * Form.cs: OnActivated selects next active control only if Load 
8388         has already occurred. If Load hasn't run, there's no point in 
8389         selecting here, Load might change the state of controls.
8390         
8391         * FocusTest.cs: Tests marked as working again for these fixes
8392
8393 2006-11-10  Chris Toshok  <toshok@ximian.com>
8394
8395         * XplatUIX11.cs: a couple of fixes.
8396
8397         - use XInternAtoms with almost all the atoms we need to register,
8398         instead of many, many calls to XInternAtom.  should help a bit on
8399         startup time, at the expense of making the code look a little
8400         worse.
8401
8402         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
8403         isn't reparented (which seems to be a clue that we're running fon
8404         compiz) and they have an Owner form.  This fixes the tool windows
8405         in paint.net when running under compiz.
8406
8407         - when setting the opacity of a window, support both the case
8408         where the window has been reparented and also when it hasn't been.
8409         Since compiz/beryl doesn't seem to reparent windows, and these are
8410         the only window managers which support translucency, I'm not sure
8411         why we need the hwnd.reparented case at all.. but leave it in.
8412         now we get translucent windows in paint.net under compiz/beryl.
8413
8414 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8415
8416         * FileDialog.cs: Always return the value for FilterIndex that
8417           was set. Internally convert it to values that make sense.
8418
8419 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
8420         
8421         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
8422
8423 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
8424
8425         * Toolbar.cs: Change default value of DropDownArrows to true, the 
8426         signature still using false to make it compatible with MS but the 
8427         initial value is true. Fixes #79855.
8428
8429 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
8430
8431         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
8432           only available on Linux.
8433
8434 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
8435
8436         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
8437         reduce number of calls to redraw method during toolbar creation.
8438
8439 2006-11-09  Mike Kestner  <mkestner@novell.com>
8440
8441         * ListView.cs : raise SelectedIndexChanged when an item is selected
8442         programmatically via the Item.Selected property.  Gert's nice 
8443         ListViewSelectedIndexChanged test fixture now runs clean.
8444
8445 2006-11-09  Mike Kestner  <mkestner@novell.com>
8446
8447         * ListView.cs : raise SelectedIndexChanged when a selected item is
8448         removed from the item collection using Remove or RemoveAt.
8449
8450 2006-11-09  Mike Kestner  <mkestner@novell.com>
8451
8452         * ListView.cs : raise SelectedIndexChanged once per selected item
8453         for compat with MS.  Fixes #79849+.
8454
8455 2006-11-09  Chris Toshok  <toshok@ximian.com>
8456
8457         * TabControl.cs: initialize row_count to 0, and set it to 1 when
8458         we need to (if we have any tab pages).  Fixes unit test.
8459
8460 2006-11-09  Chris Toshok  <toshok@ximian.com>
8461
8462         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
8463         width is 0, not 3.  Fixes a unit test.
8464
8465 2006-11-09  Mike Kestner  <mkestner@novell.com>
8466
8467         * ListView.cs : use Implicit scrollbars so that focus isn't 
8468         stolen from the listview when they are clicked. Fixes #79850.
8469
8470 2006-11-09  Chris Toshok  <toshok@ximian.com>
8471
8472         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
8473         have a root item.  Fixes #79879.
8474
8475 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
8476
8477         * FileDialog.cs:
8478           - Fix ToString ()
8479           - An ArgumentException is now thrown if a wrong filter
8480             is applied (matches ms). The previous filter doesn't change
8481             anymore if an exception is thrown.
8482           - Changing the FileName property also affects FileNames
8483         * ColorDialog.cs: The length of the CustomColors array is always
8484           16. It doesn't matter if we use a smaller array or null to update
8485           or change the custom colors property.
8486         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
8487           for RootFolder if we get a undefined value.
8488
8489 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8490
8491         * StatusBarPanel.cs: 
8492         - Width is set to MinWidth if Width is smaller than
8493         MinWidth. Fixes #79842.
8494         - MinWidth now always overrides Width (MSDN says MinWidth
8495         is set to Width when AutoSize = None, but they do not 
8496         behave like that).
8497         - Style has now the the correct default value.
8498         
8499 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8500  
8501         * TrackBar.cs: 
8502         - The control is completely invalidated on 
8503         Got/LostFocus to draw the focus rectangle correctly.
8504         - When AutoSize then height is always 45 (width for 
8505         vertical controls).
8506         
8507         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
8508         on the mouse when moved and it doesn't move when grabbed
8509         until the mouse moves as well. Also fixed some wrong 
8510         calculations when clicking on the thumb (control thought
8511         click was outside of thumb and didn't grab it).
8512         Fixes some of the issues in #79718.
8513
8514 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
8515
8516         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
8517
8518 2006-11-08  Chris Toshok  <toshok@ximian.com>
8519
8520         * PropertyGridView.cs: only call ToggleValue if the item is not
8521         readonly.
8522
8523 2006-11-08  Jackson Harper  <jackson@ximian.com>
8524
8525         * TextBoxBase.cs: The RichTextBox and textbox have very different
8526         word selection methods.  Implement the textbox's simple word
8527         selection here, and let the RichTextBox override and provide it's
8528         own.
8529         - Don't do extra selection on mouseup
8530         * RichTextBox.cs: Use the documents word selection algorithm, I
8531         think ideally, this function will be pulled into the
8532         RichTextBox.cs code someday.
8533
8534 2006-11-08  Chris Toshok  <toshok@ximian.com>
8535
8536         * RootGridEntry.cs: new class to represent GridItemType.Root.
8537
8538         * CategoryGridEntry.cs: reformat, and add boilerplate.
8539         
8540         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
8541         returns the UI parent anyway, and we need special handling to
8542         implement the GetTarget method in the face of it.  Also, implement
8543         Select().
8544
8545         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
8546         a root grid item, and use that instead of PropertyGrid.grid_items.
8547         Also, make use of TypeConverters (and add limitted support for
8548         ICustomTypeDescriptors) when initially populating the grid.
8549         Arrays now show up more or less properly.
8550
8551 2006-11-08  Chris Toshok  <toshok@ximian.com>
8552
8553         * Application.cs: set the modal dialog to non modal after we close
8554         it.  Fixes bug #79866.
8555
8556 2006-11-08  Jackson Harper  <jackson@ximian.com>
8557
8558         * TextControl.cs: When combining lines carry over the line end
8559         style from the end line.
8560         - Invalidate the selected area when setting it, if it is visible.
8561         * TextBoxBase.cs: Only rich text box can do full line selects.
8562         - Make sure to set the cursor position when there is a click,
8563         otherwise two clicks in separate areas could cause a large chunk
8564         to be selected.
8565
8566 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8567
8568         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
8569         Fixes #79863.
8570
8571 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8572
8573         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
8574         time. Remove tooltips when ToolButton click events.  Fixes #79856.
8575
8576 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8577
8578         * MenuAPI.cs: Ignore right click for menu actions and fixes
8579         menu border when clicked.  Fixes #79846.
8580
8581 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8582
8583         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
8584         MouseState after create wParam for message, this fixes mouse button 
8585         equal none in mouse up events.
8586         
8587 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
8588
8589         * Control.cs : Focus() now calls Select to set the Container's
8590         Active Control and to give it focus. To avoid infinite recursion
8591         (because ActiveControl also calls Focus at one point), a check 
8592         is made in Focus with the help of a new internal variable
8593         is_focusing.
8594
8595 2006-11-07  Mike Kestner  <mkestner@novell.com>
8596
8597         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
8598         if there's a selection.  Fixes #79849.
8599
8600 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
8601
8602         * PropertyGrid.cs: Avoid fixed height of help description label.
8603         Fixes part of bug #79829.
8604
8605 2006-11-07  Chris Toshok  <toshok@ximian.com>
8606
8607         * XplatUIX11.cs: fix #79790 again, by using the
8608         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
8609
8610 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8611
8612         * ToolBar.cs: Fix left click checking.
8613
8614 2006-11-07  Chris Toshok  <toshok@ximian.com>
8615
8616         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
8617
8618 2006-11-07  Chris Toshok  <toshok@ximian.com>
8619
8620         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
8621         PropertyManager unit tests.
8622
8623         * PropertyManager.cs: make property_name internal.
8624
8625 2006-11-07  Chris Toshok  <toshok@ximian.com>
8626
8627         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
8628         pass a unit test.  Also, don't set image_index to anything in
8629         response to setting the ImageList property.
8630
8631 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
8632
8633         * ToolBar.cs: Ignore click events when mouse button is not a
8634         left button, only accepts other button for dropdown menus.  
8635         Fixes #79854.
8636
8637 2006-11-07  Chris Toshok  <toshok@ximian.com>
8638
8639         * DataGrid.cs: make the back and parent row buttons a little less
8640         ugly.
8641
8642 2006-11-07  Jackson Harper  <jackson@ximian.com>
8643
8644         * TextBoxBase.cs: When converting to Text don't put line breaks in
8645         for soft line breaks.
8646         * TextControl.cs: There is an initial "fake" line in the document,
8647         this is now a soft break line, so that an extra line feed doesn't
8648         get added to the end of documents.
8649
8650 2006-11-07  Chris Toshok  <toshok@ximian.com>
8651
8652         [ fix bug #79778 ]
8653         
8654         * CurrencyManager.cs: if the list is readonly, don't bother
8655         checking if IBindingList.AllowNew is true.
8656
8657         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
8658         for non-DataRowView datasources..  or rather, make it not crash.
8659         (DataGridPaintRelationRow): make sure we limit the row painting to
8660         the area not covered by the row header, and make our cell width at
8661         least large enough to cover the relation area.  This allows grids
8662         that have relations but no rows to render correctly.
8663         (DataGridPaintRowContents): same type of changes here.
8664         (SetDataSource): move back to always calling
8665         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
8666         navigating back through relations.
8667         (HitTest): handle the case where we have no cells but have
8668         relations.  Right now we generate a hit in cell 0 of whatever the
8669         row is, not sure if this is strictly correct, but it works for our
8670         purposes.
8671         
8672         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
8673         bother doing anything.
8674
8675 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
8676
8677         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
8678         early version of StatusStrip.  Not responsible for eaten
8679         application or firstborn children.
8680
8681 2006-11-06  Chris Toshok  <toshok@ximian.com>
8682
8683         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
8684         call GetTabRect with a -1 index.  Fixes #79847.
8685
8686 2006-11-06  Jackson Harper  <jackson@ximian.com>
8687
8688         * TreeNodeCollection.cs: Update scrollbars after clearing.
8689
8690 2006-11-06  Chris Toshok  <toshok@ximian.com>
8691
8692         * NumericUpDown.cs: fix the ToString method for some unit test
8693         love.
8694
8695 2006-11-06  Chris Toshok  <toshok@ximian.com>
8696
8697         * PropertyGrid.cs:
8698         - set the initial SelectedGridItem if we can.
8699
8700         - Exclude non-mergable properties only if we're merging > 1
8701         object.  Merging 1 object isn't really merging, obviously.
8702
8703         - Handle PropertySort.NoSort just like Alphabetical, which is
8704         wrong of course, but at least gets things on the screen.
8705         
8706         * PropertyGridView.cs:
8707         - Add method "FindFirstItem" which finds the first property grid
8708         item, so we can select it by default.
8709
8710         - make use of GridEntry.CanResetValue.
8711
8712         - Don't call RedrawBelowItemOnExpansion here anymore, the
8713         individual GridEntry's will do that.
8714
8715         - Remove the ITypeDescriptorContextImpl internal class.
8716         
8717         * GridEntry.cs:
8718         - this class needs to implement ITypeDescriptorContext, as it's
8719         what MS's PropertyDescriptorGridEntry does, which means we can
8720         remove the ITypeDescriptorContextImpl internal class from
8721         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
8722
8723         - keep a reference to our PropertyGridView, and move the call to
8724         RedrawBelowItemOnExpansion here from PGV.  This means
8725         programmaticly setting Expanded actually does something visible.
8726
8727         - add a CanResetValue() function which takes into account our
8728         possibly multiple "selected_objects" in the merged case.  Shifting
8729         PropertyGridView to use this method fixes another unreported
8730         crasher found running the test for #79829.
8731
8732         - when Top or Bounds is updated, make sure the PropertyGridTextBox
8733         is updated to reflect this.
8734
8735         * CategoryGridEntry.cs: the ctor takes the PGV now.
8736         
8737 2006-11-06  Jackson Harper  <jackson@ximian.com>
8738
8739         * TextControl.cs: These are 1 based.
8740         * TextBoxBase.cs: When setting the selected text, don't change the
8741         selected text tags, this is done by ReplaceText, just position the
8742         cursor at the end of the new text.
8743
8744 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
8745
8746         * ListView.cs: Allow label edit only when, when LabelEdit is
8747           set to true.
8748
8749 2006-11-06  Jackson Harper  <jackson@ximian.com>
8750
8751         * TextControl.cs: If a suitable wrapping position isn't found,
8752         just wrap right in the middle of a word.
8753
8754 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
8755
8756         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
8757           bug #79820.
8758
8759 2006-11-06  Jackson Harper  <jackson@ximian.com>
8760
8761         * TreeView.cs: Can't use the VisibleCount property when setting
8762         scrollbar heights, because this doesn't take into account whether
8763         or not the horz scrollbar just came visible.
8764
8765 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
8766
8767         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
8768         activated.  Fixes #79369, #79832.
8769
8770 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
8771
8772         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
8773           had to remove support for links that point to a directory. FileInfo
8774           returns no usefull information (means, the directory they point to)
8775           for such links. Replaced some empty string ("") with String.Empty.
8776
8777 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8778
8779         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
8780         NullReferenceException when attempting to remove node that is not in
8781         collection. Throw NullReferenceException when null is passed to 
8782         Remove. Allow first element of the collection to be removed. Fixes
8783         bug #79831.  In GetEnumerator ().Current return null if positioned 
8784         before the first element of the collection. In GetEnumerator ().Reset,
8785         position before first element of the collection.
8786
8787 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
8788
8789         * PropertyGrid.cs: To match MS, remove default title and description
8790         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
8791         buttons.
8792
8793 2006-11-04  Chris Toshok  <toshok@ximian.com>
8794
8795         * Theme.cs: add a Clamp method, just for kicks.
8796
8797         * ThemeWin32Classic.cs: clamp all color components to [0..255].
8798
8799 2006-11-04  Chris Toshok  <toshok@ximian.com>
8800
8801         * Form.cs: if the form isn't visible, Close() does nothing.
8802
8803 2006-11-03  Chris Toshok  <toshok@ximian.com>
8804
8805         * Form.cs (Close): if the form is modal, don't Dispose of it, only
8806         Hide it.
8807         (WndProc): don't Dispose after handling the WM_CLOSE message.
8808
8809         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
8810         them as such, instead of using casts from Control to Form.  Also,
8811         don't Dispose of the modal dialog when we fall out of the loop -
8812         Close() it instead.
8813
8814         fixes bug #79813.
8815
8816 2006-11-03  Chris Toshok  <toshok@ximian.com>
8817
8818         * Control.cs (Dispose): only go through the dispose thing if we're
8819         @disposing, and we haven't already been disposed.  Fixes bug
8820         #79814.
8821
8822         * Form.cs: no reason to call "base.Dispose()" here instead of
8823         "Dispose()".
8824
8825 2006-11-03  Mike Kestner  <mkestner@novell.com>
8826
8827         * ComboBox.cs : use ToString instead of casts in AddItem for
8828         sorting functionality.  Fixes #79812.
8829
8830 2006-11-03  Chris Toshok  <toshok@ximian.com>
8831
8832         * Application.cs: pave the way for actually using the thread
8833         exception dialog.  it's ifdefed out at the moment.
8834
8835 2006-11-03  Chris Toshok  <toshok@ximian.com>
8836
8837         * ThreadExceptionDialog.cs: until we get a better layout, actually
8838         hide the details textbox and label when we shouldn't see them.
8839
8840 2006-11-03  Jackson Harper  <jackson@ximian.com>
8841
8842         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
8843         multiline textboxes anymore.  This method also determines the
8844         width/height of a textboxes canvas area.
8845         - Sorta a revert of the last patch.  For multiline just position
8846         the controls, then bail.  This way the scrollbar width won't be
8847         altered.
8848
8849 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
8850
8851         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
8852         it dont need.  Fixes #79537.
8853
8854 2006-11-02  Jackson Harper  <jackson@ximian.com>
8855
8856         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
8857         send the status after firing the DndOver event.
8858
8859 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8860
8861         * TrackBar.cs: Now orientation only switches height / width if
8862         the control's handle is created (Win32 does it like this). Also 
8863         fixed a typo in ToString() for a test to pass, changed the 
8864         exception thrown in set_LargeChange and set_SmallChange to 
8865         match Win32 behaviour, and added TrackBar tests to the unit 
8866         tests.
8867
8868 2006-11-02  Chris Toshok  <toshok@ximian.com>
8869
8870         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
8871         not _NET_WM_STATE_NO_TASKBAR.
8872
8873 2006-11-02  Jackson Harper  <jackson@ximian.com>
8874
8875         * TextControl.cs: Increment count by one, since in the update view
8876         count - 1 is used.
8877
8878 2006-11-02  Jackson Harper  <jackson@ximian.com>
8879
8880         * TextBoxBase.cs: Use client rectangle not bounds for checking if
8881         the mouse is in the client rectangle (duh).
8882
8883 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
8884         
8885         * TrackBar.cs: Fixed trackbar jumping around when clicking
8886         on it - the trackbar was not detecting correctly at which
8887         side of the thumb the click was done. (fixes #79718)
8888
8889 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
8890
8891         * ListBox.cs: scroll visible area when change SelectedIndex to
8892         a non visible area.  Fixes #79481.
8893
8894 2006-11-01  Jackson Harper  <jackson@ximian.com>
8895
8896         * TextControl.cs: When replacing the selection move the selection
8897         start/end/anchor to the end of the new text.
8898
8899 2006-11-01  Jackson Harper  <jackson@ximian.com>
8900
8901         * XplatUIWin32.cs: When setting the parent change the controls
8902         visibility to it's visibility flag, not to it's old parents
8903         visibility (.Visible walks the parent chain).
8904
8905 2006-11-01  Chris Toshok  <toshok@ximian.com>
8906
8907         * XplatUIX11.cs: revert the #79790 fix, as the simple.
8908         XSetTransientForHint fix breaks paint .net's tool windows.  more
8909         work needed for that one.
8910
8911 2006-11-01  Chris Toshok  <toshok@ximian.com>
8912
8913         * ScrollBar.cs: throw ArgumentException instead of Exception in
8914         LargeChange/SmallChange setters.  fixes unit tests.
8915
8916 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
8917
8918         * ContainerControl.cs: reverted rev.67183 (which was itself
8919         a reversion of rev.66853... eh).
8920         
8921         * Control.cs: Fixes Reflector hang by changing Focus() call
8922         to what it was before rev.66643 (calling Select() here sets 
8923         ActiveControl, which in some situations calls back Focus and 
8924         eventually does a stack overflow). Temp fix.    
8925         Changes to GetNextControl() to not look for children to select when
8926         parent cannot be selectable (so it looks for siblings instead)  
8927         
8928 2006-10-31  Mike Kestner  <mkestner@novell.com>
8929
8930         * CheckedListBox.cs : off by one error in returned index from
8931         ObjectCollection.Add.  Fixes #79758.
8932
8933 2006-10-31  Chris Toshok  <toshok@ximian.com>
8934
8935         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
8936         calls for the textbox/spinner, to keep from recursing to the point
8937         where we crash.  Fixes #79760.
8938
8939 2006-10-31  Chris Toshok  <toshok@ximian.com>
8940
8941         * ListControl.cs (set_SelectedValue): don't throw exceptions on
8942         null/"" value, just return.  matches ms's behavior and fixes some
8943         failing tests.
8944
8945 2006-10-31  Chris Toshok  <toshok@ximian.com>
8946
8947         * Control.cs (set_Capture): make a logic a little easier to
8948         follow.
8949
8950         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
8951         if it's being destroyed.  A necessary fix surely, but a bandaid
8952         also, to fix the stuck capture problem in bug #78413.
8953
8954 2006-10-31  Chris Toshok  <toshok@ximian.com>
8955
8956         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
8957         convention of clearing hwnd.ClientRect when we set the
8958         width/height (so it'll be recalculated by Hwnd).
8959
8960 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
8961
8962         * ContainerControl.cs: reversed Contains check from
8963         ActiveControl due to hanging problems. This fix
8964         partly regresses #79667 (button does not have
8965         initial focus), so this might be a symptom for 
8966         a larger parenting problem (set_ActiveControl
8967         is being called but the child control does
8968         not have the parent set yet?)   
8969         
8970 2006-10-31  Mike Kestner  <mkestner@novell.com>
8971
8972         * MenuAPI.cs : fix keynav when menu is click activated.
8973
8974 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
8975
8976         * ToolStrip*: Version 0.2.
8977
8978         * MenuStrip.cs: Version 0.1.
8979
8980         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
8981
8982 2006-10-30  Chris Toshok  <toshok@ximian.com>
8983
8984         [ fixes the oversized notify icon issue in bug #79745 ]
8985         
8986         * NotifyIcon.cs: scale the icon down to the size we're given by
8987         the XplatUI layer (this would be faster if we did it once instead
8988         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
8989         since it's never invoked.
8990
8991         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
8992         pixels high by default, so let's hardcode our systray icon to that
8993         size.  The SYSTEM_TRAY protocol should really have a way for
8994         client apps to query for the correct icon size.. but oh well.  A
8995         couple of patches to deal with the screwy client_window ==
8996         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
8997         instance, and also make sure we don't XSelectInput twice).
8998
8999 2006-10-30  Chris Toshok  <toshok@ximian.com>
9000
9001         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
9002         recreating forms.  Control recreation is the bane of my existence.
9003         Fix it in a way that keeps everyone happy.
9004
9005 2006-10-30  Chris Toshok  <toshok@ximian.com>
9006
9007         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
9008         just non-CHILD ones.  otherwise sometimes scrollbars end up with
9009         client_windows not being resized to the proper size (ReportBuilder
9010         shows this extremely well).
9011
9012 2006-10-30  Chris Toshok  <toshok@ximian.com>
9013
9014         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
9015         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
9016         showing up in the gnome taskbar.  Fixes bug #79790.
9017
9018 2006-10-30  Chris Toshok  <toshok@ximian.com>
9019
9020         * ApplicationContext.cs: guard against a NRE.
9021
9022         * Application.cs: null out the old MainForm for the context, so we
9023         don't try to use it again once it's disposed.  Fixes bug #79783.
9024
9025 2006-10-30  Chris Toshok  <toshok@ximian.com>
9026
9027         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
9028         BindingContext, set the data source directly, otherwise do the
9029         lazy approach - the actual ListManager will be created when we get
9030         a BindingContext. Fixes bug #79700.
9031
9032 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
9033
9034         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
9035           XplatUIX11.cs: Remove old 2 parameter SetVisible.
9036
9037         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
9038
9039 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
9040
9041         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
9042         of SetVisible that allows a window to be shown, but not activated.
9043         This is needed on Windows for MenuStrip, and can probably be used
9044         with MainMenu and ComboBox to fix the focus stealing issues on
9045         Windows.
9046
9047         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
9048
9049 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
9050
9051         * PictureBox.cs: Fix the output of the ToString method.
9052
9053 2006-10-29  Chris Toshok  <toshok@ximian.com>
9054
9055         * Control.cs (get_TopLevelControl): fix bug #79781.
9056
9057 2006-10-29  Chris Toshok  <toshok@ximian.com>
9058
9059         * ListControl.cs (set_DataSource): throw Exception here, not
9060         ArgumentException, to match MS behavior.
9061
9062 2006-10-29  Chris Toshok  <toshok@ximian.com>
9063
9064         * Form.cs: remove the try-catch's around calls to GetWindowState.
9065         We can just check the return value.
9066
9067         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
9068         Instead return -1.
9069
9070         * XplatUI.cs: Add note about additional return value for
9071         GetWindowState.
9072
9073 2006-10-29  Chris Toshok  <toshok@ximian.com>
9074
9075         * Control.cs (CreateHandle): when we create our handle, we also
9076         create the handles of our child controls.  Fixes one of the
9077         Control unit tests (CH11).
9078
9079 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
9080
9081         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
9082
9083 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
9084
9085         * ThemeClearlooks.cs: A little speedup.
9086
9087 2006-10-27  Chris Toshok  <toshok@ximian.com>
9088
9089         * Control.cs: implement Control.FromChildHandle in a way that
9090         matches the docs (and fixes the failed test.)
9091
9092 2006-10-27  Chris Toshok  <toshok@ximian.com>
9093
9094         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
9095         comments).
9096
9097         * DataGrid.cs: implement ResetForeColor such that the tests
9098         succeed.
9099         
9100 2006-10-27  Chris Toshok  <toshok@ximian.com>
9101
9102         * ToolBarButton.cs: setting text/tooltiptext to null results in it
9103         being set to "".  Fixes bug #79759.
9104
9105 2006-10-27  Jackson Harper  <jackson@ximian.com>
9106
9107         * TextControl.cs: We need to clear the entire selection area when
9108         setting the start, otherwise multiline selections are still
9109         visible.
9110
9111 2006-10-26  Chris Toshok  <toshok@ximian.com>
9112
9113         * PropertyGridView.cs: 
9114
9115         - ifdef all the code specific to the double
9116         buffer case, and provide some alternatives in the non-doublebuffer
9117         code, which makes heavy use of XplatUI.ScrollWindow to move things
9118         around without having to invalidate (and cause flicker).  There
9119         are still some drawing problems in the non-doublebuffered case, so
9120         DOUBLEBUFFER is defined by default.
9121
9122         - Fix the way dropdowns are handled.  now we explicitly watch for
9123         the events which might cause the dropdown to close, and break out
9124         of the nested event loop there.  This gets rid of all Capture
9125         code, at the expense of the Msg special casing.  Seems to work,
9126         though, and fixes bug #79743.
9127
9128 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
9129         * Control.cs: SetIsRecreating now recreates implicitly added
9130         child controls as well. Finally fixes #79629. The flag passed to 
9131         SetIsRecreating has also been removed since it wasn't used.
9132         
9133 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9134
9135         * PageSetupDialog.cs: Clean some code, fix some bits, 
9136         add some checks, and add a printer sub-dialog.
9137
9138 2006-10-26  Chris Toshok  <toshok@ximian.com>
9139
9140         * PropertyGrid.cs: make set_SelectedObject call
9141         set_SelectedObjects, and move the duplicate logic to the
9142         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
9143
9144         * PropertyGridView.cs: hide the textbox when we get a
9145         SelectedObjectsChanged event.
9146
9147         Fixes bug #79748.
9148
9149 2006-10-26  Chris Toshok  <toshok@ximian.com>
9150
9151         * PropertyGridView.cs: deal with the type converter not supporting
9152         GetStandardValues() or GetStandardValues() returning null, which
9153         is does in the default case.  Fixes #79742.
9154
9155 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
9156
9157         * CheckedListBox.cs: nunit no longer crashes when selecting 
9158         Project/Edit menu option
9159         
9160 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
9161
9162         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
9163         is no menu selected. fixes #79739
9164
9165 2006-10-25  Chris Toshok  <toshok@ximian.com>
9166
9167         * PropertyGridView.cs: factor out the splitter invalidation code
9168         into the SplitterPercent setter, and for kicks implement the
9169         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
9170         amount in either direction.
9171
9172 2006-10-25  Chris Toshok  <toshok@ximian.com>
9173
9174         * PropertyGridView.cs: do some cleanup of the brush used to draw
9175         text - read only fields should be grayed out.  not sure how to do
9176         this with the textbox, though.  but the textbox's should also be
9177         readonly now at least.  Also, hide/show the textbox when resizing
9178         the control.
9179         
9180         * CursorConverter.cs: use System.Reflection when getting the
9181         properties of Cursors, as TypeDescriptor.GetProperties isn't
9182         returning static properties.
9183
9184 2006-10-25  Chris Toshok  <toshok@ximian.com>
9185
9186         * PropertyGridView.cs: factor out the up/down handling, and reuse
9187         it for page up/down.  also add End/Home support.
9188
9189 2006-10-25  Chris Toshok  <toshok@ximian.com>
9190
9191         * PropertyGridView.cs:
9192
9193         - ensure the selected grid item is visible in the scrolled area,
9194         fixes bug #79572.
9195
9196         - fix Keys.Down handling when you're on the last item in the
9197         propertygrid.
9198
9199 2006-10-25  Mike Kestner  <mkestner@novell.com>
9200
9201         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
9202         clicks too.  Fixes #79725.
9203
9204 2006-10-24  Chris Toshok  <toshok@ximian.com>
9205
9206         * PropertyGrid.cs: use property.Converter instead of
9207         TypeDescriptor.GetConverter(property.PropertyType), so we catch
9208         TypeConverters declared on the property as well as on the
9209         PropertyType.  Fixes bug #79678.
9210
9211 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
9212
9213         * MimeIcon.cs, Mime.cs:
9214           Fallback to the default platform handler if no shared mime info
9215           stuff exists (fixes #79693).
9216
9217 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
9218         * ContainerControl.cs: Incorrect contains check in ActiveControl 
9219         from previous fix (duh).
9220
9221 2006-10-20  Chris Toshok  <toshok@ximian.com>
9222
9223         * PropertyGridView.cs: the dropdown should be MIN(number of items
9224         in list, 15).  Fixes #79551.
9225
9226 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
9227         Fixes #79384, #79394, #79652, #79667
9228         * Application.cs: 
9229         
9230         - Modal windows are now destroyed in the proper order for windows
9231         
9232         * ContainerControl.cs:
9233         
9234         - ActiveControl setter has more conditions on when to return:
9235                 - if we're reselecting the active control, but it actually
9236                 didn't have focus (window hidden or some such), it runs
9237                 - if the active control being selected doesn't actually 
9238                 exist in the container, it returns
9239         
9240         * Form.cs
9241         
9242         - The ShowDialog now gets the current form as the owner when
9243         invoking without parameters, and correctly activates the owner 
9244         when returning
9245         
9246         * MessageBox.cs
9247         
9248         - MessageBox now catches the Escape key to exit
9249
9250 2006-10-20  Chris Toshok  <toshok@ximian.com>
9251
9252         * PropertyGridView.cs: fix a number of issues (bug #78565, and
9253         most of bug #79676):
9254
9255         - you can navigate around the property grid with the arrow keys.
9256
9257         - the dropdown is sized properly when the pg has a vertical
9258         scrollbar.
9259
9260         - fix the indentation for subentries, and properly select the
9261         entire label rect.
9262
9263         - fix the gray bar's drawing (only draw it to the last element,
9264         not for the height of the control.  Also make sure we draw that
9265         last horizontal grid line.
9266
9267         - use the same mechanism the datagrid uses wrt the editing textbox
9268         when scrolling/resizing/etc.  Namely, we hide it first, do the
9269         operation, then show it again (if it's still visible).
9270         
9271         - aggressively remove a lot of unnecessary refreshes (and also
9272         calls to Invalidate(). call more limited variants, and only redraw
9273         what we need.)
9274         
9275         * PropertyGrid.cs:
9276
9277         - when we're populating the merged collection, fill in the UI
9278         parent with either the passed in item, or the category item we
9279         create.
9280
9281         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
9282
9283         * GridItem.cs: drop some fully qualified names.
9284         
9285         * GridEntry.cs: add a "UIParent", which is basically the parent
9286         treenode.
9287
9288         * GridItemCollection.cs: add an IndexOf method.
9289
9290 2006-10-20  Mike Kestner  <mkestner@novell.com>
9291
9292         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
9293         a working win32 NC invalidation mechanism, we can't invalidate
9294         menus.  [Fixes #79705]
9295
9296 2006-10-20  Mike Kestner  <mkestner@novell.com>
9297
9298         * ListBox.cs : don't update the VScrollbar if the list is empty,
9299         just hide it.  [Fixes #79692]
9300
9301 2006-10-20  Jackson Harper  <jackson@ximian.com>
9302
9303         * RichTextBox.cs: Handle some special chars better, and don't skip
9304         the entire group when we encounter a special char that we don't
9305         handle correctly.
9306
9307 2006-10-18  Chris Toshok  <toshok@ximian.com>
9308
9309         * PropertyGridView.cs: address a number of issues from bug #79676,
9310         mostly of the cosmetic variety.
9311
9312         - The highlight rectangle for indented items not extends all the
9313         way to the left.
9314
9315         - Indented items aren't indented so much.
9316
9317         - the dropdown is properly sized width-wise if the pg has a
9318         vertical scrollbar.
9319
9320 2006-10-18  Chris Toshok  <toshok@ximian.com>
9321
9322         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
9323         systray stuff is rather convoluted to begin with.
9324
9325         systray icons are a single window for some reason (that I haven't
9326         figured out yet), and for them, client_window == whole_window.
9327         Given the way the tests are structured elsewhere to determine
9328         which paints are pending (client vs. nc), that situation will
9329         always yield PAINT, not NCPAINT.  So, if we have a pending
9330         nc_expose and no pending expose, remove the hwnd from the paint
9331         queue, and also set nc_expose_pending to false, to keep us from
9332         blocking further expose's adding the hwnd to the paint queue.
9333
9334         phew.  like i said, a rather convoluted change.  Fixes the
9335         notifyicon repaint issues in bug #79645.
9336
9337 2006-10-18  Chris Toshok  <toshok@ximian.com>
9338
9339         * Form.cs: when getting the backcolor of the form, don't get
9340         base.BackColor, as this allows parents to influence the background
9341         color.  This breaks mdi forms.  Instead, if the background_color
9342         is empty, return the default.
9343
9344 2006-10-18  Chris Toshok  <toshok@ximian.com>
9345
9346         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
9347         to being private instead of internal static.
9348
9349         * Control.cs: remove all the stupid ParentWaitingOnRecreation
9350         crap, it wasn't working for more deeply nested controls anyway,
9351         and we already have the is_recreating flag - use that instead.
9352         Before calling DestroyHandle in RecreateHandle, recurse through
9353         the control tree setting it to true.  this returns the recreate
9354         code to much of its original simplicity, while now guaranteeing we
9355         actually recreate everything we're supposed to.  This change gets
9356         fyireporting actually showing mdi children.
9357
9358 2006-10-17  Chris Toshok  <toshok@ximian.com>
9359
9360         * Form.cs: remove some debug spew, and collapse some duplicate
9361         code at the end of SetClientSizeCore.
9362
9363         * XplatUIX11.cs: 
9364         - add some more debug spew here too wrt Destroy handling.
9365         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
9366         in Control's handling of WM_DESTROY.
9367         - Remove the handling of zombie window DestroyNotifies from the
9368         event loop - we don't need it.  Now the only DestroyNotifies we
9369         actually handle are ones generated by X.
9370         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
9371         match gtk's (functioning) handling of this. This keep metacity
9372         from leaving droppings in the form of wm borders with no window
9373         contents all over the place.
9374
9375         * Control.cs:
9376         - add a bunch of debug spew wrt control recreation.
9377         - fix a bug where we weren't tracking Visible properly on
9378         recreated hwnds.
9379         - fixed the WM_PAINT double buffer handling to support re-entrant
9380         calls (yes, i know it's gross, but it's happening to us).
9381
9382 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9383         * ThemeWin32Classic.cs: changed drawing of selected days
9384         to make them look better.
9385
9386 2006-10-16  Chris Toshok  <toshok@ximian.com>
9387
9388         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
9389         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
9390
9391         * XplatUIX11.cs: move away from using hwnd.client_dc and
9392         hwnd.non_client_dc and on to a stack of dc's (and in window's
9393         case, PAINTSTRUCT's), so we can deal with nested Paint calls
9394         without puking or not disposing of Graphics objects.
9395
9396         * XplatUIOSX.cs: same.
9397
9398         * XplatUIWin32.cs: same.
9399
9400 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
9401
9402         * FileDialog.cs: Don't call on_directory_changed inside
9403           OnSelectedIndexChanged (it changes the SelectedIndex too).
9404           Instead move it to OnSelectionChangeCommitted.
9405
9406 2006-10-13  Chris Toshok  <toshok@ximian.com>
9407
9408         * XplatUIX11.cs: more Destroy work.  the current code does the
9409         following things, in order:
9410
9411         1. Enumerates all handles of all controls at or below the one
9412         being destroyed, in pre-order.  As it is doing this, it marks the
9413         handles as zombie and clears all references to them.
9414         
9415         2. calls XDestroyWindow on the window passed in.
9416
9417         3. SendMessage's WM_DESTROY to all he handles in the accumulated
9418         list.
9419
9420 2006-10-13  Chris Toshok  <toshok@ximian.com>
9421
9422         * XplatUIX11.cs: set hwnd.zombie to true before calling
9423         SendMessage (WM_DESTROY).  this keeps us from marking the new
9424         window a zombie, and also keeps us from calling sendmessage at
9425         all.
9426
9427 2006-10-13  Jackson Harper  <jackson@ximian.com>
9428
9429         * TextControl.cs: Do not show the caret and selection at the same
9430         time.  Reduces ugliness by 35%.
9431
9432 2006-10-13  Chris Toshok  <toshok@ximian.com>
9433
9434         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
9435         zombie after we do the recursive call, so we actually do call
9436         SendMessage on the children controls.
9437         (GetMessage): if we find a pending paint event for a zombie hwnd,
9438         remove the hwnd from the paint queue, or else it will always be
9439         there (and we'll effectively loop infinitely)
9440
9441 2006-10-13  Mike Kestner  <mkestner@novell.com>
9442
9443         * MenuItem.cs : add Selected format under keynav too.
9444         Fixes #79528.
9445
9446 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
9447
9448         * PropertyGrid.cs: Fixed some NRE's and small difference between our
9449         implementation and that of MS.
9450
9451 2006-10-13  Chris Toshok  <toshok@ximian.com>
9452
9453         * Control.cs (OnInvalidated) only futz with the invalid_region if
9454         the control is double buffered.  this fixes the apparent hang in
9455         the ListView unit tests.  Someone needs to make the
9456         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
9457
9458 2006-10-13  Chris Toshok  <toshok@ximian.com>
9459
9460         * PropertyGridView.cs:
9461
9462         - do a little refactoring so that only one place calls
9463         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
9464         else call that.  Also make it Refresh, since there are redraw bugs
9465         otherwise (we should take a look at that...)
9466
9467         - do a little more refactoring work to share the body of code
9468         involved with the drop down.  it was duplicated in the code
9469         dealing with the listbox handling and in the code dealing with the
9470         UITypeEditors.
9471
9472         - add a Capture to the dropdown form's control once it's
9473         displayed, and add a MouseDown handler that checks to make sure
9474         the position is inside the control.  If it's not, close the
9475         dropdown.  This fixes #78190.
9476
9477         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
9478         if the value is different than the initial value.
9479         
9480 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
9481
9482         * Control.cs: see #78650
9483         - Fixed GetNextControl for several cases:
9484                 - Changed FindFlatForward to return 
9485                 correct sibling control when more than one
9486                 control has same TabIndex as the currently 
9487                 focused one.
9488                 - Changed FindFlatBackward to loop children
9489                 from last to first and apply same logic as in
9490                 FindFlatForward
9491                 - Changed FindControlForward to search for
9492                 children when control is not a container
9493                 but has children, or search for siblings if
9494                 control is a container...
9495                 - Changed FindControlBackward   to continue
9496                 searching for child controls when hitting 
9497                 Panel-like parents
9498                 
9499         - Fixed Focus method to update ActiveControl
9500         (FocusTest.FocusSetsActive failure)
9501         
9502         * TabControl.cs:
9503         - Focus rectangle now refreshes when gaining
9504         or losing focus
9505         - Removed grab for Tab key on IsInputKey that 
9506         was keeping tab navigation from working (#78650)
9507
9508 2006-10-13  Chris Toshok  <toshok@ximian.com>
9509
9510         * PropertyGridView.cs:
9511         - Rewrite SetPropertyValue to loop over SelectedGridItem's
9512         SelectedObjects.
9513
9514         - Deal with GridItem.Value == null a few places.
9515
9516         * PropertyGrid.cs: 
9517         - replace the PopulateGridItemCollection with a pair of methods
9518         which compute the intersection of all the properties in the
9519         SelectedObjects array.  Fixes #79615.
9520
9521         - Throw ArgumentException from set_SelectedObjects if there's a
9522         null in the array.
9523
9524         - Add GetTarget method which can be used to traverse up the
9525         GridItem.Parent chain.  It depends on the assumption that
9526         selected_objects for different GridEntries are always in the same
9527         order (a safe assumption).  Use this method and loop over all the
9528         selected objects in the entry when calling RemoveValueChanged and
9529         AddValueChanged.
9530         
9531         * GridEntry.cs: Make this handle multiple selected objects.
9532         .Value returns null if not all the selected objects share the same
9533         value.
9534
9535 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
9536         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
9537           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
9538           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
9539           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
9540           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
9541         add additional functionality.
9542
9543 2006-10-12  Mike Kestner  <mkestner@novell.com>
9544
9545         * ErrorProvider.cs : new ToolTipWindow ctor sig.
9546         * HelpProvider.cs : new ToolTipWindow ctor sig.
9547         * ToolTip.cs : remove ToolTip param from Window sig since it is
9548         not used.
9549         * ToolBar.cs : add tooltip support.  Fixes #79565.
9550
9551 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9552
9553         * ComboBox.cs: move the events in set_SelectedIndex to 
9554         after the call to HighlightIndex in order to avoid 
9555         possible recursion and subsequent problems with the call
9556         to HighlightIndex and include a range check in 
9557         set_HighlightIndex. Fixes #79588
9558         
9559 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9560
9561         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
9562         to ui thread's settings instead of sunday. 
9563         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
9564
9565 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
9566
9567         * DateTimePicker.cs
9568         * MonthCalendar.cs
9569         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
9570         and implement missing functionality (selecting different parts 
9571         of the date and edit them individually with the keyboard).
9572         
9573 2006-10-11  Chris Toshok  <toshok@ximian.com>
9574
9575         * Control.cs (OnInvalidated): fix NRE relating to last change.
9576
9577 2006-10-11  Chris Toshok  <toshok@ximian.com>
9578
9579         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
9580         atoms in _NET_WM_STATE here if the window is maximized.  We need
9581         to do this because we're *replacing* the existing _NET_WM_STATE
9582         property, so those atoms will be lost otherwise, and any further
9583         call to GetWindowState will return Normal for a window which is
9584         actually maximized.  Fixes #79338.
9585
9586 2006-10-11  Jackson Harper  <jackson@ximian.com>
9587
9588         * TextControl.cs: Special case for setting selection end to
9589         selection start, we basically kill the anchor.
9590         - some todo comments.
9591
9592 2006-10-11  Chris Toshok  <toshok@ximian.com>
9593
9594         * Control.cs: switch to using an "invalid_region" to track which
9595         parts of the image buffer need updating.  This is more code than
9596         the simple fix from r66532.  That version just attempted to always
9597         fill the entire buffer on redraw, which turns out to be
9598         inefficient when invalidating small rectangles.  This version
9599         simply adds the invalid rectangle to the invalid region.  When we
9600         get any WM_PAINT message we see if it can be filled using the
9601         image buffer, and if it can't (if the paint event's clip rectangle
9602         is visible in the invalid region) we first fill the image buffer.
9603         So, the image buffer is still a cache, we just fill it lazily.
9604
9605         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
9606         need it any longer.
9607
9608 2006-10-11  Chris Toshok  <toshok@ximian.com>
9609
9610         * XplatUIX11.cs (SetWindowPos): we need to update both position as
9611         well as size after calling XMoveResizeWindow.  This keeps us from
9612         ignoring future SetWindowPos calls.  Fixes the disappearing
9613         DateTimePicker in the ToolBarDockExample from bug #72499.
9614
9615 2006-10-11  Chris Toshok  <toshok@ximian.com>
9616
9617         * TextBoxBase.cs: reorder things a bit when it comes to
9618         resizing-causing-recalculation.  we were recalculating the
9619         document when our position was changed, which shouldn't happen.
9620         We only care about size changes.  Clear up some more redundant
9621         recalculation calls while I'm at it.  This makes the toolbar dock
9622         example snappy when you're just dragging toolbars around (since it
9623         causes a relayout whenever you move one.)
9624
9625 2006-10-11  Chris Toshok  <toshok@ximian.com>
9626
9627         * ToolBarButton.cs (get_Rectangle): this only returns
9628         Rectangle.Empty if Visible == false, or Parent == null.
9629         Parent.Visible doesn't matter.
9630
9631 2006-10-10  Chris Toshok  <toshok@ximian.com>
9632
9633         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
9634         by .net 1.1, so switch to an internal method instead.
9635
9636 2006-10-10  Chris Toshok  <toshok@ximian.com>
9637
9638         * Control.cs (WM_PAINT): when a control is double buffered we draw
9639         initially to the ImageBuffer and then copy from there.  But when a
9640         parent control which has child controls is double buffered, the
9641         initial drawing doesn't encompass the entire ClientRectangle of
9642         the parent control, so we end up with uninitialized bits (this is
9643         easily seen by dragging the top toolbar in
9644         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
9645         manually set the ClipRectangle of the paint_event (only the one we
9646         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
9647         of the nastiness in bug #72499.
9648
9649         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
9650         which we use in Control.cs's WM_PAINT handling.
9651
9652 2006-10-10  Jackson Harper  <jackson@ximian.com>
9653
9654         * TextBoxBase.cs: Finish off the autoscrolling stuff.
9655
9656 2006-10-10  Chris Toshok  <toshok@ximian.com>
9657
9658         * Cursor.cs: Apply a slightly different patch to the one suggested
9659         in #79609.
9660
9661 2006-10-10  Jackson Harper  <jackson@ximian.com>
9662
9663         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
9664         not the parent form.
9665         * TextControl.cs: use difference in old line count vs new count to
9666         calculate how many lines were added, this takes into account soft
9667         line breaks properly.
9668
9669 2006-10-10  Chris Toshok  <toshok@ximian.com>
9670
9671         * LinkLabel.cs: don't call MeasureCharacterRanges against a
9672         rectangle located at 0,0 and the size of the text.  Use
9673         ClientRectangle instead.  This fixes rendering of non-left aligned
9674         link labels.
9675
9676 2006-10-10  Jackson Harper  <jackson@ximian.com>
9677
9678         * TextBoxBase.cs: When we set the selection start position the
9679         caret.
9680         * TextControl.cs: Need to update the caret when we decrement it to
9681         zero.
9682         - Make sure that the selection_visible flag gets reset to false if
9683         the selection isn't visible.  Before this you could get it set to
9684         visible by changing the selection start, then changing the end to
9685         equal the start.
9686
9687 2006-10-09  Jackson Harper  <jackson@ximian.com>
9688
9689         * TreeView.cs: Don't update scrollbars when we aren't visible.
9690         * TreeNodeCollection.cs: Only need to update scrollbars if being
9691         added to an expanded visible node or the root node.
9692
9693 2006-10-09  Chris Toshok  <toshok@ximian.com>
9694
9695         * XplatUIX11.cs (SendMessage): fix NRE.
9696
9697 2006-10-09  Jackson Harper  <jackson@ximian.com>
9698
9699         * TextBoxBase.cs: Implement horizontal autoscrolling.
9700         * TextControl.cs: Add a movement types that allows moving forward
9701         and backwards without wrapping.
9702
9703 2006-10-09  Mike Kestner  <mkestner@novell.com>
9704
9705         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
9706         with focus "expansion" of labels.  Fixes #79532 and then some.
9707         * ThemeWin32Classic.cs : add LineLimit to ListView label format
9708         when wrapping.
9709
9710 2006-10-09  Jackson Harper  <jackson@ximian.com>
9711
9712         * TextBoxBase.cs: Set the default max values to MaxValue since
9713         we use the scrollbar for autoscrolling and the default value is
9714         100.  If we don't do this the caret won't keep up with typing
9715         after about 18 characters.
9716         * TextControl.cs: Make sure the selection is offset by the
9717         viewport x.  This fixes selection when using auto scrolling.
9718
9719 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
9720         
9721         * Form.cs: The active control should be selected after the 
9722         OnLoad so that any child control initialization that affects
9723         the selection is done. Fixes #79406
9724
9725 2006-10-06  Chris Toshok  <toshok@ximian.com>
9726
9727         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
9728         to have no evil effects.
9729
9730         - Stop selecting StructureNotifyMask on non-toplevel windows.
9731
9732           The only way children should be resized is by using the SWF api,
9733           and we already send WM_WINDOWPOSCHANGED messages in those cases.
9734           Toplevel windows can be interacted with via the window manager,
9735           and so we keep the input mask there.
9736
9737           The other event StructureNotifyMask gives us (that we care
9738           about) is DestroyNotify.  The code is already structured such
9739           that it assumes we won't be getting a DestroyNotify event for
9740           the window we pass to XDestroyWindow (which is what
9741           StructureNotifyMask is supposed to guarantee.)  So, that code
9742           shouldn't be affected by this either.
9743
9744         - Stop selecting VisibilityChangeMask altogether.
9745
9746           We weren't doing anything with the resulting events anyway.
9747         
9748         This vastly reduces the number of X requests and events we see
9749         when resizing/laying out a large ui.
9750
9751 2006-10-06  Chris Toshok  <toshok@ximian.com>
9752
9753         * ScrollableControl.cs (DisplayRectangle): we need to take into
9754         account the DockPadding regardless of whether or not auto_scroll
9755         == true.  rework this slightly to this effect, and fix bug #79606,
9756         and part of #72499 (you can now see the drag handles and drag
9757         toolbars around).
9758
9759 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
9760
9761         * ListViewItem.cs: Collections of selected and checked items are now
9762         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
9763         we mark the collection "dirty".
9764         * ListView.cs: Marked collections readonly. Modified UpdateSelection
9765         to only clear SelectedItems when a new item is selected and MultiSelect
9766         is enabled. CheckedItems and SelectedItems now subscribe to Changed
9767         event of ListViewItemCollection, and mark its list dirty whenever
9768         that event is fire. This allows us to return selected/checked items 
9769         in the same order as they are in the Items collection. This matches
9770         the MS behavior.
9771
9772 2006-10-06  Chris Toshok  <toshok@ximian.com>
9773
9774         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
9775         right mouse clicks.  Fixes bug #79593.
9776
9777 2006-10-06  Chris Toshok  <toshok@ximian.com>
9778
9779         * Splitter.cs: doh, fix splitters that don't want to cancel the
9780         movement when you drag them.  Also, impose the limits on the
9781         values we send to the SplitterMovingEvent.  Fixes #79598.
9782
9783 2006-10-06  Jackson Harper  <jackson@ximian.com>
9784
9785         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
9786         since we use this for auto scrolling also.
9787
9788 2006-10-05  Chris Toshok  <toshok@ximian.com>
9789
9790         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
9791         beginning to think that most datagrid column types don't need this
9792         method.  Fixes bug #79392.
9793
9794 2006-10-05  Chris Toshok  <toshok@ximian.com>
9795
9796         * DataGrid.cs: move back to a more lazy scheme for creating the
9797         CurrencyManager, so we aren't updating it every time you set
9798         either DataSource or DataMember.  Also, don't call
9799         RecreateDataGridRows if the currency manager hasn't changed.
9800
9801 2006-10-05  Chris Toshok  <toshok@ximian.com>
9802
9803         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
9804         emitted, SelectedIndex should already be updated.  Fixes bug
9805         #78929.
9806
9807 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
9808
9809         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
9810           ToolStripTextBox.cs: Initial commit.
9811         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
9812
9813 2006-10-05  Jackson Harper  <jackson@ximian.com>
9814
9815         * TabControl.cs: We need to invalidate the tab control area when
9816         new ones are added (duh).
9817
9818 2006-10-03  Chris Toshok  <toshok@ximian.com>
9819
9820         * Form.cs (ProcessDialogKey): if the focused control is in this
9821         form and is a button, call its PerformClick method here.  Fixes
9822         #79534.
9823
9824 2006-10-04  Jackson Harper  <jackson@ximian.com>
9825
9826         * TabPage.cs: Ignore setting of Visible, and add an internal
9827         method for setting the controls visibility.  TabPage's Visible
9828         property is a little strange on MS, this seems to make us
9829         compatible, and fixes cases where people set all the tab pages to
9830         visible.
9831         * TabControl.cs: Use the new internal setting on tab pages
9832         visibility.
9833
9834 2006-10-03  Mike Kestner  <mkestner@novell.com>
9835
9836         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
9837
9838 2006-10-03  Mike Kestner  <mkestner@novell.com>
9839
9840         * ListView.cs : use is_visible instead of Visible to check if 
9841         scrollbars should be placed/sized.  Also some max_wrap_width
9842         love for LargeIcon view.  [Fixes #79533]
9843
9844 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
9845
9846         * TextControl.cs :
9847           Make set_TextAlign() do actually update the align. Fixed #78403.
9848
9849 2006-10-03  Chris Toshok  <toshok@ximian.com>
9850
9851         * DataGrid.cs: fix a crash when switching datasources if the
9852         vertical scrollbar is at someplace other than Value = 0.  Also,
9853         reduce the number of recalculation passes we do in SetDataSource
9854         from 2 to 1.
9855
9856 2006-10-03  Jackson Harper  <jackson@ximian.com>
9857
9858         * TextBoxBase.cs: Move the if value the same bail check up, we
9859         don't want to empty the document if it is already empty, this
9860         seems to severly mess up the caret.  TODO: I should probably fix
9861         the empty statement to update teh caret somehow.
9862
9863 2006-10-03  Chris Toshok  <toshok@ximian.com>
9864
9865         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
9866         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
9867         reflection, an internal row type, properties on said type, etc.)
9868         will work with our datagrid.  Fixes #79531.
9869
9870 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
9871
9872         * FileDialog.cs: Don't crash if a path is not accessible
9873           (System.UnauthorizedAccessException). Fixes #79569.
9874         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
9875           a ':' too. Return unknown icon for those paths/files.
9876
9877 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
9878
9879         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
9880         GetContainerControl returns null.
9881
9882 2006-10-02  Chris Toshok  <toshok@ximian.com>
9883
9884         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
9885         call to XGetWindowAttributes instead of "handle".  fixes an X
9886         error using notifyicon after the NotifyIconWindow to Form base
9887         class switch.
9888
9889 2006-10-02  Chris Toshok  <toshok@ximian.com>
9890
9891         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
9892         server grab and looping we need to do to get down to the most
9893         deeply nested child window.
9894         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
9895         QueryPointer again after the WarpPointer so we can generate a
9896         proper (fake) MotionNotify event to be enqueued in the destination
9897         window's queue.
9898         (GetCursorPos): call QueryPointer.
9899
9900         Fixes #79556.
9901
9902 2006-10-02  Jackson Harper  <jackson@ximian.com>
9903
9904         * NotifyIcon.cs: Derive the notify icon from a form, so things
9905         like FindForm work on it.
9906         - Swallow the WM_CONTEXTMENU message, since that is generated on
9907         mouse down, and context menu is a mouse up kinda guy.  I believe
9908         the correct fix here is probably to make the notify icon entirely
9909         NC area, but this seems to work fine for anyone not manipulating
9910         WndProc.
9911
9912 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
9913
9914         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
9915           ToolStripItemCollection.cs, ToolStripLabel.cs,
9916           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
9917           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
9918           Initial implementation.
9919         * TextRenderer.cs: Provide padding to MeasureText.
9920
9921 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
9922
9923         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
9924         of ButtonBaseAccessibleObject. Fix bug #79552.
9925
9926 2006-10-02  Jackson Harper  <jackson@ximian.com>
9927
9928         * MdiWindowManager.cs: When maximizing use the containers client
9929         rect, not it's bounds, so nc area is accounted correctly.
9930         - Use the parent form's size for the menu position, since the
9931         client isn't always the full form size.
9932
9933 2006-10-01  Chris Toshok  <toshok@ximian.com>
9934
9935         * ScrollableControl.cs: make sure neither right_edge or
9936         bottom_edge are < 0, since they're used as LargeChange for the
9937         horiz/vert scrollbars respectively.  Fixes #79539.
9938
9939 2006-10-01  Chris Toshok  <toshok@ximian.com>
9940
9941         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
9942         the xplatuix11 code can cause us to destroy/recreate our handle.
9943
9944         * XplatUIX11.cs
9945         (SystrayAdd):
9946         - this code can be invoked many times for the same Hwnd.  Make
9947           sure we only destroy the client window once (the first time this
9948           method is called).  This fixes bug #79544.
9949         - Remove the call to the improperly bound XSync.  why we had two
9950           bindings to this, I will never know, but this call resulted in
9951           events being discarded from the queue(!).
9952         - correct a misunderstanding of _XEMBED_INFO - the second atom is
9953           not our current state but the state we wish to be in.  So, 0 if
9954           we don't want to be mapped.  Change it to 1.
9955         (SystrayRemove): The XEMBED spec makes mention of the fact that
9956         gtk doesn't support the reparent of client windows away from the
9957         embedder.  Looking at gtksocket-x11.c seems to agree with this.
9958         The only avenue we have for removing systray icons is to destroy
9959         them.  We don't want the handle to go away for good, though, so
9960         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
9961         #79545.
9962         
9963 2006-10-01  Chris Toshok  <toshok@ximian.com>
9964
9965         * Form.cs (WndProc): inline the native_enabled variable usage into
9966         the cases in which it's used.  Fixes #79536.
9967
9968 2006-09-29  Mike Kestner  <mkestner@novell.com>
9969
9970         * ListView.cs : toggle the selection state for ctrl clicks in 
9971         multiselect mode. [Fixes #79417]
9972
9973 2006-09-29  Mike Kestner  <mkestner@novell.com>
9974
9975         * ListView.cs : kill CanMultiSelect and refactor the selection
9976         code to support multiselection in the absence of mod keys. Steal
9977         arrow/home/end keys by overriding InternalPreProcessMessage to
9978         restore regressed keynav behavior.
9979         [Fixes #79416]
9980
9981 2006-09-29  Jackson Harper  <jackson@ximian.com>
9982
9983         * MdiClient.cs: Repaint the titlebars when the active window is
9984         changed.
9985
9986 2006-09-29  Chris Toshok  <toshok@ximian.com>
9987
9988         * Application.cs: when entering a runloop with a modal, make sure
9989         the hwnd is enabled.  Fixes #79480.
9990
9991 2006-09-29  Chris Toshok  <toshok@ximian.com>
9992
9993         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
9994         when ListManager.CanAddRows == false, bump us back one.
9995
9996         * DataGridColumnStyle.cs (ParentReadOnly): remove the
9997         listmanager.CanAddRows check.  This makes ArrayLists uneditable
9998         using a datagrid, which is not right.
9999         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
10000         is an IEditable, but call property_descriptor.SetValue regardless.
10001         fixes #79435.
10002
10003 2006-09-29  Chris Toshok  <toshok@ximian.com>
10004
10005         * DataGridBoolColumn.cs: we need to test equality in the face of
10006         possible null values (as is the case with the default NullValue).
10007         This patch keeps us from crashing in that case.
10008
10009 2006-09-29  Jackson Harper  <jackson@ximian.com>
10010
10011         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
10012         here, since it will get called for every node collection in the
10013         tree. This is now done in the treeview once the sorting is
10014         finished.
10015         * TreeView.cs: Recalculate the visible order, and update the
10016         scrollbars after sorting, set the top nope to the root so that the
10017         recalc actually works.
10018
10019 2006-09-29  Chris Toshok  <toshok@ximian.com>
10020
10021         * LinkLabel.cs: more handling of the default link collection in
10022         the face of LinkArea manipulation.  The default link collection
10023         contains 1 element (start=0,length=-1).  If the user sets LinkArea
10024         to anything and the links collection is the default, clear it.
10025         Then only add the link if its nonempty.  Fixes #79518.
10026
10027 2006-09-29  Chris Toshok  <toshok@ximian.com>
10028
10029         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
10030         piece correctly when we hit a '\n'.  Fixes #79517.
10031
10032 2006-09-29  Chris Toshok  <toshok@ximian.com>
10033
10034         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
10035         change the binding of gdk_init_check to take two IntPtr's, and
10036         pass IntPtr.Zero for both of them.  Fixes #79520.
10037
10038 2006-09-29  Mike Kestner  <mkestner@novell.com>
10039
10040         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
10041         [Fixes #78779]
10042
10043 2006-09-28  Jackson Harper  <jackson@ximian.com>
10044
10045         * XplatUIX11.cs: When translating NC messages make sure we go from
10046         whole window to screen, not client window to screen.
10047         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
10048         method doesn't exist
10049         - Skip over controls that aren't forms when arranging.
10050
10051 2006-09-28  Jackson Harper  <jackson@ximian.com>
10052
10053         * XplatUIWin32.cs: Clip the rect to the parent window.
10054         * XplatUIStructs.cs: Add clipping modes struct.
10055         * InternalWindowManager.cs: New private method that factors title
10056         bar heights in when calculating the pos of an NC mouse message.
10057         - Use SendMessage to force a paint when the form's size is changed
10058         instead of painting the decorations immediately.
10059         - Don't let the NC button click messages get to DefWndProc,
10060         because they will attempt to handle windowing themself, and this
10061         messes up z-order (it will put them in front of the scrollbars).
10062         * XplatUIX11.cs: Make sure that we don't reset window managers if
10063         we already have one (ie the window is an MDI window).
10064
10065 2006-09-28  Chris Toshok  <toshok@ximian.com>
10066
10067         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
10068         menu code really needs going over.
10069
10070 2006-09-27  Chris Toshok  <toshok@ximian.com>
10071
10072         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
10073         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
10074         window is maximizable.  So, we need to make sure that even if we
10075         clear the border/wm frame of those functions, they're still
10076         available (basically, we remove the decoration without removing
10077         the function).  Half the fix for #79338.
10078
10079 2006-09-27  Chris Toshok  <toshok@ximian.com>
10080
10081         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
10082         Fixes bug #79515.
10083
10084 2006-09-27  Chris Toshok  <toshok@ximian.com>
10085
10086         * Splitter.cs: reorder things a bit so that we don't actually
10087         draw/move the splitter until after calling OnSplitterMoving.  This
10088         lets users cancel/disallow the movement by explicitly setting
10089         event.SplitX/SplitY.  Fixes #79372.
10090
10091 2006-09-27  Jackson Harper  <jackson@ximian.com>
10092
10093         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
10094         because it is most likely on a window being destroyed, and that
10095         will give us an X11 error.
10096
10097 2006-09-27  Chris Toshok  <toshok@ximian.com>
10098
10099         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
10100         the dropdown button now toggles between showing and hiding the
10101         dropdown.  Also, get rid of dropdown_form_showing and just use
10102         dropdown_form.Visible.  We still don't do a grab, but I'll leave
10103         that part to someone who has handled Capture-fu before.
10104
10105 2006-09-27  Chris Toshok  <toshok@ximian.com>
10106
10107         * DataGrid.cs: return false if alt isn't pressed when '0' is
10108         pressed.  this keeps the '0' key from being swallowed, and fixes
10109         bug #79350.
10110
10111 2006-09-27  Chris Toshok  <toshok@ximian.com>
10112
10113         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
10114         Calling Refresh (in response to a scrollbar event) screws up the
10115         scrollbar painting.  Fixes bug #78923.
10116
10117 2006-09-27  Chris Toshok  <toshok@ximian.com>
10118
10119         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
10120         then insert into hashtable" blocks threadsafe.
10121
10122 2006-09-27  Chris Toshok  <toshok@ximian.com>
10123
10124         * MessageBox.cs (CreateParams): the styles should be |'ed with our
10125         baseclass's, since otherwise the
10126         ControlBox/MinimizeBox/MaximizeBox assignments above have no
10127         effect.  This gets the close button back in messageboxes.
10128
10129 2006-09-27  Chris Toshok  <toshok@ximian.com>
10130
10131         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
10132         flag, not just != 0.  this makes flags that are actually multiple
10133         bits (like WS_CAPTION) work.  fixes bug #79508.
10134
10135 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
10136
10137         * PageSetupDialog.cs: add support for getting and settings the 
10138         paper size, source and orientation.
10139
10140 2006-09-26  Chris Toshok  <toshok@ximian.com>
10141
10142         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
10143         and caption == "", we need to remove the resize handles as well as
10144         the title bar.
10145
10146         * Control.cs (set_Text): turns out that setting Text on a form
10147         should change the WM styles on the window, since if ControlBox ==
10148         false, the only way to get a window border is to have a non-""
10149         Text property.  check winforms/forms/text.cs for an example.  so,
10150         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
10151         update both window styles and title.  This fixes a lot of dialogs
10152         (including the preferences dialog in MonoCalendar.)
10153
10154 2006-09-26  Chris Toshok  <toshok@ximian.com>
10155
10156         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
10157         control isn't a Form), call Win32ShowWindow to hide the window,
10158         but don't update the control Visible property.  When we reparent
10159         back to a parent control, call SetVisible in order for the
10160         window's visibility to be reinstated.
10161
10162         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
10163         the FosterParent.
10164
10165         * Control.cs (ControlCollection.Remove): remove that value.Hide()
10166         call for good, since it breaks MonoCalendar (and other things I'm
10167         sure.) Also, set all_controls to null *after* the owner calls,
10168         which end up regenerating it.
10169         (ChangeParent): allow new_parent to be == null, passing
10170         IntPtr.Zero down to XplatUI.
10171
10172         this fixes #79294 the right way.
10173
10174 2006-09-26  Mike Kestner  <mkestner@novell.com>
10175
10176         * GridEntry.cs : internal SetParent method.
10177         * PropertyGrid.cs : attach to property changed on the proper
10178         target if we have a hierarchical grid with subobjects. Setup
10179         GridItem.Parent for hierarchical items.
10180         * PropertyGridView.cs : Set value on the correct target for
10181         hierarchical grids. [Fixes #78903]
10182
10183 2006-09-26  Chris Toshok  <toshok@ximian.com>
10184
10185         * Control.cs (ChildNeedsRecreating): this should return true if
10186         either we're being recreated and the child is in our list, or our
10187         parent is waiting for our recreation.
10188
10189 2006-09-26  Chris Toshok  <toshok@ximian.com>
10190
10191         * Control.cs (ControlCollection.Remove): reinstate the
10192         value.Hide() call as suggested in bug #79294.
10193
10194 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
10195
10196         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
10197         coordinates (versus a relative move).
10198
10199 2006-09-26  Chris Toshok  <toshok@ximian.com>
10200
10201         * Control.cs: rework child recreation a little bit.  It turns out
10202         that we race between the DestroyNotify the WM_DESTROY message.  If
10203         the parent gets its DestroyNotify before the child gets the
10204         WM_DESTROY message, the child ends up not recreating (since the
10205         parent finishes its recreation on DestroyNotify, and the child
10206         checks ParentIsRecreating.)
10207
10208         So, instead we store off a list of all the child controls which
10209         need to be recreated when the parent control starts to recreate
10210         itself.  Then, when child controls get their WM_DESTROY message we
10211         check to see if they're in the parent's pending recreation list,
10212         and if so, we recreate.  This removes all dependency on ordering
10213         from the code and fixes the initial MonoCalendar upgrade dialog.
10214         
10215 2006-09-26  Jackson Harper  <jackson@ximian.com>
10216
10217         * TextControl.cs: Use the Line to get the length of the line,
10218         since soft line breaks can change the end line.
10219
10220 2006-09-26  Chris Toshok  <toshok@ximian.com>
10221
10222         * Control.cs (ControlCollection.AddImplicit): don't add the
10223         control again if it's already in one of our lists.  This keeps us
10224         from adding controls over and over again for comboboxes when their
10225         handle gets recreated (as the combobox adds implicit controls in
10226         OnHandleCreated).  Fixes the X11 errors in bug #79480.
10227
10228 2006-09-26  Jackson Harper  <jackson@ximian.com>
10229
10230         * TextControl.cs: When deleting characters make sure that any
10231         orphaned zero lengthed tags get deleted.
10232         - Fix ToString for zero lengthed tags.
10233
10234 2006-09-25  Jackson Harper  <jackson@ximian.com>
10235
10236         * TextControl.cs: When getting a tag at the location there can be
10237         multiple tags at the same spot, these are 0-lengthed tags that
10238         appear when extra formatting has been stuck in a location.  We
10239         need to pull out the last of these 0 lengthed tags.
10240
10241 2006-09-25  Jackson Harper  <jackson@ximian.com>
10242
10243         * TextControl.cs: Fix print out in debug method.
10244         * TextBoxBase.cs: When text is set bail if we are setting to the
10245         previous value.
10246         
10247 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
10248
10249         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
10250           It is now possible to change the selected index in a FontXXXListBox
10251           with the up and down arrow keys from the FontXXXTextBoxes.
10252           Also, send the FontXXXTextBox mouse wheel event to the corresponding
10253           FontXXXListBoxes to match ms.
10254
10255 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
10256
10257         * SystemInformation.cs: Return a clone of the theme's MenuFont because
10258         anyone can dispose it, anytime. All other properties returns enums, 
10259         structs or basic types so they don't need such tricks.
10260
10261 2006-09-22  Jackson Harper  <jackson@ximian.com>
10262
10263         * XplatUI.cs:
10264         * XplatUIWin32.cs:
10265         * Clipboard.cs:
10266         * DataFormats.cs:
10267         * XplatUIOSX.cs:
10268         * XplatUIDriver.cs: Update interface to add a primary selection
10269         flag, so the driver can use the primary selection buffer if
10270         needed.
10271         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
10272
10273         * RichTextBox.cs: We need to supply the data object to paste now
10274         (so we can choose to supply CLIPBOARD or PRIMARY).
10275         * TextBoxBase.cs: Supply data object to paste (see above).
10276         - Middle click uses the primary selection data object.
10277         
10278 2006-09-21  Chris Toshok  <toshok@ximian.com>
10279
10280         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
10281         of SetWMStyles.  It's still a rat's nest and is largely
10282         order-dependent which I dislike immensely.  This also fixes the X
10283         button disappearing from toplevel forms.
10284
10285 2006-09-21  Mike Kestner <mkestner@novell.com>
10286
10287         * ListBox.cs: move Jordi's click/dblclick raising code to the
10288         mouse up handler.
10289
10290 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
10291
10292         * ListBox.cs: Fixes 79450
10293
10294 2006-09-21  Mike Kestner <mkestner@novell.com>
10295
10296         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
10297         to deal with people updating the TreeNodeCollection after the tree
10298         is disposed.  "Fixes" 79330.
10299
10300 2006-09-20  Jackson Harper <jackson@ximian.com>
10301
10302         * TextControl.cs: Push the cursor record onto the undo stack
10303         before the delete action. This fixes 78651.
10304
10305 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
10306
10307         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
10308         CreateParams. Fixes 79329.
10309
10310 2006-09-19  Chris Toshok  <toshok@ximian.com>
10311
10312         * XplatUIX11.cs: a couple of blanket code massage passes to clean
10313         things up a bit.  First, get rid of the NetAtoms array (and the NA
10314         enum), and just embed the atoms as static fields.  Also, add a
10315         couple of functions (StyleSet and ExStyleSet) to clean up all the
10316         bitmask testing of styles.
10317
10318         * X11Structs.cs: remove the NA enum, not needed anymore.
10319         
10320 2006-09-19  Chris Toshok  <toshok@ximian.com>
10321
10322         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
10323         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
10324         added cleanup to get MessageBox titles appearing again, which were
10325         broken by my earlier fix for caption-less/ControlBox-less windows.
10326
10327 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
10328
10329         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
10330           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
10331           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
10332           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
10333           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
10334           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
10335           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
10336           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
10337           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
10338           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
10339           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
10340             Inital import.
10341         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
10342           ToolStripButton.cs: Stubs needed for above.
10343         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
10344
10345 2006-09-15  Chris Toshok  <toshok@ximian.com>
10346
10347         * XplatUIX11.cs:
10348         - make the MessageQueues hashtable Synchronized.
10349         
10350         - SendMessage: if the Hwnd is owned by a different thread, use the
10351         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
10352         thread.  Fixes bug #79201.
10353
10354 2006-09-15  Chris Toshok  <toshok@ximian.com>
10355
10356         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
10357         ControlBox == false, we disallow maximize/minimize/close.  If the
10358         form Caption is "" we also disallow move (and get rid of the Title
10359         decoration).  Unfortunately, regardless of how things are set,
10360         we're stuck with the Title and WM menu.
10361
10362 2006-09-15  Chris Toshok  <toshok@ximian.com>
10363
10364         * Application.cs: add locking around the static message_filters
10365         ArrayList, part of #79196.
10366
10367 2006-09-15  Chris Toshok  <toshok@ximian.com>
10368
10369         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
10370         Form.ControlBox == false, the window has no titlebar nor resize
10371         handles.  fixes bug #79368.
10372
10373 2006-09-15  Chris Toshok  <toshok@ximian.com>
10374
10375         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
10376         >= 0.  Fixes bug #79370.
10377
10378 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
10379         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
10380         * Control.cs:
10381             Add properties: LayoutEngine, Margin, DefaultMargin.
10382             Add method: GetPreferredSize.
10383             Move layout logic from PerformLayout to layout engines. 
10384
10385 2006-09-13  Chris Toshok  <toshok@ximian.com>
10386
10387         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
10388         fix for #79326 broke #78718, so this change addresses that.
10389
10390         - in SendWMDestroyMessages remove the call to
10391         CleanupCachedWindows, since we might be recreating the control and
10392         need to maintain the references to right Hwnd handles.  Also, set
10393         the zombie flag to true for each of the children in the hierarchy
10394         instead of calling hwnd.Dispose.  This will cause GetMessage to
10395         ignore all events for the window except for DestroyNotify.
10396
10397         - In GetMessage, ignore messages except for DestroyNotify for
10398         zombie hwnds.
10399         
10400         * Control.cs: revert the is_recreating fix from the last
10401         ChangeLog.  It's definitely "right", but it breaks switching from
10402         an MDI form to a non-MDI form.  Will need to revisit that.
10403
10404         * Hwnd.cs: add a zombie flag, which means "the
10405         client_window/whole_window handles are invalid, but we're waiting
10406         for the DestroyNotify event to come in for them".  Set the flag to
10407         false explicitly if setting WholeWindow/ClientWindow, and also
10408         when Disposing.
10409         
10410 2006-09-13  Chris Toshok  <toshok@ximian.com>
10411
10412         * XplatUIX11.cs: rework window destruction slightly.
10413
10414         - when destroying the windows associated with a control, we don't
10415         need 2 separate XDestroyWindow calls.  Just the one for the
10416         whole_window (or for client_window if whole_window is somehow
10417         IntPtr.Zero -- can this happen?) is enough.
10418
10419         - reworked SendWMDestroyMessages slightly, so we always dispose
10420         the child control hwnd's after sending the messages.
10421         
10422         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
10423         the two places it was used (one was even using hwnd.Handle and the
10424         other hwnd.client_window.  ugh), adding another call in
10425         SendWMDestroyMessages.  We need this new call because now the
10426         DestroyNotify events in the queue will be ignored for the child
10427         controls (as their hwnd's were disposed, and the window id's
10428         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
10429
10430         - this fixes bug #79326.
10431
10432 2006-09-13  Chris Toshok  <toshok@ximian.com>
10433
10434         * Control.cs: don't always set is_recreating to false at the end
10435         of RecreateHandle, since sometimes we're not done (and won't be
10436         until WndProc handles the WM_DESTROY message).  Also, set
10437         is_recreating to false in the WM_DESTROY handling code.  Part of
10438         the fix for bug #79326.
10439
10440 2006-09-13  Miguel de Icaza  <miguel@novell.com>
10441
10442         * X11DesktopColors.cs: Start the droppage of debugging messages.
10443
10444         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
10445
10446 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
10447
10448         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
10449
10450 2006-09-12  Chris Toshok  <toshok@ximian.com>
10451
10452         * DataGrid.cs (get_ListManager): if the list_manager is null, try
10453         to create it using SetDataSource.  Fixes bug #79151.
10454
10455 2006-09-11  Chris Toshok  <toshok@ximian.com>
10456
10457         * XEventQueue.cs: add a DispatchIdle property.
10458
10459         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
10460         either the queue is null, or the queue has DispatchIdle set to
10461         true.
10462         (DoEvents): set queue.DispatchIdle to false around the
10463         peek/translate/dispatch message loop in this method.  This keeps
10464         Application.Doevents from emitting idle events.  Part of the fix
10465         for #78823.
10466
10467 2006-09-11  Chris Toshok  <toshok@ximian.com>
10468
10469         * DataGrid.cs (set_DataSource): make this work for both the
10470         winforms/datagrid test and ReportBuilder.  It seems as though when
10471         we've created a ListManager (or maybe it's if we have a
10472         BindingContext?), when we set the DataSource it clears the
10473         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
10474         #79333.
10475
10476 2006-09-11  Chris Toshok  <toshok@ximian.com>
10477
10478         * XplatUIX11.cs: deal with queue being null, which happens in all
10479         the Clipboard functions.  Fixes one of the two problems mentioned
10480         in #78612.
10481
10482 2006-09-11  Chris Toshok  <toshok@ximian.com>
10483
10484         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
10485         button on various spots (including outside the menu) works closer
10486         to MS, and doesn't crash.  Fixes #79343.
10487
10488 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
10489
10490         * ListView.cs: Do not initialize item_sorter in init. To match MS,
10491         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
10492         and the internal comparer is set. When a new ListViewItemSorter is set,
10493         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
10494         was specified. No further processing is necessary if SortOrder is set
10495         to it's current value. If Sorting is modified to None, and View is
10496         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
10497         (either custom or our internal ItemComparer) to null, on 1.0 profile
10498         only set item_sorter to null if its our internal IComparer. If Sorting
10499         is modified to Ascending or Descending, then use our internal IComparer
10500         if none is set, and if the current IComparer is our internal one then:
10501         on 2.0 profile always replace it with one for new Sorting, and on 1.0
10502         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
10503         Enum.IsDefined to verify whether a valid View value is specified in
10504         its setter. Automatically sort listview items when listview is
10505         created. In Sort, do nothing if ListView is not yet created, or if
10506         no item_sorter is set (no Sorting was set, Sorting was explicitly set
10507         to None or ListViewItemSorter was set to null). Added Sort overload
10508         taking a bool to indicate whether the ListView should be redrawn when
10509         items are sorted (we use this in ListViewItemCollection to avoid double
10510         redraws). Modified our internal IComparer to take the sort order into
10511         account. In Add and AddRange methods of ListViewItemCollection, also
10512         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
10513         view), but use overload with noredraw option to avoid double redraw.
10514         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
10515         true when View is Tile, and do the same when attempting to set View to
10516         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
10517         for selected/checked indices, as it involves overhead when sorting is
10518         done while these collections are not used all that often. Instead
10519         we'll build the indices on demand. Modified IList implementation of
10520         CheckedIndexCollection to use public methods if object is int.
10521         Modified CheckedListViewItemCollection to hide checked items if
10522         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
10523         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
10524         IList implementation in SelectedIndexCollection to use public methods
10525         if object is int. Modified SelectedListViewItemCollection to hide
10526         selected items if listview is not yet created.
10527         * ListViewItem.cs: CheckedIndices list no longer needs to be
10528         maintained separately (see ListView changes). Also clone font, fixes
10529         test failure.
10530
10531 2006-09-11  Mike Kestner  <mkestner@novell.com>
10532
10533         * ComboBox.cs: if we are updating the contents of the currently
10534         selected index, refresh the control or the textbox selection.
10535         [Fixes #79066]
10536
10537 2006-09-11  Mike Kestner  <mkestner@novell.com>
10538
10539         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
10540         the 'specified' logic has been moved there.  This seems like a bug 
10541         in Control.cs, since our current SetBoundsCore completely ignores 
10542         the specified parameter.  Peter's commit seems to indicate that is 
10543         the way the MS control implementation works.  [Fixes #79325]
10544
10545 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
10546
10547         * XplatUI.cs: Set default_class_name to be composed
10548         of current domain id. This allows MWF to be loaded in multiple
10549         domains on Win32.
10550
10551 2006-09-09  Miguel de Icaza  <miguel@novell.com>
10552
10553         * X11Keyboard.cs: If we are unable to obtain the input method, do
10554         not call CreateXic to create the input context.   Should fix
10555         #78944/79276.
10556
10557 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
10558
10559         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
10560           Simplified gnome support by adding more pinvokes to get the
10561           icon for a file or mime type.
10562
10563 2006-09-08  Jackson Harper  <jackson@ximian.com>
10564
10565         * MenuAPI.cs: Deslect popup context menu items before closing the
10566         window, so that you don't see the previously selected item
10567         selected when you reopen the menu.
10568         * TextControl.cs: Update the cursor position even if we don't have
10569         focus.  This fixes typing in things like the ComboBox.  I'm not
10570         totally sure we should always set the visibility if we don't have
10571         focus, but couldn't find any corner cases where the cursor showed
10572         up when it shouldn't.
10573
10574 2006-09-08  Chris Toshok  <toshok@ximian.com>
10575
10576         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
10577         our arrays are length 256.  & 0xff before indexing.  Fixes the
10578         crash in bug #78077.
10579         
10580 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10581
10582         * ThemeWin32Classic.cs: 
10583         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
10584         is true. Handle that check box too.
10585
10586 2006-09-07  Chris Toshok  <toshok@ximian.com>
10587
10588         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
10589         79244.
10590
10591 2006-09-07  Chris Toshok  <toshok@ximian.com>
10592
10593         * Control.cs: in set_BackColor only do the work if
10594         background_color != value.
10595
10596         * XplatUIX11.cs: move the clearing of invalid areas (both client
10597         and nc) to the same block of code where we set (nc_)expose_pending
10598         to false.  That is, move it from PaintEventEnd to PaintEventStart,
10599         so things that cause invalidates from within OnPaint will trigger
10600         another call to OnPaint.  Fixes bug #79262.
10601
10602 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
10603
10604         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
10605         * FileDialog.cs: Fix typo
10606
10607 2006-09-07  Jackson Harper  <jackson@ximian.com>
10608
10609         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
10610         for tab pages if they have any.
10611
10612 2006-09-06  Mike Kestner  <mkestner@novell.com>
10613
10614         * Splitter.cs: use the "current" rect when finishing drag handle
10615         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
10616
10617 2006-09-06  Mike Kestner  <mkestner@novell.com>
10618
10619         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
10620         support offset splitters. [Fixes #79298]
10621
10622 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
10623
10624         * Mime.cs: Fixed a bug that could override the global mime type
10625           result.
10626
10627 2006-09-05  Jackson Harper  <jackson@ximian.com>
10628
10629         * TabControl.cs: Better calculation method for setting the slider
10630         pos. Prevents crashes on really wide tabs.
10631         - Draw Image on tab pages if an image list is used.
10632
10633 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10634
10635         * MonthCalendar.cs: When Font changes, the Size should be
10636         updated to fit the new font's space requirements.
10637
10638 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
10639
10640         * ListBox.cs: If the items are cleared with Items.Clear set
10641           top_index to 0.
10642
10643 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10644
10645         * MonthCalendar.cs: Handle arrow keys as input keys. Also
10646         fire DateChanged event instead of DateSelected event when
10647         the date was changed by keyboard interaction.
10648
10649 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10650
10651         * DateTimePicker.cs: Handle DateChanged for the associated
10652         month_calendar control, and set month_calendar.Font from 
10653         OnFontChanged method, as well as resize the height of the
10654         control when needed. Make PreferredHeight proportional.
10655
10656 2006-09-01  Chris Toshok  <toshok@ximian.com>
10657
10658         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
10659         properties.
10660
10661         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
10662
10663 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
10664
10665         * FileDialog.cs: Set ClientSize instead of window size, to allow space
10666           for decorations (Fixes #79219)
10667
10668 2006-09-01  Mike Kestner  <mkestner@novell.com>
10669
10670         * ComboBox.cs: first stab at sorting plus some selection handling
10671         fixes to bring us more in line with MS behavior.  Also switches back
10672         to index based selection.  Alternative patches for index-based 
10673         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
10674         and latency@gmx.de on bug 78848.  I assume they were similar to this
10675         code I've had simmering in my tree forever.
10676         [Fixes #78848]
10677
10678 2006-09-01  Chris Toshok  <toshok@ximian.com>
10679
10680         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
10681         when setting list position guard against ending up with a -1 index
10682         (the other part of the fix for #78812).  Should probably make sure
10683         we don't need the analogous fix in the ItemDeleted case.
10684
10685         * DataGrid.cs:
10686         - in SetDataSource, work around the fact that the way
10687         OnBindingContextChanged is invoked will cause us to re-enter this
10688         method.  I'll remove the hack once I investigate
10689         OnBindingContextChanged.
10690
10691         - fix the logic in set_DataSource and set_DataMember (basically
10692         what to do if the other of the two is null.)
10693         
10694         - in OnListManagerItemChanged, we need to take into account the
10695         edit row when deciding whether or not to call RecreateDataGridRows
10696         (part of the fix for #78812).
10697
10698 2006-09-01  Jackson Harper  <jackson@ximian.com>
10699
10700         * Splitter.cs: Don't do anything if there is no control to affect
10701         (prevents us from crashing in weird tet cases).
10702         * TreeView.cs: Bounding box for the mouse movement reverting
10703         focus/selection back to previously selected node.  This matches
10704         MS, and makes the tree a lot more useable.
10705         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
10706         use clipping so they are not drawn.  This fixes when the control
10707         is set to have a transparent background, or if it was over an
10708         image.
10709
10710 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
10711
10712         * MimeIcon.cs: Improved handling for reading default icons when
10713           using gnome (2.16 made it necessary). Check and read svg icons
10714           first, then 48x48 and then 32x32 icons.
10715
10716 2006-08-31  Chris Toshok  <toshok@ximian.com>
10717
10718         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
10719         visible.
10720
10721         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
10722         ProcessKeyPreview.  Fixes part of #77806.
10723
10724         * DataGrid.cs: big patch.
10725
10726         - revert the queueing up of DataSource/DataMember if inside
10727         BeginInit/EndInit calls.  That's not the way the datagrid achieves
10728         its delayed databinding.  Instead, call SetDataSource in
10729         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
10730         #78811.
10731
10732         - Also, it wasn't mentioned in #78811, but the test case exhibits
10733         behavior that was lacking in our datagrid implementation - Columns
10734         that have mapping names that don't exist in the datasource's
10735         properties aren't shown.  Yuck.  To fix this I added the bound
10736         field to the column style, and basically any calculation to figure
10737         out anything about columns uses a loop to find the bound columns.
10738         still need to investigate if I can cache an array of the bound
10739         columns or if the indices must be the same.
10740
10741         - When setting CurrentCell, we no longer abort if the cell being
10742         edited was in the add row.  This fixes the other part of #77806.
10743
10744         - The new code also fixes #78807.
10745         
10746         * ThemeWin32Classic.cs: perpetrate the same disgusting
10747         column.bound field hack, and only render bound fields.
10748
10749 2006-08-31  Chris Toshok  <toshok@ximian.com>
10750
10751         * DataGridColumnStyle.cs: add bound field.  this field is true if
10752         the datasource has a property corresponding to the mapping name.
10753
10754         * DataGridTableStyle.cs: set the bound field on the column styles
10755         depending on whether or not we have a column for that property.
10756
10757 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
10758
10759         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
10760           splitter control (fixes #79228)
10761
10762 2006-08-31  Chris Toshok  <toshok@ximian.com>
10763
10764         * DataGridColumnStyle.cs: we need to delay the assignment of
10765         property descriptor until the last possible moment due to the lazy
10766         databinding stuff in the datagrid.  Also, fix the exceptions
10767         thrown by CheckValidDataSource to match MS.
10768
10769 2006-08-31  Jackson Harper  <jackson@ximian.com>
10770
10771         * Form.cs: When activated select the active control, if there is
10772         no active control, we select the first control.
10773         * XplatUIX11.cs: If there is no focus control when we get a
10774         FocusIn event, find the toplevel form and activate it.  This
10775         occurs when you popup a window, it becomes the focus window, then
10776         you close that window, giving focus back to the main window.
10777
10778 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10779
10780         * MonthCalendar.cs: 
10781         * ThemeWin32Classic.cs: Cache Font in bold style, as well
10782         as StringFormat with Center alignments in MonthCalendar,
10783         instead of creating new ones when drawing the control. 
10784         Also, draw the month name in bold style.
10785
10786 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
10787
10788         * Control.cs:
10789           - PerformLayout(): It would seem MS performs the fill even if the 
10790             control is not visible (part of #79218 fix)
10791           - ResetBackColor(): Use the setter to reset the color, to allow
10792             overriders to catch the change.
10793         * Form.cs:
10794           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
10795           - CreateHandle(): dito (part of $79218 fix)
10796           - Don't set an icon if we have a dialog
10797         * ScrollableControl.cs:
10798           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
10799           - ScrollIntoView(): No need to scroll if control is already visible
10800             (resolves fixme and fixes #79218)
10801
10802 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10803
10804         * MonthCalendar.cs: Change proportions in SingleMonthSize
10805         to match the aspect of the original control.
10806
10807 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
10808
10809         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
10810           get updated when they get maximized.
10811
10812 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
10813
10814         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
10815
10816 2006-08-29  Chris Toshok  <toshok@ximian.com>
10817
10818         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
10819
10820 2006-08-29  Jackson Harper  <jackson@ximian.com>
10821
10822         * TreeView.cs: Need to track selected node and highlighted node,
10823         they aren't always the same thing, when the mouse is down on a
10824         node it is hilighted, but not selected yet.
10825         - Do the HideSelection stuff right
10826         - Need to focus on rbutton mouse down. And redraw selection when
10827         right click is mouse upped.
10828
10829 2006-08-29  Mike Kestner  <mkestner@novell.com>
10830
10831         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
10832         when SubItems.Count < Columns.Count.  [Fixes #79167]
10833
10834 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
10835
10836         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
10837
10838 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
10839
10840         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
10841           from X. Only send based on ConfigureNotify if we don't have the
10842           correct location in hwnd (if the window manager moved us)
10843
10844 2006-08-28  Mike Kestner  <mkestner@novell.com>
10845
10846         * ListView.cs: remove a TODO. 
10847         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
10848         [Fixes ListView part of #79166]
10849
10850 2006-08-28  Mike Kestner  <mkestner@novell.com>
10851
10852         * ListView.cs: move wheel handler to parent since it is focused
10853         instead of the item_control now.  [Fixes #79177]
10854
10855 2006-08-28  Mike Kestner  <mkestner@novell.com>
10856
10857         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
10858         when the control is focused. [Fixes #79171]
10859
10860 2006-08-28  Mike Kestner  <mkestner@novell.com>
10861
10862         * ListView.cs: size the item and header controls for empty and
10863         unscrollable views.
10864         * ThemeWin32Classic.cs: draw disabled backgrounds.
10865         [Fixes #79187]
10866
10867 2006-08-28  Chris Toshok  <toshok@ximian.com>
10868
10869         * Form.cs: remove unused "active_form" static field.
10870
10871         * Hwnd.cs: lock around accesses to static windows collection.
10872
10873         * Application.cs: lock threads in Exit ().
10874
10875 2006-08-28  Chris Toshok  <toshok@ximian.com>
10876
10877         * NativeWindow.cs: lock around accesses to window_collection.
10878         
10879 2006-08-28  Chris Toshok  <toshok@ximian.com>
10880
10881         * Control.cs: err, fix this the right way, by locking on controls
10882         when using it.  not by making it synchronized.
10883
10884 2006-08-28  Chris Toshok  <toshok@ximian.com>
10885
10886         * Control.cs: make the static "controls" field synchronized, as it
10887         gets updated from multiple threads.
10888
10889 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
10890
10891         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
10892           Prevent other threads from exiting when calling thread sets quit state.
10893         * XEventQueue.cs: Added PostQuitState property
10894
10895 2006-08-27  Chris Toshok  <toshok@ximian.com>
10896
10897         * AsyncMethodData.cs: add a slot for the window handle.
10898
10899         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
10900         window (the destination control's window, not the foster window).
10901
10902         * Control.cs (BeginInvokeInternal): store the window's handle in
10903         the AsyncMethodData.
10904         
10905
10906 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
10907
10908         * XplatUIX11.cs:
10909           - PostQuitMessage: Removed resetting S.D display handle, we might have
10910             another loop started after calling PostQuitMessage (Fixes #79119)
10911           - Created destructor to reset S.D handle
10912
10913 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
10914
10915         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
10916
10917 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10918
10919         * TextControl.cs (Insert): Update the caret position even if we don't
10920           have a handle yet, just don't call the driver in that case.
10921         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
10922           to the end of the new selection text (Fixes #79184)
10923
10924 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10925
10926         * Form.cs (Activate): Only activate if the handle is created)
10927         * Control.c:
10928           - Mark window as invisible when it's disposed
10929           - Check if window handle is created when setting window visible, 
10930             instead of relying just on the is_created variable
10931           - Check if object is disposed when creating the control (Fixes #79155)
10932
10933 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10934
10935         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
10936           when allowing layout again. Otherwise we re-generate the anchoring 
10937           distance to the border again and actually alter what the user wanted
10938           This is ugly, it'd be better if we used DisplayRectangle instead of
10939           ClientRectangle for Control.UpdateDistances, but that causes us to
10940           have other problems (initial anchoring positons would be wrong)
10941           (Fixes #78835)
10942
10943 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
10944
10945         * Control.cs:
10946           - The size and location setters shouldn't go directly to 
10947             SetBoundsCore, but to SetBounds, which triggers layout on the
10948             parent, then calls SetBoundsCore. (Related to fix for #78835)
10949           - SetBounds: Moved actual location update code into this function
10950             from SetBoundsCore, to match MS. Added call to PerformLayout if
10951             we have a parent (to trigger resizing of anchored parents if the 
10952             child size has changed (see testcase for #78835) 
10953         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
10954           new control code
10955         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
10956
10957 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10958
10959         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
10960           System.Drawing when a toplevel window gets closed; there might
10961           be other toplevel windows belonging to the same app (Fixes #78052)
10962
10963 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
10964
10965         * FileDialog.cs: After reading FileDialog settings from mwf_config
10966           use Desktop prefix only if a real folder doesn't exist anymore.
10967         * FontDialog.cs: Added char sets.
10968           It is now possible to select the font, size or style with the
10969           textboxes.
10970
10971 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
10972
10973         * PrintPreviewDialog.cs: Use assembly name constants.
10974
10975 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
10976
10977         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
10978           scrollbar from whacking it's buttons)
10979
10980 2006-08-24  Chris Toshok  <toshok@ximian.com>
10981
10982         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
10983         in this patch (aggregating setting Left/Top/Width/Height to
10984         setting Bounds on the scrollbars), but the crux of the fix is in
10985         Recalculate, where we scroll by the remaining scroll_position if
10986         we're hiding a scrollbar.  The 2*$5 reward in the comment is
10987         serious.
10988
10989 2006-08-24  Jackson Harper  <jackson@ximian.com>
10990
10991         * MdiClient.cs:
10992         * MdiWindowManager.cs: If the form is made a non-mdi window we
10993         need to remove the form closed event so that closing forms works
10994         correctly.
10995
10996 2006-08-24  Jackson Harper  <jackson@ximian.com>
10997
10998         * Control.cs: Make IsRecreating internal so that the driver can
10999         check it
11000         - Temporarily remove the Hide when controls are removed, its
11001         making a whole bunch of things not work because visibility isn't
11002         getting reset elsewhere correctly
11003         * Form.cs: Need to do a full handle recreation when the mdi parent
11004         is set.
11005         * XplatUIX11.cs: If we are recreating handles don't dispose the
11006         HWNDs.  What was happening is the handles were being recreated in
11007         SendWMDestroyMessages, but then flow continued on in that method
11008         and destroyed the new handles.
11009
11010 2006-08-23  Jackson Harper  <jackson@ximian.com>
11011
11012         * Form.cs: MdiClient is always at the back of the bus
11013         * Control.cs: When the order of items in the collection is changed
11014         we need to reset the all_controls array
11015         - do the same sorta setup thats done when adding a control when a
11016         control is set on the collection.
11017
11018 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
11019
11020         * TextBoxBase.cs (get_Text): Return an empty array if our document
11021           is empty (fixes #79052)
11022
11023 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
11024
11025         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
11026           on WM_SYSCHAR messages (fixes #79053)
11027
11028 2006-08-23  Chris Toshok  <toshok@ximian.com>
11029
11030         * DataGrid.cs: fix flickering when scrolling vertically.
11031
11032 2006-08-23  Chris Toshok  <toshok@ximian.com>
11033
11034         * DataGrid.cs (EndEdit): only invalidate the row header when we
11035         need to.
11036
11037 2006-08-23  Chris Toshok  <toshok@ximian.com>
11038
11039         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
11040         methods.  fixes the flicker when scrolling around.
11041
11042 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
11043
11044         * FileDialog.cs: Making sure the control is created before we get a 
11045           chance to use it with BeginInvoke (Fixes #79096)
11046
11047 2006-08-23  Chris Toshok  <toshok@ximian.com>
11048
11049         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
11050         width to use when painting the rows.
11051
11052 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
11053
11054         * TextBoxBase.cs:
11055           - Throw ArgumentException if a negative value is passed to SelectionLength
11056           - Update the selection end if start is moved. end needs to be always
11057             after start. (Fixes #79095)
11058           - Track selection length; MS keeps the selection length even if start
11059             is changed; reset on all other operations affection selection
11060
11061 2006-08-22  Jackson Harper  <jackson@ximian.com>
11062
11063         * TreeView.cs: Make sure both scrollbars get displayed and sized
11064         correctly when the other bar is visible.
11065         - Use the original clip rectangle for checking if the area between
11066         the two scrollbars is visible, not the viewport adjusted clipping
11067         rectangle.
11068
11069 2006-08-22  Jackson Harper  <jackson@ximian.com>
11070
11071         * Binding.cs: We don't use IsBinding because it requires the
11072         control to be created, which really shouldn't be necessary just to
11073         set a property on the control.
11074
11075 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11076
11077         * ComboBox.cs: Some CB.ObjectCollection methods must throw
11078         ArgumentNullReferenceException when the argument is null.
11079
11080 2006-08-21  Jackson Harper  <jackson@ximian.com>
11081
11082         * Timer.cs: Track the thread that the timer is started in (NOT
11083         CREATED), this way messages for it will only be triggered on its
11084         queue.
11085         * XEventQueue.cs: Track the timers here, this makes timers per
11086         thread, like MS.
11087         * XplatUIX11.cs: The timers are moved to the XEventQueue.
11088
11089 2006-08-19  Chris Toshok  <toshok@ximian.com>
11090
11091         * XplatUIX11.cs: after further communication with pdb, we get the
11092         best of both worlds.  SetZOrder working for un-Mapped windows, and
11093         no X errors for un-mapped windows.
11094
11095 2006-08-19  Chris Toshok  <toshok@ximian.com>
11096
11097         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
11098         as it was causing pdn toolbars to not have the correct stacking.
11099
11100 2006-08-18  Mike Kestner  <mkestner@novell.com> 
11101
11102         * ListView.cs : guard against negative ClientArea.Width in scrollbar
11103         calculation.  Not sure why control should ever be setting a negative
11104         width though.  Fixes #78931.
11105
11106 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11107
11108         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
11109         null items in ObjectCollection class.
11110         * ListBox.cs.: Likewise.
11111
11112 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
11113
11114         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
11115           as the base method in ThemeWin32Classic should work fine.
11116           Fixed bug #78607.
11117
11118 2006-08-18  Jackson Harper  <jackson@ximian.com>
11119
11120         * Binding.cs: When validating if the value entered doesn't convert
11121         properly reset to the old value.
11122         * RadioButton.cs: Don't fire click when we get focus.
11123
11124 2006-08-18  Jackson Harper  <jackson@ximian.com>
11125
11126         * FileDialog.cs: Paint the selection on the directory combobox the
11127         same way as on MS. 
11128
11129 2006-08-17  Jackson Harper  <jackson@ximian.com>
11130
11131         * ErrorProvider.cs: Don't allow the error control to be selected.
11132         * Control.cs: Don't send the SetFocus messages, the control
11133         activation will do this, and if we do it blindly here validation
11134         does not work.
11135
11136 2006-08-17  Jackson Harper  <jackson@ximian.com>
11137
11138         * Control.cs:
11139         * ContainerControl.cs: Make validation events fire in the correct
11140         order.  TODO: For some reason the first validation event is not
11141         getting fired.
11142
11143 2006-08-17  Mike Kestner  <mkestner@novell.com> 
11144
11145         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
11146
11147 2006-08-17  Mike Kestner  <mkestner@novell.com> 
11148
11149         * ComboBox.cs : implement scroll wheel support for popped-down
11150         state. Fixes #78945. 
11151
11152 2006-08-17  Jackson Harper  <jackson@ximian.com>
11153
11154         * TreeView.cs: Specify treeview actions (old patch that didn't get
11155         committed for some reason).
11156         - Don't let the mouse wheel scroll us too far.  Just want to make
11157         the bottom node visible, not scroll it all the ways to the top.
11158
11159 2006-08-17  Jackson Harper  <jackson@ximian.com>
11160
11161         * XplatUIX11.cs: Mouse wheel events go to the focused window.
11162
11163 2006-08-17  Mike Kestner  <mkestner@novell.com> 
11164
11165         * ComboBox.cs : don't do mouseover selection in simple mode.
11166
11167 2006-08-16  Jackson Harper  <jackson@ximian.com>
11168
11169         * Form.cs: Fire the closing events for all the mdi child windows
11170         when a window is closed.  If the cancel args are set to true, the
11171         main window still gets the event fired, but it doesn't not close.
11172         * MdiWindowManager.cs: Do this closing cleanup in a Closed
11173         handler, instead of when the button is clicked, so cancelling the
11174         close works correctly.
11175         * ComboBox.cs: Send the mouse down to the scrollbar.
11176
11177 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11178
11179         * ListBox.cs: When passing 'null' to SelectedItem,
11180         set SelectedIndex to -1, to unselect items. This is the
11181         observed behaviour in .Net.
11182
11183 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
11184
11185         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
11186           MS flags saying there won't be any. (fixes #78800)
11187         * Control.cs (HandleClick): Made virtual
11188
11189 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
11190
11191         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
11192           cultures. Fixed bug #78399.
11193
11194 2006-08-16  Jackson Harper  <jackson@ximian.com>
11195
11196         * Form.cs: Use the MdiClients MdiChildren property to access
11197         MdiChildren instead of creating the array from the child controls.
11198         * MdiClient.cs: Maintain a separate array of the mdi children, so
11199         that insertion order is maintained when the Z-order is changed.
11200
11201 2006-08-16  Mike Kestner  <mkestner@novell.com> 
11202
11203         * ListView.cs : add an ItemComparer and default to it for sorting.
11204         Fixes #79076, but sorting needs a complete overhaul to be compat with
11205         MS.
11206
11207 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
11208
11209         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
11210
11211 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11212
11213         * Hwnd.cs (Mapped): Properly traverse the tree
11214
11215 2006-08-15  Chris Toshok  <toshok@ximian.com>
11216
11217         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
11218         pass manager.Current.GetType() to ParseData.  It has to be the
11219         property type.  So, hold off doing the ParseData until we're in
11220         SetPropertyValue where we know the type.  This fixes the crash in
11221         #78821 but the textbox is still empty.
11222
11223 2006-08-15  Chris Toshok  <toshok@ximian.com>
11224
11225         * DataGrid.cs:
11226         - when we're scrolling, only call Edit() again if the
11227         current cell is still unobscured. Fixes bug #78927.
11228         - when handling mousedown on a cell, ensure the cell is visible
11229         before calling Edit.
11230         - remove the properties from DataGridRow, and remove the
11231         DataGridParentRow class altogether.
11232         
11233
11234 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11235
11236         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
11237           fire OnTextChanged by ourselves. There's no point calling base,
11238           we don't set the base value anywhere else. Fixes #78773.
11239
11240 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11241
11242         * ListBox.cs: Call CollectionChanged when modifying
11243         an item from Items indexer, to update the actual items
11244         in the list box.
11245
11246 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11247
11248         * PrintDialog.cs: Small fixes for focus and a pair of checks,
11249         to match .Net behaviour.
11250
11251 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11252
11253         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
11254
11255 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
11256
11257         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
11258
11259 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
11260
11261         * MessageBox.cs: Prevent potential NRE exception.
11262         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
11263
11264 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
11265
11266         * MessageBox.cs: Calculate the owner of a messagebox, also make
11267           it topmost. Fixes #78753
11268
11269 2006-08-14  Chris Toshok  <toshok@ximian.com>
11270
11271         * XplatUIX11.cs: A couple of fixes so that metacity will let us
11272         programmatically move windows.  first, set the PPosition hint as
11273         well as the USPosition hint.  Second include some code from pdb
11274         that sets the window type to NORMAL when we set the transient for
11275         hint.  This is because, in the absence of a window type, metacity
11276         thinks any window with TransientFor set is a dialog, and refuses
11277         to let us move it programmatically.  fascists.
11278
11279 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
11280
11281         * XplatUIX11.cs: When setting normal hints, take into consideration
11282           an different hints previously set so we don't delete them (fixes #78866)
11283
11284 2006-08-12  Chris Toshok  <toshok@ximian.com>
11285
11286         * ToolBarButton.cs: make Layout return a boolean, if something to
11287         do with the button's layout changed.
11288
11289         * ToolBar.cs:
11290         - add another parameter to Redraw, @force, which all existing
11291           calls set to true.
11292         - make the Layout function return a boolean which is true if the
11293           layout has actually changed.  Redraw now uses this (and @force)
11294           to determine when to invalidate.  At present the only place
11295           where @force can be false is the call from OnResize, when
11296           background_image == null.  So, resizing a toolbar when the
11297           layout doesn't change results in no drawing.
11298
11299 2006-08-12  Chris Toshok  <toshok@ximian.com>
11300
11301         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
11302         the VScrollBar and HScrollbar reversed.  oops.
11303
11304         * DataGrid.cs: fix the logic that assigns sizes to the implicit
11305         scrollbars.  we were assigning them twice (once in
11306         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
11307         therefore causing two scrollbar resizes (and redraws?) to happen
11308         per grid resize.
11309
11310 2006-08-12  Chris Toshok  <toshok@ximian.com>
11311
11312         * ToolBarButton.cs: redraw the entire button if the theme tells us
11313         to.
11314
11315         * Theme.cs: add ToolBarInvalidateEntireButton.
11316
11317         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
11318         buttons, just the border.
11319
11320         * ThemeNice.cs: redraw the entire toolbar button since we need to
11321         draw the highlight image.
11322
11323         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
11324         we need to redraw the entire button (not just the border).
11325
11326 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
11327
11328         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
11329           for vertical bars. Fixes the mismatches shown by #78513
11330
11331 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
11332
11333         * FileDialog.cs: If a saved/remembered path doesn't exist
11334           anymore, fall back to "Desktop".
11335
11336 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
11337
11338         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
11339           parent. It's apparently legal to not have one
11340         * XplatUIX11.cs:
11341           - SetZOrder: Don't try to set Z-Order on an unmapped window
11342           - CreateWindow: 0,0 are legal coordinates for a window. don't move
11343             it unless the coordinates are negative
11344
11345 2006-08-10  Mike Kestner  <mkestner@novell.com>
11346
11347         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
11348         when setting to null per msdn docs.  Fixes #78854.
11349
11350 2006-08-10  Chris Toshok  <toshok@ximian.com>
11351
11352         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
11353         flickering by setting a clip rectangle on the Graphics when we
11354         need to redraw just a particular menuitem.  Also, rename "OnClick"
11355         to "OnMouseDown" to reflect what it actually is.
11356         
11357         * Form.cs: track the OnMouseDown change.
11358
11359 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
11360
11361         * CommonDialog.cs: Properly inherit the CreateParams from the form
11362           and only change what we need. Fixes #78865
11363
11364 2006-08-10  Chris Toshok  <toshok@ximian.com>
11365
11366         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
11367         flickering in flat mode (and most of the flickering in general) by
11368         only invalidating the button border (and not the entire rectangle)
11369         when the state changes.  A couple of cases still flicker:
11370         ToggleButtons, and the dropdown arrow case when the user mouse
11371         ups.
11372
11373 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
11374
11375         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
11376           for german keyboards. Numlock state shouldn't affect the behaviour
11377           of the Del key. Fixes bug #78291.
11378
11379 2006-08-10  Chris Toshok  <toshok@ximian.com>
11380
11381         * ListControl.cs: remove the items.Clear line from BindDataItems,
11382         as this is the first thing done by both subclasses in their
11383         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
11384         passed -1, refresh the list.  This gets databinding working when
11385         the datasource is set on the list before the datasource is
11386         populated (as in wf-apps/ReportBuilder.)
11387
11388         * ComboBox.cs: remove the argument to BindDataItems.  This call
11389         should really go away, and be initiated by the ListControl code.
11390
11391         * ListBox.cs: same.
11392
11393 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
11394
11395         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
11396           if no data is in the document when the control is displayed
11397
11398 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
11399
11400         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
11401           yes (fixes #78806)
11402         * TextControl.cs: 
11403           - PositionCaret: Allow positioning of caret but don't call methods 
11404             requiring a handle if the window isn't created yet
11405           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
11406           - owner_HandleCreated: Don't position the caret, just update it's 
11407             location. User might have already set a different position
11408
11409 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
11410
11411         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
11412           windows. Screws up the returned coordinates for child windows. 
11413           Fixes #78825. I'm hoping this doesn't break something, since the
11414           code was explicitly put in 8 months ago, but no bug was attached.
11415           Menus still seem to work properly.
11416
11417 2006-08-08  Chris Toshok  <toshok@ximian.com>
11418
11419         * DataGrid.cs: make BeginInit/EndInit actually do what they're
11420         supposed to do - delay data binding until the EndInit call.  Also,
11421         make the table style collection's CollectionChangeAction.Refresh
11422         work properly.
11423
11424         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
11425         (with action = Refresh) when a consituent table's MappingName is
11426         changed.
11427
11428 2006-08-08  Chris Toshok  <toshok@ximian.com>
11429
11430         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
11431         Invalidate, since changing the text can change the size of the all
11432         toolbar buttons.
11433
11434 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
11435
11436         * Form.cs (AddOwnedForm): Still need to add the form to our listif
11437           we don't have it yet
11438
11439 2006-08-08  Chris Toshok  <toshok@ximian.com>
11440
11441         * PrintControllerWithStatusDialog.cs: don't .Close() the status
11442         dialog, as this causes X errors later on, since we actually
11443         destroy the window.  Instead, .Hide() it.
11444
11445 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
11446
11447         * ComboBox.cs: Added focus reflection for popup window
11448         * XplatUIX11.cs: 
11449           - Removed transient setting for non-app windows for now, not sure it
11450             was needed
11451           - Fixed logic checking if we have captions when deciding 
11452             override_redirect, WS_CAPTION is two bits and a 0 check was not
11453             sufficient
11454           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
11455             complicated
11456         * Form.cs: 
11457           - AddOwnedForm: Don't just add the form to the list, call the property
11458             to ensure the driver is informed about the ownership as well
11459           - CreateHandle: Set the TopMost status in the driver if we have an owner
11460         * XplatUI.cs: Fixed debug statement
11461
11462 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
11463         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
11464           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
11465           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
11466           TrackBarRenderer.cs: Make constructor private.
11467         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
11468         * ProfessionalColorTable.cs: Make properties virtual.
11469
11470 2006-08-06  Duncan Mak  <duncan@novell.com>
11471
11472         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
11473         is not changing.
11474
11475 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11476         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
11477           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
11478           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
11479           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
11480           Initial import of new 2.0 classes.
11481
11482 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11483         * Application.cs: Add 2.0 VisualStyles properties.
11484
11485 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
11486         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
11487           XplatUIX11.cs: Create property to allow access to existing private
11488           variable "themes_enabled"
11489
11490 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11491
11492         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
11493         file size, as otherwise our class libraries fail using windows. Fixes
11494         bug #78759.
11495
11496 2006-08-04  Jackson Harper  <jackson@ximian.com>
11497
11498         * Form.cs:
11499         * XplatUIX11.cs: Move the toolwindow window manager creation into
11500         the X11 driver, this way on win32 we can let windows create/handle
11501         the toolwindows.
11502
11503 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11504
11505         * PrintDialog.cs: Remove some redundant checks, add some others,
11506         clean some code, and move the focus to the text boxes when the
11507         values are incorrect.
11508
11509 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
11510
11511         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
11512
11513 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
11514
11515         * NumericUpDown.cs: Setting the Minimum and Maximum is now
11516           handled correctly. Fixes bug #79001.
11517
11518 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11519
11520         * PrintDialog.cs: The "Copies" numeric up down must have
11521         set the Minimum property to 1; only if the value is bigger
11522         than 1, activate "Collate" check box. This is the behaviour of .Net.
11523         Also modify the Document elements only if it is not null.
11524
11525 2006-08-03  Jackson Harper  <jackson@ximian.com>
11526
11527         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
11528         length. (We have a larger array then actual node count).
11529                 
11530 2006-08-03  Jackson Harper  <jackson@ximian.com>
11531
11532         * ComboBox.cs: Don't show selection by default.
11533         - The SelectAll isn't needed here, since the focus code should do
11534         that
11535         - DDL style lists to manual selection drawing, so when they
11536         get/lose focus they have to invalidate.
11537
11538 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
11539
11540         * TextBoxBase.cs: Don't always show all selections by default.
11541
11542 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
11543         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
11544           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
11545           Fixed various typos.
11546
11547 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
11548
11549         * Control.cs: Removing the controls in a ControlCollection with
11550           Clear now hides the controls as expected. Fixes bug #78804. 
11551
11552 2006-08-03  Jackson Harper  <jackson@ximian.com>
11553
11554         * Control.cs: Revert previous focus patch, it breaks reflector.
11555
11556 2006-08-03  Jackson Harper  <jackson@ximian.com>
11557
11558         * ComboBox.cs: Cleanup selection and focus with the combobox.
11559         This also eliminates some duplicated keyboard code, since now
11560         everything is handled by the main class.
11561         - Make list selection work on mouse up instead of down, to match
11562         MS.
11563
11564 2006-08-02  Jackson Harper  <jackson@ximian.com>
11565
11566         * Control.cs: Setting focus needs to go through the whole
11567         selection mechanism.
11568
11569 2006-08-02  Chris Toshok  <toshok@ximian.com>
11570
11571         * PrintPreviewDialog.cs: change MinimumSize to use
11572         base.MinimumSize so it works.
11573
11574 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
11575
11576         * TextControl.cs:
11577           - UpdateCaret: Added sanity check in case caret isn't defined yet
11578           - Line.Delete: Now updating selection and caret markers if we're
11579             transfering a node (Properly fixes #78323)
11580           - SetSelectionEnd: Added sanity check
11581         * TextBoxBase.cs: Removed broken attempt to fix #78323
11582
11583 2006-08-01  Chris Toshok  <toshok@ximian.com>
11584
11585         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
11586         Close() call is handled in Form, not here.
11587
11588 2006-08-01  Chris Toshok  <toshok@ximian.com>
11589
11590         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
11591         layout/rendering.
11592
11593         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
11594         for sizes < 100% zoom.  The code now aggressively attempts to keep
11595         from calling document.Print (), and tries not to use the scaling
11596         g.DrawImage whenever possible (it still does if you scale to >
11597         100%, since usually that involves huge images).
11598
11599         * PrintPreviewControl.cs: hook up the close button.
11600
11601 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
11602         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
11603           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
11604           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
11605           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
11606           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
11607           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
11608           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
11609           Removed [Serializable] for 2.0 Event Handlers.
11610
11611 2006-07-31  Jackson Harper  <jackson@ximian.com>
11612
11613         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
11614         * TextControl.cs: Uncomment out the body of this method.
11615
11616 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
11617
11618         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
11619           standard cursors.
11620
11621 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11622
11623         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
11624           that embed TextBox and need selections visible even if textbox is not
11625           focused to enforce that behaviour.
11626         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
11627           selection drawing
11628
11629 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11630
11631         * TextControl.cs:
11632           - Added new SetSelectionStart/SetSelectionEnd overloads
11633           - Fixed viewport width assignment to be accurate
11634           - Adjusted alignment line shift calculations to allow cursor on right
11635             aligned lines to be always visible at the right border (like MS)
11636         * TextBoxBase.cs:
11637           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
11638           - TextBoxBase_SizeChanged: recalculating canvas on size changes
11639           - CalculateScrollBars: Use ViewPort size instead of window size, to
11640             properly consider space occupied by the border and scrollbars 
11641             (Fixes #78661)
11642           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
11643             calculations; no longer leaves artifacts
11644           - CaretMoved: Adjusted window scrolling to match MS and fixed several
11645             calculation bugs (Still missing right/center align calculations)
11646
11647 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
11648
11649         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
11650           use of both scroll rect and clip rect, as they do the same.
11651
11652 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
11653
11654         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
11655           in the event handler (fixes #78912)
11656
11657 2006-07-31  Chris Toshok  <toshok@ximian.com>
11658
11659         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
11660         grid.ListManager.Count, since grid.ListManager might be null.
11661         This of course begs the question "why are we drawing rows for a
11662         grid with no list manager (and therefor no rows)?"  Fixes the
11663         crash in bug #78929.
11664
11665 2006-07-31  Chris Toshok  <toshok@ximian.com>
11666
11667         * RelatedPropertyManager.cs: Don't always chain up to the parent
11668         ctor.  instead, call SetDataSource if the parent's position is !=
11669         -1.  Fixes the crash in #78822.
11670
11671 2006-07-31  Chris Toshok  <toshok@ximian.com>
11672
11673         * DataGrid.cs (get_ListManager): use field instead of property
11674         accessors for datasource and datamember.
11675         (RowsCount): make internal again.
11676         (OnMouseDown): end edits before resizing columns/rows.
11677         (OnMouseUp): restart edits after resizing columns/rows.
11678
11679 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
11680
11681         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
11682           This fixes the situation where the last set cursor is displayed
11683           whenever the mouse is over scrollbars.
11684
11685 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11686
11687         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
11688         Document properties, as well as initial values.
11689
11690 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
11691
11692         * XplatUIWin32.cs (SetBorderStyle): Setting both border
11693           and ClientEdge results in a 3-pixel border, which is
11694           wrong.
11695
11696 2006-07-28  Jackson Harper  <jackson@ximian.com>
11697
11698         * TreeNodeCollection.cs: Fix the clear method.
11699         - Fix the Shrink also
11700
11701 2006-07-27  Jackson Harper  <jackson@ximian.com>
11702
11703         * TreeView.cs: Make sure the visible order is computed when we
11704         attempt to size the scrollbars (for trees that mess with the
11705         scrolling when they shouldn't.
11706         - Make sure to give the scrollbars valid values.
11707
11708 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
11709
11710         * XplatUIX11.cs: Move motion compression code to where it
11711           has less performance impact
11712
11713 2006-07-26  Jackson Harper  <jackson@ximian.com>
11714
11715         * UpDownBase.cs: When the control is selected make the child
11716         controls non selectable, so that a click on them won't do a
11717         focus/unfocus cycle.
11718         - Don't give focus to the text box when the spinner is selected.
11719         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
11720
11721 2006-07-26  Chris Toshok  <toshok@ximian.com>
11722
11723         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
11724         satisfied with this solution.  If the bitmaps are small, we should
11725         just cache them in the PrintPreviewDialog and draw them here.
11726         Also, the layout is broken for the 2-up and 3-up cases.
11727
11728         * Theme.cs: add PrintPReviewControlPaint.
11729
11730         * PrintPreviewDialog.cs: first pass implementation.
11731
11732         * PrintPreviewControl.cs: first pass implementation.  No
11733         scrollbars yet.
11734
11735         * PrintDialog.cs: only validate fields if that particular portion
11736         of the UI is enabled.  Also, set the document's controller to a
11737         PrintControllerWithStatusDialog wrapping the document's print
11738         controller.
11739
11740         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
11741         bring up a SaveFileDialog (i hope we don't want to match the
11742         behavior of the crappy windows file entry) and set the
11743         PrinterSettings.PrintFileName accordingly.
11744
11745 2006-07-26  Jackson Harper  <jackson@ximian.com>
11746
11747         * ContainerControl.cs: Add a field that disables auto selecting
11748         the next control in a container when the container is activated.
11749         * UpDownBase.cs: Don't select the text box when the up down is
11750         selected.
11751
11752 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
11753
11754         * XEventQueue.cs: Added methods for peeking (used for compression
11755           of successive events)
11756         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
11757           mouse move events (fixes #78732)
11758
11759 2006-07-25  Jackson Harper  <jackson@ximian.com>
11760
11761         * UpDownBase.cs: Use an internal class for the textbox so that we
11762         can control focus.  the updown control should always have focus,
11763         if either the text area or the buttons are clicked.
11764         - Send the key messages to the textbox, since it never actually
11765         has focus
11766         - Activate and decativate the textbox caret.
11767
11768 2006-07-24  Jackson Harper  <jackson@ximian.com>
11769
11770         * Control.cs: Use the directed select when selecting a control,
11771         this way the container controls override will get called and the
11772         whole ActiveControl chain will get triggered.  TODO: probably need
11773         to make sure this gets done everywhere instead of the old
11774         Select(Control).
11775         * ContainerControl.cs: Implement the directed Select method to
11776         find and activate the correct child control.    
11777         
11778 2006-07-22  Mike Kestner  <mkestner@novell.com>
11779
11780         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
11781         menu handling code so that clicks without a grab work too.
11782         [Fixes #78914]
11783
11784 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
11785
11786         * FileDialog.cs: Enable the BackButton when dirstack has one element.
11787           Added some small optimizations.
11788
11789 2006-07-21  Matt Hargett  <matt@use.net>
11790
11791         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
11792
11793 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
11794
11795         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
11796           tests pass and match MS in some strange border cases.
11797
11798 2006-07-21  Chris Toshok  <toshok@ximian.com>
11799
11800         * ThemeWin32Classic.cs: handle drawing of the relation links and
11801         parent row buttons.
11802
11803         * Theme.cs: change args to DataGridPaintParentRow.
11804
11805         * DataGrid.cs: Don't use controls for the relation links and
11806         parent buttons, so we have to handle all their interactions in
11807         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
11808         when we're navigating through child tables, so we can reinstate
11809         selection, expanded state, current cell, etc.
11810
11811 2006-07-20  Chris Toshok  <toshok@ximian.com>
11812
11813         * ToolBar.cs: When we redraw a button, for whatever reason,
11814         there's no reason to redraw the entire toolbar.  Also, don't call
11815         Control.Refresh from within Redraw, as it's much heavier than
11816         Invalidate (which is really what we want).
11817
11818 2006-07-20  Chris Toshok  <toshok@ximian.com>
11819
11820         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
11821         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
11822         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
11823         traces from within a debug IBindingList datasource
11824         (in mono/winforms/datagrid) for *days*, I've finally gotten things
11825         to work in a similar fashion.
11826
11827 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11828
11829         * ListBox.cs: Don't call Sort () when setting 
11830         the Sorted property to false (avoid an unnecessary sort).
11831
11832 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11833
11834         * ListControl.cs: DataSource should throw an ArgumentException
11835         instead of a normal exception when the argument is not of the 
11836         correct type.
11837
11838 2006-07-20  Mike Kestner  <mkestner@novell.com>
11839
11840         * Control.cs: add InternalPreProcessMessage to allow us to steal
11841         key events before MWF gets its paws on them.  Adapted from a
11842         suggestion by eno.
11843         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
11844         up/down/left/right navigation. Override the new internal control
11845         method to steal the events since they never make it to WndProc.
11846         * ToolBarButton.cs: don't worry about pushed when setting hilight
11847         since the drawing code prefers pushed to hilight. Invalidate on 
11848         Hilight changes. Fixes #78547 and #78525.
11849
11850 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
11851
11852         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
11853           the canvas size. Fixes #78868
11854
11855 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
11856
11857         * Splitter.cs: Track requested split position until first layout
11858           is performed. Fixes #78871
11859
11860 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
11861
11862         * Application.cs: Removed code that forces 1.x for the version
11863           number if the version started with 0. Not sure why that code was
11864           there and I couldn't find any bugs that indicated we needed it.
11865           Fixes #78869
11866
11867 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
11868
11869         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
11870           ResetDefaults(), just write some output to the console until it's
11871           implemented. Fixes bug #78907 for now. Eliminated two warnings.
11872
11873 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
11874
11875         * PropertyGridView.cs: set StartPosition of drop down forms
11876         so they appear in correct initial spot.  Fixes #78190.
11877
11878 2006-07-19  Mike Kestner  <mkestner@novell.com>
11879
11880         * ThemeWin32Classic.cs: use parent background color when drawing
11881         flat toolbars.  Restructure the conditionals to make sure non-flat
11882         non-Divider toolbars are filled too.  Fixes #78837.
11883
11884 2006-07-19  Mike Kestner  <mkestner@novell.com>
11885
11886         * ListBox.cs: Sort on collection changes even if the handle
11887         isn't created yet.  Fixes #78813.
11888
11889 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11890
11891         * ListControl.cs: DisplayMember should never be null,
11892         and now we assign String.Empty when null is passed to it (this
11893         is the .Net way).
11894
11895 2006-07-17  Mike Kestner  <mkestner@novell.com>
11896
11897         * ListViewItem.cs: restructure Font and subitem Font handling 
11898         to hold a specific font and refer back to owner on null.
11899         Fixes #78761.
11900
11901 2006-07-17  Mike Kestner  <mkestner@novell.com>
11902
11903         * ToolBar.cs: bandaid for side-effect of previous patch which was
11904         discarding explicit heights for non-AutoSize toolbars.  Need to
11905         extend my format tester to deal with AutoSize=false. Fixes #78864.
11906
11907 2006-07-15  Jackson Harper  <jackson@ximian.com>
11908
11909         * LabelEditTextBox.cs:
11910         * TreeView.cs: Use a new LabelEdit class for node editing, this
11911         class automatically 'closes' itself when it gets the enter key or
11912         loses focus.
11913         - Use the client rectangle when setting the trees scrollbars, so
11914         border style is taken into account.
11915         
11916 2006-07-14  Jackson Harper  <jackson@ximian.com>
11917
11918         * TreeNode.cs:
11919         * TreeView.cs: Make the editing work similar to MSs, firing the
11920         events correctly and ending edits correctly.
11921
11922 2006-07-14  Mike Kestner  <mkestner@novell.com>
11923
11924         * ToolBarButton.cs:
11925         * ToolBar.cs: layout restructuring and redraw enhancements to support
11926         formatting changes gracefully, like setting TextAlign, ImageList, 
11927         ButtonSize, and Appearance.  Handles explicit button sizing quirks
11928         of the MS controls.  Things like flat toolbars ignoring button size
11929         but becoming constant sized at the largest button's size.  Normal
11930         toolbars with an image set cannot be shrunk smaller than the image,
11931         but text can be clipped/ignored.
11932         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
11933         is zero.  Seems like DrawString should be smart enough to not put
11934         anything on screen though. Also trim labels and ellipsize at the char
11935         boundary, not word.
11936         Fixes #78711 and #78483.
11937
11938 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
11939
11940         * FolderBrowserDialog.cs: Disable "New Folder" button and
11941           "New Folder" contextmenu menuitem if a folder like "My Computer"
11942           is selected.
11943
11944 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
11945
11946         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
11947         * FolderBrowserDialog.cs:
11948           - Use MWFConfig to store and read size and position settings
11949           - Added code to create a new folder (button or context menu).
11950             Use TreeView labeledit to change the name of the new folder.
11951
11952 2006-07-14  Jackson Harper  <jackson@ximian.com>
11953
11954         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
11955         when the tree is scrolled we end editing.
11956
11957 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
11958
11959         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
11960           Down arrows
11961
11962 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
11963
11964         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
11965         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
11966         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
11967         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
11968         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
11969         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
11970         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
11971         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
11972         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
11973         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
11974         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
11975         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
11976         ListViewItemSelectionChangedEventHandler.cs,
11977         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
11978         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
11979         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
11980         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
11981         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
11982         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
11983         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
11984         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
11985         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
11986         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
11987         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
11988         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
11989         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
11990         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
11991         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
11992         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
11993         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
11994         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
11995         WebBrowserNavigatingEventHandler.cs, 
11996         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
11997
11998 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
11999
12000         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
12001         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
12002         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
12003         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
12004         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
12005         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
12006         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
12007         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
12008         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
12009         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
12010         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
12011         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
12012         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
12013         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
12014         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
12015         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
12016         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
12017         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
12018         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
12019         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
12020         ListViewItemStates.cs, MaskFormat.cs: Added
12021
12022 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
12023
12024         * PropertyGridView.cs: Fix keyboard navigation of drop down.
12025         Patch from eno for bug 78558.
12026         
12027 2006-07-13  Jackson Harper  <jackson@ximian.com>
12028
12029         * TreeView.cs: When an edit is finished make sure that the
12030         selected node is visible.
12031         - When setting the top/bottom use the scrollbars is_visible, so
12032         everything will be set correctly even if the tree isn't visible
12033         yet.
12034
12035 2006-07-13  Jackson Harper  <jackson@ximian.com>
12036
12037         * ComboBox.cs: Revert the item->index part of my previous patch.
12038         * TreeView.cs: Use LostFocus instead of Leave for detecting when
12039         the edit box has lost focus (duh).
12040         - Just make the edit box not visible when we get return, that will
12041         take the focus, which will call EndEdit
12042         * TreeNode.cs When we start editing, notify the treeview.
12043
12044 2006-07-12  Jackson Harper  <jackson@ximian.com>
12045
12046         * ComboBox.cs: Clear out old items before setting the item list.
12047         This prevents databound controls from having their items added
12048         twice.
12049         - Switch the combobox to use indices whereever possible instead of
12050         using Item's.  This allows usto navigate through lists that have
12051         more then one item with the same string value (ie a, b, b, a).
12052         - Scroll the listboxes scrollbar when a non visible item is
12053         highlighted
12054         - Allow keypress to cycle through all the possible values. For
12055         example if you have b1, b2, b3 and hold down the B key all the
12056         values will be cycled through.
12057         
12058 2006-07-12  Jackson Harper  <jackson@ximian.com>
12059
12060         * TextBoxBase.cs:
12061         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
12062         this using the internal methods.
12063         * Control.cs: Add OnGotFocusInternal.  A new method that allows
12064         controls to "override" OnGotFocus and change focus behavior if
12065         needed.
12066         - Same thing for LostFocus
12067         * ComboBox.cs: Pass off focus to the text control properly.
12068
12069 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
12070
12071         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
12072         * FolderBrowserDialog.cs: Almost a complete rewrite.
12073           - Better support for Environment.Specialfolders
12074           - Added support for MWFVFS
12075           - Made setting SelectedPath work
12076
12077 2006-07-12  Jackson Harper  <jackson@ximian.com>
12078
12079         * Control.cs: Optimze getting all the controls.
12080
12081 2006-07-11  Jackson Harper  <jackson@ximian.com>
12082
12083         * ContainerControl.cs: Override SETFOCUS in the container control,
12084         so that it is not selected on mouse click.
12085
12086 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
12087
12088         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
12089           Hopefully we will have a better way once all of focus is complete.
12090
12091 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
12092
12093         * ThemeWin32Classic.cs: Commented out some debug code and fixed
12094           a compile error with csc.
12095
12096 2006-07-11  Jackson Harper  <jackson@ximian.com>
12097
12098         * Control.cs: When hiding a control only select the next control
12099         if the current control was focused.
12100         - Don't handle enter/leave when setting/killing focus, this is
12101         done by the container control.
12102         - Remove is_selected, it's not needed anymore.
12103         - Add utility methods for selecting a child control, and for
12104         firing the Enter/Leave events.
12105         * ContainerControl.cs: When a control is activated fire the
12106         enter/leave events.
12107         - Don't wrap when processing the tab key, so that focus can be
12108         moved outside of the container.
12109         - Use the correct active control
12110
12111 2006-07-11  Jackson Harper  <jackson@ximian.com>
12112
12113         * ComboBox.cs: Remove some debug code that was blinding me.
12114         * UpDownBase.cs: These controls actually aren't implicit, they are
12115         visible to the user.
12116
12117 2006-07-10  Chris Toshok  <toshok@ximian.com>
12118
12119         * DataGrid.cs: move back to the is_adding boolean field.  god i
12120         hate this is_editing/is_adding/is_changing stuff.
12121
12122 2006-07-10  Chris Toshok  <toshok@ximian.com>
12123
12124         * DataGridTableStyle.cs: just check if the property type is bool.
12125         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
12126         Don't use CanRenderType.
12127
12128         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
12129         if our text == NullText.  Remove CanRenderType.
12130
12131         * DataGridBoolColumn.cs: nuke CanRenderType.
12132
12133         * DataGrid.cs: reenable some code to end the current edit inside
12134         of set_CurrentCell.  This fixes the other 1.1.16 regression.
12135         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
12136         Also, remove the visible_row_count arg from CalcRowHeaders, since
12137         we don't need to worry about the actual height of the area.
12138
12139 2006-07-10  Chris Toshok  <toshok@ximian.com>
12140
12141         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
12142         mode, just return.
12143
12144         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
12145         the real sense of the IsInEditOrNavigateMode property (true =
12146         navigate, false = edit).  Also, update OnKeyPress to reflect this.
12147
12148         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
12149         column style exists, we still need to set its property descriptor
12150         to match up with our list manager.
12151
12152 2006-07-10  Chris Toshok  <toshok@ximian.com>
12153
12154         * ThemeWin32Classic.cs: implement the new row/header painting
12155         approach.  The parent row painting will likely go away and
12156         replaced with label controls, but the rest seems to work ok (and
12157         efficiently).
12158
12159         * Theme.cs: change the way we draw datagrid rows.  we don't draw
12160         the row headers as a block now.  Instead we draw them in the
12161         normal draw-row loop.  Add some calls for drawing parent rows and
12162         relation rows.
12163
12164         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
12165         a default table style.  Set the defaults from ThemeEngine.Current,
12166         not SystemColors.  Fix lots of misc issues with property setters.
12167
12168         * DataGrid.cs: move loads of style information out of this class
12169         as it's being duplicated with DataGridTableStyle.  keep track of a
12170         special DataGridTableStyle for the properties we used to mirror
12171         here.  Switch all the style properties to access this table style
12172         instead of instance fields of this class.  Also add a internal
12173         class to represent parent rows (more needs to be stored here, like
12174         the selection state from the parent table, as well as the
12175         expansion state.)  Also, for datasources with relations, do the
12176         right thing for collapse/expand, and add support for the
12177         navigation/parent row buttons.
12178
12179         Lastly, fix the crash in the 1.1.16 build.
12180
12181         * GridTableStylesCollection.cs: make the explicit interface
12182         implementations call the class's methods as opposed to duplicating
12183         them.
12184
12185         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
12186         0 so the text doesn't jump around when we move the cursor.
12187
12188 2006-07-10  Jackson Harper  <jackson@ximian.com>
12189
12190         * TextBoxBase.cs:
12191         * ListBox.cs: Match MS's ToString (this makes debugging focus
12192         stuff infinitely easier).
12193
12194 2006-07-10  Jackson Harper  <jackson@ximian.com>
12195
12196         * Control.cs (SelectNextControl): When checking the control's
12197         parent use this instead of ctrl.parent so that null can be passed
12198         to SelectNextControl. (I have unit tests for this).
12199         - Remove unused var.
12200
12201 2006-07-10  Chris Toshok  <toshok@ximian.com>
12202
12203         * CurrencyManager.cs: correct one regression, the removal of the
12204         finalType field.  Also, add a MonoTODO on CanAddRows, implement
12205         Refresh() correctly, and fix some event emission in
12206         ListChangedHandler.
12207
12208 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
12209
12210         * FileDialog.cs: Don't use brackets for new folders if they exist
12211           under *nix. Instead use -(number of existing folders +1).
12212
12213 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
12214
12215         * FileDialog.cs:
12216           - Fixed really nasty bug #78771
12217           - Don't block the whole GUI when reading directories with a lot of
12218             entries. Use an other thread instead and call BeginInvoke to
12219             update the ListView in MWFFileView
12220
12221 2006-07-07  Chris Toshok  <toshok@ximian.com>
12222
12223         * Control.cs (Dispose): release any Capture when disposing.
12224
12225 2006-07-07  Chris Toshok  <toshok@ximian.com>
12226
12227         * LinkLabel.cs (Select): if we chain up to the parent, set
12228         focused_index to -1 so we'll search for the first available link
12229         the next time the user tabs into us.  Also, if the direction is
12230         backward and focused_index == -1, start the search from the last
12231         element.
12232
12233 2006-07-07  Chris Toshok  <toshok@ximian.com>
12234
12235         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
12236         is beyond the end of the text, don't do anything.
12237         (CreateLinkPieces): set our ControlStyles.Selectable based on
12238         whether or not we have any links.
12239         (Link.Invalidate): use a loop instead of foreach.
12240         (Link.set_Start): null out owner.sorted_links so it'll be
12241         recreated by CreateLinkPieces.
12242
12243 2006-07-06  Chris Toshok  <toshok@ximian.com>
12244
12245         * LinkLabel.cs: revert the SetStyle change.
12246
12247 2006-07-06  Chris Toshok  <toshok@ximian.com>
12248
12249         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
12250         (OnEnableChanged): s/Refresh/Invalidate
12251         (OnGotFocus): if we have a focused index already, refocus it (so
12252         if we mouse out/in to the window it'll focus the right link).
12253         (OnKeyDown): move the tab handling out of here.
12254         (OnLostFocus): don't set focused_index to -1, so we can refocus it
12255         when we lose focus.
12256         (OnMouseDown): don't Capture here - Control handles it.  Also,
12257         focus the active link.
12258         (OnMouseUp): don't deal with Capture.
12259         (OnPaintBackgroundInternal): remove.
12260         (OnTextAlignChanged): CreateLinkPieces before calling the
12261         superclass's method.
12262         (OnTextChanged): call CreateLinkPieces before calling superclass's
12263         method.
12264         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
12265         move around.
12266         (Select): implement this, moving the selection between different
12267         links, and call parent.SelectNextControl if we don't have another
12268         link to focus in the given direction.
12269         (CreateLinkPieces): call Invalidate instead of Refresh.
12270         
12271 2006-07-06  Chris Toshok  <toshok@ximian.com>
12272
12273         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
12274         new LinkLabel internals.
12275
12276         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
12277         over pieces looking for active/focused/etc links.  also, deal with
12278         runs of text (and links) with embedded \n's in them, and use
12279         MeasureCharacterRanges instead of MeasureString to figure out the
12280         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
12281         two-step.
12282
12283 2006-07-04  Jackson Harper  <jackson@ximian.com>
12284
12285         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
12286         XKB or key auto repeat, do it manually.  Without key auto repeat,
12287         when a key is held down we get key press, key release, key press,
12288         key release, ... with auto repeat we get key press, key press, key
12289         press ..., and then a release when the key is actually released.
12290
12291 2006-07-03  Jackson Harper  <jackson@ximian.com>
12292
12293         * TabControl.cs:
12294         * ThemeWin32Classic.cs: Tabs do not obey normal background color
12295         rules, they are always control color regardless of the background
12296         color.
12297
12298 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
12299
12300         * FileDialog.cs: Added internal class MWFConfig.
12301           Removed Registry support and replaced it with support for the new
12302           MWFConfig class. See MWFConfig comments for more information.
12303
12304 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
12305
12306         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
12307           rectangle. Added some patches from eno from bug #78490 and fixed
12308           the arrow position for small up and down CPDrawScrollButtons.
12309
12310 2006-06-30  Jackson Harper  <jackson@ximian.com>
12311
12312         * InternalWindowManager.cs: Remove some debug code.
12313         * Form.cs: When an MdiParent is set to null, the window is
12314         "detatched" and becomes a normal window.
12315         * MdiClient.cs: Don't bring the new child form to the front until
12316         it is activated (setting it as active does this), this makes the
12317         previously active forms titlebar get redrawn as inactive.
12318
12319 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
12320
12321         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
12322           with later controls
12323
12324 2006-06-29  Mike Kestner  <mkestner@novell.com>
12325
12326         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
12327         arrow in keynav state.  Fixes #78682.
12328
12329 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
12330
12331         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
12332           order (fixes #78393)
12333
12334 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
12335
12336         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
12337           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
12338           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
12339           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
12340           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
12341           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
12342           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
12343           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
12344           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
12345           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
12346           enumerations (FlagsAttribute, SerializableAttribute, added/removed
12347           values)
12348
12349 2006-06-28  Mike Kestner  <mkestner@novell.com>
12350
12351         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
12352
12353 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
12354
12355         * PropertyGrid.cs,
12356           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
12357           item lines from other area (It also makes BackColor consistent and
12358           compatible with .NET). Fixed bug #78564.
12359
12360 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
12361
12362         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
12363         Patch from Eno for #78555.
12364
12365 2006-06-27  Chris Toshok  <toshok@ximian.com>
12366
12367         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
12368
12369         * DataGridColumnStyle.cs: same.
12370
12371         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
12372         
12373         * DataGridDrawingLogic.cs: nuke.
12374
12375 2006-06-27  Chris Toshok  <toshok@ximian.com>
12376
12377         * DataGridTableStyle.cs: clean up the constructors, and build the
12378         list of child relations for this table.  I have no idea if this is
12379         where we should be doing it (it probably isn't), but since we're
12380         already iterating over the properties..
12381
12382         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
12383         struct and array for keeping track of row information, similar to
12384         what's shown in a hack on
12385         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
12386
12387         * Theme.cs: be consistent about the naming of DataGrid methods,
12388         prefering ColumnWidths and RowHeights over columnsWidths and
12389         RowsHeights.
12390
12391         * ThemeWin32Classic.cs: same, and also add support for variable
12392         sized rows (and the +/- expansion icons for related rows).
12393
12394 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
12395
12396         * TextBoxBase.cs: Applied Eno's patch from #78660
12397
12398 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
12399
12400         * Form.cs (ScaleCore): We don't want to scale our form if it's
12401           state is minimized or maximized, but we still need to scale our
12402           child windows. Also, added try/finally block to ensure layout
12403           gets reset (Fixes #78697)
12404
12405 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
12406
12407         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
12408
12409 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
12410
12411         * Form.cs: Fixed c+p error and added check to resize form if minimum
12412           size is bigger than current size (Fixes #78709)
12413
12414 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
12415
12416         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
12417
12418 2006-06-26  Mike Kestner  <mkestner@novell.com>
12419
12420         * ComboBox.cs: only do Keypress handling in the combo when there  
12421         are items in the collection. Fixes #78710.
12422
12423 2006-06-26  Chris Toshok  <toshok@ximian.com>
12424
12425         * Binding.cs: make this work bi-directionally.  also, clear up
12426         other mixups between Push/Pull Data (e.g. we're supposed to pull
12427         data when validating).
12428
12429         * BindingManagerBase.cs: trim some fully qualified collection
12430         types.
12431
12432         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
12433
12434 2006-06-23  Chris Toshok  <toshok@ximian.com>
12435
12436         * PropertyManager.cs: It appears (according to the unit tests)
12437         that PropertyManager doesn't use
12438         PropertyDescriptor.AddValueChanged to track propery value changes
12439         in its datasource, but uses the same scheme as Binding, where it
12440         looks for a <Property>Changed event and binds to it.
12441
12442         Also, according to the docs, IsSuspended always returns false for
12443         a property manager with a non-null datasource.
12444
12445 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
12446
12447         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
12448           need to update the actual DialogResult. (Fixes #78613)
12449
12450 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
12451
12452         * Form.cs (ShowDialog): Release any captures before running the
12453           new message pump (fixes #78680)
12454
12455 2006-06-22  Mike Kestner  <mkestner@novell.com>
12456
12457         * ListView.cs: Layout column widths properly in details mode even 
12458         if HeaderStyle.None is set.  Fixes #78691.
12459
12460 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
12461
12462         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
12463
12464 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
12465
12466         * Control.cs (ContainsFocus): Using new driver method to get focused
12467           window, instead of trying to use internal tracking var, which can
12468           recursion issues (Fixes #78685)
12469         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
12470           XplatUIWin32.cs: Added GetFocus method to return focused window
12471
12472 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12473
12474         * ColorDialog.cs: when the mouse button is pressed inside the color
12475         matrix, don't let the cursor move out of it until the button is
12476         released, which is the behavior on windows. Changed 'colours' by
12477         'colors' to use the same word consistently.
12478
12479 2006-06-21  Chris Toshok  <toshok@ximian.com>
12480
12481         * DataGrid.cs: add in some basic navigation stuff (navigating to a
12482         child relation and back, using a stack).  Also, remove
12483         GetDataSource and the code that calls it - it's not needed.  Also,
12484         track CurrencyManager.ListName's removal.
12485
12486 2006-06-21  Chris Toshok  <toshok@ximian.com>
12487
12488         * CurrencyManager.cs: push some of the original type checking from
12489         BindingContext.CreateBindingManager to here, and remove some of
12490         the finalType stuff.  Need more tests to make sure I've got the
12491         ListName part right, and we might need more in SetDataSource.
12492
12493         * PropertyManager.cs: add a ctor that takes just the datasource,
12494         and no property name.  Make SetDataSource work with a null
12495         property_name, and make Current return the data_source if the
12496         property descriptor is null.  this makes 'string foo = "hi";
12497         BindingContext[foo].Current' return "hi" as it should.
12498
12499         * RelatedCurrencyManager.cs: make this code more generic - there's
12500         no reason the parent manager has to be CurrencyManager, and
12501         there's no reason to pass the DataRelation.  It suffices to use a
12502         BindingManagerBase and PropetyDescriptor.
12503
12504         * RelatedPropertyManager.cs: make a similar change here.
12505         
12506         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
12507         flower I knew it could be.
12508
12509 2006-06-20  Chris Toshok  <toshok@ximian.com>
12510
12511         * PropertyManager.cs: the PropertyChangedHandler is invoked when
12512         data in the source has changed and we need to update the control,
12513         so s/PullData/PushData.
12514
12515         * CurrencyManager.cs: Refresh is meant to update the control from
12516         data in the datasource.  So, s/PullData/PushData.
12517
12518         * BindingContext.cs: add more ugliness (we weren't handling the
12519         case where data_source = DataTable and data_member = column_name).
12520
12521         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
12522         from the perspective of the datasource.  PullData pulls from the
12523         control, PushData pushes to the control.
12524
12525 2006-06-20  Chris Toshok  <toshok@ximian.com>
12526
12527         * BindingContext.cs: rewrite the CreateBindingManager code to
12528         handle navigation paths more or less properly.  This could
12529         definitely stand some more work, in particular to push the
12530         recursion up to the toplevel.  But that relies on fixes in other
12531         places (System.Data comes to mind).
12532
12533         Also, move to a flat hashtable (and encode the twolevel nature of
12534         the dictionary into the hash key).  This lets us implement the
12535         IEnumerable.GetEnumerator method.
12536
12537         * RelatedCurrencyManager.cs: new class.  Update our view based on
12538         our relation and our parent CurrencyManager's position.
12539
12540         * CurrencyManager.cs: split out some logic from the ctor into
12541         SetView, so it can be called from the new RelatedCurrencyManager
12542         subclass.
12543
12544         * RelatedPropertyManager.cs: new class.  Update our datasource
12545         based on the position of our parent CurrencyManager.
12546
12547         * PropertyManager.cs: split out some logic from the ctor into
12548         SetDataSource, so it can be called from the new RelatedDataSource
12549         subclass.  Also, make the Current getter return the value
12550         of the PropertyDescriptor, not the data_source.
12551
12552         * Binding.cs: no need to duplicate the string splitting code here.
12553
12554 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
12555
12556         * Control.cs:
12557           - set_Enabled: OnEnabledChanged is not called if the inherited state 
12558             of the control is not altered, even though  we might be changing the
12559             internal state of the control (#78458)
12560           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
12561             OnEnabledChanged, to allow easy altering of any child window state
12562           - OnEnabledChanged: Added code to enable/disable driver window state
12563           - OnParentEnabledChanged: Instead of firing the event, call 
12564             OnEnabledChanged, which will fire the event and also a) set driver
12565             window state and pass the enabled state to any grandchildren (#78458)
12566
12567 2006-06-19  Jackson Harper  <jackson@ximian.com>
12568
12569         * InternalWindowManager.cs: We don't set the cursor explicitly
12570         thats done via the response to NCHITTESTs.
12571         - Don't need to adjust for titlebar heights anymore, the
12572         coordinates are coming in the correct coordinates now (see peters
12573         last patch).
12574
12575
12576 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
12577
12578         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
12579           being translated relative to whole window, instead of client window.
12580           That caused broken offsets on mouseclick (and caused gas for our
12581           InternalWindowManager)
12582
12583 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
12584
12585         * TextControl.cs:
12586           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
12587           - Undo(): Added replay of cursor move on DeleteChars action; added
12588             calling Undo() again if a recorded cursor move is invalid (to
12589             ensure that some action is performed on Undo)
12590         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
12591
12592 2006-06-16  Jackson Harper  <jackson@ximian.com>
12593
12594         * MdiClient.cs: Instead of just sizing maximized windows when
12595         there is a resize we also have to adjust the Y of minimized
12596         windows, so they stay pinned to the bottom of the mdi container.
12597         - Eliminate separate tracking of the active control, we can just
12598         get this from the controls collection.
12599         - Paint the decorations for the newly activated titlebar so we get
12600         a pretty blue bar.
12601         * InternalWindowManager.cs:
12602         * ThemeWin32Classic.cs: Minimized windows get all three buttons
12603         even if they are a tool window.
12604         
12605 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
12606
12607         * TextControl.cs (Undo): Handle non-existent cursor locations in the
12608           undo buffer, these can happen when text was deleted and the cursor
12609           was recorded first. Since we will also have a recorded cursor
12610           after the delete this is not an issue. (Fixes #78651)
12611
12612 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
12613
12614         * AccessibleObject.cs: Remove dependence on Control.is_selected;
12615           instead properly track control states internally (allows us to
12616           remove is_selected from Control)
12617
12618 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12619
12620         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
12621         whose width is not a multiple of 8.
12622
12623 2006-06-13  Jackson Harper  <jackson@ximian.com>
12624
12625         * MdiClient.cs:  Only maximize the next child if the current one
12626         is maximized.
12627
12628 2006-06-13  Chris Toshok  <toshok@ximian.com>
12629
12630         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
12631         modified.  Also, guard against grid or grid_drawing being null in
12632         Invalidate.
12633
12634         * DataGrid.cs: Reformat tons of getters/setters.  In the
12635         DataMember setter, just call SetNewDataSource instead of
12636         duplicating some of its functionality.  In SetNewDataSource, don't
12637         check ListManager for null, since the property getter creates the
12638         object if needed.
12639
12640         * DataGridTableStyle.cs: don't set TableStyle or call
12641         SetDataGridInternal on the column here, it's done in
12642         GridColumnStylesCollection.Add.
12643
12644         * GridColumnStylesCollection.cs: fix all the explicit interface
12645         implementations to just call our methods.  Nuke AddInternal() and
12646         move the body of it to Add().  Also, add a call to
12647         column.SetDataGridInternal to Add().
12648
12649         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
12650         base()+duplicate code.  Also, use the Format property instead of
12651         format to generate an Invalidate ala MS.  Lastly, create the
12652         textbox here, unconditionally.
12653         (set_Format): call Invalidate.
12654         (get_TextBox): no need to call EnsureTextBox.
12655         (Commit): remove the message box.
12656         (Edit) remove the call to EnsureTextBox.
12657         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
12658         (EnterNullValue): no need to check textbox for null.
12659         (HideEditBox): no need to check textbox for null.
12660         (SetDataGridInColumn): add the textbox to the grid's controls.
12661         (EnsureTextBox): nuke.
12662         
12663 2006-06-13  Jackson Harper  <jackson@ximian.com>
12664
12665         * MdiWindowManager.cs: Hook up to the maximized menus paint event
12666         and redraw the buttons when needed. Unhook when the window is
12667         unmaximized.
12668         * MainMenu.cs: Add an internal Paint event, the mdi window manager
12669         needs this so that it can redraw its buttons when the menu is
12670         repainted.
12671         * InternalWindowManager.cs:
12672         * Form.cs: The method order has changed for DrawMaximizedButtons,
12673         so that it can be a PaintEventHandler.
12674         
12675 2006-06-13  Jackson Harper  <jackson@ximian.com>
12676
12677         * MdiClient.cs: When we close a maximized mdi window, the next mdi
12678         window is activated and maximized, even if it wasn't before.
12679         - When  a new window is activated repaint the decorations of the
12680         old one, so that it no longer has the Active "look" (the blue
12681         titlebar).
12682         * InternalWindowManager.cs: Open up CreateButtons to base classes
12683         so they can recreate the buttons on state changes.
12684         - If a window is maximized give it all three buttons
12685         * MdiWindowManager.cs: Create the titlebar buttons when the state
12686         is changed, this is needed because a toolwindow will not have all
12687         three buttons until it is maximized.
12688
12689 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
12690
12691         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
12692           Fixed bug #78609.
12693
12694 2006-06-12  Jackson Harper  <jackson@ximian.com>
12695
12696         * KeysConverter.cs: Make sure we handle the Ctrl special case
12697         if its the only key.
12698         
12699 2006-06-12  Jackson Harper  <jackson@ximian.com>
12700
12701         * Theme.cs: Add a method to get the size of a managed window
12702         toolbar button.
12703         * InternalWindowManager.cs: Remove the ButtonSize property, this
12704         should be retrieved from the theme.
12705         * MdiWindowManager.cs: Get the button size from the theme
12706         * ThemeWin32Classic.cs: Make the method to get the managed window
12707         titlebar button size public.
12708         - Handle the different button sizes of maximized toolwindows
12709         (should match any maximized window).
12710         - Get the titlebar height from the theme, not the WM (which gets
12711         it from the theme).
12712
12713 2006-06-12  Jackson Harper  <jackson@ximian.com>
12714
12715         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
12716         event down to the mdi window manager.
12717         - Expose some extra stuff to base classes
12718         - Make sure to end the Capture on an NC Mouse up, so that we can
12719         get double clicks properly, and the sizing doens't stick.
12720         - When doing PointToClient contain it in the workable desktop
12721         area, this prevents windows from changing size when the cursor is
12722         pulled outside of the working area while sizing.
12723         * MdiWindowManager.cs: When we get a double click maximize the
12724         window.
12725         - Reset the cursor after handling mode changes.
12726
12727 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
12728
12729         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
12730           current desktop, instead of just assuming a 0, 0 origin. This
12731           is needed for our internal window manager, to know the top
12732           margin of the desktop
12733
12734 2006-06-12  Chris Toshok  <toshok@ximian.com>
12735
12736         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
12737         we need this to get rid of the selected background in the bool
12738         column.
12739         (CancelEditing): move the ConcedeFocus call to above the Abort
12740         call.  Also, set is_changing to false and invalidate the row
12741         header if we were changing before.
12742         (ProcessKeyPreviewInternal): remove, since noone outside this
12743         class calls it anymore.  Roll the code into ProcessKeyPreview.
12744         (EndEdit): remove the internal version.
12745         (InvalidateCurrentRowHeader): make private.
12746
12747         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
12748         Keys.Escape handling (and with it the last call to
12749         DataGrid.EndEdit from outside the class.)
12750
12751
12752 2006-06-12  Chris Toshok  <toshok@ximian.com>
12753
12754         * DataGridTextBox.cs (.ctor): isedit defaults to false.
12755         (OnKeyPress): set isedit to true.
12756         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
12757         already handled by the grid.
12758
12759         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
12760         right.  ugh.
12761         (set_DataSource): SetDataSource always returns true, so stop
12762         putting it in an if statement.
12763         (EndEdit): get rid of some {}'s
12764         (ProcessGridKey): return true in case Keys.Escape.
12765         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
12766         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
12767         PositionChanged, stopped connecting to CurrentChanged.
12768         (GetDataSource): simplify this a bunch.
12769         (SetDataSource): change return type from bool to void.
12770         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
12771         to this, and make sure we don't set ListManager.Position inside
12772         set_CurrentCell.
12773         (OnListManagerItemChanged): if we're passed an actual index,
12774         redraw that row.
12775
12776         * CurrencyManager.cs (set_Position): don't call PullData here.
12777
12778 2006-06-09  Jackson Harper  <jackson@ximian.com>
12779
12780         * TreeNode.cs:  Recalculate the visible order before doing the
12781         Expand/Collapse Below calls, because those calls generate an
12782         expose.
12783         - Reduce calls to the TreeView property, which is mildly expensive
12784         by using a local var.
12785         * Form.cs: Layout the MDI child windows when creating the parent
12786         form.
12787         - Don't use the internal constructor anymore
12788         * MdiClient.cs: use the parent form width/height (if available)
12789         when laying out the child windows, we do this because the
12790         mdiclient isn't docked yet when the initial layout is done.
12791         - Don't need an internal constructor anymore.
12792
12793 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12794
12795         * FileDialog.cs: handle access errors when trying to create a folder
12796         or changing to a directory. No need to initialize out parameters.
12797
12798 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12799
12800         * FileDialog.cs: Append a number when creating a new folder if the
12801           folder already exists (use parenthesis instead of square brackets)
12802
12803 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12804
12805         * FileDialog.cs:
12806           - Disabled registry support for windows and added better registry
12807             error checking for other systems (need to investigate why it
12808             works perfectly on my system)
12809           - If a folder already exist show an error MessageBox instead of
12810             trying to create an indexed name.
12811           - Fixed a non intentional typo.
12812
12813 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12814
12815         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
12816
12817 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12818
12819         * FileDialog.cs: When creating a new folder don't crash if the
12820           folder already exists.
12821
12822 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12823
12824         * FileDialog.cs: Allmost a complete rewrite.
12825           - added a "virtual" file system that handles the differences
12826             between unix and windows file systems (especially the directory
12827             structure). Moved most of the directory and file handling code
12828             into the vfs.
12829             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
12830             UnixFileSystem and FSEntry.
12831           - Recently used folder/directory, size, location and used file names
12832             (file name ComboBox) are now stored in the registry and get read
12833             before the dialog shows up (fixes part 6 of bug #78446).
12834           - Creation of new folders/directories is now possible (context menu
12835             or ToolBar). Added TextEntryDialog for this that fills in the gap
12836             until ListView.LabelEdit works.
12837           - Fixed cursor handling (bug #78527) and focus handling for
12838             PopupButtonPanel
12839           - Various "Search in" ComboBox enhancements. The content of the
12840             dropdown listbox now almost matches ms.
12841           - Changed the behaviour when the user switches to SpecialFolder
12842             Recent to show the ListView in View.Details.
12843           - Beside using the ToolBar to change the View property of the
12844             file ListView it is now possible to use the context menu too.
12845
12846 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
12847
12848         * ComboBox.cs: Don't create a new ObjectCollection when an item
12849           gets inserted. Just insert the item in the existing object_items
12850           ArrayList.
12851
12852 2006-06-08  Jackson Harper  <jackson@ximian.com>
12853
12854         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
12855         that the treeview and root node checks are done also, this fixes a
12856         regression i caused in the unit tests.
12857
12858 2006-06-07  Wade Berrier <wberrier@novell.com> 
12859
12860         * RichTextBox.cs: More ISO8859-1 -> unicode
12861
12862 2006-06-07  Mike Kestner  <mkestner@novell.com>
12863
12864         * ComboBox.cs : use items to hold highlight/selection so that
12865         collection insertions don't require synchronization.
12866
12867 2006-06-07  Jackson Harper  <jackson@ximian.com>
12868
12869         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
12870         routine.  We now always keep the sized edge at the cursor instead
12871         of computing movement and adjusting rects.  There is one buglet
12872         with this method though when the cursor is moved over area that
12873         the window can not expand too (such as the toolbars on the desktop).
12874
12875 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12876
12877         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
12878         here. Fixes crash on startup in AlbumSurfer.
12879
12880 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
12881
12882         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
12883           values
12884
12885 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12886
12887         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
12888         statement to avoid calling XNextEvent which will block if another thread
12889         took the event that we were expecting. Fixes bug #78605.
12890
12891 2006-06-07  Mike Kestner  <mkestner@novell.com>
12892
12893         * ListView.cs : isolated checkbox clicking from the selection logic.
12894         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
12895
12896 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12897
12898         * Form.cs: Check that the value passed to Form.DialogResult
12899         is a valid enum value.
12900
12901 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12902
12903         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
12904         Computer'. Clicking it in the network view goes to 'My Computer'.
12905         Added CIFS filesystem type. Display the mount point of filesystems.
12906         Avoid duplicate mount points (happens for me with CIFS);
12907
12908 2006-06-06  Jackson Harper  <jackson@ximian.com>
12909
12910         * InternalWindowManager.cs: Draw the maximized windows buttons
12911         when resizing.
12912
12913 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12914
12915         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
12916         all other dialogs. Fixes bug #78585.
12917
12918 2006-06-06  Mike Kestner  <mkestner@novell.com>
12919
12920         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
12921         Only invalidate checkbox on checkstate changes to avoid flicker.
12922         * ListBox.cs : avoid unselect/select when clicking selected item.
12923         avoid reselection flicker for already multiselected items.
12924         Fixes #78382.
12925
12926 2006-06-06  Jackson Harper  <jackson@ximian.com>
12927
12928         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
12929         the parent form so that the menu is removed if needed.
12930
12931 2006-06-06  Mike Kestner  <mkestner@novell.com>
12932
12933         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
12934         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
12935
12936 2006-06-06  Mike Kestner  <mkestner@novell.com>
12937
12938         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
12939
12940
12941 2006-06-06  Jackson Harper  <jackson@ximian.com>
12942
12943         * Control.cs: Use the property (instead of the field) to get the
12944         default cursor so it is instantiated correctly.
12945         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
12946         resizes so we need to manually repaint the window decorations here.
12947         - Set the titlebar button locations as soon as they are created,
12948         otherwise they are not set correctly on win32.
12949         
12950 2006-06-06  Chris Toshok  <toshok@ximian.com>
12951
12952         * CurrencyManager.cs (set_Position): call PullData before
12953         OnCurrentChanged.
12954         (AddNew): after calling IBindingList.AddNew, update our
12955         listposition, and call OnCurrentChanged/OnPositionChanged (without
12956         calling PullData).
12957         (OnCurrentChanged): remove the call to PullData from here.
12958         (OnItemChanged): remove the call to PushData from here.
12959         (OnPositionChanged): change the test from == null to != null to
12960         match the other methods.
12961         (ListChangedHandler): the grossest part of the patch.  Implement
12962         this such that it passes the unit tests in CurrencyManagerTest and
12963         the output more or less matches that of MS's implementation.
12964  
12965 2006-06-06  Mike Kestner  <mkestner@novell.com>
12966
12967         * ListView.cs : only update check state on single click.
12968         * ThemeWin32Classic.cs : fix focus drawing for details view without
12969         fullrowselect.  Fixes #78454.
12970         * XplatUIX11.cs : fix for double click emission.
12971
12972 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
12973
12974         * PropertyGridView.cs : Applied Atsushi's patch to fix
12975         font dialog bug  (#78197).
12976
12977 2006-06-05  Jackson Harper  <jackson@ximian.com>
12978
12979         * TreeNode.cs: Compute the next node for expanding/collapsing
12980         correctly. We now factor in nodes without a NextNode
12981         correctly. (Fixes somes cases in nunit-gui).
12982         * InternalWindowManager.cs: Set the bounds when updating the
12983         virtual position of a tool window.
12984         
12985 2006-06-05  Chris Toshok  <toshok@ximian.com>
12986
12987         * DataGrid.cs: rename cached_currencymgr to list_manager.
12988         (set_CurrentCell): move SetCurrentCell code here, and clean it up
12989         some.
12990         (CurrentRow, CurrentColumn): single accessors so we can make the
12991         cursor movement code a lot easier to understand.
12992         (CurrentRowIndex): implement this in terms of CurrentRow.
12993         (BeginEdit): clean this up a bit.
12994         (CancelEditing): sort out the is_editing/is_changing/is_adding
12995         stuff a little.
12996         (EndEdit): minor changes.
12997         (OnKeyDown): add a comment about a (most likely) unnecessary
12998         check.
12999         (OnMouseDown): cancel editing when we click on a row header.  And
13000         use the CurrentRow setter, not CurrentCell.
13001         (ProcessDialogKey): directly call ProcessGridKey.
13002         (UpdateSelectionAfterCursorMove): factor out this common block of
13003         code (it's used everywhere that we move the cursor by updating row
13004         or column).
13005         (ProcessGridKey): pretty substantial overhaul.  Use the
13006         CurrentRow/CurrentColumn properties to make the code a lot more
13007         readable.  Only use the CurrentCell property when we have to
13008         modify both row and column at once.  Tab behavior is still broken,
13009         and Delete is untested.
13010         (Select): if we have no selected rows, set selection_start to
13011         @row.
13012         (EditCurrentCell): rename EditCell this.  It was only ever invoked
13013         with CurrentCell as the arg, so drop the arg and rename it.
13014
13015         * DataGridColumnStyle.cs: clean up the constructors a little, and
13016         drop CommonConstructor().
13017
13018         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
13019         actually get notified when the user hits it.
13020         (ProcessKeyMessage): *substantially* simplify this method.
13021         There's no reason (that I can see) for the textbox to be making
13022         calls into the datagrid at all.  Remove all of them but the ones
13023         for Enter handling.  those will take some more work.
13024
13025         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
13026         calling HideEditBox.
13027         (HideEditBox): if we have an active textbox, render it invisible
13028         without causing a re-layout of the datagrid.
13029
13030 2006-06-05  Mike Kestner  <mkestner@novell.com>
13031
13032         * ListView.cs : fix NRE crasher when focuseditem is cleared by
13033         collection changes by resetting it to Items[0].  Fixes #78587.
13034
13035 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13036
13037         * MessageBox.cs: if the height of the text is larger than the icon_size,
13038         use that. Fixes bug #78575.
13039
13040 2006-06-05  Jackson Harper  <jackson@ximian.com>
13041
13042         * TreeView.cs: Fix line drawing when scrolling.  To do this each
13043         node is basically responsible for drawing its entire horizontal
13044         area.  When drawing a node it draws its parent node lines if
13045         needed.
13046         - Adjust the clip area to the viewport rectangle
13047         - Fix Left/Right key handling to match MS. (It expand/collapses
13048         and moves to parents/first child but does not move selection to
13049         sibling nodes).
13050         - Fix SetTop to work with new bound calculation code
13051         - When scrollbars are no longer needed we need to reset scrolling
13052         vars and recalculate the visible order so the redraw is correct
13053         * TreeNode.cs: We can't expand/collapse nodes with no children.
13054
13055 2006-06-03  John Luke  <john.luke@gmail.com> 
13056
13057         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
13058         so the colors work without dev packages
13059         
13060 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
13061
13062         * Control.cs 
13063           - Select: Implemented to just use activate. Seems to match MS 
13064             behaviour closest. Documented to only do actual control walking 
13065             based on it's parameters if in a container control so I moved 
13066             the code there.
13067           - Removed selection check logic from our internal Select() method
13068         * ContainerControl.cs:
13069           - Select: Moved selection logic from Control here, since MS documents
13070             that containers obey the bool arguments. No longer calling base
13071
13072 2006-06-02  Jackson Harper  <jackson@ximian.com>
13073
13074         * TreeView.cs: If the selected node isn't changed when we get
13075         focus update the previously selected node so that we see the
13076         selection box.
13077
13078 2006-06-02  Mike Kestner  <mkestner@novell.com>
13079
13080         * ComboBox.cs: restructure grab and general mouse event handling.
13081         Make the composite control raise mouse events like it was a single
13082         control for leaves/enters/motion/up/down events.  fix dropdown list
13083         coordinate mangling and refactor it into the scrollbar subclass to
13084         reduce code duplication.  Fixes #78282 #78361 and #78457.
13085
13086 2006-06-02  Mike Kestner  <mkestner@novell.com>
13087
13088         * ScrollBar.cs: remove Capture setting/clearing, as it happens
13089         automatically in the Control.WndProc.
13090
13091 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13092
13093         * FileDialog.cs: fix crash when running SharpChess, which sets the
13094         FilterIndex to 2 with only one Filter.
13095
13096 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13097
13098         * ToolBar.cs: add SizeSpecified property.
13099         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
13100         try to figure out our real size, otherwise fallback to what the
13101         container says.
13102
13103 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
13104
13105         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
13106         * Control.cs (WndProc): MS always calls the DefWndProc to pass
13107           up the event
13108
13109 2006-06-01  Mike Kestner  <mkestner@novell.com>
13110
13111         * ListView.cs: revamp the focus management in ListView.  It still
13112         causes churn of LostFocus/GotFocus emissions on clicks, but it's
13113         better than not handling focus at all.  Will revisit when pdb feels
13114         the general focus handling is solid.  Fixes #78526.
13115
13116 2006-06-01  Jackson Harper  <jackson@ximian.com>
13117
13118         * TreeView.cs: Set the default border style in the constructor.
13119         - Move painting to use OnPaintInternal instead of capturing
13120         WM_PAINT, this is the correct way of doing things
13121         - UpdateBelow shouldn't invalidate the scrollbar area
13122         - Cap the top on update below in case the node was above the top
13123         of the viewport rectangle.
13124         - ExpandBelow and Collapse below need to obey Begin/End Update.
13125         * TreeNode.cs: Make is_expanded internal so the treenode
13126         collection can change it without firing the whole event chain.
13127         * TreeNodeCollection.cs: When clearing all the child nodes make
13128         sure to recalc the visible order.
13129         - Improve algo for remove the top node
13130
13131 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
13132
13133         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
13134           SendMessage directly calling window procedures, which in turn might
13135           call SetFocus()
13136
13137 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
13138
13139         * Control.cs: Don't handle WM_SETFOCUS if the same window already
13140           has focus (works around X11 sending a FocusIn after our SetFocus)
13141         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
13142
13143 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
13144
13145         * Mime.cs: Fix for the NET_2_0 build.
13146           NameValueCollection needs StringComparer now.
13147
13148 2006-05-31  Chris Toshok  <toshok@ximian.com>
13149
13150         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
13151         return (via an out parameter) the starting X of the column.
13152         (UpdateVisibleColumn): track change to FromPixelToColumn.
13153         (HitTest): add a ColumnResize case here.
13154         (DrawResizeLine): new function, probably poorly named.
13155
13156         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
13157         only need to keep one reference.
13158         (set_ListManager): same.
13159         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
13160         Also, add support for HitTestType.ColumnResize.
13161         (OnMouseMove): add column resize behavior here, and change the
13162         cursor to the correct one as we move around the datagrid.
13163         (OnMouseUp): terminate the column resize if we're resizing.
13164         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
13165         for the current cell.
13166         (ConnectListManagerEvents): use cached_currencymgr.
13167         (DisconnectListManagerEvents): fill this in, using
13168         cached_currencymgr.
13169         (SetCurrentCell): remove cached_currencymgr_events handling.
13170         (SetDataMember): only call DisconnectListManagerEvents if
13171         cached_currencymgr is != null.
13172         (SetDataSource): same.
13173         (OnListManagerCurrentChanged): cached_currencymgr_events ->
13174         cached_currencymgr.
13175
13176 2006-05-31  Jackson Harper  <jackson@ximian.com>
13177
13178         * BindingManagerBase.cs: Remove somedebug code that creeped into
13179         SVN.
13180         * TreeNode.cs: We get the indent level dynamically right now, so
13181         don't track it as a member.
13182         * TreeNodeCollection.cs: Make sure all nodes added to the list
13183         have parents, treeviews/topnodes setup properly.
13184         - Don't attempt to track indent level.
13185
13186 2006-05-30  Jackson Harper  <jackson@ximian.com>
13187
13188         * BindingContext.cs: Create the currency manager tables here.
13189         This allows us to more easily create null tables (when bad data
13190         members are used), and more easily create related currency
13191         managers.
13192         * CurrencyManager.cs: All the table creation stuff is done by the
13193         binding context now.
13194         - Current should throw an exception if listposition is -1.
13195         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
13196         been bound yet.
13197
13198 2006-05-30  Mike Kestner  <mkestner@novell.com>
13199
13200         * ListView.cs: allow reexpansion of zero-width column headers.
13201         Fixes #78528.
13202
13203 2006-05-28  Chris Toshok  <toshok@ximian.com>
13204
13205         * CurrencyManager.cs (get_Current): after the late binding
13206         listposition = -1 fix, we need to guard against it here and return
13207         null, otherwise we raise an exception (which is swallowed
13208         elsewhere, and breaks datagrid databinding.)
13209
13210 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
13211
13212         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
13213           than WM_SYSKEY, don't throw if get something unexpected (#78507)
13214
13215 2006-05-26  Jackson Harper  <jackson@ximian.com>
13216
13217         * ControlPaint.cs:
13218         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
13219         values, it's faster and it's all we care about (we don't care if
13220         the names aren't equal).
13221         * KeyboardLayouts.cs: Eliminate some dead code.
13222         - Lazy init things
13223         * X11Keyboard.cs: Lazy init keyboard detection.
13224         - Cleanup access modifiers a little.
13225
13226 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
13227
13228         * XplatUIX11.cs: Once again, attempting to get layout just right.
13229
13230 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
13231
13232         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
13233           the sizes of each link section, that will result in sizes that
13234           match DrawString's layout (Fixes #78391)
13235
13236 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
13237
13238         * FileDialog.cs: If AddExtension property is true autocomplete the
13239           extensions in SaveFileDialog correctly. Fixes bug #78453.
13240           Set MyNetwork and MyComputer to "C:\" for windows. This should
13241           fix part 8 of bug #78446 for now.
13242
13243 2006-05-26  Chris Toshok  <toshok@ximian.com>
13244
13245         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
13246         invalidate the current row header if we need to, but presumably
13247         we'll invalidate the row corrsponding to the bounds or
13248         editingControl.
13249         (GridHScrolled): switch back to this method, as it's part of the
13250         public api.  *sigh*.
13251         (GridVScrolled): same.
13252         (OnMouseWheel): hack up something that more or less works.  Call
13253         GridHScrolled/GridVScrolled directly, instead of duplicating much
13254         of their code here.
13255         (EnsureCellVisibility): reinstate a bunch of this code, since we
13256         can't just set the scrollbar Value and expect to do all the work
13257         in the ValueChanged handler.  Also, Call Update() after scrolling
13258         in one direction so the other XplatX11.ScrollWindow call has the
13259         proper stuff in the proper places.
13260         (EditCell): set is_editing to true before calling .Edit.
13261
13262         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
13263         don't bother comparing first.
13264         (OnKeyPress): call grid.ColumnStartedEditing before calling
13265         base.OnKeyPress.  this will set is_changing and invalidate the row
13266         header if necessary.
13267         (ProcessKeyMessage): for WM_CHAR messages, call
13268         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
13269         and WM_KEYDOWN.
13270         
13271         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
13272         it's done in the DataGrid.
13273         (NextState): call grid.ColumnStartedEditing, which takes care of
13274         invalidating the row header (and setting is_changing).
13275
13276         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
13277         here.  it's done in the DataGrid.
13278
13279 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13280
13281         * Control.cs: allow changing the cursor when the mouse position is
13282         out of bounds but Capture is set.
13283         * LinkLabel.cs: handle the case when the mouse button is pressed on the
13284         linklabel but released somewhere else.
13285
13286 2006-05-25  Jackson Harper  <jackson@ximian.com>
13287
13288         * TreeView.cs: When we get focus if there is no selected node make
13289         it the top node
13290         - Remove some uneeded setup code from Draw.
13291         * TreeNodeCollection.cs: If the tree doesn't have a top node when
13292         a new node is inserted make the new node the top.
13293         * XplatUIX11.cs:
13294         * Timer.cs: Use Utc time so that no local time zone stuff needs to
13295         be used (should be faster).
13296         
13297 2006-05-25  Chris Toshok  <toshok@ximian.com>
13298
13299         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
13300         problem with the last commit.
13301
13302 2006-05-25  Chris Toshok  <toshok@ximian.com>
13303
13304         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
13305         need the invalidate call here, while scrolling right-to-left via
13306         the left arrow key (i.e. moving the editing cell while scrolling).
13307
13308         * DataGrid.cs (.ctor): remove the initialization of
13309         ctrl_pressed/shift_pressed.  We no longer track them using key
13310         up/down handlers, but by using Control.ModifierKeys.  Also, switch
13311         to using ValueChanged handlers on the scrollbars instead of
13312         Scrolled event handlers.  This simplifies a bunch of the scrolling
13313         code.
13314         (GridHValueChanged): rename from GridHScrolled, and change it to
13315         work with the new event args.
13316         (GridVValueChanged): same.
13317         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
13318         (OnMouseWheel): actually scroll the datagrid.  Don't change the
13319         selected cell.
13320         (ProcessGridKey): correct all the keyboard navigation stuff I
13321         could find.  Ctrl up/down/left/right/home/end work now.
13322         (EnsureCellVisibility): correct method name spelling.  Also,
13323         simplify this a touch by not explicitly calling the
13324         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
13325         scrollbar value.
13326         (OnKeyUpDG): no need for this method now.
13327         
13328 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13329
13330         * LinkLabel.cs: display the OverrideCursor when hovering the label.
13331         Fixes bug #78392.
13332
13333 2006-05-25  Chris Toshok  <toshok@ximian.com>
13334
13335         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
13336         r61019.
13337
13338 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
13339
13340         * Application.cs: Moved setting of is_modal and closing to before
13341           we create the control, to allow the event handlers called as a
13342           result of creation affect closing. Also removed Gonzalo's previous
13343           change to setting DialogResult, the behaviour has been moved to 
13344           Form.ShowDialog()
13345         * Form.cs: 
13346           - ShowDialog(): Removed explicit creation of the form, let RunLoop
13347             handle it instead
13348           - ShowDialog(): If no dialog result is set, we need to return Cancel
13349           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
13350             the close is cancelled
13351
13352 2006-05-25  Jackson Harper  <jackson@ximian.com>
13353
13354         * StatusBar.cs: We only need to update the sizes of the other
13355         panels when we have auto size contents.  Also we are only updating
13356         the contents of the panel, not the borders, so compensate for the
13357         border width (TODO: get this width from the theme somehow).
13358         * TreeView.cs: Scrollable is true by default
13359         - Use invalidate instead of refresh where needed
13360         - Factor the scrollable value into scrollbar updating
13361         - Update the scrollbars if the Scrollable property is altered
13362         - Update the selected node if its ImageIndex is changed
13363         - Handle null nodes in UpdateNode (mainly so we don't have to
13364         check if selected is null when updating it
13365         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
13366         are factored into the visible count
13367         - Use VisibleCount for clarity in the code
13368         - When the font is changed we need to recurse through all the
13369         nodes and invalidate their sizes
13370         
13371 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13372
13373         * Application.cs: set the DialogResult to fixed when the main form is
13374         hidden or destroyed while being modal.
13375
13376 2006-05-25  Miguel de Icaza  <miguel@novell.com>
13377
13378         * Theme.cs: Use Tangoified messagebox icons. 
13379
13380         (GetSizedResourceImage): Also cope with width = 0 and do not
13381         trigger a warning in that case (0 means "give me your icon from
13382         the resouce, no special size needed).
13383
13384 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
13385
13386         * Application.cs: Leave runloop if the the main modal form is 
13387           hidden (fixes #78484)
13388
13389 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
13390
13391         * BindingContext.cs : reject null datasource in Contains() and
13392           Item[].
13393         * CurrencyManager.cs : check data_member validity when data_source
13394           is dataset. When it is late binding, the initial position is -1.
13395
13396 2006-05-24  Jackson Harper  <jackson@ximian.com>
13397
13398         * TreeNodeCollection.cs: Dont't recalculate the visible order on
13399         inserted nodes that aren't visible.  This changes the
13400         max_visible_order which confuses scrollbar settings.
13401         - Use the enumerator to get the prev node instead of duplicating
13402         code.
13403         * TreeView.cs: Use new method for setting scrollbar values
13404         - Don't set the bounds every time the scrollbar is updated
13405         - When updating below the root node use an invalidate instead of a
13406         refresh to prevent the child controls (scrollbars) from being
13407         refreshed. (UpdateBelow still needs to be reworked anyways).
13408         - Reenable SetBottom now that visible orders are set correctly,
13409         added some debug code incase we ever get bad values there again.
13410         - Set the scrollbar max to 2 less then the max value, this
13411         compensates for the max value being one above the node count, and
13412         for scrollbars adding one extra "notch".
13413         - When drawing image nodes if there is an imagelist we draw the
13414         first image in the list if the supplied image index is out of the
13415         image list's bounds.
13416         
13417 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
13418
13419         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
13420           we receive a size change from the WM (Fixes #78503)
13421
13422 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
13423
13424         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
13425           rectangle (Fixes #78501)
13426
13427 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
13428
13429         * ButtonBase.cs: 
13430           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
13431             as a bitfield.
13432           - Fixed MouseMove to no longer switch pressed state unless the left
13433             mouse button is pressed. Atsushi provided the original patch (#78485)
13434           
13435 2006-05-24  Jackson Harper  <jackson@ximian.com>
13436
13437         * ScrollBar.cs: New internal methods that allow us to change a
13438         couple values on the scrollbar (the most common case is maximum
13439         and large change) without getting multiple invalidates.
13440
13441 2006-05-24  Chris Toshok  <toshok@ximian.com>
13442
13443         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
13444         (Edit): save off the original state in oldState, and set
13445         grid.is_editing to true.
13446         (OnKeyDown): abort editing if escape is pressed.  also, call
13447         NextState if space is pressed.
13448         (OnMouseDown): call NextState.
13449         (NextState): factor out shared code from OnKeyDown and OnMouseDown
13450         here.  Also, only invalidate the row header once (on the initial
13451         is_changing switch) to save on redraws.
13452
13453 2006-05-24  Chris Toshok  <toshok@ximian.com>
13454
13455         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
13456         if the value in the cell is different than it was before.  This
13457         keeps us from triggering a layout when we move around a datarid
13458         with a highlighted cell.
13459         (Edit): suspend layout when creating/positining the text box, and
13460         resume passing false so we don't ever actually re-layout.
13461         (ReleaseHostedControl): same.
13462         (EnsureTextBox): reformat slightly, and set WordWrap to false.
13463
13464         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
13465         control-key sequences should go to the datagrid - remove that
13466         lock.  Also, modify the conditions under which we move between
13467         cells when moving the cursor within a cell, and remove the "this"
13468         and "base" from field accesses.  We weren't even consistent, given
13469         they all were in the base class.
13470
13471 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
13472
13473         * Binding.cs : (.ctor)
13474           An obvious NRE fix for BindingTest.CtorNullTest().
13475
13476 2006-05-23  Chris Toshok  <toshok@ximian.com>
13477
13478         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
13479         them between lines.  This fixes some quirks editing cells in the
13480         datagrid.
13481
13482 2006-05-23  Jackson Harper  <jackson@ximian.com>
13483
13484         * TreeView.cs: Use begin/end update when doing expand/collapse all
13485         so that we don't get flicker on the scrollbar.
13486
13487 2006-05-23  Jackson Harper  <jackson@ximian.com>
13488
13489         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
13490         treenode calculations to be independant of the painting code. To
13491         do this nodes track a visible order which is calculated by the
13492         treeview.
13493         - Call new methods for expanding/collapsing nodes.  These methods
13494         use scrollwindow so we don't have to update everything below the
13495         node.
13496         * TreeView.cs: Refactored drawing and scrolling code.  We don't
13497         need to update nodes when drawing anymore or calculate scrollbar
13498         stuff.
13499         - Added new methods for expanding/collapsing nodes. These methods
13500         use ScrollWindow so as to not have to redraw all the nodes below.
13501         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
13502         we add/remove nodes or sort.
13503         - Handle removing the selected and the top node properly.
13504
13505 2006-05-23  Chris Toshok  <toshok@ximian.com>
13506
13507         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
13508         maybe this should actually happen in the datagrid code?
13509         (EndEdit): no need to invalidate anything, given that
13510         ReleaseHostedControl causes the datagrid to relayout, which
13511         invalidates everything anyway.
13512
13513         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
13514         in SetCurrentCell).
13515         (set_SelectionBackColor): call InvalidateSelection instead of
13516         Refresh.
13517         (set_SelectionForeColor): same.
13518         (BeginEdit): Flesh this out a bit.
13519         (CancelEditing): only do any of this if we're editing/adding.
13520         (EndEdit): same.
13521         (OnMouseDown): there's no need to cancel editing here, it's done
13522         in SetCurrentCell.
13523         (SetCurrentCell): only invalidate the current row header if it's a
13524         different row than the new one.
13525         (ShiftSelection): fix this to work like MS does.
13526         (ResetSelection): factor out the invalidation of selected_rows to
13527         InvalidateSelection.
13528         (SetDataSource): cancel any editing that's going on.
13529
13530         * DataGridColumnStyle.cs
13531         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
13532         call the non-interface version.
13533
13534         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
13535         header rectangle with the clip rectangle so we don't redraw the
13536         entire header for just a small area.  Gets rid of the last flicker
13537         when horizontally scrolling.
13538         (DataGridPaintRow): same.
13539
13540 2006-05-23  Mike Kestner  <mkestner@novell.com>
13541
13542         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
13543         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
13544         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
13545         Critical bug report.
13546
13547 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
13548
13549         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
13550           and this fixes #78493
13551
13552 2006-05-23  Miguel de Icaza  <miguel@novell.com>
13553
13554         * Theme.cs (GetSizedResourceImage): Scale images if the proper
13555         size is not found.  
13556         
13557         * FileDialog.cs: Do not change the background for the side bar as
13558         it wont work nicely with the theme, and also reduces the artifacts
13559         in rendering the icons (which I want to fix too).
13560
13561         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
13562         resources, not resgen resources. 
13563
13564         (PlatformDefaultHandler): Pull images using the new API.
13565
13566 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
13567
13568         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
13569           a reference to the hwnd and will not remove it unless there are
13570           no pending exposures (fixes #78341)
13571         * XplatUI.cs: Improved debug
13572
13573 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
13574
13575         * MenuAPI.cs : don't handle OnClick event when it was not the left
13576           button. Fixed bug #78487.
13577
13578 2006-05-23  Mike Kestner  <mkestner@novell.com>
13579
13580         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
13581         prefer submenus to the top menu for item lookup, to avoid popping down
13582         top-row items.
13583
13584 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
13585
13586         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
13587           Graphics.FillRectangle as the visual results are really bad (even
13588           on win). We now draw perfect arrows (and perfect shadows when the
13589           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
13590           Pen.DashPattern to draw the dots of each line.
13591
13592 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
13593
13594         * FileDialog.cs: Update the filename combobox when navigating through
13595           the ListView with the cursor keys. Fixes part 7 of bug #78446.
13596
13597 2006-05-22  Mike Kestner  <mkestner@novell.com>
13598
13599         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
13600         Fixes #78463.
13601
13602 2006-05-22  Mike Kestner  <mkestner@novell.com>
13603
13604         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
13605         requests. Fix a misspelled parameter and a copy paste exception error
13606         in Select.
13607
13608 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
13609
13610         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
13611           to get the same width/height (5/13) on X11 as the default font has on
13612           win32. This means that our DefaultFont emSize is smaller than the 
13613           the MS SWF equivalent (even thought the width/height stays the same)
13614
13615 2006-05-20  Jackson Harper  <jackson@ximian.com>
13616
13617         * MdiClient.cs:
13618         * MdiWindowManager.cs:
13619         * InternalWindowManager.cs: Make sure to use the border width from
13620         the theme.
13621
13622 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
13623
13624         * PrintDialog.cs: Implements printer details
13625
13626 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
13627
13628         * FileDialog.cs: Added focus handling for PopupButtonPanel.
13629           Fixes part 1 and 2 of bug #78446
13630
13631 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
13632
13633         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
13634           instead of sticking to the first ever calculated value
13635
13636 2006-05-19  Mike Kestner  <mkestner@novell.com>
13637
13638         * ComboBox.cs: fix mouse motion selection to use MousePosition and
13639         PointToClient, since Capture is set. Fixes #78344.
13640
13641 2006-05-19  Mike Kestner  <mkestner@novell.com>
13642
13643         * ListView.cs: match MS behavior in Details view where items are not
13644         drawn if Columns.Count == 0. 
13645         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
13646         Use a separate pen to draw the check, since changing the width affects
13647         the box as well.  Fixes #78454.
13648
13649 2006-05-18  Miguel de Icaza  <miguel@novell.com>
13650
13651         * ListView.cs: ArgumentOutOfRangeException, single versions of the
13652         exception should throw the name of the invalid argument.
13653
13654         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
13655         there are no files listed. 
13656
13657 2006-05-18  Jackson Harper  <jackson@ximian.com>
13658
13659         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
13660         up.
13661
13662 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
13663
13664         * Control.cs: Brought back our old UpdateZOrder method as a private
13665           function and switched our calls from UpdateZOrder to the new one.
13666           This fixes the Paint.Net canvas disappearing bug.
13667
13668 2006-05-18  Jackson Harper  <jackson@ximian.com>
13669
13670         * Theme.cs:
13671         * ThemeWin32Classic.cs:
13672         * InternalWindowManager.cs: Move the drawing into the theme,
13673         expose everything the theme should need from the window manager.
13674
13675 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
13676
13677         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
13678           from the call to NativeWindow to avoid walking up the parent chain
13679           further than needed (speeds up setting cursors and avoids setting
13680           the wrong cursor if a parent has another cursor defined)
13681         * Cursor.cs: When loading an icon as cursor, MS uses the center of
13682           the icon as hotspot, not what's contained as hotspot in the icon
13683           file. This fixes the perceived drawing offset seen with Paint.Net
13684         
13685 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
13686
13687         * XplatUIX11.cs: 
13688           - Store the calculated rectangle in Hwnd object and use it when 
13689             setting the client size
13690           - Force Toolwindows to always be type Dock, to ensure they're on top
13691
13692 2006-05-18  Mike Kestner  <mkestner@novell.com>
13693
13694         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
13695         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
13696         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
13697         Substantial refactoring to remove confusing nested classes. Coding
13698         standard and Get+Set->property refactorings.  Shift to index based
13699         highlighting in ComboListBox instead of constantly using IndexOf and
13700         Items[]. Add invalidations on resize for DropDownList to fix ugliness
13701         in FileDialog growth.  Draw borders manually since Simple mode needs
13702         to look like two independent controls.  Make listbox border
13703         conditional to DropDownStyle.  Improved OwnerDraw support.
13704
13705 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
13706
13707         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
13708         Don't set the disposed graphics to null, so we can throw the "right"
13709         exception if the graphics is reused later (added a flag to avoid 
13710         double disposing). Some behaviours are different under 2.0 and are
13711         filled under bug #78448.
13712
13713 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
13714
13715         * Control.cs: When double-buffering is enabled, we need to reset
13716           our graphics context between paint calls. Otherwise, any 
13717           transformations and other alterations on the context will 
13718           become cumulative (#77734)
13719
13720 2006-05-18  Mike Kestner  <mkestner@novell.com>
13721
13722         * ListView.cs: do focused item selection like MS on clicks. 
13723         Rework focus handling for ItemControl so LostFocus invalidates as
13724         well.
13725         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
13726         the ListView ItemControl has focus.
13727
13728 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
13729
13730         * XplatUIX11.cs: If client_window ends up being width or height zero
13731           due to border settings, move it off window inside whole_window (#78433)
13732
13733 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
13734
13735         * Mime.cs: Shrink the mime file cache correctly.
13736
13737 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
13738
13739         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
13740
13741 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13742
13743         * XplatUIX11.cs (AddExpose): More sanity checks
13744
13745 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13746
13747         * XplatUIX11.cs:
13748           - AddExpose: Don't add expose ranges outside the size of our
13749             window
13750           - Cast opacity values to Int32 to avoid crashes with certain
13751             values
13752           - Added disabled code paths that protect against illegal cross-
13753             thread painting (Developers.exe)
13754
13755 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13756
13757         * ProgressBar.cs: Invalidate the control when it's resized
13758           since block size is based on control size. (#78388)
13759
13760 2006-05-16  Miguel de Icaza  <miguel@novell.com>
13761
13762         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
13763         of setting the incoming argument to the "reset" value, we set the
13764         this.datamember to string.empty (before we were invalidating the
13765         incoming data).   
13766
13767         Fixes 78420
13768
13769 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13770
13771         * Form.cs: Only apply transparency settings after the form
13772           is created. (Fixes #77800)
13773
13774 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
13775
13776         * ApplicationContext.cs: Grab the HandleDestroyed event so
13777           we know when to fire OnMainFormClosed 
13778
13779 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13780
13781         * Application.cs: Introduced sub-class to allow tracking of
13782           threads and centralized triggering of the event mess for
13783           ThreadExit, AppExit, etc..  (#76156)
13784
13785 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
13786
13787         * MimeIcon.cs:
13788           - Do not return a null icon index value for a mime subclass.
13789             Instead try the main mime type class too.
13790           - Seems that some newer distributions don't have a link to some
13791             gnome default icons anymore. So check the default gnome dir too.
13792           
13793
13794 2006-05-16  Jackson Harper  <jackson@ximian.com>
13795
13796         * MdiClient.cs: Don't paint the parent background image if we have
13797         our own background image.
13798
13799 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
13800
13801         * Control.cs:
13802           - PerformLayout: Do not shrink space filled by DockStyle.Fill
13803             controls, all filled controls are supposed to overlap (#78080)
13804           - UpdateZOrder is supposed to update the control's z-order in the
13805             parent's z-order chain. Fixed to behave like that
13806           - BringToFront: Removed obsolete code
13807           - SendToBack: Simplyfied
13808           - SetChildIndex: Trigger layout calculations when Z-order changes
13809             since layout is done by z-order
13810
13811 2006-05-16  Chris Toshok  <toshok@ximian.com>
13812
13813         [ fixes bug #78410 ]
13814         * DataGrid.cs (set_AlternatingBackColor): use
13815         grid_drawing.InvalidateCells instead of Refresh().
13816         (set_BackColor): call grid_drawing.InvalidateCells.
13817         (set_BackgroundColor): use Invalidate instead of Refresh.
13818
13819         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
13820         invalidate the cell area.
13821
13822 2006-05-15  Chris Toshok  <toshok@ximian.com>
13823
13824         [ fixes bug #78011 ]
13825         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
13826         on to DataGridPaintRow.
13827         (DataGridPaintRow): take a clip argument, and only draw the cells
13828         which intersect it.  same with the not_usedarea.
13829
13830         * Theme.cs (DataGridPaintRow) add @clip parameter.
13831
13832         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
13833         XplatUI.ScrollWindow.
13834         (ScrollToRow): same.
13835
13836         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
13837         with last column which was causing a gray swath to appear with the
13838         XplatUI.ScrollWindow code.
13839
13840 2006-05-15  Chris Toshok  <toshok@ximian.com>
13841
13842         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
13843         use XplatUI.ScrollWindow.
13844         (VerticalScrollEvent): use XplatUI.ScrollWindow.
13845
13846 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
13847
13848         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
13849
13850 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
13851
13852         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
13853           file since there are no equivalent X11 cursors
13854
13855 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
13856
13857         * MonthCalendar.cs : DateTimePicker should reflect selected date
13858           on mouse*up*, not mouse*down*. Fixed originally reported part of
13859           bug #76474.
13860
13861 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
13862
13863         * TabControl.cs : When argument index is equal or more than tab
13864           count, just ignore. Fixed bug #78395.
13865
13866 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
13867
13868         * Control.cs: Dispose all child controls when control is diposed (#78394)
13869
13870 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13871
13872         * ColorDialog.cs: Finally it is possible to select the color with
13873           the text boxes
13874
13875 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13876
13877         * PrintDialog.cs: Fix typo
13878
13879 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
13880
13881         * PrintDialog.cs: PrintDialog is not resizable
13882         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
13883           color. Made some ToolBar drawing methods protected virtual.
13884
13885 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
13886
13887         * PrintDialog.cs: Implementation of the PrintDialog
13888
13889 2006-05-12  Chris Toshok  <toshok@ximian.com>
13890
13891         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
13892         thumb, instead use MoveThumb.  This has the side effect of making
13893         most of the other thumb moving machinery use MoveThumb as well.
13894         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
13895         need to actually invalidate the rectangle where the new thumb will
13896         go.
13897         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
13898         We force an Update() after, so it's not as fast as it could be,
13899         but at least there's zero flicker and no droppings.
13900         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
13901         (UpdateThumbPos): add another argument (dirty), which says whether
13902         or not to calculate/add dirty regions which we later invalidate.
13903         For cases where we know we're going to use MoveThumb, we pass
13904         false for this.  Otherwise, pass true.
13905
13906 2006-05-12  Jackson Harper  <jackson@ximian.com>
13907
13908         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
13909         the status bar.
13910         
13911 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
13912
13913         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
13914           and GetClipRegion methods and UserClipWontExposeParent property.
13915         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
13916           overriding UserClipWontExposeParent property, setting to false, since
13917           Win32 handles the required expose messages to draw our clipped parent
13918           areas internally
13919         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
13920           PaintEventStart to set the user clip region if set.
13921         * Control.cs: 
13922           - Now internally tracking the Region for the control since we need to
13923             store it if the handle is not yet created and only set it when it
13924             becomes created. Before setting the region forced handle creation
13925           - Added code to draw the parents underneath a user-clipped region
13926         * Hwnd.cs: Added UserClip property
13927
13928 2006-05-12  Chris Toshok  <toshok@ximian.com>
13929
13930         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
13931         (set_Maximum): same.
13932         (set_Minimum): same.
13933         (set_SmallChange): same.
13934         (OnMouseUpSB): remove the call to refresh when releasing the
13935         thumb.  We shouldn't need it.
13936         
13937 2006-05-12  Miguel de Icaza  <miguel@novell.com>
13938
13939         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
13940         AutoSize set to None, we do not need to relayout everything, we
13941         just need to invalidate the current region.
13942
13943         (Draw): Do not draw the entire ClientArea, just redraw the
13944         clip area being passed.
13945
13946         * MdiClient.cs: Make MdiClient constructor with the Form argument
13947         internal. 
13948
13949 2006-05-12  Jackson Harper  <jackson@ximian.com>
13950
13951         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
13952         parents background image,  but strangely not their own.
13953         - (DrawStatusBarPanel): Take into account horizontal alignment
13954         when drawing the strings and icons.
13955
13956 2006-05-12  Mike Kestner  <mkestner@novell.com>
13957
13958         * ListBox.cs: avoid invalidations for focus when the collection is
13959         empty. 
13960
13961 2006-05-12  Chris Toshok  <toshok@ximian.com>
13962
13963         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
13964         invalidate the entire thumb area.  Call InvalidateDirty which
13965         limits the redraw to the thumb itself and surrounding pixels.
13966
13967         * XplatUIX11.cs (ScrollWindow): optimize copying.
13968         
13969 2006-05-12  Chris Toshok  <toshok@ximian.com>
13970
13971         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
13972         Figure out the positioning/layout in a single pass instead of
13973         multiple recursive invocations.  Speeds up the initial display of
13974         the data grid.  Also, make many things private that were
13975         originally public but unused outside this class.
13976
13977 2006-05-11  Jackson Harper  <jackson@ximian.com>
13978
13979         * MdiClient.cs: Improved layout code.
13980
13981 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
13982
13983         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
13984           not SelectedObject.
13985
13986 2006-05-11  Chris Toshok  <toshok@ximian.com>
13987
13988         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
13989         union of that will always be {0,0,width,height}.
13990
13991 2006-05-11  Jackson Harper  <jackson@ximian.com>
13992
13993         * Form.cs: Match MS's DefaultSize for forms (they must have
13994         changed the size in sp2).
13995
13996 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
13997
13998         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
13999
14000 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
14001
14002         * TextControl.cs : Fixed bug #78109. This incorrect position
14003           comparison caused crash on automatic line split.
14004         * TextBoxBase.cs : reduce duplicate code.
14005
14006 2006-05-10  Jackson Harper  <jackson@ximian.com>
14007
14008         * MdiClient.cs: Active form is only sent to the back when using
14009         the Next form functionality, when a form is clicked the current
14010         active shouldn't be sent to the back.
14011         - Layout the mdi windows when the container is first made visible.
14012         * Form.cs: Give the MdiClient a ref to the containing form when we
14013         create it.
14014         
14015 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
14016
14017         * LinkLabel.cs : link_font could be uninitialized, so populate one
14018           before actual use. Fixed bug #78340.
14019
14020 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
14021
14022         * XplatUIX11.cs : clipboard format native value is IntPtr.
14023           Fixed bug #78283.
14024
14025 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
14026
14027         * Control.cs: 
14028           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
14029             which is passed up the parent chain by DefWndProc
14030           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
14031             to DefWndProc (#77956)
14032         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
14033
14034 2006-05-10  Jackson Harper  <jackson@ximian.com>
14035
14036         * MdiClient.cs: We need to remove the controls from the mdi
14037         collection, when we close the window.
14038         * MdiWindowManager.cs: Special handling of closing mdi windows.
14039         * InternalWindowManager.cs: Make the close method virtual so the
14040         mdi window manager can handle it specially.
14041
14042 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
14043
14044         * DataGrid.cs:
14045           - Recalculate grid when the data source has changed
14046           - Matches styles provided by user from all data sources types
14047         * DataGridTableStyle.cs: For columns that provided by the user set the
14048         with the preferred value is there was unassigned.
14049         * CurrencyManager.cs: throw OnItemChanged event
14050
14051 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
14052
14053         * PictureBox.cs: Don't animate until handle is created. Start animation
14054           when handle is created.
14055
14056 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
14057
14058         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
14059           current codebase.
14060         * XEventQueue.cs: We don't need to provide the extra info
14061
14062 2006-05-10  Jackson Harper  <jackson@ximian.com>
14063
14064         * MdiClient.cs: If the mdi clients parent form has a background
14065         image set, we draw that background image for the mdi area's
14066         background.
14067
14068 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
14069
14070         * TextBoxBase.cs: Set IBeam cursor (#78347)
14071
14072 2006-05-10  Mike Kestner  <mkestner@novell.com>
14073
14074         * ToolBar.cs: fix some text padding issues with ButtonSize
14075         calculation. Update the default size to match MS documentation.
14076         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
14077         button size. Fixes #78296.
14078
14079 2006-05-10  Mike Kestner  <mkestner@novell.com>
14080
14081         * ListBox.cs: use is_visible for scrollbar positioning in case the
14082         control isn't on screen yet.  Fix off by one with Right vs Width
14083         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
14084         
14085 2006-05-10  Jackson Harper  <jackson@ximian.com>
14086
14087         * X11Dnd.cs: Drop to a control with another control on top of it.
14088         * ToolBar.cs: Work on a copy of the buttons list, so that it can
14089         be modified in click handlers. TODO: Look for similar problems in
14090         other controls.
14091
14092 2006-05-09  Jackson Harper  <jackson@ximian.com>
14093
14094         * Form.cs: Window managers need the old window state when setting
14095         window state now.
14096         * InternalWindowManager.cs: Allow the base mdi window manager to
14097         handle more of the MDI only stuff (like maximize buttons).
14098         * MdiWindowManager.cs: Fix some snafus in changing the window
14099         state.  Add all the menu functionality, for both popup and
14100         maximized menus.
14101         * MdiClient.cs: When a new form is selected the currently
14102         activated form is sent to the back, this matches MS.
14103         - Implement a new method to activate the next mdi child window.
14104
14105 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
14106
14107         * Control.cs: 
14108           - Added new InternalCapture method to allow controls to prevent
14109             the capture behaviour on the click handlers
14110           - Switched to use InternalCapture
14111         * ComboBox.cs:
14112           - Using InternalCapture to prevent mouse captures from being released
14113             on mouse button release (Fixes #78100)
14114         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
14115           returns Form borders if a caption is present. (Fixes #78310)
14116
14117 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
14118
14119         * TreeNode.cs: Changed serialization .ctor to not require every field
14120           to be present. (#78265)
14121         * OwnerDrawPropertyBag.cs: Added serialization .ctor
14122
14123 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
14124
14125         * MimeIcon.cs: for is faster than foreach for strings.
14126
14127 2006-05-05  Mike Kestner  <mkestner@novell.com>
14128
14129         * CheckedListBox.cs: update check handling code to not use selected.
14130         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
14131         behavior for visual feedback, motion response, shift/ctrl handling,
14132         and properly deal with all 4 selection modes. Updates to bounds
14133         handling logic.  Add scroll wheel support. [Fixes #77842]
14134
14135 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
14136
14137         * ListView.cs:
14138           - Moved adding of Implicit controls into .ctor. That way, subsequent
14139             creation of the controls will not cause them to think they are 
14140             toplevel windows (fixes #78200 header problem)
14141           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
14142           - Switched visibility setting of header control to use internal field
14143             to avoid triggering handle creation
14144           - Now checking if handle is created before causing a refresh when items
14145             are added (This makes us now match handle creation time with MS)
14146         * Splitter.cs: Removed loading of private splitter cursor, switched to
14147           Cursors version now that that is loading the right ones
14148         * Cursors.cs: Load proper splitter cursors from resources
14149         * Cursor.cs: Added second method of loading resource cursors for the 
14150           VS.Net users amongst us
14151
14152 2006-05-05  Mike Kestner  <mkestner@novell.com>
14153
14154         * ListView.cs: give header_control a minimum size based on the
14155         ListView size.
14156
14157 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
14158
14159         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
14160           window seems to do that with metacity, so set that type. (#78120)
14161
14162 2006-05-05  Mike Kestner  <mkestner@novell.com>
14163
14164         * ListViewItem.cs: fix Details mode checkbox layout bug.
14165         * ThemeWin32Classic.cs: draw a ListView column header for unused space
14166         at the end of the header, if it exists. [Fixes for #78200]
14167
14168 2006-05-04  Jackson Harper  <jackson@ximian.com>
14169
14170         * MdiClient.cs: Add a helper property to get the container form.
14171         * MdiWindowManager.cs: We have to make sure to use the menu origin
14172         when drawing the icons and buttons, this fixes maximized window
14173         icons/buttons on win32.
14174         * InternalWindowManager.cs: Reset the restore captions when a
14175         window goes from Maximized to Minimized and vice versa. Move the
14176         DrawMaximizedButtons into the MdiWindowManager source, tool
14177         windows can't be maximized. NOTE: This could use a little
14178         refactoring if time ever permits.
14179         
14180 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
14181
14182         * TextBox.cs: Add MWFCategoryAttributes
14183         * TextBoxBase.cs: Add MWFCategoryAttributes
14184         * Form.cs: Add MWFCategoryAttributes
14185
14186 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
14187
14188         * Control.cs: Add MWFCategoryAttributes
14189         * ScrollableControl.cs: Add MWFCategoryAttributes
14190
14191 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
14192
14193         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
14194           Divider is true. Fix a little glitch in PropertyToolBar
14195           drawing code
14196
14197 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
14198
14199         * Control.cs:
14200           - Dispose: Call base.Dispose, this causes the disposed event
14201             to be fired (and probably other, more important stuff)
14202           - SetVisibleCore: Set is_visible to true after creating the
14203             window so that the window still gets created invisible (if
14204             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
14205             to generate a WM_ACTIVE message
14206         * Form.cs: Call Dispose when we want to destroy the window, instead of
14207           just destroying the handle (Dispose will do that for us)
14208         * XplatUIX11.cs:
14209           - RootWindow also needs a queue, so we can properly process the
14210             property change events from RootWindow (like Activate)
14211           - Generatic synthetic WM_ACTIVE message when the active window is
14212             being destroyed
14213
14214 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
14215
14216         * LinkLabel.cs: Trigger a recalc of our label dimensions when
14217           bounds are changed
14218
14219 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
14220
14221         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
14222           for determining width and height (image might not be assigned if
14223           we're drawing an imagelist)
14224
14225 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
14226
14227         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
14228         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
14229           height from system
14230         * Theme.cs: No longer returns hardcoded menu height, instead calls
14231           new driver method
14232         * Form.cs (OnLoad): Scaling happens before triggering Load events 
14233           on MS (# 78257)
14234
14235 2006-05-01  Mike Kestner  <mkestner@novell.com>
14236
14237         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
14238
14239 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
14240
14241         * TextBoxBase.cs: Removed Fixme
14242         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
14243
14244 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
14245
14246         * XplatUIX11.cs:
14247           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
14248             the rectangle relative to the parent, considering borders. We
14249             don't really want that.
14250           - ScrollWindow: Fixed warning to be more understandable
14251         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
14252           scrollbars and scroll only the visible area
14253         * RichTextBox.cs: Removed debug output
14254
14255 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14256
14257         * NumericUpDown.cs (Text): Just use base
14258         * UpDownBase.cs: Ensure txtView is created before using it
14259
14260 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
14261
14262         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
14263           casting to IntPtr to avoid 64bit overflow errors
14264
14265 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14266
14267         * Control.cs:
14268           - AllowDrop: Don't force handle creation.
14269           - CreateHandle: Added call to tell driver if we're allowed to drop
14270
14271 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14272
14273         * FileDialog.cs: Remember the last directory not only for the
14274           current instance but also for new FileDialog instances.
14275
14276 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
14277         
14278         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
14279           broke sending async messages
14280
14281 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
14282
14283         * XplatUIX11.cs:
14284           - ScrollWindow: Fixed method. We finally generate expose events again
14285             for scrolled areas. This was causing 'garbage' when scrolling
14286             textbox and other controls that used ScrollWindow
14287           - Switched from using the regular queue for paint events to the MS 
14288             model of 'generating' paint events when the queue is empty.
14289             We use the new XQueueEvent.Paint subclass to store which windows
14290             need painting.
14291           - AddExpose now takes the x/y/width/height of the exposed area
14292             and inserts the window into the paint queue if not already there
14293           - InvalidateWholeWindow: Switched to use new AddExpose method
14294           - UpdateMessageQueue: Added which queue to monitor for paint events
14295           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
14296             the unlikely case nothing above handles it. We reset the expose
14297             pending states to get them off the queue.
14298           - GetMessage: Now pulls a paint event if no other events are in the
14299             queue
14300           - Invalidate: Switched to new AddExpose method
14301           - PeekMessage: Updated to understand pending paint events
14302           - UpdateWindow: Fixed logic bug. We were only updating if the window
14303             didn't need updating. Also switched to sending WM_PAINT directly,
14304             like MS does.
14305         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
14306           and random access Remove(). The random access is needed to handle
14307           UpdateWindow() where a WM_PAINT is sent directly without accessing
14308           the queue.
14309         * ScrollBar.cs: Added Update() calls to cause immediate updates to
14310           allow for better feedback when scrolling. Scrollbars are small and
14311           the immediate update should make it 'feel' more responsive without
14312           slowing things down. ScrollBar still needs it's invaliate logic
14313           updated to not always invalidate the whole bar on certain changes.
14314
14315 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14316
14317         * Control.cs:
14318         (BackColor): if the control does not support a transparent background,
14319         return the default backcolor when the parent backcolor is transparent.
14320
14321 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
14322
14323         * Application.cs: Updated to new StartLoop/GetMessage API
14324         * RichTextBox.cs: Provide some output on RTF parsing errors
14325         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
14326           new queue_id argument to GetMessage and PeekMessage to allow faster
14327           handling of per-thread queues in drivers.
14328         * Hwnd.cs: Added Queue tracking and property
14329         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
14330         * XEventQueue.cs: Added thread trackingA
14331         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
14332         * XplatUIX11.cs:
14333           - Implemented new per-thread queue
14334           - GetMessage: Fixed return/break behaviour on several cases. We were
14335             returning stale messages in some cases, instead of just processing
14336             the next message
14337
14338 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
14339
14340         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
14341
14342 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
14343
14344         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
14345           fixed off-by-one comparisons between Width/Height and Right/Bottom.
14346
14347 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
14348
14349         * PropertyGridView.cs: Fix drop down width.
14350
14351 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14352
14353         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
14354           a mess in DrawToolBar, so I removed one of them.
14355
14356 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
14357
14358         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
14359           needed (clip). Otherwise we get artifacts.
14360
14361 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
14362
14363         * FixedSizeTextBox.cs: Added constructor to allow specifying which
14364           dimension is fixed
14365         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
14366           and switched FixedSizeTextBox to only be fixed vertical (#78116)
14367         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
14368           if it matches the scale base font (avoids unneeded scaling)
14369
14370 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
14371
14372         * X11DesktopColors.cs: One gtk_init_check should be enough
14373
14374 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
14375
14376         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
14377           match MS behaviour
14378
14379 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
14380
14381         * TextBoxBase.cs: 
14382           - Generate OnTextChanged for Backspace even if we're only deleting
14383             the current selection
14384           - When setting the Text property, only select all text if the
14385             control does not have focus when it is being set. Otherwise
14386             just place the cursor at the beginning of the control
14387
14388 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
14389
14390         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
14391           Added a little helper to draw PropertyGrid ToolBar with a different
14392           border and a different BackColor.
14393         * PropertyGrid.cs: Some background parts didn't get painted with the
14394           correct background color. Added a class that helps us to draw the
14395           correct border for PropertyGridView and a class that helps us to
14396           draw ToolBars with a different backcolor
14397         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
14398
14399 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
14400
14401         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
14402         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
14403
14404 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
14405
14406         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
14407           into the palette entries. Also, since we're working on a copy
14408           we needed to copy the palette back onto the bitmap.
14409         * Cursor.cs: Same fix as XplatUIWin32.cs.
14410
14411 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
14412
14413         * ImageListStreamer.cs: Need to read the var (or we're off)
14414
14415 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
14416
14417         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
14418           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
14419           TextBoxBase.cs: Unused var fixes
14420         * AxHost.cs: Small 2.0 fix
14421         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
14422           as it seems that is what at least Metacity expects. This will make
14423           icons show up on 64bit platforms. We still have some 64bit size
14424           issues, though, since the startup app window size still won't match.
14425
14426 2006-04-25  Mike Kestner  <mkestner@novell.com>
14427
14428         * *.cs: cleanup newly reported exception var unused warnings.
14429
14430 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14431
14432         * ThemeWin32Classic.cs: Button image alignment now matches exactly
14433           ms
14434
14435 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14436
14437         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
14438           image. The image position is always the same, no matter if the
14439           button is pressed or not.
14440
14441 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
14442
14443         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
14444           selection and set the correct filename for SaveFileDialog.
14445           Patch by Emery Conrad.
14446
14447 2006-04-24  Mike Kestner  <mkestner@novell.com>
14448
14449         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
14450         check for item.X outside the ClientRect instead of item.Y. Fixes
14451         #78151.
14452
14453 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14454
14455         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
14456         trust that value blindly and do some sanity check. Fixes bug #77814.
14457
14458 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14459
14460         * ImageListStreamer.cs: save the mask as a 1bpp image.
14461
14462 2006-04-21  Mike Kestner  <mkestner@novell.com>
14463
14464         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
14465         pass Checked and Indeterminate to the Theme Engine. Improve
14466         encapsulation with ListBox.
14467         * ListBox.cs: Keep a StringFormat instead of calculating it every item
14468         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
14469         nested types.  Move all CheckState functionality to CheckedListBox.
14470         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
14471         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
14472         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
14473         single base list. Fix scrollbar sizing and placement to mirror MS.
14474         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
14475         used.
14476         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
14477         for CheckedListBox by using new DrawItemState info.  Center the
14478         checkboxes on the items. Use new StringFormat property.
14479
14480 2006-04-18  Jackson Harper  <jackson@ximian.com>
14481
14482         * Form.cs: MdiChildren don't do default locations the same way as
14483         regular forms.  This prevents a crash when trying to position the
14484         mdi windows.
14485
14486 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
14487
14488         * PropertyGridTextBox.cs: Formatting, copyright
14489         * PropertiesTab.cs: Formatting
14490         * PropertyGrid.cs: Formatting
14491         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
14492           click toggling of values
14493           
14494 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
14495
14496         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
14497         * Control.cs (.ctor): verify_thread_handle is static, don't reset
14498           every time a control is created
14499         * Application.cs: Removed obsolete EnableRTLMirroring method
14500
14501 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
14502
14503         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
14504         SelectedIndex to -1. Fixes bug #78121.
14505
14506 2006-04-17  Jackson Harper  <jackson@ximian.com>
14507
14508         * Binding.cs: Handle null values for Current and BindingContext.
14509         This occurs when binding is a little delayed.
14510         * CurrencyManager.cs: return null for Current when there are no
14511         items in the list.
14512         - Hookup to the listchanged event on the DataView and update
14513         bindings when the list is changed.  This fixes late binding of
14514         controls.
14515
14516 2006-04-17  Jackson Harper  <jackson@ximian.com>
14517
14518         * X11Dnd.cs:
14519         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
14520         Ringenbach.
14521
14522 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
14523
14524         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
14525           place
14526         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
14527           with the correct ButtonState
14528
14529 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
14530
14531         * XplatUIX11.cs: Improved distinguishing between window types to
14532           tell the WM a type closer to what the app wants (Fixes #78107)
14533
14534 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
14535
14536         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
14537           GrabHandle
14538
14539 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
14540
14541         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
14542           drawing code to reflect the size grip changes
14543
14544 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14545
14546         * ImageListStreamer.cs: fix handling of the mask that follows the main
14547         bitmap when deserializing and serialize it properly. The generated mask
14548         should better be a 1bpp image, but I'll do that later.
14549
14550 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
14551
14552         * FileDialog.cs: Show something in the DirComboBox on *nix if the
14553           path doesn't fit into some of our Current.Places
14554
14555 2006-04-13  Jackson Harper  <jackson@ximian.com>
14556
14557         * ComboBox.cs: Use borders instead of drawing our own decorations,
14558         try to obey correct rules for heights.
14559         * Theme.cs:
14560         * ThemeNice.cs:
14561         * ThemeClearLooks.cs:
14562         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
14563         this is now handled by borders.
14564         - Remove unused DrawListBoxDecorationSize method.
14565         
14566 2006-04-13  Mike Kestner  <mkestner@novell.com>
14567
14568         * MenuAPI.cs: null guarding for the disbled click check fixes crash
14569         reported by Alex.
14570
14571 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
14572
14573         * ThemeWin32Classic.cs: 
14574           - Fixed CPDrawStringDisabled
14575           - Corrected drawing of disabled menu items
14576           - Fixed drawing of disabled radio buttons (bug #78095)
14577           - Draw check in a disabled CheckBox with color ControlDark 
14578
14579 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14580
14581         * Form.cs: Use the provided width when calculating the menu size;
14582           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
14583           and ClientSize.Width won't be updated yet
14584         * Application.cs: Use Visible instead of Show() to make form visible,
14585           this way we create the handle later and menusize is considered
14586
14587 2006-04-12  Mike Kestner  <mkestner@novell.com>
14588
14589         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
14590         reporting.
14591
14592 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14593
14594         * TextBox.cs: Implemented context menu
14595
14596 2006-04-12  Mike Kestner  <mkestner@novell.com>
14597
14598         * ListView.cs: implement box selection. fixes #77838.
14599         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
14600
14601 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
14602
14603         * XplatUIX11.cs: Added setting of window type when transient window
14604           is created (metacity would move it otherwise)
14605         * X11Structs.cs: Added WINDOW_TYPE atoms
14606         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
14607           background (the control is Opaque but still wants transparent
14608           backgrounds)
14609
14610 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14611
14612         * Control.cs: Added OnPaintBackgroundInternal to allow controls
14613           that set Opaque but don't mean it (like all ButtonBase-derived
14614           controls) to still draw their background
14615         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
14616           the background
14617
14618 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
14619
14620         * Control.cs (PaintControlBackground): Set the graphics object
14621           on our PaintEvent to null to prevent it from being disposed
14622           when the PaintEvent gets disposed
14623
14624 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
14625
14626         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
14627         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
14628
14629 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
14630
14631         * Control.cs: 
14632           - Added transparency check to BackColor property. Transparent
14633             backgrounds are only allowed if the control styles permit it
14634           - Added recursive painting of parent control background and
14635             foreground if a control with a transparent backcolor is drawn
14636             (Thanks to Tim Ringenback for providing his 'hack' as a base
14637              for this patch) Fixes #77985 and #78026.
14638           - Added Opaque style check before calling OnPaintBackground, no
14639             need to draw the background if the control is opaque
14640           - Removed ControlAccessibleObject owner variable (inherited from
14641             base, no need to define again)
14642           - Added some documentation links explaining the drawing events
14643             and styles
14644
14645 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
14646
14647         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
14648           that the affected control is the located at the left border of our
14649           parent (Fixes #77936)
14650
14651 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14652
14653         * TextBoxBase.cs: When rendering disabled or readonly controls,
14654           draw the background with 'Control' instead of 'Window' color as
14655           long as the user hasn't specifically set a color
14656
14657 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
14658
14659         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
14660           since that won't be updated if the user types text (only if it's
14661           programatically set)
14662
14663 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14664
14665         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
14666           layout changes do to app-triggered resizes will have the proper
14667           display rectangle for layout
14668
14669 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
14670
14671         * ThemeWin32Classic.cs:
14672           - Make use of the SystemBrushes and SystemPens wherever possible
14673           - Corrected some highlight colors
14674           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
14675             drawing
14676         * Theme.cs: Added Empty field to CPColor struct
14677
14678 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
14679
14680         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
14681           is displayed when calculating the display rectangle. Thanks to Mike
14682           for teaching me the err of my ways.
14683
14684 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
14685
14686         * ScrollableControl.cs:
14687           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
14688             (instead of 0,0) and we now return the real width/height instead of
14689             just the clientrectangle, adjusted for padding. The rectangle is
14690             now cached and created by the new CalculateDisplayRectangle method.
14691           - Created new CalculateDisplayRectange method, which basically does
14692             what get_DisplayRectangle() did originally, but now using the 
14693             right edge instead of DisplayRectangle to determine the size of
14694             our scrollbars
14695           - get_Canvas(): Fixed it to properly calculate canvas for 
14696             right/bottom controls which seem to be placed to the right/bottom
14697             of any controls that have a fixed location
14698           - Removed TODO that's taken care of
14699           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
14700             and SetDisplayRectLocation according to new MSDN2 docs
14701           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
14702             event when that is called, this is added for compatibility
14703           - ScrollControlIntoView(): Implemented.
14704           - Switched scrollbars to be implicit, they shouldn't be selectable
14705         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
14706           call it when the active control is set/changed
14707         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
14708         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
14709           implicit_control variable (used for native Win32 message generation)
14710         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
14711           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
14712         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
14713         * XplatUIStructs.cs: Added ScrollBarCommands enum
14714
14715 2006-04-10  Jackson Harper  <jackson@ximian.com>
14716
14717         * ButtonBase.cs:
14718         * CheckedListBox.cs:
14719         * ComboBox.cs:
14720         * DataGrid.cs:
14721         * DataGridView.cs:
14722         * Form.cs:
14723         * GroupBox.cs:
14724         * ListBox.cs:
14725         * PrintPreviewControl.cs:
14726         * ProgressBar.cs:
14727         * PropertyGrid.cs:
14728         * Splitter.cs:
14729         * StatusBar.cs:
14730         * TrackBar.cs:
14731         * UpDownBase.cs: Fixup base event overrides.
14732         
14733 2006-04-06  Mike Kestner  <mkestner@novell.com>
14734
14735         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
14736         all user-initiated value changes to min <= value <= max-thumbsz+1.
14737         (set_Value): check for vert/horiz when calculating new thumb position.
14738         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
14739         like MS does.
14740         (OnMouseMoveSB): refactor the thumb dragging code and refine
14741         invalidation logic to reduce flicker.
14742         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
14743         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
14744         (UpdateThumbPosition): small code readability cleanup
14745
14746 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
14747
14748         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
14749           different
14750
14751 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
14752
14753         * ThemeNice.cs: Use a better graphics effect when a button is pressed
14754
14755 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
14756
14757         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
14758         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
14759           This dramatically reduces the number of Pen.Dispose calls. 
14760           Where possible call ResPool methods only once instead of calling it
14761           over and over again (for example for the same color).
14762
14763 2006-04-06  Mike Kestner  <mkestner@novell.com>
14764
14765         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
14766         Also remove an unused private field on the collection. Fixes #77972.
14767
14768 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
14769
14770         * ThemeNice.cs: Added ToolBar drawing code
14771
14772 2006-04-06  Mike Kestner  <mkestner@novell.com>
14773
14774         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
14775         I'm assuming that means we need to look up the toplevel for the
14776         provided control. Fixes the crash trace in #77911 but exposes another
14777         crash in some strange reflection usage in NDocGui.
14778
14779 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
14780
14781         * ThemeNice.cs: Gave it a little silver touch and added Images
14782           method
14783         * FontDialog.cs: FontDialog is not resizable
14784         * FileDialg.cs: Added SizeGripStyle.Show
14785
14786 2006-04-05  Jackson Harper  <jackson@ximian.com>
14787
14788         * KeyboardLayouts.cs: Remove warning.
14789
14790 2006-04-05  Jackson Harper  <jackson@ximian.com>
14791
14792         * Control.cs: Enable OnPaintInternal so we can use it for drawing
14793         all of our controls instead of Paint +=.
14794         * ListBox.cs:
14795         * ListView.cs:
14796         * MenuAPI.cs:
14797         * MessageBox.cs:
14798         * NotifyIcon.cs:
14799         * ProgressBar.cs:
14800         * ScrollBar.cs:
14801         * Splitter.cs:
14802         * StatusBar.cs:
14803         * TabControl.cs:
14804         * TextBoxBase.cs:
14805         * ToolBar.cs:
14806         * TrackBar.cs:
14807         * UpDownBase.cs:
14808         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
14809         use OnPaintInternal. Remove Width/Height and Visible checks in
14810         paint handler, this is done at a higher level now.
14811         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
14812         * PaintEventArgs.cs: Add a handled flag so controls that don't
14813         want anymore painting after OnPaintInternal can make sure OnPaint
14814         isn't called.
14815
14816 2006-04-05  Mike Kestner  <mkestner@novell.com>
14817
14818         * Form.cs: fix the menu WndProc hacks to respect the native enabled
14819         state of the form, so that we don't process events when Modal dialogs
14820         are up. Fixes #77922.
14821
14822 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
14823
14824         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
14825           checking is done.
14826
14827 2006-04-05  Mike Kestner  <mkestner@novell.com>
14828
14829         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
14830
14831 2006-04-05  Mike Kestner  <mkestner@novell.com>
14832
14833         * ListView.cs (HeaderMouseMove): null guarding for the over column
14834         when setting up the drag_to_index.  Fixes #78015.
14835
14836 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
14837
14838         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
14839           in the taskbar. Transient windows seem to accomplish that.
14840
14841 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
14842
14843         * Form.cs:
14844           - Re-enabled CreateParams.X/Y code for FormStartPosition
14845           - Added code for manual placement when creating the Control
14846           - Incomplete patch to treat MDI forms differently when
14847             setting the ClientSizeCore. (Still need to figure out handling
14848             x/y coords there)
14849         * XplatUIX11.cs:
14850           - When we're explicitly setting the X/Y position of a non-Child
14851             window, let the WM know. Metacity really wants this.
14852
14853 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14854
14855         * ThemeNice.cs: Added CPDrawButton
14856
14857 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14858
14859         * ThemeNice.cs: Changed the color for focused buttons and activated
14860           the arrows for small scroll buttons.
14861
14862 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
14863
14864         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
14865           anymore. Changed some method modifiers to protected (virtual)
14866         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
14867           changes
14868         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
14869           Updated drawing of menus, buttons and progressbars; added
14870           CPDrawBorder3D 
14871
14872 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14873
14874         * ImageListStreamer.cs: implemented serialization/deserialization
14875         of the images.
14876
14877 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
14878
14879         * ThemeWin32Classic.cs:
14880           - Removed all the DrawFrameControl stuff; CPDrawButton,
14881             CPDrawCheckBox and CPDrawRadioButton are now handled directly
14882             inside the methods
14883           - Updated and corrected the drawing code of CPDrawButton,
14884             CPDrawCheckBox and CPDrawRadioButton to better match ms
14885           - Updated theme checkbox and radiobutton code to use the CP*
14886             methods
14887
14888 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
14889
14890         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
14891           bug is fixed
14892
14893 2006-03-31  Jackson Harper  <jackson@ximian.com>
14894
14895         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
14896         sometimes.
14897         * UpDownBase.cs: Don't CreateGraphics manually, use a
14898         Refresh. Ideally we would invalidate the correct areas here.
14899
14900 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
14901
14902         * XplatUIX11.cs: 
14903           - We now track the mapping state of windows. If a window (or 
14904             one of it's parents) is not mapped we no longer permit
14905             WM_PAINT messages to be generated since we'd otherwise get 
14906             lots of BadMatch X errors. Jackson did all the work figuring
14907             out the problem.
14908           - Destroying the caret if the window it's contained in is 
14909             destroyed. Can't use regular DestroyCaret method since it
14910             might fall into a drawing function (trying to remove the
14911             caret) and with that generate new BadMatch errors. Again,
14912             Jackson tracked this down.
14913           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
14914             make sure we send the messages to all windows. (The old code
14915             would send the WM_DESTROY to the window, and then all child
14916             windows would be 'gone' because the WM_DESTROY handle lookup
14917             would no longer find the destroyed window)
14918         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
14919         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
14920
14921 2006-03-31  Jackson Harper  <jackson@ximian.com>
14922
14923         * ScrollableControl.cs: Dont recalc if we are not visible.
14924
14925 2006-03-31  Mike Kestner  <mkestner@novell.com>
14926
14927         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
14928         the visibility branch.
14929
14930 2006-03-31  Jackson Harper  <jackson@ximian.com>
14931
14932         * ScrollBar.cs: Cap values when incrementing/decrementing.
14933
14934 2006-03-31  Mike Kestner  <mkestner@novell.com>
14935
14936         * MenuAPI.cs: setup menu.tracker for popup/context menus.
14937         * ToolTip.cs: guard against timer expirations with no active control.
14938         Not sure why it happened.
14939
14940 2006-03-31  Mike Kestner  <mkestner@novell.com>
14941
14942         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
14943         text.
14944         * ToolTip.cs: Position the tooltip based on where the cursor is at
14945         popup time, not at MouseEnter time.  Add a Down state so that we don't
14946         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
14947         positioning offset. Lookup DisplaySize at positioning time, since it
14948         can theoretically change during invocation.
14949         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
14950         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
14951
14952 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
14953
14954         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
14955           Fixes behaviour when the Text property of the box is String.Empty
14956
14957 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
14958
14959         * XplatUIX11.cs: Only send mouseleave for our client windows, not
14960           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
14961           a window)
14962
14963 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
14964
14965         * FileDialog.cs: Visual enhancement for the popup buttons in 
14966           PopupButtonPanel
14967
14968 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
14969
14970         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
14971           code
14972
14973 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
14974
14975         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
14976           highlighted menu items to match ms
14977
14978 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
14979
14980         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
14981
14982 2006-03-30  Mike Kestner  <mkestner@novell.com>
14983
14984         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
14985         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
14986         go active to account for HotLight to Selected transition.
14987         * MenuItem.cs: add internal Selected prop. Fill out the Status
14988         property by calculating it from item info. Add HotLight,
14989         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
14990
14991 2006-03-30  Mike Kestner  <mkestner@novell.com>
14992
14993         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
14994
14995 2006-03-29  Jackson Harper  <jackson@ximian.com>
14996
14997         * Form.cs: Implement TODO.
14998
14999 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
15000
15001         * PrintPreviewDialog.cs: Implemented missing methods and events; still
15002           missing proper dialog setup in the constructor
15003
15004 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
15005
15006         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
15007         * Control.cs:
15008           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
15009           - Fixed ResetBindings and removed TODO
15010           - Added check for cross-thread calls to get_Handle()
15011           - Added Marshaller attribute for set_Font to satisfy class status
15012         * FontDialog.cs: Removed TODOs that seemed implemented
15013         * UpDownBase.cs: Removed unneeded TODO and Fixme
15014         * MessageBox.cs: Implemented support for Default button and removed TODO
15015         * FileDialog.cs: Removed obsolete TODO
15016         * DomainUpDown.cs: Removed obsolete TODO
15017         * ButtonBase.cs: Removed obsolete TODO
15018         * XplatUIWin32.cs: Removed obsolete TODO
15019         * Form.cs:
15020           - Removed obsolete TODO
15021           - Calling CheckAcceptButton when the acceptbutton is changed to allow
15022             internal status updates
15023           - Making sure the active control is selected when the control is created
15024         * CurrencyManager.cs: Removed obsolete TODO
15025
15026 2006-03-29  Mike Kestner  <mkestner@novell.com>
15027
15028         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
15029         of PrintPreviewDialog and RichTextBox.
15030
15031 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
15032
15033         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
15034           DarkDark, Light and LightLight colors for a specific color
15035         * ThemeWin32Classic.cs:
15036           - Use Button drawing code to draw RadioButtons and CheckBoxes with
15037             Appearance = Button 
15038           - Make use of the new ResPool helper CPColor
15039           - Draw ProgressBar and StatusBar with correct 3D borders
15040
15041 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
15042
15043         * ColorDialog.cs: Return selected color. Fixes bug #77940.
15044
15045 2006-03-28  Mike Kestner  <mkestner@novell.com>
15046
15047         * ListView.cs: fix Icon layout to plan for scrollbar widths when
15048         calculating col/row counts.
15049
15050 2006-03-28  Mike Kestner  <mkestner@novell.com>
15051
15052         * ColumnHeader.cs:
15053         * ListView.cs:
15054         * ListViewItem.cs:
15055         * Menu.cs: 
15056         switch to explicit interface method implementation for some methods
15057         corcompare identifies as inconsistent with MS.
15058
15059 2006-03-28  Mike Kestner  <mkestner@novell.com>
15060
15061         * MainMenu.cs: 
15062         * Menu.cs:
15063         add a few missing methods from the class status output.
15064
15065 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
15066
15067         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
15068           correct.
15069
15070 2006-03-28  Mike Kestner  <mkestner@novell.com>
15071
15072         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
15073
15074 2006-03-27  Mike Kestner  <mkestner@novell.com>
15075
15076         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
15077         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
15078
15079 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
15080
15081         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
15082
15083 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
15084
15085         * ThemeWin32Classic.cs:
15086           - GroupBox: Inserted a little gap between the text and the lines
15087             on the right side
15088           - Made the code in CPDrawBorder3D more readable
15089           - Corrected the drawing location of the up and down arrows in 
15090             CPDrawScrollButton
15091
15092 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
15093
15094         * ControlPaint.cs: Corrected line widths in DrawBorder for
15095           ButtonBorderStyle Inset and Outset
15096
15097 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
15098
15099         * ThemeWin32Classic.cs:
15100           - Rewrote the totally broken CPDrawBorder3D method. That was
15101             one of the main problems for the terrific ThemeWin32Classic
15102             look
15103           - Updated and corrected Button drawing
15104           - Correct the dimensions of the SizeGrip to match ms ones
15105           - Removed a small drawing glitch in DrawComboBoxEditDecorations
15106         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
15107           Border3DStyle.Sunken to match ms.
15108
15109 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
15110
15111         * ThemeWin32Classic.cs: First small part of the "de-uglify
15112           ThemeWin32Classic" effort, SizeGrip
15113
15114 2006-03-24  Jackson Harper  <jackson@ximian.com>
15115
15116         * XplatUIX11.cs: Give a max idle time of one second, this matches
15117         MS and forces an Idle event every second when there are no other
15118         events in the queue.
15119
15120 2006-03-24  Mike Kestner  <mkestner@novell.com>
15121
15122         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
15123         * ListView.Item.cs: fix layout issues with null image lists and images
15124         smaller than checkbox size.
15125         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
15126         mode like MS does.  It's weird, but consistent.  ;-)
15127         Fixes #77890.
15128
15129 2006-03-24  Mike Kestner  <mkestner@novell.com>
15130
15131         * ListView.cs: Scroll wheel support for the item control.  Fixes
15132         #77839.
15133
15134 2006-03-23  Jackson Harper  <jackson@ximian.com>
15135
15136         * ScrollableControl.cs: Special case negative sized areas, not
15137         zero.
15138         * MonthCalendar.cs: Save the rect of the clicked date so we can
15139         use it for invalidation.
15140         - Try to cut down on the number of invalidates
15141         - Invalidate the rect the mouse is over and was over when moving
15142         the mouse, so we get the focus box following the cursor.
15143
15144 2006-03-23  Mike Kestner  <mkestner@novell.com>
15145
15146         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
15147         focus rectangle drawing. Fixes #77835.
15148
15149 2006-03-23  Mike Kestner  <mkestner@novell.com>
15150
15151         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
15152         the if and else if and reverting back to the original == check on the
15153         None conditional.
15154
15155 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
15156
15157         * FontDialog.cs: Update the example panel if the selected index of
15158           the fontListBox changes.
15159
15160 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
15161
15162         * FileDialog.cs: Make FileDialog remember which directory it was in
15163           last in the same execution.
15164
15165 2006-03-22  Mike Kestner  <mkestner@novell.com>
15166
15167         * FileDialog.cs: make the DropDownMenu on the toolbar display
15168         RadioChecks since they are mutually exclusive and that's what MS does.
15169
15170 2006-03-22  Mike Kestner  <mkestner@novell.com>
15171
15172         * Theme.cs: add Color param to CPDrawMenuGlyph.
15173         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
15174         checks and radio marks and arrows are visible on highlighted items.
15175         * ControlPaint.cs: update to use new Theme signature.
15176
15177 2006-03-22  Mike Kestner  <mkestner@novell.com>
15178
15179         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
15180         is active. Fixes #77870.
15181
15182 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
15183
15184         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
15185           to be focused/selected after startup
15186
15187 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
15188
15189         * ColorDialog.cs: 
15190           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
15191             CustomColors and ShowHelp properties
15192           - Some internal rewrites to get better results when using the
15193             ColorMatrix
15194
15195 2006-03-22  Mike Kestner  <mkestner@novell.com>
15196
15197         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
15198         HoverSelection.  Fixes #77836.
15199
15200 2006-03-22  Mike Kestner  <mkestner@novell.com>
15201
15202         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
15203         ToggleButtons.  (De)Sensitize the Back button around a stack count of
15204         1, not 0.  Update ButtonSize based on a pixel count of the win32
15205         control.  Adjust the toolbar size/location for new button size.
15206
15207 2006-03-22  Jackson Harper  <jackson@ximian.com>
15208
15209         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
15210         true.
15211         * ScrollBar.cs: When doing increments and decrements we need to
15212         set the Value property so that ValueChanged gets raised. A
15213         possible optimization here would be to make an internal SetValue
15214         that doesn't invalidate immediately.
15215         * ToolTip.cs: Tooltips get added to their container (when
15216         supplied) so they get disposed when the container is disposed.
15217         - Don't create tooltips for String.Empty. This prevents all these
15218         little 2-3 pixel windows from showing up when running nunit-gui
15219         and driving me mad.
15220         * Form.cs: Don't set topmost when setting the owner if the handles
15221         haven't been created yet.  The topmost set will happen when the
15222         handles are created.
15223
15224 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
15225
15226         * XplatUIX11.cs:
15227           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
15228           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
15229             visible (to allow them to recalculate their sizes)
15230
15231 2006-03-21  Mike Kestner  <mkestner@novell.com>
15232
15233         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
15234         methods. Removed a ton of redundant code.  Still not really happy with
15235         the border rendering, but I think that's mainly because of the
15236         ControlDarkDark being black instead of a dark grey. Depending on how 
15237         close we want to be, we might want to revisit those color choices.
15238         Among the new features added during the refactor were DropDownArrow
15239         pressed rendering, Disabled image rendering.  Proper flat appearance
15240         boundary rendering.  Removed the Divider and Wrapping dividers since I
15241         can't figure out any combination of themes and conditions to make the
15242         MS control draw a horizontal line on a toolbar despite what the
15243         Divider property docs indicate.
15244         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
15245         conditions and incorrect layout.  Updated to coding standard.
15246         * ToolBarButton.cs: refactored layout and positioning code from
15247         ToolBar to here.  Invalidate wherever possible instead of forcing
15248         redraws of the whole toolbar. 
15249         (Known remaining issues: explicit ButtonSize smaller than provided
15250         images.)
15251
15252 2006-03-21  Mike Kestner  <mkestner@novell.com>
15253
15254         * ContextMenu.cs (Show): use the position parameter instead of just
15255         showing at the MousePosition.
15256
15257 2006-03-21  Jackson Harper  <jackson@ximian.com>
15258
15259         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
15260         control handle this.
15261         * TreeNodeCollection.cs: If we are clearing the root node we need
15262         to reset top_node so calcs can still happen.
15263         * ThemeWin32Classic.cs: This is a Flags so we need to check
15264         properly.
15265         
15266 2006-03-21  Jackson Harper  <jackson@ximian.com>
15267
15268         * DataGrid.cs: Create columns when the binding context has been
15269         changed.
15270         * X11Structs.cs: Keysyms are uints.
15271         - Add size to fix build.
15272
15273 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
15274
15275         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15276           XplatUIOSX.cs: 
15277           - Added ResetMouseHover method to allow controls to retrigger
15278             hovering if they need it more than once
15279           - Implemented MouseHoverTime and MouseHoverSize properties
15280         * Timer.cs: Start() must reset the interval
15281         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
15282           properties
15283
15284 2006-03-21  Jackson Harper  <jackson@ximian.com>
15285
15286         * X11Keyboard.cs: improved layout detection. Move the nonchar
15287         tables into this file.
15288         * KeyboardLayouts.cs: Move the tables into resource files.
15289
15290 2006-03-21  Mike Kestner  <mkestner@novell.com>
15291
15292         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
15293
15294 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
15295
15296         * Mime.cs: Various speed optimizations. Looking up mime types
15297           is now 2 times faster than before
15298
15299 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
15300
15301         * CreateParams.cs: Added internal menu field
15302         * Control.cs: 
15303           - Switched call order for UpdateBounds; now we always call
15304             the one that also takes ClientSize, and we're calculating the 
15305             client size via driver method in the others. The previous
15306             method of tracking client size by difference wasn't working
15307             for forms where even the starting client size wouldn't match
15308             the overall form size (due to borders) (Part of fix for #77729)
15309           - CreateParams(): Do not use parent.Handle unless the handle is
15310             already created. Causes havoc with Nexxia and throws off our
15311             creation of controls
15312         * XplatUIX11.cs:
15313           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
15314           - Switched handling of ConfigureNotify over to new PerformNCCalc 
15315             method (consolidates code)
15316           - Changed RequestNCRecalc to use new PerformNCCalc method
15317           - Added calls to RequestNCRecalc when menus and borders are changed
15318             to allow app to set NC size. (Part of fix for #77729) This matches
15319             when MS send a WM_NCRECALC on Win32 windows.
15320           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
15321             (Part of fix for #77729). This matches what MS does, they also
15322             send that message when the form is made visible.
15323           - XException.GetMessage: Improved usability of X errors by including
15324             a translation of the window into Hwnd and Control class
15325           - Improved debug info for window creation, reparenting and destruction
15326           - Created helper method WindowIsMapped() [Currently not used]
15327         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
15328         * Form.cs:
15329           - CreateParams: Now setting our menu on the new internal menu field
15330           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
15331             avoid calculating the same property twice
15332         * Hwnd.cs:
15333           - Improved usability of ToString() for debugging purposes
15334           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
15335             determine the height of the menu, instead of just the font. This
15336             required to also create a graphics context and to keep a bmp 
15337             around (for performance reasons)
15338
15339 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
15340
15341         * MenuAPI.cs: Added OnMouseUp method
15342         * Form.cs:
15343           - Now remembering the requested client size, avoids size errors
15344           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
15345             instead of base if the menu is active. This is required due to
15346             control now capturing and releasing on down/up and it would
15347             prematurely release our menu capture
15348
15349 2006-03-17  Jackson Harper  <jackson@ximian.com>
15350
15351         * KeyboardLayouts.cs: Add the czech layouts.
15352
15353 2006-03-16  Jackson Harper  <jackson@ximian.com>
15354
15355         * Control.cs: Use the viewport space when sizing not the controls
15356         client size, so things like ScrollableControl that effect the
15357         viewport size (when scrollbars are added) are computed correctly.
15358         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
15359         of ManagerEntrys.
15360         - Handle creating BindingManagers for null data sources.
15361         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
15362         source, otherwise when rows are added they are added to the 'fake'
15363         datasource and we will crash when trying to set the position in
15364         those rows.
15365         - Use Implicit scrollbars on the datagrid so they arent
15366         selectable.
15367         
15368 2006-03-16  Jackson Harper  <jackson@ximian.com>
15369
15370         * Binding.cs:
15371         * InternalWindowManager.cs:
15372         * MdiWindowManager.cs:
15373         * X11Keyboard.cs: I really want Mike to love me again (fix
15374         compiler warnings).
15375
15376 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
15377
15378         * DataGrid.cs:
15379           - OnMouseDown: Switch to editing mode when clicking on the cell
15380                          even if we're clicking on the cell that's currently 
15381                          selected
15382           - ProcessGridKey: Left/Right now wrap like MS.Net does
15383           - ProcessGridKey: Tab now knows to add a new row when tab is
15384                             pressed in the cell of the last column of the 
15385                             last row
15386           - ProcessGridKey: Enter now adds another row  if pressed in the last
15387                             row and selectes the new row, same column cell
15388           - ProcessGridKey: Home/End navigate columns, not rows, like 
15389                             originally implemented
15390           - Broke ProcessKeyPreview code out into an extra Internal method
15391             so it can be called from the edit code
15392         * DataGridTextBox.cs (ProcessKeyMessage):
15393           - Switched to accept Tab keypresses
15394           - Added F2 handling to allow jumping to the end of the edited cell
15395           - Added logic to allow moving caret left/right inside edited cell
15396             and making the edited cell jump when the caret hits cell borders
15397           - Tab and Enter are now passed to the datagrid after being handled
15398         * TextBoxBase.cs:
15399           - Removed capture code now that Control handles it
15400           - set_SelectionStart now ensures caret is visible
15401
15402 2006-03-16  Jackson Harper  <jackson@ximian.com>
15403
15404         * TrackBar.cs: Debackwards the increment/decrement for handling
15405         mouse clicks on the bar with vertical trackbars.
15406         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
15407         bottom to match MS.
15408
15409 2006-03-16  Mike Kestner  <mkestner@novell.com>
15410
15411         * ListView.cs: make shift/ctrl keyboard and mouse selection 
15412         consistent with the MS control. Fix a bug in
15413         SelectedListViewItemCollection.Clear that was pissing me off for the
15414         better part of a day because the collection was being altered
15415         underneath us as we walked the list.
15416
15417 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
15418
15419         * Control.cs: Not sure how we could miss this so long, but it seems
15420           that MS.Net has Capture set all the way from before calling 
15421           OnMouseDown through sending the mouse events until after
15422           OnMouseUp. This will fix DataGrid's selection being set to end
15423           at the location of the MouseUp.
15424
15425 2006-03-15  Jackson Harper  <jackson@ximian.com>
15426
15427         * BindingContext.cs: Check the binding after its added so that it
15428           can initialize the binding managers and hookup to events.
15429         * Binding.cs: Data members seem to sometimes include rows/cols in
15430           the format Row.Column we now take this into account.
15431           - Hookup to the position changed event so we can update the
15432           control when the position has changed in the data set.
15433         * CurrencyManager.cs: Take into account the row/col naming
15434           convention when creating dataset tables.
15435         * BindingContext.cs: Using a newer better way of storing
15436           datasource/datamember pairs.  Hopefully this better matches MS for
15437           looking up binding managers.
15438
15439
15440 2006-03-15  Jackson Harper  <jackson@ximian.com>
15441
15442         * BindingContext.cs: The currency manager needs the data member
15443         name, if the member is a data set we use the name to find the
15444         correct table.
15445         * CurrencyManager.cs: When creating the list prefer an IList over
15446         an IListSource.
15447         - Attempt to create a DataTable from a DataSet (TODO: might need
15448         some better error checking here, although MS doesn't seem to have much)
15449         - If we have a DataTable create a view and use it as our list.
15450
15451 2006-03-15  Mike Kestner  <mkestner@novell.com>
15452
15453         * ListView.cs: keep a matrix of the icon mode layout to facilitate
15454         keyboard navigation. Support Up/Down/Left/Right selection correctly
15455         for all 4 View modes.
15456         * ListViewItem.cs: add internal row/col fields for icon layouts.
15457
15458 2006-03-15  Jackson Harper  <jackson@ximian.com>
15459
15460         * TabControl.cs: Redraw the tabs when we resize so their newly
15461         calculated sizes are drawn on screen.
15462         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
15463         composite characters.
15464         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
15465         - filter events so that composite characters can be created
15466         patches by peter
15467         * X11Structs.cs: Add XIMProperties enum.
15468
15469 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
15470
15471         * Control.cs (BringToFront, SendToBack): Don't use window or handle
15472           unless it's created
15473
15474 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
15475
15476         * Control.cs (PerformLayout): We don't need to consider visiblity
15477           for anchoring, only for docking. This fixes 'whacky' alignment
15478           in listbox and other controls that use implicit scrollbars after
15479           the previous PerformLayout patch
15480         * ListBox.cs: Switched to use implicit scrollbars
15481           
15482 2006-03-14  Mike Kestner  <mkestner@novell.com>
15483
15484         * ToolBar.cs: 
15485         * VScrollBar.cs:
15486         - chain up the "new event" overrides to base and use
15487         OnEvent to raise them.  Part of fix for bug #76509.
15488
15489 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
15490
15491         * FileDialog.cs: Do not select an item in the parent directory
15492           on backspace
15493
15494 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
15495
15496         * Control.cs (PerformLayout): It would seem that we considered
15497           invisible windows for our layout. Not quite the right thing
15498           to do. Now we don't any longer, thereby fixing bug #76889.
15499
15500 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
15501
15502         * Control.cs (CanFocus): I goofed. A control can have focus 
15503           even though it's not selectable. Made it match MS docs.
15504
15505 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15506
15507         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
15508           center by default (fixes #76895)
15509         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
15510           all uses of Border3DSides.All with the explicit ORd together
15511           Left|Right|Top|Bottom because I assume that nobody was aware 
15512           that All also implies a center fill. Most places I checked had
15513           a fill right above.
15514         * ProgressBarStyle.cs: Added
15515
15516 2006-03-13  Mike Kestner  <mkestner@novell.com>
15517
15518         * ListView.cs: fix breakage in drag shadow header positioning 
15519         from Peter's csc compilation fix.
15520
15521 2006-03-13  Mike Kestner  <mkestner@novell.com>
15522
15523         * ListView.cs: fix NRE produced by backspacing twice in a focused
15524         FileDialog.
15525
15526 2006-03-13  Mike Kestner  <mkestner@novell.com>
15527
15528         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
15529
15530 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15531
15532         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
15533           be changed
15534         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
15535           the allowed size before making programmatic size changes
15536
15537 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
15538
15539         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
15540           set, metacity is broken and will still use the emty sizes in 
15541           the struct. (Fix for #77089)
15542
15543 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
15544
15545         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
15546           WindowExStyles and marked both enums as Flags
15547         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
15548           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
15549           to match WindowStyles split
15550         * XplatUIX11.cs:
15551           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
15552           - Updated to match WindowStyles split
15553         * XplatUIWin32.cs:
15554           - Fixed FosterParent creation, was using ExStyle on the Style field
15555             (This should help with Popup focus issues)
15556           - Updated to match WindowStyles split
15557
15558 2006-03-13  Jackson Harper  <jackson@ximian.com>
15559
15560         * MdiWindowManager.cs: Use the system menu height. Fixes some
15561         strange sizing issues.
15562
15563 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
15564
15565         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
15566         * TextBoxBase.cs:
15567           - Scroll to caret after inserting text (#77672)
15568           - Make scroll range one pixel higher, fixes off-by-one error (and
15569             makes underlines visible on the last line)
15570
15571 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
15572
15573         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
15574           the keyboard state from being stuck with keys in 'pressed' state when
15575           focus is switched away via keyboard
15576         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
15577           reset the keyboard if no X11 KeyUp events are expected to come
15578         * X11Structs.cs: Switched type of Visible to bool to match driver
15579
15580 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
15581
15582         * TextControl.cs:
15583           - Switched caret to be just 1 pixel wide, matches MS and looks less
15584             clunky
15585           - Moved caret display 1 pixel down from the top of the control
15586             to improve view
15587           - InsertCharAtCharet: Update the selection start if moving the caret
15588             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
15589           - No longer always creating the caret when the caret methods are
15590             called. Only the actual ShowCaret/HideCaret will do that now
15591           - Only setting caret visible if the owner control has focus
15592           - UpdateView: Added invalidation-shortcut logic for center and right 
15593             aligned text. Previously we'd update all according to the left
15594             logic which caused drawing errors. Also fixed height of invalidated
15595             areas, now properly invalidating the whole area (was off-by-one)
15596           - owner_HandleCreated: Always generate the document when the
15597             handle is created; this ensures that 
15598         * TextBoxBase.cs:
15599           - Fixed situation where caret would disappear under the right
15600             window border, also improved scrolling behaviour on left-
15601             aligned textboxes
15602           - Fixed right-aligned textboxes to have a border to the
15603             right instead of the caret being under the right border
15604         * XplatUIX11.cs:
15605           - Switched from 'nested' to simple visible/not visible tracking 
15606             for caret (part of fix for #77671)
15607           - No longer passing through translated FocusIn/FocusOut messages
15608             since we were notifying too often and the wrong windows. Instead
15609             we just notify our focussed window of receiving or loosing focus
15610         * XplatUIWin32.cs: Switched from 'nested' show/hide 
15611           counting for caret to simple visible yes/no behaviour (part of 
15612           fix for #77671)
15613
15614 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
15615
15616         * Mime.cs: Remove debug code...
15617
15618 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
15619
15620         * MimeGenerated.cs: Removed
15621         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
15622           and subclasses) from /usr/(local/)share/mime and
15623           $HOME/.local/share/mime.
15624
15625 2006-03-10  Jackson Harper  <jackson@ximian.com>
15626
15627         * MdiWindowManager.cs: Recalc the NC area when a window is
15628         maximized/restored so that the menu area is drawn on forms that
15629         don't have a menu.
15630
15631 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15632
15633         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
15634           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
15635           us to force a WM_NCCALCRESIZE message being sent. This is needed
15636           for MDI maximizing.
15637
15638 2006-03-10  Jackson Harper  <jackson@ximian.com>
15639
15640         * Form.cs: We need to use the ActiveMenu when calculating menu
15641         height.
15642         - Fix nullref when the window manager hasn't been created yet.
15643         * Control.cs: Fix nullref when we try to bring a control to the
15644         front that has no parent.
15645         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
15646         height.
15647         - Add a dummy item to the maximized menu so it always has the
15648         correct height. Otherwise when there are no menus we don't get our
15649         icon and buttons.
15650         
15651
15652 2006-03-10  Jackson Harper  <jackson@ximian.com>
15653
15654         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
15655         stuff.
15656         * Form.cs: Make the window_state internal so the window managers
15657         can track it.
15658         - When an MDI child is maximized let its window manager create the
15659         main menu (so it can add its icon).
15660         - Notify the window managers of state changes
15661         - Let the window manager paint its buttons and handle button
15662         clicks on the menu when it is maximized.
15663         * InternalWindowManager.cs: Move the prev_bounds into the mdi
15664         window manager, since tool windows don't use it, only mdi windows.
15665         - Tell the main form that we don't want it to handle NCPAINT
15666         itself to avoid extra painting.
15667         - Handle clicks on a maximized windows menu.
15668         - Handle window state changes
15669         - Handle minimize/maximize clicks correctly by setting the window state.
15670         * MdiWindowManager.cs: Add an icon menu that (the menu you get
15671         when clicking on the forms icon).
15672         - New method to create a forms maximized menu. This is its normal
15673         menu + an icon.
15674         - Handle window state changes.
15675         - Handle sizing of maximized windows.  Maximized windows are just
15676         drawn bigger then the parent visible area. All controls are still
15677         there, they are just outside the visible area (this matches windows).
15678         * MdiClient.cs: No scrollbars when a child window is maximized.
15679         - Let the children windows figure out how big they should be when
15680         sizing maximized windows.
15681         - Implement a version of ArrangeIconicWindows somewhat similar to
15682         Windows version.  There are some little differences, but I don't
15683         think any app will rely on the layout of minimized mdi windows.
15684
15685 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15686
15687         * Padding.cs: Several fixes to allow compiling with csc 2.0
15688
15689 2006-03-09  Jackson Harper  <jackson@ximian.com>
15690
15691         * Menu.cs:
15692         * MenuItem.cs: Cheap hack so we can add items to the list without
15693         the events being raised.  This allows adding mdi items during
15694         drawing. TODO: Should probably find a better time to add the items.
15695
15696 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15697
15698         * ThemeWin32Classic.cs:
15699           - CheckBox_DrawText: Added logic to not wrap if not enough space
15700             is available (Fix for bug #77727)
15701           - RadioButton_DrawText: Added logic not to wrap if not enough
15702             space is available (Fix for bug #77727). Also removed some
15703             duplicate code, DrawString always drawing the regular text
15704             before hitting the if statement.
15705
15706 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
15707
15708         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
15709
15710 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
15711
15712         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
15713         * ContainerControl.cs: Partial implementation of some 2.0 scaling
15714           methods. Moved the new 2.0 properties into alphabetical order with
15715           other properties and added MonoTODO tags
15716
15717 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15718
15719         * AutoScaleMode.cs: Added. Fix build.
15720
15721 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15722
15723         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
15724           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
15725           and was requiring premature handle creation for calls from above
15726         * Form.cs, Control.cs: Removed handle arguments from calls to
15727           CalculateClientRect()
15728
15729 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15730
15731         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
15732           drag_column.column_rect is MarshalByRef and can't be used that way
15733
15734 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15735
15736         * AxHost.cs: Added deserialization constructor for 
15737           AxHost+State (fixes 77743)
15738
15739 2006-03-09  Mike Kestner  <mkestner@novell.com>
15740
15741         * ListView.cs: 
15742         - Added column drag reordering for details view.
15743         - fixed behavior when mouse is dragged off column and
15744         AllowColumnReorder is false.
15745         * ColumnHeader.cs: clone the format too in Clone.
15746         * Theme.cs: add DrawListViewHeaderDragDetails method.
15747         * ThemeWin32Classic.cs:
15748         - impl new method for drawing drag column shadows and targets.
15749         - support column offset for details mode in DrawListViewItem.
15750
15751 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15752
15753         * TextControl.cs: Reset the char_count when the document is cleared
15754           (Fixes bug reported on mono-winforms mailing list)
15755
15756 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
15757
15758         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
15759           of calling base we simply process the key ourselves, since both
15760           DefWindowProc and the handled method would set m.Result. 
15761           (Fixes #77732)
15762
15763 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
15764
15765         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
15766           method also moves the window; instead implemented a copy of
15767           Control.ScaleCore (Part of fix for #77456)
15768         * TextBoxBase.cs: 
15769           - Created new CreateGraphicsInternal method to allow providing
15770             a graphics context when no handle is created without triggering
15771             handle creation. (Part of fix for #77456)
15772           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
15773         * TextControl.cs: 
15774           - Switched Constructor to require TextBoxBase instead of Control (to
15775             allow uncast access to CreateGraphicsInternal)
15776           - Safeguarded use of owner.Handle property. No longer accessing it
15777             unless the handle is already created.
15778           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
15779           - Now triggering a recalc when owning control becomes visible
15780         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
15781           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
15782           premature handle creation (Part of fix for #77456)
15783         * Control.cs:
15784           - We now only destroy our double-buffering buffers when the
15785             control is resized or disposed, but not when visibility
15786             changes. (The code even re-created them twice every time)
15787           - Now requiring a redraw of the buffer on visibility changes
15788             (fixes bug 77654 part 2)
15789           - Not passing OnParentVisibleChanged up unless the control
15790             is visible
15791           - CanFocus: Fixed to match MS documentation
15792           - Focus: Fixed to return actual focus state and to check if
15793             setting focus is legal before setting it
15794
15795 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
15796
15797         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
15798           when to draw focus rectangle by looking at parent focus and
15799           selected state instead. This fixes TabPages on Linux sometimes
15800           having none or multiple focus rectangles.
15801         * XplatUIX11.cs (SetFocus): 
15802           - Don't set the focus if the same window already has focus
15803           - Use SendMessage instead of PostMessage (like it's Win32
15804             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
15805             to match MS behaviour
15806         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
15807           are not selectable.
15808
15809 2006-03-07  Jackson Harper  <jackson@ximian.com>
15810
15811         * PictureBox.cs: Revert line I accidently committed last week.
15812
15813 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
15814
15815         * Control.cs: 
15816           - Added new IsRecreating and ParentIsRecreating properties to
15817             allow testing if RecreateHandle has been called on ourselves
15818             or one of our parents
15819           - WndProc(WM_DESTROY): If our control handle is being recreated
15820             we immediately need to create the handle when receiving the
15821             destroy, that way our child windows find a valid parent handle
15822             when they themselves are being recreated upon WM_DESTROY receipt
15823             (fix for bug #77654 part 1)
15824         * XplatUIX11.cs:
15825           - DestroyWindow: WM_DESTROY must be sent to our own window before
15826             notifying any child windows. MS documents that child windows
15827             are still valid when WM_DESTROY is received. (Control now relies on
15828             this behaviour)
15829           - Added some fine-grain debug options
15830
15831 2006-03-06  Jackson Harper  <jackson@ximian.com>
15832
15833         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
15834         box and base calculations off this.
15835         * MdiChildContext.cs:
15836         * MdiWindowManager.cs: Don't need to ensure scrollbars here
15837         anymore.
15838         
15839 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
15840
15841         * Splitter.cs: In situations where the affected control is added
15842           to the parent's control list after the splitter, we would not
15843           populate affected. Now we try populating it on mousedown, if
15844           it's not already set, and force it to be re-set whenever our
15845           parent changes.
15846
15847 2006-03-03  Matt Hargett  <matt@use.net>
15848
15849         * Control.cs: implement Control.Padding
15850         * Padding.cs: -Padding.All returns -1 when constructing with the
15851         implicit default ctor
15852         -Padding.ToString() matches MS.NET
15853         * ContainerControl.cs: implement
15854         ContainerControl.AutoScaleDimensions
15855         * ListControl.cs: implement ListControl.FormattingEnabled
15856         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
15857         * ButtonBase.cs:
15858         * TabPage.cs: Implement UseVisualStyleBackColor.
15859         * PictureBox.cs: Implement PictureBox.InitialImage.
15860
15861 2006-03-03  Mike Kestner  <mkestner@novell.com>
15862
15863         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
15864         event declarations to proxy to base event.
15865         * ListViewItem.cs: update to use ItemControl.
15866         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
15867         * ThemeWin32Classic.cs: update to new ListView theme API and fix
15868         column header label rendering for 0 width columns.
15869
15870 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
15871
15872         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
15873           that causes the control to be created. Fixes #77476.
15874
15875 2006-03-02  Jackson Harper  <jackson@ximian.com>
15876
15877         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
15878         expose_pending.
15879
15880 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
15881
15882         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
15883           passed in for the EventArgs (fixes #77690)
15884
15885 2006-03-01  Jackson Harper  <jackson@ximian.com>
15886
15887         * ScrollBar.cs: Refresh afterbeing resized.
15888
15889 2006-02-28  Mike Kestner  <mkestner@novell.com>
15890
15891         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
15892         Clean up a tracker compile warning.
15893         * MenuItem.cs: add internal PerformPopup method.
15894         [Fixes #77457]
15895
15896 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
15897
15898         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
15899           implicit expose) when the text is set to null
15900
15901 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
15902
15903         * RichTextBox.cs (FlushText): When newline is true, we always
15904           need to split the line, even if no text is on it and we may
15905           never eat newlines. (Fixes #77669)
15906
15907 2006-02-28  Mike Kestner  <mkestner@novell.com>
15908
15909         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
15910         and set Selected instead.
15911         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
15912         collections.
15913
15914 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
15915
15916         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
15917
15918 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
15919
15920         * FontDialog.cs:
15921           - Got rid of the panel. All controls are now directly added to
15922             the dialog form
15923           - It is now possible to set a font with the Font property
15924           - MinSize and MaxSize property do now what they should
15925           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
15926           - Searching and selecting a font with the font textbox works now,
15927             the same applies to the style and size textbox
15928           - Draw the correct 3D border in the example panel
15929           - Fixed a little mem leak (unused fonts didn't get disposed)
15930           - Many other internal updates/rewrites...
15931           - Fix typo
15932
15933 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
15934
15935         * TextControl.cs: 
15936           - InsertRTFFromStream: Added 'number of characters inserted' argument
15937           - set_SelectedRTF: Now using the number of characters to calculate
15938             the new location for the selection and cursor (x/y cannot be used
15939             due to potentially already wrapped text)
15940
15941 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
15942
15943         * TextControl.cs: Added property and implemented means to allow 
15944           disabling recalculation of a document (can be used to speed up
15945           multiple inserts and is needed to make RTF inserts predictable, see
15946           bug #77659)
15947         * RichTextBox.cs: Using the new NoRecalc property of Document to
15948           keep x/y insert locations predictable. Also makes it faster inserting
15949           large chunks of RTF
15950
15951 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
15952
15953         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
15954           it's easier for a child control to handle the other messages without
15955           having to duplicate the special functionality
15956         * TextBoxBase.cs
15957           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
15958             code to handle processing the key ourselves, in order to get 
15959             access to the result of KeyEventArgs.Handled. We now only call 
15960             ProcessKey if they key hasn't been handled already. Fixes #77526.
15961           - set_Text: If null or empty string is given, just clear the 
15962             document. Fixes part of #77526
15963
15964 2006-02-27  Jackson Harper  <jackson@ximian.com>
15965
15966         * SizeGrip.cs: Paint the background color before painting the grip
15967         so things look right.
15968         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
15969
15970 2006-02-27  Mike Kestner  <mkestner@novell.com>
15971
15972         * ListView.cs:
15973           - Restructure layout and invalidation model to remove a ton of
15974           flicker from the control and speed up performance in general.
15975           - Add manual column resize, flickers like crazy, but I already have
15976           some ideas on how I'll fix that. (#76822)
15977           - Merge the three Icon-based views into a single layout method.
15978           - Move item selection interaction logic from the item since 
15979           interaction with the collections is more appropriate to the view.
15980           - Deselection on non-item clicks.
15981         * ListViewItem.cs:
15982           - Encapsulate most of the layout. Add some internal props to trigger
15983           layout.  Move to a model where Items invalidate themselves instead
15984           of just invalidating the whole control every time something changes.
15985           - Invalidate on Text/Caption changes.
15986           - switch to an offset based layout model to avoid having to absolute
15987           position every element on item moves.
15988           - correct checkbox layout to conform to MS layout.
15989         * ThemeWin32Classic.cs:
15990           - refactor some column header drawing code.
15991           - fix string justification for column headers (#76821)
15992           - make SmallIcon labels top justified for compat with MS impl.
15993         * ThemeClearlooks.cs:
15994           - adjust to new ListViewItem internal checkbox bounds api.
15995
15996 2006-02-27  Jackson Harper  <jackson@ximian.com>
15997
15998         * Control.cs:  Change where implicit controls fall in the zorder.
15999         They are now on top of all children.
16000         - Synced AddImplicit code with Add
16001         - Removed unused enumerator.
16002         * SizeGrip.cs: Remove the TODO as its been TODONE.
16003
16004 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
16005
16006         * TextControl.cs(Insert): Combine the last lines unless the insertion
16007           string ends with \n\n, otherwise we leave one line too many (Fixes
16008           something I noticed with the testapp for #77526; the bug itself was
16009           already fixed in the previous checkin)
16010
16011 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
16012
16013         * RichTextBox.cs:
16014           - SelectionColor and SelectionFont methods no longer set absolute
16015             styles. Instead, the keep font or color respectively (This 
16016             resolves a long-standing FIXME in the code)
16017           - When flushing RTF text, the insert code now considers text trailing
16018             behind the insertion point (Fixes the bug where when replacing
16019             the selected text via SelectedRTF the remainder of the line behind 
16020             the selection would stay on the first insertion line)
16021         * TextBoxBase.cs:
16022           - AppendText now updates the selection points after inserting text
16023           - AppendText now ensures that the last tag (sometimes 0-length) of
16024             the document is used for the style information (Fixes part of 
16025             bug #77220)
16026         * TextControl.cs:
16027           - Created new FontDefiniton class to allow describing partial style
16028             changes
16029           - StreamLine() now takes a lines argument, to allow it to decide
16030             whether an encountered zero-length tag is the last in the document
16031             (which must be kept to not loose the font/color contained in it,
16032             for later appends)
16033           - Created Combine() and Split() methods for Marker structs, to 
16034             support marker updates due to reformatted documents (soft line
16035             wraps)
16036           - Implemented Document.CaretTag setter
16037           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
16038             of the last line (Not the cause, but also exposed by bug #77220)
16039           - Added LineTag argument to InsertString method, to allow callers
16040             to force a certain tag to be used (required to force use of the
16041             trailing zero-length tag of a document)
16042           - Now updating markers in Combine(), to avoid stale tag markers
16043           - Added some method descriptions to aid maintenance
16044           - Implemented new FormatText concept, allowing additive/subtractive
16045             formatting by only specifying the components that are to be 
16046             changed. This was needed for resolving the RTB.SelectedColor/
16047             RTB.SelectedFont fixmes
16048           - Added Break() support method to allow breaking up linetags (used
16049             for partial formatting)
16050           - Added GenerateTextFormat() method. It is used for partial 
16051             formatting and allows to generate a full font/color from given
16052             attributes and an existing tag.
16053
16054 2006-02-26  Jackson Harper  <jackson@ximian.com>
16055
16056         * XplatUIX11.cs:  Use the correct caption height.
16057         - Translate hittest coordinates to screen coords to match MS.
16058         * XplatUIWin32.cs: When we create MDI windows we need to reset
16059         some of the style flags, so we get a nice blank window, and can
16060         draw all the decorations ourselves.
16061         - Set a clipping rectangle on the non client paint event, the
16062         window manager drawing code needs one.
16063         * Form.cs: The window manager needs to know when the window state
16064         has been updated.
16065         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
16066         don't need to factor in border and title sizes in these
16067         methods. TODO: Remove the args and fix the call points.
16068         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
16069         properly.
16070         - Let the driver set the cursors.
16071         - Improve active window handling
16072         - Correct sizes for title bars and buttons.
16073         - Match MS drawing better
16074         * MdiWindowManager.cs: We don't need to handle border style
16075         updates specially anymore.
16076         - Check for scrollbars when windows are done moving
16077         - Handle Active properly.
16078         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
16079         correctly. I am spewing the exception though, so we don't hide the
16080         bugs.
16081         
16082 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
16083
16084         * DataGridViewRowPostPaintEventArgs.cs,
16085           DataGridViewCellPaintingEventArgs.cs,
16086           DataGridViewRowCollection.cs,
16087           DataGridViewRowPrePaintEventArgs.cs,
16088           DataGridViewCell.cs: Clear a few warnings and implement a few
16089           exceptions that should be thrown.
16090
16091 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
16092
16093         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
16094           'inheriting' our parent's (non-default) cursor. (Part of
16095            the fix for #77479)
16096
16097 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
16098
16099         * XplatUIX11.cs: Fixed cast to make csc happy
16100
16101 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
16102
16103         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
16104           it's for the client area (part of fix for #77479 and needed
16105           for MDI window cursor handling)
16106         * XplatUIX11.cs
16107           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
16108             the appropriate default cursors and also passing the message
16109             up the parent chain 
16110           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
16111             for non-client areas
16112
16113 2006-02-15  Jackson Harper  <jackson@ximian.com>
16114
16115         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
16116         is a real MDI window
16117
16118 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
16119
16120         * X11DesktopColors.cs: Instead of checking the desktop session
16121           string for "KDE" check if it starts with "KDE"
16122
16123 2006-02-10  Jackson Harper  <jackson@ximian.com>
16124
16125         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
16126         systems).
16127
16128 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
16129
16130         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
16131           errors
16132         * ColorDialog.cs:
16133           - Got rid of the panel. All controls are now directly added to
16134             the dialog form
16135           - Changed to mono coding style
16136
16137 2006-02-10  Jackson Harper  <jackson@ximian.com>
16138
16139         * InternalWindowManager.cs: We don't need the set visibility to
16140         false hack anymore now that peter has written beautiful shutdown
16141         code.
16142
16143 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
16144
16145         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
16146           where already explicitly destroyed
16147
16148 2006-02-10  Jackson Harper  <jackson@ximian.com>
16149
16150         * MdiClient.cs: Handle the case where windows are too high or to
16151         the left and we need scrollbars.
16152
16153 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
16154
16155         * MimeIcon.cs: Added some icons
16156         * FileDialog.cs:
16157           - Fixed bug #77477
16158           - Got rid of the panel. All controls are now directly added to
16159             the dialog form
16160           - Changed to mono coding style
16161           - On Linux "My Computer" and "My Network" will now show some
16162             more usefull information. A new class, MasterMount, gathers
16163             this information from /proc/mount. Updated MWFFileView to make
16164             use of this information
16165           - Fixed a bug that caused FileDialog to crash when
16166             ".recently_used" file had a zero size
16167           - FilterIndex does now what it should
16168           - Some Refactoring
16169         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
16170             FileDialog changes
16171
16172 2006-02-09  Jackson Harper  <jackson@ximian.com>
16173
16174         * ComboBox.cs: Don't touch if null.
16175
16176 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
16177
16178         * Cursor.cs: 64bit safeness fix
16179         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
16180
16181 2006-02-09  Jackson Harper  <jackson@ximian.com>
16182
16183         * Form.cs: If a form is made into an MDI form update the styles so
16184         all the props can get set correctly.
16185         - Kill the mdi_container when we dont need it anymore.
16186         * InternalWindowManager.cs: Add missing NOT
16187
16188 2006-02-08  Jackson Harper  <jackson@ximian.com>
16189
16190         * InternalWindowManager.cs: Respek clipping when drawing MDi
16191         decorations.
16192
16193 2006-02-08  Jackson Harper  <jackson@ximian.com>
16194
16195         * Hwnd.cs: Add bits to track non client expose events.
16196         * XplatUIX11.cs: Track non client expose events on the hwnd. This
16197         gives us a proper invalid rect and will allow for some nice
16198         optimizations with NC client drawing
16199         - MDI windows are children windows, so move their style handling
16200         into the child window block.
16201         * InternalWindowManager.cs: Remove a state reset that was
16202         getting invoked at the wrong time. Fixes managed windows getting
16203         into a 'stuck' captured state.
16204
16205 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
16206
16207         * TextControl.cs (Document.ctor): Now initializing 
16208           selection_anchor. Fixes #77493
16209
16210 2006-02-07  Jackson Harper  <jackson@ximian.com>
16211
16212         * TrackBar.cs: The increment/decrements were backwards.
16213
16214 2006-02-07  Mike Kestner  <mkestner@novell.com>
16215
16216         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
16217         to the instance itself.
16218
16219 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
16220
16221         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
16222           on ulongs and pointers, the size differs between 32bit and 64bit
16223           systems. 
16224
16225 2006-02-07  Mike Kestner  <mkestner@novell.com>
16226
16227         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
16228         for 64 bit platforms to work around a metacity bug. 
16229
16230 2006-02-07  Jackson Harper  <jackson@ximian.com>
16231
16232         * TrackBar.cs: Process the input keys we need, and hookup to
16233         KeyDown instead of using WndProc, so we get key messages.
16234
16235 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
16236
16237         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
16238           machine we're on. 
16239         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
16240           we need to translate the XdndVersion atoms array before sending it
16241
16242 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
16243
16244         * XplatUIX11.cs: 
16245           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
16246             number of bits for the property, not the number of bytes. The
16247             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
16248             but would not crash since it specified 8 bits instead of 4 bits)
16249           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
16250             defined as XID -> long in the C headers)
16251           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
16252             references since those are now IntPtr to begin with
16253           - Switched all Atom.XXX 'int' casts to IntPtr casts
16254           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
16255           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
16256           - Added XChangeActivePointerGrab DllImport (for X11DnD)
16257         * X11Structs.cs:
16258           - Changed 'int' type for Atoms in XEvent structures to IntPtr
16259           - Changed atom in HoverStruct to be IntPtr
16260         * X11DnD.cs:
16261           - Removed local DllImports, switched code to use those from XplatUIX11
16262           - Removed/fixed casts related to the switch of Atom to be a IntPtr
16263
16264 2006-02-06  Mike Kestner  <mkestner@novell.com>
16265
16266         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
16267         method signatures in the import region.  There may still be some
16268         lingering struct marshaling issues, as I didn't drill down into those.
16269         Yet.
16270
16271 2006-02-06  Jackson Harper  <jackson@ximian.com>
16272
16273         * ComboBox.cs: Dont manually set the top_item, this is computed
16274         when the scrollbar position is set.
16275
16276 2006-02-06  Mike Kestner  <mkestner@novell.com>
16277
16278         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
16279         startup crashes on amd64.  There's other fixes needed.  All pinvoke
16280         usage of Atom needs to be mapped to IntPtr for example.  And there are
16281         likely other int/long issues to be addressed.
16282
16283 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
16284
16285         * FileDialog.cs: One more...
16286
16287 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16288
16289         * FileDialog.cs: Next try
16290
16291 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16292
16293         * FileDialog.cs: First part of fix for #77464
16294
16295 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
16296
16297         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
16298           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
16299           AcceptButton border drawing.
16300
16301 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
16302
16303         * Form.cs: Moved positioning of form after auto scaling is applied,
16304           otherwise it would possibly use wrong form size.
16305
16306 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
16307
16308         * Control.cs (RecreateHandle): No need to re-create any child
16309           controls, the child windows will get destroyed automatically by
16310           the windowing system or driver, and re-created when the handle
16311           is being accessed the first time. Fixes #77456
16312         * Form.cs: No longer setting the form to closing if the handle is 
16313           being recreated. This seems like the right thing to do, don't
16314           have a bug or testcase for this, though.
16315
16316 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
16317
16318         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
16319           controls to avoid unwanted side effects
16320
16321 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
16322
16323         * Control.cs: 
16324           - ScaleCore needs to scale the bounds, not the ClientSize of the 
16325             control. Fixes #77416.
16326           - DefaultSize is 0,0 for control
16327         * TextBoxBase.cs: 
16328           - DefaultSize is 100, 20
16329           - SetBoundsCore: Now enforcing the height, no matter if the provided
16330             height is more or less than the preferred one, as long as AutoSize
16331             is on
16332         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
16333
16334 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
16335
16336         * Control.cs:
16337           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
16338             call unless both performLayout is true *and* we have a pending
16339             layout change
16340           - ResumeLayout: MS does not completely nest Suspend and Resume,
16341             they bottom out at 0, fixed our code to match that.
16342           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
16343             SetBoundsCore, we were updating even when we shouldn't. This fixes
16344             swf-anchors mis-anchoring when resizing the app fast and lots.
16345           - UpdateDistances: Now only setting the left and top distance if 
16346             we have a parent and are not suspended, this is based on
16347             a suggestion by Don Edvaldson in bug #77355.
16348           - OnVisibleChanged: Fixed logic when to create the control. We may
16349             not create the control if we have no parent or if it's not visible;
16350             switched to using Visible property instead of is_visible field 
16351             since the property also considers parent states. This fixes a bug
16352             when starting Paint.Net
16353
16354 2006-02-02  Jackson Harper  <jackson@ximian.com>
16355
16356         * Form.cs: If the forms handle hasn't been created yet don't call
16357         into xplatui to make it top most, just set the topmost flag on the
16358         form in CreateParams
16359         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
16360
16361 2006-02-01  Jackson Harper  <jackson@ximian.com>
16362
16363         * ScrollableControl.cs: Refactored the Recalculate method a
16364         little, this wasn't handling all the variants of bottom and right
16365         bars needed to be added and added/removed based on their
16366         counterparts being added/removed (which changes the drawable
16367         size). Also we special case client widths and heights of 0 and
16368         don't add the scrollbar for those.
16369
16370 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
16371
16372         * XplatUIX11.cs: 
16373           - Added method to get AbsoluteGeometry(); currently unused, but might
16374             be used in the future, if we try again to figure out toplevel
16375             coordinates with some more crappy window managers
16376           - Added FrameExtents() method to retrieve the WM set decoration size
16377           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
16378             to deal with at least KDE, FVWM and metacity (Fixes #77092)
16379         * Hwnd.cs: 
16380           - Added whacky_wm tracking var for metacity
16381           - Added logic to have default menu height if the actual menu height
16382             has not yet been calculated (part of fix for #77426)
16383         * Form.cs: Keep track whether client size has been set and re-set 
16384           it if a menu is added/removed afterwards (Fixes #77426)
16385
16386 2006-01-31  Jackson Harper  <jackson@ximian.com>
16387
16388         * Control.cs: When a new Site is set on the component attempt to
16389         pull the AmbientProperties from it.
16390
16391 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
16392
16393         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
16394           in the background of the owning form. Fixes #77332
16395
16396 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
16397
16398         * MimeIcon.cs: Fix for #77409
16399
16400 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
16401
16402         * XplatUIX11GTK.cs: Initial import
16403
16404 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
16405
16406         * FixedSizeTextBox: fixes class signature
16407
16408 2006-01-30  Jackson Harper  <jackson@ximian.com>
16409
16410         * FixedSizeTextBox.cs: New internal class that represents a
16411         textBox that will not be scaled.
16412         * TreeView.cs:
16413         * ComboBox.cs:
16414         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
16415         standard TextBox.
16416                 
16417 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
16418
16419         * XplatUIX11.cs: Retrieve default screen number instead of
16420           assuming 0. Attempted fix for #77318
16421
16422 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
16423
16424         * XplatUIWin32.cs: 
16425           - GetWindowPos: When a window is parented by FosterParent, use 
16426             the desktop instead of FosterParent as the base to get coordinates
16427           - CreateWindow: Don't make FosterParent the parent window for Popups
16428             if we don't want a taskbar entry, Popups automatically don't get one
16429         * Hwnd.cs: Need to call remove to actually remove the key from the
16430           hash table
16431
16432 2006-01-30  Mike Kestner  <mkestner@novell.com>
16433
16434         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
16435
16436 2006-01-30  Jackson Harper  <jackson@ximian.com>
16437
16438         * TreeView.cs:
16439         * TreeNode.cs: Raise events no matter how the treenode is
16440         checked. Patch by Don Edvalson.
16441
16442 2006-01-30  Jackson Harper  <jackson@ximian.com>
16443
16444         * TreeNode.cs: Signature fix.
16445
16446 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
16447
16448         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
16449
16450 2006-01-20  Mike Kestner  <mkestner@novell.com>
16451
16452         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
16453         event forwarding when menus are active.
16454         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
16455         Most of the patch is pdb's with a little rework.
16456
16457 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
16458
16459         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
16460           Removed GetMenuDC and ReleaseMenuDC methods; replaced
16461           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
16462         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
16463         * InternalWindowManager.cs: Added use of PaintEventStart/End to
16464           handling of WM_NCPAINT message, now passing the PaintEventArgs to
16465           the PaintWindowDecorations method
16466         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
16467         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
16468         * MenuAPI.cs: Made tracker window invisible
16469         * XplatUIWin32.cs:
16470           - Removed GetMenuDC and ReleaseMenuDC methods
16471           - Implemented the client=false path for PaintEventStart and
16472             PaintEventEnd
16473
16474 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
16475
16476         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
16477         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
16478           styles
16479         * Form.cs: 
16480           - MaximizeBox, MinimizeBox: Recreate the handle when setting
16481             the style
16482           - CreateParams: Reworked the styles to match MS look'n'feel,
16483             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
16484             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
16485
16486 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
16487
16488         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
16489           window is not mapped, since otherwise every form that's being 
16490           created is considered minimized, which is wrong.
16491         * Form.cs: Catching the exception and returning our internal value
16492           instead
16493
16494 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
16495
16496         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
16497           SetWindowMinMax() to have means to tell the driver about the minimum,
16498           maximum and maximized state window sizes. (Part of the fix for #76485)
16499         * Form.cs:
16500           - Implemented tracking of minimum and maximum window size, now calling
16501             new SetWindowMinMax() driver method to tell the driver (Part of the
16502             fix for #76485)
16503           - Finished handling of WM_GETMINMAXINFO method, now setting all values
16504             (Completes fix for #76485)
16505           - Calling new SetWindowMinMax driver method when the handle for a 
16506             form is created, to make sure the driver knows about it even if
16507             the values have been set before the window was created
16508           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
16509             to avoid messing up our anchoring calculations (partial fix
16510             for #77355)
16511         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
16512         * XplatUIX11.cs:
16513           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
16514           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
16515             (and presumably other freedesktop.org compliant WMs). Left the
16516             assumption unmapped=minimized, needed for SetVisible to work.
16517           - Now setting the window state when creating windows
16518           - Fixed SetVisible to consider/set the window state when mapping
16519             a Form. We cannot set the state before it's mapped, and we cannot
16520             use Form.WindowState once it's mapped (since it would ask the
16521             driver and get 'normal'. Therefore, we grab the state before
16522             mapping, map, and then set state.
16523           - Implmemented SetWindowMinMax method; Metacity does not seem to
16524             honor the ZoomHints, though.
16525         * XplatUIWin32.cs:
16526           - Removed MINMAXINFO (moved to XplatUIStructs)
16527           - Added SetWindowMinMax stub (on Win32 the only way to set that
16528             information is in response to the WM_GETMINMAXINFO message, which
16529             is handled in Form.cs)
16530           - Added logic to SetVisible to set the proper window state when a 
16531             form is made visible (fixes #75720)
16532
16533 2006-01-26  Jackson Harper  <jackson@ximian.com>
16534
16535         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
16536         same way we handle them with Invoke.
16537
16538 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
16539
16540         * Form.cs:
16541           - Added tracking of window state so CreateParams can return
16542             the appropriate style
16543           - Moved setting of WS_CAPTION style in CreateParams to allow
16544             styles without caption
16545         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
16546           control if the TextBox property is accessed. Fixes #77345
16547         * Control.cs:
16548           - get_Created: now uses is_disposed and is_created to determine
16549             return value (suggested by Jackson)
16550           - CreateHandle: No longer exits if the handle is being recreated
16551           - RecreateHandle: If the handle is not yet created call the 
16552             appropriate method to create either control or handle. If the
16553             control is already created CreateHandle will simply exit instead
16554             of just creating the handle
16555         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
16556           now SendMessage WM_DESTROY directly to the control when DestroyWindow
16557           is called.
16558         * XplatUIX11.cs: 
16559           - When DestroyWindow is called, instead of waiting for the 
16560             DestroyNotification from X11, we directly post it to the WndProc
16561             and immediately dispose the hwnd object.
16562             Same applies to DestroyChildWindows, and this obsoletes the
16563             expose_pending tracking. Contrary to Win32 behaviour we destroy our
16564             child windows before our own, to avoid X11 errors.
16565           - Removed the direct sending of WM_PAINT on UpdateWindow
16566         * XplatUIWin32.cs:
16567           - Reworked DoEvents and GetMessage to allow access to internal queue
16568             even when trying non-blocking access to the queue.  Fixes #77335. 
16569             Based on a patch suggestion by Don Edvalson. The new private
16570             GetMessage can now also be used as a backend for a PeekMessage
16571             frontend version.
16572         * XplatUI.cs: Improved debug output for CreateWindow
16573
16574 2006-01-25  Jackson Harper  <jackson@ximian.com>
16575
16576         * Help.cs: Allow param to be null. Patch by Don Edvalson.
16577
16578 2006-01-24  Jackson Harper  <jackson@ximian.com>
16579
16580         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
16581         when we have a MaxDropItems lower then the selected index.
16582
16583 2006-01-24  Jackson Harper  <jackson@ximian.com>
16584
16585         * Control.cs: Don't allow selection of non visible controls, allow
16586         selection of controls without parents.
16587
16588 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
16589
16590         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
16591         * DataGridDrawingLogic.cs: Add editing row only when is necessary
16592
16593 2006-01-23  Jackson Harper  <jackson@ximian.com>
16594
16595         * UpDownBase.cs: Make the textbox handle all the selection and
16596         tabbing. This fixes tabing to updown controls.
16597
16598 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
16599
16600         * TextBoxBase.cs: fixes exception thown the object was null
16601
16602 2006-01-23  Jackson Harper  <jackson@ximian.com>
16603
16604         * ButtonBase.cs: Just use the base CreateParams. They set
16605         visibility and enabled correctly.
16606         * ComboBox.cs:
16607         * TrackBar.cs:
16608         * MonthCalendar.cs: Lets let the base set as much of the
16609         createparams as possible so we don't have duplicate code all over
16610         the place.
16611
16612 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
16613
16614         * ThemeGtk.cs: Added TrackBar and some experimental code to
16615           get double buffering back
16616
16617 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
16618
16619         * DataGrid.cs: Allows row number set internally higher than the last
16620         when creating a new row. Restores the editing functionality.
16621
16622 2006-01-20  Mike Kestner  <mkestner@novell.com>
16623
16624         * MimeIcon.cs: delay Image creation until the icons are accessed
16625         instead of creating 190 scaled images on GnomeHandler startup.
16626
16627 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
16628
16629         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
16630           first call base before processing the event. Fixes #77279
16631
16632 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
16633
16634         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
16635           that the stride for the GDI bitmap would match the stride of
16636           a DIB or a Cursor.
16637
16638 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
16639
16640         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
16641
16642 2006-01-19  Jackson Harper  <jackson@ximian.com>
16643
16644         * ComboBox.cs: Hookup the text controls keydown event so we get
16645         those when the text control has the focus.
16646
16647 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
16648
16649         * Label.cs: Now using the base events instead of defining new ones;
16650           this allows us to just call the base properties without having to
16651           duplicate all base property logic 
16652
16653 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
16654
16655         * Label.cs: A label by default is not a tabstop (Fixes one of our
16656           failing nunit tests)
16657
16658 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
16659
16660         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
16661         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
16662
16663 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
16664
16665         * Cursor.cs: Reimplemented creating cursor bitmaps without using
16666           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
16667           This fixes #77218
16668         * XplatUIWin32.cs: 
16669           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
16670             constructor creates images that can't be saved. Part of the fix
16671             for #76103
16672           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
16673           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
16674             bug fix for handling window state in forms properly)
16675
16676 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16677
16678         * ThemeGtk.cs: Simplify ScrollBar drawing
16679
16680 2006-01-18  Jackson Harper  <jackson@ximian.com>
16681
16682         * Splitter.cs: Set the default dock style for the splitter control
16683         in the constructor.
16684
16685 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16686
16687         * ThemeGtk.cs: Corrected StateType and ShadowType for
16688           gtk_paint_box
16689
16690 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16691
16692         * Control.cs: Make use of Theme.DoubleBufferingSupported
16693         * ThemeGtk.cs:
16694           - Added drawing for flat style buttons
16695           - Added ScrollBar drawing
16696
16697 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
16698
16699         * ThemeClearlooks.cs: Removed some unneeded code.
16700         * ThemeGtk.cs: First part of ThemeGtk enhancements.
16701
16702 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
16703
16704         * LinkLabel.cs: We need to update the hover drawing when
16705           leaving the control as well.
16706
16707 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
16708
16709         * DataGrid.cs: Clicking on non empty areas in the columns
16710            area was giving an exception
16711
16712 2006-01-17  Jackson Harper  <jackson@ximian.com>
16713
16714         * ThemeWin32Classic.cs:
16715         * ListView.cs: Do not draw/clip the headers when the header style
16716         is None.
16717
16718 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
16719
16720         * DataGrid.cs: Fixes 77260
16721         
16722 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
16723
16724         * DataGrid.cs: Clicking on a column on a empty grid was giving
16725           an exception
16726
16727 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
16728
16729         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
16730           or any keypress will crash the grid.
16731
16732 2006-01-17  Mike Kestner  <mkestner@novell.com>
16733
16734         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
16735         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
16736         invisible/previously-visible items.
16737         [Fixes #76909]
16738
16739 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
16740
16741         * ThemeClearlooks.cs:
16742         - Added CL_Draw_Button method; now other theme controls that are 
16743           not derived from button or do not have a button can draw buttons
16744           too
16745         - Updated ComboBox drawing
16746         - Beautified RadioButton drawing
16747         - Corrected drawing of bottom and left tabs
16748         - Beautified DateTimePicker and MonthCalendar
16749         - Added CPDrawButton and CPDrawRadioButton
16750
16751 2006-01-16  Jackson Harper  <jackson@ximian.com>
16752
16753         * ComboBox.cs: Set the initial value of the scrollbar to the
16754         current index. Reduce the numbers of refreshs and IndexOfs called.
16755
16756 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
16757
16758         * FileDialog.cs: When the file listview is focused hitting the
16759           backspace key moves the fileview to the parent directory
16760
16761 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
16762
16763         * Form.cs: 
16764           - Added RecreateHandle call when changing taskbar visibility to 
16765             trigger reparenting in Win32 driver (Fixes #75719)
16766           - If a window has minimize or maximize buttons, it cannot have
16767             a help button
16768         * XplatUIWin32.cs:
16769           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
16770             the toplevel form with FosterParent (A toolwindow not on the
16771             taskbar) (Fixes #75719)
16772           - Made FosterParent a toolwindow
16773
16774 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16775
16776         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
16777
16778 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16779
16780         * ToolTip.cs: If SetToolTip is called from a control and the mouse
16781           is currently over that control, make sure that tooltip_window.Text
16782           gets updated
16783
16784 2006-01-13  Mike Kestner  <mkestner@novell.com>
16785
16786         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
16787
16788 2006-01-13  Jackson Harper  <jackson@ximian.com>
16789
16790         * TreeView.cs: On MS GetNodeAt never actually factors in the X
16791         value passed.  Also redraw the selected node when we recieve
16792         focus, so tabbing between trees works correctly.
16793
16794 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
16795
16796         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
16797           ~/.gconf/%gconf-tree.xml, so use
16798           .gconf/desktop/gnome/interface/%gconf.xml
16799
16800 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
16801
16802         * TextControl.cs: Draw text in gray if control is disabled
16803
16804 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
16805
16806         * TreeView.cs: Draw the focus rectangle outside the highlight, to
16807           make sure it's always visible. Fixes #76680.
16808
16809 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
16810
16811         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
16812
16813 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
16814
16815         * PageSetupDialog.cs: Added.
16816         * PrintDialog.cs: Attributes.
16817         * PrintPreviewControl.cs: Updates.
16818         * PrintPreviewDialog.cs: Updates.
16819         
16820 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16821
16822         * Control.cs: Undid my selection check fix, since it's not needed
16823         * TextBoxBase.cs:
16824           - Now considering the presence of hscroll/vscroll when sizing
16825             vscroll/hscroll respectively. Fixed bug #77077
16826           - Added Left/Up/Down/Right to IsInputKey list to prevent
16827             ContainerControl from stealing them. This fixes what I broke
16828             with my last checkin.
16829
16830 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
16831
16832         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
16833           I finally understand how the property can be set without a setter :-)
16834
16835 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16836
16837         * Application.cs:
16838           - Switched RunLoop to use static Message.Create to create a 
16839             Message object
16840           - Added PreProcessMessage call in runloop for keyboard events; this
16841             is part of the fix for #77219, I overlooked this originally in the
16842             MSDN doc for PreProcessMessage
16843         * Control.cs:
16844           - Removed call to PreProcessMessage from handling of keyboard 
16845             messages; it's supposed to be done in the message pump
16846           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
16847             per MSDN documentation.
16848           - IsInputChar: All chars are input chars by default; removed the 
16849             parent calling chain, MS does not document that
16850           - PreProcessMessage: If IsInputChar is true, we want to return false
16851             to allow dispatching of the message
16852           - When selecting the next control, now also check that we're not
16853             selecting ourselves again and therefore return a false positive.
16854         * TextBoxBase.cs:
16855           - Tried to match return values for IsInputKey and ProcessDialogKey
16856             to what MS returns; moved processing of our special keys outside
16857             ProcessDialogKey since MS does not seem to return true on those.
16858           - Moved code that previously was in ProcessDialogKey into new private
16859             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
16860           - Reworked handling of WM_CHAR to not have to duplicate code from
16861             Control.cs anymore, instead we simply call down to base.
16862            
16863 2006-01-12  Jackson Harper  <jackson@ximian.com>
16864
16865         * ComboBox.cs: We always need to refresh the text area when
16866         EndUpdate is called. Fixes the combobox in the file dialog.
16867         * Control.cs: Don't create the creator_thread until the controls
16868         handle is created.  Also in InvokeRequired we check if the
16869         creator_thread is null. This gives the effect of InvokeRequired
16870         returning true if the controls handle is not created yet, and
16871         matches MS.
16872
16873 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16874
16875         * XplatUI.cs:
16876           - Added StartLoop() driver method. This is used to allow drivers to
16877             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
16878             loop for a particular thread
16879           - Added EndLoop() driver method. This is called once the message
16880             pump for the thread is shut down
16881           - Added SupportsTransparency method to allow the driver to indicate
16882             opacity support for windows
16883         * Form.cs:
16884           - Removed TODO attribute, completed AllowTransparency property
16885           - Added documented logic to Opacity
16886         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
16887           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
16888           versions of CompatibleTextRendering
16889         * X11Structs.cs: Added opacity atom to our atom enumeration
16890         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
16891           of a form might be set before it's reparented by the WM, and we need
16892           the opacity value without calling up to Form)
16893         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
16894           SupportsTransparency() driver methods
16895         * Application.cs: Now calling StartLoop and EndLoop driver methods
16896         * XplatUIX11.cs:
16897           - Added opacity atom registration
16898           - Added StartLoop()/EndLoop() methods. They're empty right now but
16899             will need to get implemented when we switch to a per-thread queue
16900           - Implemented SupportsTransparency() method
16901           - Implemented SetWindowTransparency() method
16902           - Added support for setting the opacity value when a window is
16903             reparented (since the opacity needs to be set on the WM frame)
16904         * XplatUIOSX.cs, XplatUIWin32.cs:
16905           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
16906
16907 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
16908
16909         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
16910
16911 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
16912
16913         * FileDialog.cs: Added ToolTip for MWFFileView
16914         * MimeIcon.cs: Rewrote GnomeHandler.
16915           - Get currently used gnome icon theme from
16916             ($HOME)/.gconf/%gconf-tree.xml
16917           - Make use of inherited icon themes
16918           - Support SVG icon themes like Tango via librsvg
16919
16920 2006-01-12  Miguel de Icaza  <miguel@novell.com>
16921
16922         Revert's Jackson's revert which broke 2.0 builds.   Fix both
16923         builds. 
16924         
16925         * Application.cs: Move the use_compatible_text_rendering outside
16926         the NET_2_0 define.  If we ever need to use the
16927         use_compatible_text_rendering on the individual controls they will
16928         access the variable from the common shared code paths.
16929
16930 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
16931
16932         * XplatUI.cs:
16933           - Added more granular debug options
16934           - Added method to print both window text and id
16935           - Switched debug output to use new Window() debug method
16936           - Added IsEnabled() driver method
16937           - Added EnableWindow() driver method
16938         * Form.cs:
16939           - Removed end_modal; no longer needed, new loop handles termination
16940             via 'closing' variable
16941           - If form is modal, setting DialogResult will now initiate loop
16942             termination via 'closing' variable
16943           - Added support for is_enabled/WS_DISABLED to CreateParams
16944           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
16945             does all the work
16946           - Removed code that's now in RunLoop from ShowDialog()
16947           - Added various documented sanity checks to ShowDialog()
16948           - Added handling of WM_DESTROY message; we set 'closing' on getting
16949             the message to indicate the message pump to terminate
16950           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
16951             send by the Application.ExitThread method. (We send the message
16952             to destroy the window after all other events have been
16953             processed through the queue, instead of destroying the handle 
16954             directly)
16955           - Moved code from Close() method to WM_CLOSE handler; added logic
16956             to only send close-related events if the form is not displayed
16957             modal
16958         * Splitter.cs (..ctor): Fixed typo in resource name
16959         * Control.cs:
16960           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
16961             brush now
16962           - set_Cursor: Now only setting calling into XplatUI if the handle for
16963             the control is already created; this avoids implict handle creation
16964             or crashes if it's not created
16965           - set_Enabled: Now setting the enabled state via the new driver method
16966             instead of just tracking it
16967           - CreateParams: Added logic to set WS_DISABLED based on enabled state
16968           - CreateControl: Reordered event firing and method calls to more
16969             closely fire events in the order MS does. Now setting the
16970             enabled state in the driver when creating the control.
16971           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
16972             match MS order
16973         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
16974           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
16975         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
16976         * Hwnd.cs:
16977           - Added tracking of window enabled state (get_Enabled/set_Enabled)
16978           - Added EnabledHwnd property to easily allow a driver to find the
16979             handle of the first enabled window in the parent chain (this is
16980             used by drivers to pass up input events of disabled windows)
16981         * XplatUIDriver.cs: Added IsEnabled() method
16982         * Application.cs:
16983           - Removed crude and obsolete exiting tracking variable
16984           - Removed internal ModalRun(); replaced by RunLoop()
16985           - Implemented private CloseForms() method to allow closing all 
16986             windows owned by a particular (or all) threads
16987           - Exit() now properly closes all windows without forcing the message
16988             pump to quit
16989           - Removed obsolete InternalExit() method
16990           - Changed Run() methods to use new RunLoop() message pump
16991           - Implemented new RunLoop() method for both modal and non-modal forms
16992         * CommonDialog.cs:
16993           - get_CreateParams: Added setting of WS_DISABLED
16994           - Simplified ShowDialog(); now all the work is done in RunLoop(),
16995             invoked via Form.ShowDialog()
16996         * NativeWindow.cs: We don't remove the window from the collection when
16997           the handle is destroyed; there might still be messages for it in the
16998           queue (mainly the resulting WM_DESTROY); instead it will be removed
16999           when Control calls InvalidateHandle in the WM_DESTROY handler
17000         * XplatUIX11.cs:
17001           - CreateWindow: Added logic to handle the WS_DISABLED window style
17002           - EnableWindow: Implemented based on Hwnd.Enabled
17003           - GetMessage: Reset PostQuitState so the method can be called again
17004           - Implemented support for disabled windows (passing messages to the
17005             first enabled parent) in handling all input messages
17006           - Added optimizations for handling Expose events
17007           - Implemeted new driver method IsEnabled()
17008           - Now always resetting paint pending tracking vars when we start paint
17009           - Re-implemented UpdateWindow via just sending a WM_PAINT message
17010         * XplatUIOSX.cs: Added IsEnabled method stub
17011         * XplatUIWin32.cs: Implemented new IsEnabled() method
17012
17013 2006-01-11  Jackson Harper  <jackson@ximian.com>
17014
17015         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
17016         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
17017         variables a little.
17018         * ColorDialog.cs: Clear out the old form before adding the new
17019         panel.  
17020
17021 2006-01-11  Jackson Harper  <jackson@ximian.com>
17022
17023         * X11Dnd.cs: Make sure to add all the text formats when adding
17024         strings to the data object.
17025         * TreeNodeCollection.cs: When adding to a sorted tree we need to
17026         do some redrawing too.  Also change the UpdateNode to an
17027         UpdateBelow so the newly added node gets painted.
17028         
17029 2006-01-11  Miguel de Icaza  <miguel@novell.com>
17030
17031         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
17032         LinkLabel.cs, PropertyGrid.cs: Implement the
17033         UseCompatibleTextRendering property for 2.x
17034
17035         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
17036
17037 2006-01-11  Jackson Harper  <jackson@ximian.com>
17038
17039         * TreeView.cs: Use the property for setting the selected node so
17040         the correct events get raised.
17041         * TreeNode.cs: Update the tree when the fore/back colours of a
17042         node are set.
17043
17044 2006-01-10  Jackson Harper  <jackson@ximian.com>
17045
17046         * TreeView.cs: Allow setting SelectedNode to null.
17047
17048 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17049
17050         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
17051
17052 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17053
17054         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
17055
17056 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17057
17058         * PrintDialog.cs: Added attributes and set default property values.
17059
17060 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17061
17062         * PrintControllerWithStatusDialog.cs: 
17063         Added PrintControllerWithStatusDialog.
17064
17065 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17066
17067         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
17068         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
17069
17070 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
17071
17072         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
17073
17074 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
17075
17076         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
17077         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
17078
17079 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
17080
17081         * MimeIcon.cs: Added internal class SVGUtil.
17082
17083 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
17084
17085         * FileDialog.cs: Don't crash if there are two files with the
17086           same name but different locations.
17087
17088 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
17089
17090         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
17091         dates across multiple month grids. Used to not highlight entire 
17092         month, but does now.
17093         
17094 2006-01-06  Jackson Harper  <jackson@ximian.com>
17095
17096         * MonthCalendar.cs: Removed DoEvents call to prevent a running
17097         message loop. Change timer intervals to numbers that seem more
17098         natural.
17099
17100 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
17101
17102         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
17103           object for location info since screen object is now implemented.
17104
17105 2006-01-05  Jackson Harper  <jackson@ximian.com>
17106
17107         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
17108         * AsyncMethodResult.cs: We no longer use a WeakReference for the
17109         AsyncMethodResult, this is because we ALWAYS want the
17110         ManualResetEvent to get set.
17111         * Control.cs: When disposing use an async invoke to call shutdown
17112         code, so that thigns don't block on the finalizer thread.  Also
17113         check if we even have a message loop before trying to send
17114         messages, if we don't then don't bother sending messages.
17115         - No more weak references for async methods
17116         * XplatUIDriver.cs: No more weak references for async methods.
17117
17118 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17119
17120         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
17121           returns two FontFamily with the same name
17122
17123 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
17124
17125         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
17126           drawing disabled text. Instead using the ColorGrayText color
17127
17128 2006-01-04  Jackson Harper  <jackson@ximian.com>
17129
17130         * TreeNode.cs: redraw the node when its image index is changed.
17131
17132 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
17133
17134         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
17135           time I checked there are no others like it.
17136
17137 2006-01-04  Jackson Harper  <jackson@ximian.com>
17138
17139         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
17140         this gives the behavoir I was looking for.
17141         * Control.cs: Special case Invoking EventHandlers, this matches MS
17142         and fixes part of bug #76326.
17143
17144 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17145
17146         * ThemeClearlooks.cs, FileDialog.cs:
17147           - Reflect the latest Theme class changes
17148           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
17149             with DateTime
17150             
17151 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
17152
17153         * Theme.cs: Cache UI resource images and resize them if needed
17154
17155 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
17156
17157         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
17158           is called. This fixes the crash in Nexxia when setting the font
17159           attributes in the chat. [However, RTF needs a look-over to make sure
17160           that all SelectionXXX methods handle the special case that selection
17161           is empty and therefore the change must be applied to all text starting
17162           at the cursor/selection start]
17163
17164 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
17165
17166         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
17167           XplatUIOSX.cs: Added SendMessage and PostMessage methods
17168         * X11Keyboard.cs: Switched to new way of calling PostMessage
17169
17170 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
17171
17172         * Theme.cs: Added theme interface for images to allow the theme to
17173           control what images are used for things like FileDialog, MessageBox
17174           icons, etc.
17175         * MessageBox.cs: Now uses the new Theme icon/image interfaces
17176
17177 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
17178
17179         * FileDialog.cs:
17180           - Removed some dead code
17181           - Opening a recently used file does work now
17182           - Small UI enhancements
17183           - Refactoring
17184
17185 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
17186
17187         * FileDialog.cs: Forgot too add __MonoCS__
17188
17189 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
17190
17191         * FileDialog.cs: We are able to read recently used files now let's
17192           go on and write them.
17193
17194 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
17195
17196         * FileDialog.cs: Breathe some life into "last open"/"recently used"
17197           button
17198         * MimeIcon.cs: Do a check for the top level media type also
17199
17200 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
17201
17202         * ThemeClearlooks.cs:
17203           - Added CPDrawStringDisabled
17204           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
17205             some chars if the text doesn't fit into text_rect
17206           - DrawListViewItem: If View = View.LargeIcon center the image;
17207             rewrote the drawing of ListViewItem.Text if View = 
17208             View.LargeIcon
17209
17210 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
17211
17212         * MimeIcon.cs: Use default KDE icon theme if there is no
17213           "48x48" directory for the current icon theme, fixes #77114
17214         * Mime.cs: Disable not working and actually not used code. 
17215         * ThemeWin32Classic.cs:
17216           - Replace "new SolidBrush" in GetControlBackBrush and
17217             GetControlForeBrush with ResPool.GetSolidBrush
17218           - Changed DrawListViewItem from private to protected virtual
17219         * FileDialog.cs:
17220           - Added form.MaximizeBox = true
17221           - Don't throw an exception if there is a broken symbolic link
17222
17223 2005-12-23  Jackson Harper  <jackson@ximian.com>
17224
17225         * TabControl.cs: Give the panels focus, keyboard navigation is
17226         fixed so this works correctly now.
17227         - We need these key events also.
17228         * ToolBar.cs: Remove some of the poor mans double buffering.
17229         
17230 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
17231
17232         * ComboBox.cs: The internal TextBox now returns the focus.
17233
17234 2005-12-23  Jackson Harper  <jackson@ximian.com>
17235
17236         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
17237
17238 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
17239
17240         * Control.cs: Removed debug code
17241         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
17242           implicit children
17243
17244 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
17245
17246         * Control.cs: When creating the control, update the Z-order after
17247           all it's children are created, too. (Fixes nexxia not showing
17248           picturebox bug)
17249
17250 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
17251
17252         * Control.cs: Do not update the anchoring distances if layout is
17253           suspended, instead do it once layout is resumed
17254
17255 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
17256
17257         * Control.cs: 
17258           - After many hours of debugging, for both Jackson and
17259             myself, it turns out that it helps to set the parent of a control
17260             if you want to actually see it onscreen. In the spirit of that
17261             discovery, we're now setting the parent of the control and
17262             it's children when the control's handle is created. This fix
17263             will make Lutz Roeder's Reflector run happily. 
17264           - now just creating the handle instead of the whole control when
17265             getting a graphics context for the control.
17266
17267 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
17268
17269         * ScrollableControl.cs: When calculating the canvas, don't consider
17270           the scrollbar widths. Instead, predict if horizontal scrollbar
17271           will affect canvas when deciding on vertical display and vice versa.
17272
17273 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
17274
17275         * RichTextBox.cs: Set default RTF font for documents that don't
17276           have a font table (Fixes #77076)
17277
17278 2005-12-22  Jackson Harper  <jackson@ximian.com>
17279
17280         * TextBoxBase.cs: It's difficult to do, but you can have an empty
17281         clipboard. This prevents a NullRef in that case.
17282         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
17283         clipboard. PRIMARY is for the currently selected text only. (We
17284         should implement PRIMARY at some point.
17285
17286 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17287
17288         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
17289           a Unicode function with a structure that was defined in Ansi way.
17290           This fixes #76942.
17291
17292 2005-12-21  Jackson Harper  <jackson@ximian.com>
17293
17294         * StatusBar.cs: Statusbar handles its fore/back colours on it's
17295         on. Because thats how it rolls. (and this avoids it using ambient
17296         colours).
17297         * ThemeWin32Classic.cs: Use the proper back color for filling.
17298         * Menu.cs: Use the system menu bar color for drawing menu
17299         bars. Using the window back color will bring ambient colours into
17300         the picture.
17301
17302 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
17303
17304         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
17305           Bitmaps were created and not disposed.
17306
17307 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17308
17309         * Control.cs (CreateControl): Don't do anything if the control is
17310           already created, otherwise we'd fire the OnCreated event more than
17311           once
17312
17313 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
17314
17315         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
17316           will always match. Instead return -1. Fixes #76464.
17317
17318 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
17319
17320         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
17321           neither the beginning nor the end of the line (Fixes bug #76479)
17322
17323 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
17324
17325         * Control.cs:
17326           - ControlNativeWindow.ControlFromHandle(): Now handling situation
17327             where handle is invalid
17328           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
17329             instead of slower linear search
17330         * NativeWindow.cs: Don't remove the window from the hashtable until
17331           after the driver has destroyed it (since the driver might use
17332           Control.FromHandle to lookup the control object
17333         * Hwnd.cs: Added DestroyPending property to track if a window is 
17334           already destroyed as far as the driver is concerned and only hasn't
17335           yet notified the control
17336         * XplatUIX11.cs:
17337           - Activate(): Check if the window is still valid before using the 
17338             handle
17339           - Implemented DestroyChildWindow() method to mark child windows as
17340             destroyed when a window is destroyed. This prevents situations 
17341             where we might call an X method based on queued events for a
17342             window that already has been destroyed but we haven't yet pulled
17343             the destroy method from the queue.
17344           - Added a call to the new DestroyChildWindow() method to the drivers
17345             DestroyWindow code. Also now marking the destroyed window itself
17346             as pending
17347
17348 2005-12-20  Jackson Harper  <jackson@ximian.com>
17349
17350         * StatusBar.cs:
17351         * StatusBarPanel.cs: Don't calculate panel sizes on draw
17352         anymore. Just do them when needed, also track the rects of panels
17353         so that we can optimize refreshing more in the future.
17354
17355 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
17356
17357         * ColorDialog.cs: Fixed focus drawing in small color controls
17358
17359 2005-12-19  Jackson Harper  <jackson@ximian.com>
17360
17361         * InternalWindowManager.cs:
17362         * MdiWindowManager.cs: Cleanup some coordinate system changes so
17363         moving windows works properly.
17364
17365 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
17366
17367         * Control.cs: 
17368           - Removed call to InitLayout() from SetBoundsCore(); doc says
17369             it's only called when a control is added to a container
17370           - Split InitLayout logic, moved to separate UpdateDistances() method
17371             since we need to perform those calculations more often than just
17372             when adding the control to a container. (Needed to fix #77022)
17373           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
17374           - Reduced the OnBindingContextChanged events count, don't send them
17375             unless the control is created, we still aren't totally matching
17376             MS, but I can't quite figure out some of their rules
17377
17378 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17379
17380         * ThemeClearlooks.cs: Corrected distance between ProgressBar
17381           stripes
17382
17383 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17384
17385         * ThemeClearlooks.cs:
17386           - Updated ProgressBar drawing
17387           - Corrected drawing of ScrollBars and scroll buttons
17388           - Some temporary fixes for minor pixel artefacts
17389
17390 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
17391
17392         * Control.cs:
17393           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
17394             cause events to be sent in the same order as MS does.
17395           - Added ChangeParent() method to trigger various OnXXXChanged events
17396             that need to be fired when a parent changes (This is a reworking
17397             of the patch from r54254, with the X11 errors fixed)
17398           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
17399             since on MS we get OnLayoutChanged events when calling Clear()
17400           - Changed Enabled property to consider parent state as well, if a
17401             parent is not enabled, the control will not be either
17402           - Changed Parent property to simply call Controls.Add() since that
17403             now does all the work required, this way we avoid code duplication
17404           - Threw in a few OnBindingsContextChanged calls to try and match
17405             when MS sends them. We seem to send a few too many, though.
17406           - Added call to CreateControl when adding the control to a parent.
17407             We were never calling CreateControl. Still needs some work, in
17408             some places we treat HandleCreated and ControlCreated as equal, 
17409             which is wrong
17410           - Removed obsolete commented out code from UpdateZOrder()
17411
17412 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
17413
17414         * ThemeClearlooks.cs: Updated TrackBar drawing.
17415
17416 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
17417
17418         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
17419
17420 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
17421
17422         * FileDialog.cs: Add the Help button and the open readonly
17423           checkbox only if needed
17424
17425 2005-12-16  Jackson Harper  <jackson@ximian.com>
17426
17427         * Control.cs: Make sure we have an active menu before trying to
17428         process commands on it. Prevents menu-less forms from crashing
17429         when Alt is pressed.
17430         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
17431         Dieter Bremes.
17432         * RichTextBox.cs: Expand statement to help out gmcs and fix the
17433         2.0 build.
17434
17435 2005-12-16  Jackson Harper  <jackson@ximian.com>
17436
17437         * InternalWindowManager.cs: Don't translate tool windows screen
17438         coordinates. This fixes windows 'bouncing' around when being moved.
17439
17440 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
17441
17442         * TextBoxBase.cs:
17443           - MaxLength now treats 2^31-1 equal to unlimited length (this is
17444             not quite MS compatible, MS uses that number only for single line
17445             and 2^32-1 for multi-line, but I figure it won't hurt keeping
17446             the limit at 2GB)
17447           - Now enforcing the MaxLength limit when entering characters
17448           - Added argument to internal Paste() method to track if it's called
17449             from programatically or via keyboard, since keyboard driven pastes
17450             need to enforce max-length
17451           - Added logic to Paste to only paste as many chars as MaxLength 
17452             allows
17453         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
17454         * TextControl.cs:
17455           - Added Length property to return number of characters in document
17456           - Added private CharCount property which only tracks actual chars
17457             in the document (no linefeeds) and fires event when CharCount
17458             changes
17459           - Added tracking of character count to all methods that alter it
17460           - Added LengthChanged event to allow applications to subscribe
17461             to any changes to the document
17462
17463 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
17464
17465         * TextBox.cs: 
17466           - Removed local password_char field (moved to TextBoxBase)
17467           - Now setting the document's password var when password is
17468             set
17469         * TextBoxBase.cs:
17470           - Added password_char field (needed here so MultiLine can
17471             access it)
17472           - Added logic to MultiLine property setter to set the document's
17473             variable when password display is allowed
17474           - Removed debug code and made some debug code conditional
17475         * TextControl.cs:
17476           - Added RecalculatePasswordLine() method to handle special password
17477             char only lines
17478           - Added PasswordChar property, also added related tracking vars
17479           - Draw() method now uses local text var for grabbing text to draw,
17480             this var is set to line.text unless we're doing password display,
17481             then it is set to the pre-generated all-password-chars line
17482           - Added calling RecalculatePasswordLine() method for password lines
17483
17484 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
17485
17486         * Hwnd.cs: 
17487           - Added Reparented property to allow tracking of Window Manager
17488             reparenting actions (which affect X/Y calculations of toplevel 
17489             windows)
17490           - Made ToString() print window handles in hex
17491         * XplatUIX11.cs:
17492           - AddConfigureNotify(): Now uses reparented state off Hwnd to
17493             determine if X/Y needs offsetting
17494           - AddConfigureNotify(): Fixed offset calculations
17495           - Now adds ReparentNotify messages into the queue
17496           - Now processes ReparentNotify messages and causes a 
17497             WM_WINDOWPOSCHANGED message to be sent upstream if a window
17498             is reparented (as most likely it's X/Y coordinates are changed
17499             due to that)
17500
17501 2005-12-14  Jackson Harper  <jackson@ximian.com>
17502
17503         * XplatUIX11.cs: Tool windows still need to respek focus.
17504
17505 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
17506
17507         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
17508           have a working release
17509
17510 2005-12-13  Jackson Harper  <jackson@ximian.com>
17511
17512         * Form.cs: Update styles after setting the border style regardless
17513         of whether or not the window is using a window manager.
17514
17515 2005-12-13  Jackson Harper  <jackson@ximian.com>
17516
17517         * Form.cs: We now hook into an internal window manager instead of just an
17518         MDI subsystem, this is so we can have properly behaving tool windows.
17519         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
17520         * InternalWindowManager.cs: New internal class that acts as a
17521         window manager for tool windows and as a base for mdi windows.
17522         * MdiWindowManager.cs: New class that acts as a window manager for
17523         mdi windows.
17524
17525 2005-12-12  Jackson Harper  <jackson@ximian.com>
17526
17527         * Control.cs: Updates so we match behavoir for for implicit
17528         controls. Fixes explosions in MDI.
17529
17530 2005-12-12  Jackson Harper  <jackson@ximian.com>
17531
17532         * Control.cs: Implement Invalidate (Region).
17533
17534 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
17535
17536         * Control.cs: 
17537           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
17538             the same events as MS does. MS fires events for each property 
17539             except, for unknown reasons, Cursor, when the control is reparented. 
17540             I can't seem to totally match add/remove since MS also fires some 
17541             VisibleChanged events, which makes no sense. Consolidated the
17542             parenting code into a separate method so it can be called from
17543             both Add and Remove. set_Parent no longer needs any special logic
17544             as it calls the parent's add method which implicitly fires
17545             all events
17546           - Removed some obsolete code and debug output
17547           - Enabled state is inherited from parents, if this is enabled
17548
17549 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
17550
17551         * Form.cs: Removed commented out code
17552
17553 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
17554
17555         * Control.cs:
17556           - Added internal version of Invoke, with additional argument 
17557             indicating if we're calling it from a Dispose() handler. That
17558             way we can avoid BeginInvoke throwing an exception if we're
17559             calling for an already destroyed window.
17560           - Added a dispose argument to BeginInvokeInternal, and made the
17561             check if a valid window handle chain exists conditional on
17562             it not being a dispose call
17563           - Removed code in DestroyHandle to destroy our children. Since we
17564             now handle the WM_DESTROY message we will catch all our children
17565             being destroyed.
17566           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
17567         * Form.cs:
17568           - Added a field to track the application context of the form.
17569           - No need to set closing variable as response to WM_CLOSE, instead
17570             we destroy the window. We also call PostQuitMessage if the form
17571             has an application context (which makes it the main app form,
17572             which, when closed terminates the app)
17573         * XplatUI.cs:
17574           - Dropped Exit() method, it's naming was confusing
17575           - Added PostQuitMessage() which causes GetMessage to return false
17576             once the message queue is empty
17577         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
17578           PostQuitMessage()
17579         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
17580           no longer a valid XplatUI method, but left it in since it's used
17581           internally. Added empty PostQuitMessage() method.
17582         * MenuAPI.cs: Replaced call to Exit() with call to
17583           PostQuitMessage, even though this is probably no longer needed.
17584         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
17585         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
17586         * Application.cs:
17587           - Replaced call to XplatUI.Exit() with PostQuitMessage()
17588           - Removed old debug code that would call XplatUI for exception
17589             display, enabled standard exception handling (Still not enabled
17590             though, until NativeWindow's ExternalExceptionHandler define
17591             is removed
17592         * NativeWindow.cs:
17593           - Added internal method to allow control to update NativeWindow
17594             after a window has been destroyed
17595           - Added handling of already destroyed windows when calling i
17596             DestroyWindow
17597           - Added removal of handle from list on ReleaseHandle
17598         * XplatUIX11.cs:
17599           - Dropped GetMessageResult var and related code
17600           - Added PostQuitState to field to track if PostQuitMessage has been
17601             called
17602           - Dropped Exit() method
17603           - Added PostQuitMessage() method
17604           - GetMessage now will return false if PostQuitState is set and no
17605             more messages are in the queue.
17606           - Expose handler will no longer generate WM_PAINT messages if we are
17607             in PostQuitState since it's very likely any windows have already
17608             been destroyed, and since Hwnd won't get updated until we have
17609             processed the DestroyNotify we'd be causing X errors.
17610         
17611 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17612
17613         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
17614           Thanks to Mike for pointing out the err of my ways.
17615
17616 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17617
17618         * Control.cs(PreProcessMessage): Moved menu handling back, but
17619           after all other key handling, to match MS (who handles Menu in
17620           DefWndProc)
17621         * Menu.cs (WndProc): Removed my brainfart
17622
17623 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17624
17625         * Control.cs(PreProcessMessage): Removed special menu handling 
17626         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
17627
17628 2005-12-07  Mike Kestner  <mkestner@novell.com>
17629
17630         * Control.cs : special case SYSKEYUP so that we can adjust keynav
17631         state according in tracker.
17632         * Menu.cs : promote tracker field to base class and provide a tracker
17633         lookup capability.  Add/Remove shortcuts dynamically if the top menu
17634         has a tracker. Unparent items that are removed from the collection.
17635         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
17636         * Theme*.cs: add always_show_hotkeys field to support configurability
17637         of mnemonic display.  win32 doesn't show mnemonics until Alt is
17638         pressed.
17639
17640 2005-12-07  Jackson Harper  <jackson@ximian.com>
17641
17642         * MdiChildContext.cs: Use Control.ResetCursor.
17643         * Control.cs: ResetCursor needs to set the property so that the
17644         correct XplatUI call gets made.
17645
17646 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17647
17648         * Control.cs: More fixes to make our key events match MS. We
17649           were not setting the modifier state on KeyData, and we were
17650           not generating any events when Alt was pressed with a key
17651           since handling of WM_SYSxxx was missing for the OnKey methods.
17652
17653 2005-12-07  Jackson Harper  <jackson@ximian.com>
17654
17655         * MdiChildContext.cs: reenable the sizing code.
17656         - When the mouse leaves a window reset its cursor.
17657
17658 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
17659
17660         * ThemeClearlooks.cs: Reflect latest Hwnd changes
17661
17662 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
17663
17664         * Hwnd.cs: Now using the theme 3d bordersize to calculate
17665           widths of Fixed3D borders
17666
17667 2005-12-07  Jackson Harper  <jackson@ximian.com>
17668
17669         * MdiClient.cs: Fix warnings. Earn Mike's love.
17670
17671 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
17672
17673         * ThemeClearlooks.cs:
17674           - Adjusted mouse over button color
17675           - Added first parts of CheckBox drawing
17676           - Added correct color for selected text background
17677           - Fixed ComboBox drawing
17678           - Added CPDrawBorder3D and CPDrawBorder
17679
17680 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
17681
17682         * XplatUIX11.cs: Added call to XBell for AudibleAlert
17683
17684 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
17685
17686         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
17687           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
17688           alert users via sound. We could add an enum arg with different
17689           types of alerts in the future
17690
17691 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
17692
17693         * Control.cs: Fix behaviour problems pointed out by Mike
17694
17695 2005-12-05  Mike Kestner  <mkestner@novell.com>
17696
17697         * StatusBarPanel.cs: add Invalidate method and hook it into all the
17698         prop setters.  Calls parent.Refresh for now, but could be maybe be
17699         optimized with an internal method on StatusBar at some point.
17700         [Fixes #76513]
17701
17702 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
17703
17704         * RichTextBox.cs: Implemented get_SelectionColor
17705
17706 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
17707
17708         * ThemeClearlooks.cs:
17709           - Removed dead code
17710           - Draw black button border only if button is Form.AcceptButton
17711           - Draw correct button color for pressed RadioButton if the mouse 
17712             has entered the button
17713           - Updated ProgressBar drawing!
17714           - Updated CPDrawSizeGrip drawing
17715           - Updated StatusBarPanel drawing
17716
17717 2005-12-05  Mike Kestner  <mkestner@novell.com>
17718
17719         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
17720         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
17721
17722 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
17723
17724         * ThemeClearlooks.cs: Initial check-in, activate with
17725           export MONO_THEME=clearlooks
17726         * ThemeEngine.cs: Added ThemeClearlooks
17727
17728 2005-12-03  Mike Kestner  <mkestner@novell.com>
17729
17730         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
17731         [Fixes #76897]
17732
17733 2005-12-02  Jackson Harper  <jackson@ximian.com>
17734
17735         * Form.cs: If the child form has no menu the default main menu is
17736         used as the active menu.
17737
17738 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
17739
17740         * ListBox.cs: Check if any items exist before trying to resolve 
17741           coordinates into items
17742
17743 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
17744
17745         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
17746           as the second color for the background hatch
17747
17748 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
17749
17750         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
17751         * RichTextBox.cs: FormatText position arguments are 1-based, now making
17752           sure that what we pass to FormatText is always 1-based. Fixes #76885
17753
17754 2005-11-29  Miguel de Icaza  <miguel@novell.com>
17755
17756         * NumericUpDown.cs (EndInit): When we are done initializing,
17757         reflect any updates on the UI.
17758
17759 2005-12-02  Jackson Harper  <jackson@ximian.com>
17760
17761         * ImplicitHScrollBar.cs:
17762         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
17763         their container controls.
17764         * TreeView.cs: Use the new implicit scrollbars.
17765
17766 2005-12-02  Jackson Harper  <jackson@ximian.com>
17767
17768         * TreeView.cs: Make top_node internal so the TreeNodeCollections
17769         can play with it.
17770         * TreeNodeCollection.cs: If we remove the topnode we need to
17771         update topnode to the next node in line.
17772         - When clearing nodes go through the same process as removing
17773         them, so they get depareneted and checked if they are top node.
17774
17775 2005-12-01  Jackson Harper  <jackson@ximian.com>
17776
17777         * TreeView.cs: When imagelists are used the image area is
17778         selectable as well as the text.
17779         - If there are no selected nodes select the first one.
17780         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
17781         so don't do it more then we need to.
17782
17783 2005-12-01  Jackson Harper  <jackson@ximian.com>
17784
17785         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
17786         that arrows can be scaled.
17787
17788 2005-12-01  Jackson Harper  <jackson@ximian.com>
17789
17790         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
17791         fail. Patch by Dieter Bremes
17792
17793 2005-11-30  Jackson Harper  <jackson@ximian.com>
17794
17795         * Form.cs: Property is 2.0 only
17796         * PrintDialog.cs: Signature fix.
17797
17798 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
17799
17800         * TextControl.cs: 
17801           - No longer artificially moves text 2 pixels down (now that we have
17802             borders this is no longer needed)
17803           - Added calcs for left, hanging and right indent
17804
17805 2005-11-23  Mike Kestner  <mkestner@novell.com>
17806
17807         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
17808
17809 2005-11-30  Jackson Harper  <jackson@ximian.com>
17810
17811         * MdiChildContext.cs: Set the cloned menus forms, as these don't
17812         get cloned as part of CloneMenu ().
17813         * Menu.cs: Make sure the parent of the items get set correctly
17814         when they are added.  And the owners are notified of the changes.
17815         * Form.cs: Create an ActiveMenu property, so that when MDI is used
17816         we can change the menu being displayed/handled by the form without
17817         changing the menu assosciated with the form.
17818         - Don't let Mdi children draw/handle menus.
17819         
17820 2005-11-30  Jackson Harper  <jackson@ximian.com>
17821
17822         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
17823         a MenuChanged event. Just to make the API a little more
17824         consistent.
17825         * MainMenu.cs:
17826         * MenuItem.cs: Use the new OnMenuChanged
17827         * MdiChildContext.cs: Handle menu merging.
17828         * Form.cs: Implement MergedMenu.
17829         
17830 2005-11-30  Jackson Harper  <jackson@ximian.com>
17831
17832         * Menu.cs: We were misusing Add. Add goes behind the specified
17833         index according to the docs, and does not replace the specified
17834         index. So I added an Insert method.
17835
17836 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
17837
17838         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
17839           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
17840           is for Jackson
17841         * RichTextBox.cs: Added calls to base for DnD events
17842
17843 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
17844
17845         * TextControl.cs:
17846           - Fixed drag-selection related crash; style fixes
17847           - Implemented undo class
17848             o Implemented method to capture document state for specified
17849               range in document tree
17850             o Implemented method to restore captured document state
17851             o Implemented cursor tracking
17852             o Implemented basic undo stack
17853           - Added undo cursor tracking to methods altering cursor location
17854           - Added undo tracking to selection deletion (still missing
17855             other text-altering hookups)
17856         * RichTextBox.cs:
17857           - Added SelectionLength property
17858           - Implemented CanPaste()
17859           - Implemented Paste()
17860           - Added missing protected methods
17861           - Fixed RTF->Document conversion; now uses font index 0 and color 
17862             index 0 as the default font for the parsed text
17863           - Fixed RTF<->Document font size translation
17864           - Fixed RTF generation, now properly handles cross-tag boundaries
17865             for single line selection
17866           - No longer always appends blank line to generated RTF
17867           - Removed TODOs
17868           - Added missing attributes
17869           - Hooked up undo-related methods
17870         * TextBoxBase.cs:
17871           - Implemented Copy()
17872           - Implemented Paste()
17873           - Implemented Cut()
17874           - Fixed caret mis-behaviour on backspace across line-boundaries
17875
17876 2005-11-29  Jackson Harper  <jackson@ximian.com>
17877
17878         * MdiClient.cs: Add a method for activating mdi children. Very
17879         basic right now. I imagine someday it might need more girth.
17880         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
17881         children windows names are added to the menu item.
17882         * ThemeWin32Classic.cs: Draw the arrow if the item is an
17883         mdilist. This happens regardless of whether or not there are any
17884         mdi windows to see in the list, and according to my tests happens
17885         before the items are even added. Also happens if there isn't even
17886         an mdi client to get windows from.
17887
17888 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
17889
17890         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
17891         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
17892
17893 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
17894
17895         * DataGridTableStyle.cs:
17896           - Create always the styles for the missing columns even if they are
17897             provided by the user (not default table style)
17898         * DataGrid.cs:
17899           - Fixes bug 76770
17900           - Fixes SetDataBinding (always re-attach source)
17901           - Fixes SetNewDataSource (only clear styles if they are not for 
17902             this source)
17903          -  Expands OnTableStylesCollectionChanged to handle style refresh 
17904             and remove properly
17905
17906 2005-11-29  Jackson Harper  <jackson@ximian.com>
17907
17908         * FileDialog.cs: Implement missing bits, remove some dead
17909         code.
17910         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
17911         creation of the panel so that the options set on the dialog are
17912         seen when the panel is created.
17913         * TreeView.cs: raise a click when items are clicked.
17914         
17915 2005-11-29  Jackson Harper  <jackson@ximian.com>
17916
17917         * MdiClient.cs: Pass some signature methods through to base.
17918
17919 2005-11-28  Jackson Harper  <jackson@ximian.com>
17920
17921         * ListView.cs: Raise the click event when items are clicked.
17922
17923 2005-11-28  Jackson Harper  <jackson@ximian.com>
17924
17925         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
17926         a nullref.
17927
17928 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
17929
17930         * ThemeNice.cs: - Removed 1 pixel bitmaps
17931           - Use SmoothingMode.AntiAlias where it makes sense
17932             (ScrollButton arrow for example)
17933           - Enhanced Button focus drawing
17934           - Fixed ComboBox drawing (no artefacts anymore, focus
17935             rectangle is back again, reduced size of ComboButton, etc.)
17936           - Fixed RadioButton focus drawing for Appearence.Button
17937           - Slight ScrollButton redesign
17938           - Some LinearGradientBrush size fixes
17939           - GroupBoxes have now rounded edges
17940           - Fixed StatusBar drawing
17941
17942 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
17943
17944         * ThemeNice.cs: - Remove dead code
17945           - use correct background colors for menus, etc.
17946           - Fake pixel drawing with 1 pixel bitmaps
17947
17948 2005-11-24  Jackson Harper  <jackson@ximian.com>
17949
17950         * MdiClient.cs: Size the scrollbars when resizing the window.
17951         - Resize the maximized windows when the client is resized
17952         * Form.cs: Make the child context available
17953         
17954 2005-11-23  Jackson Harper  <jackson@ximian.com>
17955
17956         * MdiChildContext.cs: Don't size windows if they are maximized.
17957
17958 2005-11-23  Mike Kestner  <mkestner@novell.com>
17959
17960         * ContextMenu.cs: use MenuTracker.
17961         * Control.cs: remove menu handle usage.
17962         * Form.cs: remove menu handle usage.
17963         * Hwnd.cs: remove menu handle usage.
17964         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
17965         motion and clicks to the new Tracker handlers.
17966         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
17967         and handle usage.
17968         * MenuAPI.cs: refactored to combine popup and menubar event handling.
17969         Killed the MENU and MENUITEM data types and associated collections
17970         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
17971         MenuTracker class that exposes the leftovers from the old MenuAPI
17972         static methods. Restructured Capture handling so that only one grab is
17973         done for the entire menu hierarchy instead of handing off grabs to
17974         submenus. Tracker now has an invisible control to Capture when active.
17975         * MenuItem.cs: add sizing accessors, kill Create
17976         and handle usage.
17977         * Theme.cs: remove menu handle and MENU(ITEM) usage.
17978         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
17979         MENU(ITEM). remove menu handle usage, use Menu directly.
17980         * XplatUIDriver.cs: remove menu handle usage.
17981         * XplatUIOSX.cs: remove menu handle usage.
17982         * XplatUIWin32.cs: remove menu handle usage.
17983         * XplatUIX11.cs: remove menu handle usage.
17984
17985 2005-11-22  Jackson Harper  <jackson@ximian.com>
17986
17987         * Hwnd.cs: Don't compute the menu size for
17988         DefaultClientRectangle.
17989         - Reenable menu sizes being computed for GetClienRectangle.
17990         * Form.cs: Remove comment of trechery
17991         
17992 2005-11-22  Jackson Harper  <jackson@ximian.com>
17993
17994         * Hwnd.cs: The adjustments for the menu bar are made when it is
17995         attached to the form.
17996
17997 2005-11-19  Jackson Harper  <jackson@ximian.com>
17998
17999         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
18000         (just like on windows).
18001
18002 2005-11-19  Jackson Harper  <jackson@ximian.com>
18003
18004         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
18005         use real buttons anymore because they are in non client area. The
18006         one TODO here is that I need to somehow invalidate a section of
18007         the non client area.
18008
18009 2005-11-18  Jackson Harper  <jackson@ximian.com>
18010
18011         * Control.cs: Put the enum check back in now that MDI doesnt have
18012         to use this to set border styles.
18013         * Form.cs: Only set mdi child windows borders if the handle has
18014         been created.
18015         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
18016         this directly on to the driver.
18017         - Get the move start position before adjusting for the titlebar
18018         height, this fixes the windows "skipping" when they are first
18019         moved.
18020
18021 2005-11-18  Jackson Harper  <jackson@ximian.com>
18022
18023         * XplatUIX11.cs: Just compute the mdi borders separately as they
18024         don't totally match up with normal form borders.
18025
18026 2005-11-18  Jackson Harper  <jackson@ximian.com>
18027
18028         * Control.cs: Set WS_ styles for borders, so that the driver does
18029         not have to retrieve the control instance to figure out what kind
18030         of borders it should have.
18031         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
18032         driver can know its an mdi child easily.
18033         * XplatUIX11.cs: Get the border styles and whether the window is
18034         MDI from the Styles and ExStyles params instead of having to get a
18035         control. This prevents a chicken and egg problem.       
18036
18037 2005-11-18  Jackson Harper  <jackson@ximian.com>
18038
18039         * MdiClient.cs: Fix typo so scrollbars show up correctly.
18040
18041 2005-11-18  Jackson Harper  <jackson@ximian.com>
18042
18043         * MdiClient.cs: Calculate when to add and remove scrollbars
18044         correctly.
18045         * MdiChildContext.cs: Adjust the y position to take the titlebar
18046         into account.
18047         - No height for FormBorderStyle.None
18048
18049 2005-11-18  Jackson Harper  <jackson@ximian.com>
18050
18051         * Control.cs: Allow non enum values to be used for
18052         InternalBorderStyle.  MDI does this to set a special border style.
18053         - New utility methods for converting points to/from client coords
18054         - Add the newly created control to the Controls collection before
18055         updating its style. This way UpdateStyle can walk the control
18056         heirarchy to find the control if needed.
18057         so I don't need to create a new Point object all the time.
18058         * Form.cs: Let MDI windows handle their border styles.
18059         - Set styles on MDI windows so the correct title style is derived.
18060         * MdiChildContext.cs: Move all the painting and window handling
18061         into the non client area.
18062         - Use correct sizing and put correct buttons on frames based on
18063         the FormBorderStyle.
18064         - Notify the mdi client about scrolling
18065         - Need to handle the buttons ourselves now, because they are all
18066         in non client areas and we can't add controls there.
18067         * MdiClient.cs: Halfway to scrolling, this implementation is
18068         somewhat broken though, we need to check to make sure other
18069         windows aren't causing scrolling before removing the bars. Also
18070         the bars need to be drawn on top, maybe I can switch implicit
18071         controls to be on top.
18072         * Hwnd.cs: caption_height and tool_caption_height are now
18073         properties of an hwnd, this way they can be set by the driver
18074         based on the type of window they are.  In X11 the window manager
18075         handles the decorations so caption_height is zero unless its an
18076         MDI window.
18077         - Add 3 pixel borders for MDI windows (0xFFFF).
18078         - Get rid of some code duplication, have DefaultClientRectanle
18079         just call GetClientRectangle.
18080         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
18081         Hwnd now.
18082         - Set border styles differently for mdi windows.
18083         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
18084         Hwnd now.
18085         
18086 2005-11-15  Mike Kestner  <mkestner@novell.com>
18087
18088         * Menu.cs: when adding an item to the collection, if item is already 
18089         parented, remove it from the parent.
18090
18091 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
18092
18093         * X11DesktopColors.cs: Added KDE support
18094
18095 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
18096
18097         * XplatUIWin32.cs: 
18098           - Clipboard methods now can translate Rtf format
18099           - No longer removes clipboard contents whenever a new format is added
18100             to allow placing multiple formats on the clipboard
18101         * Clipboard.cs: Clipboard now supports getting a IDataObject and
18102           will place all formats contained in it onto the clipboard. Also
18103           now cleans the clipboard before placing a new object onto it
18104         * RichTextBox.cs:
18105           - Implemented set_Rtf
18106           - Implemented set_SelectedRtf
18107           - Created InsertRTFFromStream() method to allow single code base
18108             for all properties and methods that insert RTF into document
18109           - Removed debug output
18110         * TextControl.cs:
18111           - Fixed Delete(int) to fix up line numbers
18112           - Fixed ReplaceSelection to combine start and end line
18113           - Fixed serious DeleteChars bug that would leave the document tree
18114             broken
18115           - Improved DumpTree with several logic checks to detect broken
18116             document trees
18117           - Removed debug lines
18118           - Fixed Caret.WordForward/WordBack moving code, now always also 
18119             updates caret.tag (fixes crash when word-selecting across tag
18120             boundaries via keyboard)
18121           - Added Insert() method for inserting multiline text into documents
18122           - Fixed DeleteChars() calculation errors that would cause a broken
18123             tag chain with multiple tag lines
18124           - DeleteChars() no longer crashes on multi-tag lines if not all tags
18125           - Split() no longer moves caret if split is at caret location
18126           - ReplaceSelection() now updates the cursor and re-displays it
18127           - ReplaceSelection() now uses new Insert() method to avoid code
18128             duplication
18129           - FormatText() can now handle formatting partial lines
18130         * TextBoxBase.cs:
18131           - Append now uses new TextControl.Insert() method (this avoids 
18132             duplicate code)
18133           - Implemented Ctrl-X (Cut) (
18134           - Implemented Ctrl-C (Copy)
18135           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
18136             regeneration when pasting text; roundtripping Copy&Paste within
18137             edit control still fails due to some calculation bugs in GenerateRTF)
18138           - The Delete key will now remove the current selection if it is visible
18139         * TextBox.cs: Removed debug lines
18140         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
18141           driver to be initialized and can't therefore be done via a static ctor)
18142
18143 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
18144
18145         * TextControl.cs: Added backend code for finding char arrays and strings
18146         * TextBoxBase.cs:
18147           - Added mouse wheel scroll support
18148           - Added support for VScroll and HScroll events
18149         * RichTextBox.cs:
18150           - Implemented all seven Find() variants
18151           - Implemented GetCharFromPosition()
18152           - Implemented GetCharIndexFromPosition()
18153           - Implemented GetLineFromIndex()
18154           - Implemented GetPositionFromCharIndex();
18155           - Implemented SaveFile for PlainText and UnicodeText
18156           - Fixed set_Font, now setting a new font applies that font to
18157             the whole document
18158           - Implemented generic Document to RTF converter
18159           - Implemented SaveFile for RichText format (still missing unicode
18160             conversion for non-ansi chars)
18161           - Implemented get_Rtf
18162           - Implemented get_SelectedRtf
18163
18164 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
18165
18166         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
18167           to allow any captures to be released before triggering OnClick. This
18168           way a click handler may capture the mouse without interference.
18169         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
18170           This way we send them even though X may not allow a grab (if the window
18171           isn't visible, for example)
18172
18173 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
18174
18175         * DataGridViewRowEventArgs.cs: DataGridView implementation
18176         * DataGridViewElement.cs: DataGridView implementation
18177         * DataGridViewComboBoxCell.cs: DataGridView implementation
18178         * DataGridViewDataErrorContexts.cs: DataGridView implementation
18179         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
18180         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
18181         * ImageLayout.cs: DataGridView implementation
18182         * DataGridViewComboBoxColumn.cs: DataGridView implementation
18183         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
18184         * DataGridViewSelectionMode.cs: DataGridView implementation
18185         * IDataGridViewEditingControl.cs: DataGridView implementation
18186         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
18187         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
18188         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
18189         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
18190         * DataGridViewColumnSortMode.cs: DataGridView implementation
18191         * DataGridView.cs: DataGridView implementation
18192         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
18193         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
18194         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
18195         * Padding.cs: DataGridView implementation
18196         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
18197         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
18198         * DataGridViewRowEventHandler.cs: DataGridView implementation
18199         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
18200         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
18201         * DataGridViewButtonCell.cs: DataGridView implementation
18202         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
18203         * DataGridViewEditMode.cs: DataGridView implementation
18204         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
18205         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
18206         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
18207         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
18208         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
18209         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
18210         * DataGridViewCellEventHandler.cs: DataGridView implementation
18211         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
18212         * DataGridViewCellStyleConverter.cs: DataGridView implementation
18213         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
18214         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
18215         * DataGridViewColumnEventArgs.cs: DataGridView implementation
18216         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
18217         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
18218         * QuestionEventArgs.cs: DataGridView implementation
18219         * IDataGridViewEditingCell.cs: DataGridView implementation
18220         * DataGridViewTriState.cs: DataGridView implementation
18221         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
18222         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
18223         * DataGridViewColumnCollection.cs: DataGridView implementation
18224         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
18225         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
18226         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
18227         * DataGridViewColumn.cs: DataGridView implementation
18228         * DataGridViewCellBorderStyle.cs: DataGridView implementation
18229         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
18230         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
18231         * DataGridViewRow.cs: DataGridView implementation
18232         * DataGridViewImageCellLayout.cs: DataGridView implementation
18233         * DataGridViewImageCell.cs: DataGridView implementation
18234         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
18235         * DataGridViewCheckBoxCell.cs: DataGridView implementation
18236         * DataGridViewHeaderCell.cs: DataGridView implementation
18237         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
18238         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
18239         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
18240         * DataGridViewTextBoxColumn.cs: DataGridView implementation
18241         * QuestionEventHandler.cs: DataGridView implementation
18242         * DataGridViewCellStyleScopes.cs: DataGridView implementation
18243         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
18244         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
18245         * DataGridViewCell.cs: DataGridView implementation
18246         * DataGridViewCellEventArgs.cs: DataGridView implementation
18247         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
18248         * DataGridViewCellStyle.cs: DataGridView implementation
18249         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
18250         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
18251         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
18252         * TextFormatFlags.cs: DataGridView implementation
18253         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
18254         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
18255         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
18256         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
18257         * DataGridViewButtonColumn.cs: DataGridView implementation
18258         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
18259         * HandledMouseEventArgs.cs: DataGridView implementation
18260         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
18261         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
18262         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
18263         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
18264         * DataGridViewRowCollection.cs: DataGridView implementation
18265         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
18266         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
18267         * DataGridViewHitTestType.cs: DataGridView implementation
18268         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
18269         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
18270         * DataGridViewColumnEventHandler.cs: DataGridView implementation
18271         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
18272         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
18273         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
18274         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
18275         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
18276         * DataGridViewContentAlignment.cs: DataGridView implementation
18277         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
18278         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
18279         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
18280         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
18281         * DataGridViewPaintParts.cs: DataGridView implementation
18282         * DataGridViewCellCollection.cs: DataGridView implementation
18283         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
18284         * DataGridViewImageColumn.cs: DataGridView implementation
18285         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
18286         * DataGridViewElementStates.cs: DataGridView implementation
18287         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
18288         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
18289         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
18290         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
18291         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
18292         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
18293         * DataGridViewRowHeaderCell.cs: DataGridView implementation
18294         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
18295         * DataGridViewTextBoxCell.cs: DataGridView implementation
18296         * DataGridViewBand.cs: DataGridView implementation
18297         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
18298         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
18299         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
18300         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
18301         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
18302         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
18303         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
18304         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
18305         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
18306         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
18307         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
18308
18309 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
18310
18311         * ThemeWin32Classic.cs: 
18312           - Draw the outside focus rectangle around buttons
18313           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
18314             doesn't use end caps for every dash of a line anymore. This
18315             workaround ignores the forecolor.
18316
18317 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
18318
18319         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
18320           endian safe.
18321
18322 2005-11-07  Jackson Harper  <jackson@ximian.com>
18323
18324         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
18325
18326 2005-11-07  Jackson Harper  <jackson@ximian.com>
18327
18328         * ScrollableControl.cs: Calculate the maximum and change vars
18329         (more) correctly so that scrollbars appear as a sensible size.
18330
18331 2005-11-04  Jackson Harper  <jackson@ximian.com>
18332
18333         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
18334         collection.
18335         * TreeView.cs: When the tree is sorted null out the top_node so
18336         that it is recalculated.
18337         - Use dotted lines instead of dashed lines to match MS better.
18338
18339 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
18340
18341         * ListView.cs: 
18342           - Implements key search for items. Useful when browsing files with FileDialog
18343           - When changing view mode or when clear the items reset scrollbar positions
18344
18345 2005-11-04  Jackson Harper  <jackson@ximian.com>
18346
18347         * CurrencyManager.cs: Implement the MetaDataChanged event, the
18348         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
18349         as to what the method may do as there is no real way of creating a
18350         derived CurrencyManager and calling the method. 
18351
18352 2005-11-03  Jackson Harper  <jackson@ximian.com>
18353
18354         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
18355         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
18356         method which seems to just be used internally to refresh the tabs.
18357
18358 2005-11-03  Jackson Harper  <jackson@ximian.com>
18359
18360         * TabControl.cs: Implement the remove method. Fix some broken
18361         comments.
18362
18363 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18364
18365         * DateTimePicker.cs:
18366           - Added missing DateTimePickerAccessibleObject class
18367           - Added missing events
18368           - Added OnFontChanged method
18369         * Form.cs: Added missing attributes
18370         * TreeView.cs: Added missing attributes
18371
18372 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
18373
18374         * GridItemCollection.cs: Fix signatures
18375
18376 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18377
18378         * XplatUI.cs: Updated build rev/date
18379         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
18380           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
18381         * Application.cs: Trigger context-specific ExitThread events
18382
18383 2005-11-03  Jackson Harper  <jackson@ximian.com>
18384
18385         * Menu.cs:
18386         * MainMenu.cs:
18387         * GridTableStylesCollection.cs:
18388         * Timer.cs:
18389         * TabPage.cs:
18390         * HelpProvider.cs:
18391         * StatusBar.cs:
18392         * MonthCalendar.cs: Signature fixes
18393
18394 2005-11-03  Jackson Harper  <jackson@ximian.com>
18395
18396         * TreeNodeCollection.cs: Remove should not be virtual.
18397         * TreeView.cs: Implement the last of the missing methods.
18398
18399 2005-11-03  Jackson Harper  <jackson@ximian.com>
18400
18401         * TreeNodeConverter.cs: Implement to get off my class-status back.
18402
18403 2005-11-03  Jackson Harper  <jackson@ximian.com>
18404
18405         * TreeView.cs: Hookup the bits for drag and drop.
18406         * TreeNode.cs: Don't cache the tree_view or index anymore, now
18407         that nodes can be moved from tree to tree easily this just causes
18408         all sorts of problems.
18409         * TreeNodeCollection: Don't need to give treenodes an index and
18410         treeview anymore when they are added, these are computed on the
18411         fly. Also make sure to remove a node before its added.
18412
18413 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
18414
18415         * TextControl.cs:
18416           - Added CaretSelection enum
18417           - Added comparison methods to Marker struct, makes selection code
18418             more readable
18419           - Added SelectionStart and SelectionEnd as 'moveable' location for
18420             the CaretDirection enum and handler
18421           - Added selection_prev variable to track optimized invalidation for
18422             word and line selection
18423           - Added SelectionVisible property (returns true if there is a valid 
18424             selection)
18425           - Switched CaretHasFocus to only display the caret if there is no
18426             visible selection
18427           - Avoiding StringBuilder.ToString to retrieve a single char, instead
18428             using the direct character index; should be much faster
18429           - Added various conditional debug statements
18430           - Fixed invalidation calculation for selection ranges
18431           - Added ExpandSelection() method to support word and line selection
18432           - Switched SetSelectionToCaret to use new Marker compare overloads
18433           - Added central IsWordSeparator() method to determine word 
18434             separators/whitespace and FindWordSeparator() to streamline common
18435             usage of IsWordSeparator()
18436         * TextBoxBase.cs:
18437           - Removed unneeded grabbed variable, it was just mirroring
18438             Control.Capture
18439           - No longer firing OnTextChanged event when Text setter is called,
18440             since the base will fire the event for us
18441           - Added handling of Ctrl-Up/Down selection
18442           - Added handling of Shift-Cursorkey selection
18443           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
18444             words
18445           - Added handling of Shift and Ctrl-Shift-Home/End selection
18446           - Removed some debug output
18447           - Added handling for single/double/tripple-click to place caret/
18448             select word/select line respectively (Fixes bug #76031)
18449           - Added support for drag expansion of word/line selection
18450         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
18451           current selection
18452
18453 2005-11-02  Jackson Harper  <jackson@ximian.com>
18454
18455         * X11Dnd.cs: If the drag is going to and from a MWF window just
18456         copy the data instead of sending it out through the X Selection
18457         mechanism.
18458
18459 2005-11-02  Jackson Harper  <jackson@ximian.com>
18460
18461         * X11Dnd.cs:
18462         * XplatUIX11.cs: When in a drag we don't want motion notify
18463         messages to get passed on to the other controls. This prevents
18464         mouse move messages from showing up in the drag source.
18465
18466 2005-11-02  Jackson Harper  <jackson@ximian.com>
18467
18468         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
18469         the correct button is release to end a drag.
18470         * XplatUIX11.cs: Make the button state internal so the drag system
18471         can access it.  Dragging needs to know about all button releases,
18472         not just left button.
18473
18474 2005-11-02  Miguel de Icaza  <miguel@novell.com>
18475
18476         * Form.cs (Icon): If the icon is null, reset the icon to the
18477         default value. 
18478
18479         * Cursor.cs: When writing the AND-mask bitmap do not include the
18480         number of colors, but hardcode those to two (black and white),
18481         fixes the loading of color cursors (Paint Dot Net).
18482
18483         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
18484         turn off autoscaling.
18485
18486         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
18487
18488 2005-11-02  Jackson Harper  <jackson@ximian.com>
18489
18490         * X11Dnd.cs: Make sure to send a status message if the pointer
18491         enters a control that can not accept a drop, otherwise the cursor
18492         isn't updated correctly. Also tried to compress the lines of code
18493         a bit.
18494
18495 2005-11-02  Jackson Harper  <jackson@ximian.com>
18496
18497         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
18498         set actions correctly.  This isn't perfect as XDND and win32 have
18499         some differences on how you allow actions. I'll clear this up by
18500         adding a path for drag from MWF to MWF windows.
18501         * XplatUIX11.cs: Hook into the dnd system.
18502
18503 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
18504
18505         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
18506         previously shown but they are no longer need it. Very obvious when 
18507         browsing files with FileDialog.
18508
18509 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
18510
18511         * Control.cs: We always need to call OnPaintBackground. We pretty much
18512           ignore AllPaintingInWmPaint and always do the painting there, whether 
18513           it's set or not, since we always ignore the WM_ERASEBKGND message 
18514           (which we don't generate on X11). This fixes #76616.
18515         * Panel.cs: Removed unneeded background painting. This happens properly
18516           in Control.cs already
18517
18518 2005-10-31  Mike Kestner  <mkestner@novell.com>
18519
18520         * Menu.cs: Add items to collection before setting their index.
18521         * MenuItem.cs : add range checking with ArgumentException like MS.
18522         [Fixes #76510]
18523
18524 2005-10-31  Jackson Harper  <jackson@ximian.com>
18525
18526         * ListBox.cs: Invalidate if the area is visible at all not just
18527         contained in the visible rect. Fixes unselection of semi visible
18528         items.
18529
18530 2005-10-31  Jackson Harper  <jackson@ximian.com>
18531
18532         * Control.cs: Consistently name the dnd methods. Make them
18533         internal so we can override them to match some MS behavoir
18534         internally.
18535         * Win32DnD.cs: Use the new consistent names.
18536
18537 2005-10-31  Jackson Harper  <jackson@ximian.com>
18538
18539         * TreeView.cs: Don't draw the selected node when we lose focus.
18540
18541 2005-10-31  Jackson Harper  <jackson@ximian.com>
18542
18543         * X11Dnd.cs: We still need to reset the state even though a full
18544         reset isn't being done, otherwise status's still get sent all over
18545         the place.
18546
18547 2005-10-31  Jackson Harper  <jackson@ximian.com>
18548
18549         * Control.cs: Make the dnd_aware flag internal so the dnd
18550         subsystem can check it. Catch exceptions thrown in dnd handlers to
18551         match MS behavoir.
18552         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
18553         * X11Dnd.cs: Handle null data in the converters. Set the XDND
18554         version when sending a XdndEnter. Use the control/hwnd dnd_aware
18555         flags to reduce the number of dnd enters/status's sent.
18556
18557 2005-10-31  Jackson Harper  <jackson@ximian.com>
18558
18559         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
18560
18561 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
18562
18563         * PictureBox.cs: Fixes 76512
18564
18565 2005-10-28  Jackson Harper  <jackson@ximian.com>
18566
18567         * X11Dnd.cs: Early implementation to support winforms being a drag
18568         source for data on X11. Also restructured the converters so they
18569         can go both ways now.
18570         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
18571         
18572 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
18573
18574         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
18575           clipboard requests
18576
18577 2005-10-27  Jackson Harper  <jackson@ximian.com>
18578
18579         * TreeNode.cs: Implement serialization so my DnD examples will work.
18580
18581 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
18582
18583         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
18584           TreeView.cs: Don't dispose objects that are not owned.
18585           
18586 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
18587
18588         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
18589           should retrieve the current cursor and report that, but XplatUI
18590           doesn't (yet) have an interface for that (and I'm not sure I even
18591           can, on X11)
18592         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
18593           until any message loop processing is done (and the WM_SETCURSOR
18594           replaces the cursor to the proper one)
18595         * XplatUIX11.cs: 
18596           - Fixed override behaviour, we can't set the cursor globally on X11, 
18597             just for our windows.
18598           - Invalidating the System.Drawing X11 display handle when we are
18599             shutting down
18600         * Control.cs: Fix to make csc happy
18601
18602 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
18603
18604         * TextBoxBase.cs: 
18605           - get_Text: Add last line (without trailing newline) to returned
18606             value (Fixes 76212)
18607           - get_TextLength: Count last line in returned length
18608           - ToString: Call Text property instead of duplicating code
18609
18610 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
18611
18612         * ImageList.cs: Dispose ImageAttributes objects.
18613
18614 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
18615
18616         * ImageList.cs: Use attribute constructors with less arguments where
18617           possible.
18618
18619 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
18620
18621         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
18622           Use typeof instead of strings when assembly is referenced. Added
18623           some more comments.
18624
18625 2005-10-21  Jackson Harper  <jackson@ximian.com>
18626
18627         * ListView.cs: Raise a double click event. Also tried to somewhat
18628         fix when the selectedindexchanged event is raised. Its still
18629         broken though.
18630
18631 2005-10-21  Jackson Harper  <jackson@ximian.com>
18632
18633         * TreeView.cs: New method to invalidate the plus minus area of a
18634         node without invalidating the whole node (maybe this can be used
18635         in some more places).
18636         * TreeNodeCollection.cs: When adding to an empty node we need to
18637         invalidate its plus minus area so the little block shows up.
18638         
18639 2005-10-21  Jackson Harper  <jackson@ximian.com>
18640
18641         * TreeView.cs: Make sure that when we invalidate a node the bounds
18642         are big enough to cover the selected box and the focus
18643         rectangle. Use a different colour for the lines connecting nodes
18644         so they show up with all themes.
18645
18646 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
18647
18648         * NativeWindow.cs: Don't call anything that could call into the driver,
18649           we might be on a different thread.
18650
18651 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
18652
18653         * Control.cs(Dispose): Since Dispose might run on a different thread,
18654           make sure that we call methods that could call into the driver via
18655           invoke, to avoid thread issues
18656
18657 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
18658
18659         * XplatUI.cs: Removed finalizer
18660         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
18661           not allowing to be called on the finalizer thread.
18662
18663 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
18664
18665         * ImageList.cs:
18666           - Reverted r51889 and r51891.
18667           - Added ImageListItem class that stores unmodified image items and image
18668             properties required to create list images until handle is created.
18669           - Added AddItem and moved image creation logic to AddItemInternal.
18670           - Added CreateHandle method that creates images based on unmodified items.
18671           - Added DestroyHandle that changes state to store unmodified items.
18672           - Add and AddStrip methods no more create handle.
18673           - ReduceColorDepth has no return value.
18674           - Dispose destroys handle.
18675           - Modified other methods to reflect the above changes.
18676           - Implemented key support.
18677           - Added profile 2.0 members and attributes.
18678           - Added private Reset and ShouldSerialize methods that provide the same
18679             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
18680             them as they are private.
18681           - Added some more comments about implementation details.
18682
18683 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18684
18685         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
18686
18687 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18688
18689         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
18690
18691 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
18692
18693         * DataGridDrawingLogic.cs: Fixes column hit calcultation
18694         * DataGridColumnStyle.cs: Remove debug message
18695
18696 2005-10-20  Jackson Harper  <jackson@ximian.com>
18697
18698         * TreeView.cs: We can always get input keys regardless of whether
18699         or not editing is enabled. They are used for navigation.
18700
18701 2005-10-20  Jackson Harper  <jackson@ximian.com>
18702
18703         * TreeNode.cs: Use the viewport rect for determining if a node
18704         needs to be moved for visibility. Don't use Begin/End edit. This
18705         calls a full refresh when its done.
18706         * TreeView.cs: New SetBottom works correctly.  Make the viewport
18707         rect property internal so the treenodes can see it. When clicking
18708         on a node we need to ensure that its visible because it might just
18709         be partly visible when clicked.
18710
18711 2005-10-20  Jackson Harper  <jackson@ximian.com>
18712
18713         * TreeNodeCollection.cs: Remove debug code.
18714
18715 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
18716
18717         * Datagrid.cs: Implements column sorting in Datagrid
18718         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
18719
18720 2005-10-20  Jackson Harper  <jackson@ximian.com>
18721
18722         * TreeNodeCollection.cs: Remove items properly. Update the correct
18723         area after removing them.
18724
18725 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
18726
18727         * Datagrid.cs: Should not call base.OnPaintBackground
18728
18729 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
18730
18731         * XplatUIX11.cs (GetMessage):
18732           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
18733             window instead of client window
18734           - Now properly calculates NC_xBUTTONUP message coordinates
18735           - ScreenToMenu now properly calculates it's coordinates of whole 
18736             window, since menus are in the whole window, not in the client
18737             window
18738           - Added WholeToScreen coordinate translation method
18739
18740 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
18741
18742         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
18743           want to return a message, loop back to the beginning of the function
18744           and grab the next real message to process instead.
18745
18746 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
18747
18748         * Splitter.cs: Properly set limits if no filler control is used
18749
18750 2005-10-19  Jackson Harper  <jackson@ximian.com>
18751
18752         * ColorDialog.cs: Don't show the help button if it is not enabled
18753         instead of disabling it (this is what MS does). Don't create the
18754         panel until the dialog is run, otherwise the vars (such as
18755         ShowHelp) are not set yet.
18756
18757 2005-10-19  Jackson Harper  <jackson@ximian.com>
18758
18759         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
18760         are reduced when adding nodes.
18761         * TreeNode.cs:
18762         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
18763         tree.
18764         
18765 2005-10-19  Jackson Harper  <jackson@ximian.com>
18766
18767         * FolderBrowserDialog.cs: End editing our treeview so the window
18768         actually gets refreshed.
18769
18770 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
18771
18772         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
18773           Obsoleted handling of WM_ERASEBKGND, now always draws our background
18774           inside of WM_PAINT
18775
18776 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18777
18778         * MenuAPI.cs: Returns after Hidding window
18779         * XplatUIX11.cs: Added TODO found while debugging menu issues
18780
18781 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
18782
18783         * XplatUIX11.cs: Do not re-map the whole window when it's size
18784           becomes non-zero unless it's supposed to be actually visible
18785
18786 2005-10-18  Jackson Harper  <jackson@ximian.com>
18787
18788         * TreeView.cs: We don't need to keep a count anymore.
18789         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
18790         use the Grow method.
18791
18792 2005-10-18  Jackson Harper  <jackson@ximian.com>
18793
18794         * TreeNodeCollection.cs: Insert is not supported on arrays, so
18795         implement it manually here.
18796
18797 2005-10-18  Jackson Harper  <jackson@ximian.com>
18798
18799         * ImageList.cs: Dont kill the list when the colour depth is
18800         changed, just change the colour depth of all the images.
18801         - Same goes for setting the image size. Just resize them all
18802         instead of killing the list softly.
18803
18804 2005-10-18  Jackson Harper  <jackson@ximian.com>
18805
18806         * Control.cs: Don't invalidate empty rectangles.
18807
18808 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18809
18810         * ListViewItem.cs:
18811           - Adds checked item to the Checked/Item lists (where empty before)
18812           - Do not add items to the Selected lists if they are already present
18813         * ListView.cs:
18814           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
18815           - When deleting items make sure that we delete them for the Selected
18816           and Checked list also.
18817
18818 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
18819
18820         * Label.cs: Dispose objects no longer used
18821         * ThemeWin32Classic.cs: Dispose objects no longer used
18822
18823 2005-10-18  Jackson Harper  <jackson@ximian.com>
18824
18825         * TabControl.cs: Don't refresh the whole control when the tabs are
18826         scrolled, we just need to refresh the tab area.
18827
18828 2005-10-17  Jackson Harper  <jackson@ximian.com>
18829
18830         * XplatUIX11.cs: Compress code a little bit. Only calculate the
18831         after handle when we need it.
18832
18833 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
18834
18835         * Control.cs: When the parent size changes, recalculate anchor 
18836           positions. Partial fix for #76462
18837
18838 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
18839
18840         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
18841           drawn. Fixes #76462
18842
18843 2005-10-17  Jackson Harper  <jackson@ximian.com>
18844
18845         * MonthCalendar.cs: Don't create the numeric up down until our
18846         handle is created. Otherwise our handle is created in the
18847         constructor and we don't know if we are a WS_CHILD or WS_POPUP
18848         yet.
18849
18850 2005-10-17  Jackson Harper  <jackson@ximian.com>
18851
18852         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
18853         correctly.
18854
18855 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
18856         * TreeNode.cs : small logical fix (was using local var instead of field)
18857         
18858 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
18859
18860         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
18861
18862 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
18863
18864         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
18865
18866 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
18867
18868         * Control.cs: 
18869           - Re-implemented anchoring code. My first version was really broken.
18870             This fixes bug #76033. Unlike the previous implementation we will
18871             no longer have round errors since all numbers are calculated from
18872             scratch every time. Removed various anchor-related obsolete vars.
18873           - InitLayout no longer causes layout event firing and layout to be 
18874             performed
18875
18876 2005-10-16  Jackson Harper  <jackson@ximian.com>
18877
18878         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
18879         which was broken).
18880
18881 2005-10-16  Jackson Harper  <jackson@ximian.com>
18882
18883         * TabControl.cs: Remove debug code.
18884
18885 2005-10-16  Jackson Harper  <jackson@ximian.com>
18886
18887         * XEventQueue.cs: Increase the default queue size (very simple
18888         apps needed to grow the queue).
18889         * Hwnd.cs: No finalizer so we don't need to suppress
18890         finalization. Compute the invalid area manually so a new rectangle
18891         does not newto be created.
18892         * ScrollableControl.cs: Don't set any params (otherwise visibility
18893         isn't set correctly).
18894         * MdiChildContext.cs: New constructor takes the mdi parent so it
18895         doesn't have to be computed and avoids a crash on windows. Draw
18896         the window icon properly, and allow the text to be seen.
18897         * Form.cs: Use new MdiChildContext constructor. Make sure the
18898         child context isn't null in wndproc.
18899         * TabControl.cs: Don't set focus, this is muddling keyboard
18900         behavoir. Expand the tab rows when a window size increase will
18901         allow extra tabs to be seen. Don't allow tabs smaller than the
18902         width of a window to be scrolled out of view.
18903         * TreeNode.cs:
18904         * TreeView.cs: Use measure string to calculate a nodes width, the
18905         width is cached and only updated when the text or the font is
18906         changed. Don't check for expand/collapse clicks on the first level
18907         nodes if root lines are disabled.
18908         
18909 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
18910
18911         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
18912
18913 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
18914
18915         * DataGridBoolColumn.cs: fixes warning
18916
18917 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
18918
18919         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
18920         to match more to match more precisely the MS Net behavior
18921
18922 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
18923
18924         * Hwnd.cs: Added field to track if window is mapped
18925         * XplatUIX11.cs: 
18926           - Unmap windows if they become 0-size, re-map when 
18927             they are >0 again; fixes #76035
18928           - Re-set our error handler after initializing X11Desktop
18929             to override any error handlers Gtk or whatever was called
18930             may have set.
18931
18932 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
18933
18934         * CheckedListBox.cs: Removed unused vars
18935         * ListView.cs: Fixed signatures
18936         * RichTextBox.cs: Removed unused vars
18937         * TextBoxBase.cs: Removed unused vars
18938         * XplatUIWin32.cs: Removed unused vars
18939         * XplatUIX11.cs: Removed unused vars
18940         * XplatUI.cs: Updated version and date to latest published
18941
18942 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
18943
18944         * Cursor.cs: Added private .ctor to work around a bug in
18945           resourceset (Thanks to Geoff Norton for the help on this)
18946         * SplitterEventArgs.cs: Made fields accessible so we don't
18947           waste boatloads of objects and can reuse the same one
18948           in Splitter
18949         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
18950           any captions and borders when generating screen coordinates
18951         * Splitter.cs: Reimplemented control, now fully complete, uses
18952           rubberband drawing, supports and obeys all properties, has
18953           proper cursors
18954
18955 2005-10-13  Miguel de Icaza  <miguel@novell.com>
18956
18957         * Form.cs (Form): Setup default values for autoscale and
18958         autoscale_base_size;  Make these instance variables, not static
18959         variables. 
18960
18961         (OnLoad): on the first load, adjust the size of the form.
18962
18963 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
18964
18965         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
18966           width argument to DrawReversibleRectangle()
18967         * XplatUIWin32.cs, XplatUIX11.cs: 
18968           - Implemented width for DrawReversibleRectangle()
18969           - Added logic to DrawReversibleRectangle that recognizes a zero
18970             width or height and only draws a line in that situation
18971         
18972 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
18973
18974         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
18975         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
18976         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
18977           method (it uses our FosterParent window to get a graphics context)
18978
18979 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
18980
18981         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
18982           and SetWindowBackground methods
18983         * Control.cs:
18984           - Setting proper ControlStyles
18985           - We no longer call XplatUI.SetWindowBackground and XplatUI.
18986             EraseWindowBackground, instead we draw the window background
18987             ourselves in PaintControlBackground. This behaviour is
18988             required to match MS, where, when OnPaintBackground is not
18989             called, the background is not drawn.
18990           - Removed unneeded Refresh() in set_Text
18991         * Hwnd.cs: Dropped the ErasePending support. No longer needed
18992         * XplatUIX11.cs:
18993           - Created DeriveStyles method to translate from CreateParams to
18994             FormBorderStyle and TitleStyle, also handles BorderStyle (which
18995             matches FormBorderStyle enum values)
18996           - Consolidated SetHwndStyles and CalculateWindowRect border/title
18997             style calculations into single DeriveStyles method
18998           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
18999             from redrawing the whole window on any resize or expose.
19000           - Fixed CreateWindow usage of SetWindowValuemask. Before not
19001             all styles were applied to our whole/client window appropriately
19002           - Removed EraseWindowBackground() and SetWindowBackground() methods
19003           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
19004             no longer clear/redraw the background through X
19005           - Removed handling of erase_pending bit, we have no use for it (or
19006             so it seems)
19007         * XplatUIOSX.cs:
19008           - Removed generation and handling of WM_ERASEBKGND message
19009           - Removed EraseWindowBackground() and SetWindowBackground() methods
19010           - Removed handling of hwnd.ErasePending flag
19011         * XplatUIWin32.cs:
19012           - Removed EraseWindowBackground() and SetWindowBackground() methods
19013           - We no longer call EraseWindowBackground on PaintEventStart, we 
19014             ignore the fErase flag, erasing is handled in Control in the
19015             background handler
19016         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
19017           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
19018           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
19019           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
19020           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
19021           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
19022           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
19023
19024 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
19025
19026         * PropertyGrids.cs: Get sub properties
19027         * PropertyGridView.cs: Fix drawing code
19028
19029 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
19030
19031         * ListBox.cs: Fixes 76383
19032
19033 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
19034
19035         * DataGridTextBoxColumn.cs: Sets location and size before attachment
19036         * ThemeWin32Classic.cs: Fixes border drawing and calculations
19037         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
19038
19039
19040 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
19041
19042         * ComboBox.cs: Fixes border drawing
19043
19044 2005-10-10  Miguel de Icaza  <miguel@novell.com>
19045
19046         * MimeIcon.cs: Ignore errors if the file can not be read.
19047
19048 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
19049
19050         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
19051          - Fixed border calculations
19052          - Fixed horizontal scrolling in single column listboxes
19053          - Fixed drawing issues
19054
19055 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
19056
19057         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
19058           FormBorderStyle enum
19059         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
19060           code to determine FormBorderStyles from CreateParams
19061         * Form.cs:
19062           - Fixed bug where we'd set the wrong window styles if we were
19063             not creating an MDI window
19064           - Added call to XplatUI.SetBorderStyle when form borders are set
19065         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
19066         * Hwnd.cs:
19067           - Removed obsolete edge style
19068           - Switched from BorderStyle to FormBorderStyle
19069         
19070 2005-10-10  Jackson Harper  <jackson@ximian.com>
19071
19072         * Form.cs: Use the property to get the window handle instead of
19073         accessing it directly. Prevents a null reference exception.
19074
19075 2005-10-10  Jackson Harper  <jackson@ximian.com>
19076
19077         * TreeView.cs: Don't adjust the rect given to DrawString now that
19078         our libgdiplus draws correctly.
19079
19080 2005-10-08  Jackson Harper  <jackson@ximian.com>
19081
19082         * TreeView.cs: Don't try to find the clicked on node if there are
19083         no nodes in the tree.
19084
19085 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
19086
19087         * RichTextBox.cs:
19088
19089           restore
19090
19091 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
19092
19093         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
19094           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
19095           ErrorProvider.cs:
19096           Use ResPool for brushes and dispose System.Drawing objects that
19097           are not used anymore.
19098
19099 2005-10-07  Jackson Harper  <jackson@ximian.com>
19100
19101         * MdiChildContext.cs: Use the new borders instead of drawing them
19102         ourselves.
19103
19104 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
19105
19106         * Calling UpdateBounds after changing the window's BorderStyle 
19107         since the style can change the ClientSize
19108
19109 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19110
19111         * Control.cs: Made PaintControlBackground virtual
19112         * Panel.cs: Overriding PaintControlBackground instead of using paint
19113           event; paint event method was interfering with 'real' users of the
19114           event.
19115
19116 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
19117
19118         * ThemeWin32Classic.cs: remove border drawing since it is handled
19119         by the base control class now and was causing double border drawing.
19120
19121 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19122
19123         * Panel.cs: Redraw our background on paint. Not a pretty solution,
19124           but it does seem to match MS behaviour. This fixes bug #75324
19125
19126 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19127
19128         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
19129           somewhat hackish looking
19130
19131 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
19132
19133         * TextBoxBase.cs:
19134           - We now accept Enter even if AcceptEnter is false, if the containing
19135             form does not have an AcceptButton configured (fixes bug #76355)
19136           - Calculations are now fixed to no longer use Width/Height, but
19137             ClientSize.Width/Height, since we now support borders (this was
19138             a result of fixing borders and therefore bug #76166)
19139           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
19140             true (fixes bug #76354)
19141         
19142 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19143
19144         * Control.cs: 
19145           - Defaulting BorderStyle and setting it in XplatUI when our window 
19146             is created
19147           - Added enum check to InternalBorderStyle setter
19148         * XplatUIX11.cs: 
19149           - Added drawing of window borders
19150           - Now properly calculates WM decorations offset for toplevel 
19151             windows (fixes bug #74763)
19152         * XplatUIWin32.cs: 
19153           - Implemented BorderStyles for windows (we're letting win32 draw 
19154             the border for us)
19155           - Fixed the signature for SetWindowLong
19156         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
19157           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
19158           setting borders
19159         * UpDownBase.cs: Remove drawing of borders, this is handled by
19160           the driver, outside the client area
19161         * ListView.cs: Removed bogus border calculations. The control should
19162           be oblivious to borders, since those are not part of the client
19163           area. 
19164         * X11DesktopColors.cs: Commented out (currently) unneeded variables
19165         * ThemeWin32Classic.cs: Removed border calculations from ListView 
19166           drawing code
19167
19168 2005-10-06  Jackson Harper  <jackson@ximian.com>
19169
19170         * MdiChildContext.cs: Clear out the old virtual position remove
19171         all the unneeded calls to CreateGraphics.
19172
19173 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
19174
19175         * TextControl.cs: Use proper color for highlighted text; fixes #76350
19176
19177 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
19178
19179         * Form.cs: 
19180           - Added loading and setting of our new default icon
19181           - Only set icon if window is already created
19182
19183 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
19184
19185         * Label.cs:
19186           - Do not explicitly set the foreground and background colors, to
19187             allow inheriting from parents (fixes #76302)
19188           - Use Control's InternalBorderStyle property to deal with borders
19189
19190 2005-10-06  Jackson Harper  <jackson@ximian.com>
19191
19192         * MdiChildContext.cs: Use the new xplatui function to draw a
19193         reversible rect.
19194
19195 2005-10-06  Jackson Harper  <jackson@ximian.com>
19196
19197         * Form.cs: Add the parent before creating the child context cause
19198         we need the parent when setting up the child.
19199
19200 2005-10-06  Jackson Harper  <jackson@ximian.com>
19201
19202         * FolderBrowserDialog.cs: redo the tree population code so a
19203         second thread isn't used. Should be a lot faster and more stable
19204         now.
19205
19206 2005-10-05  Jackson Harper  <jackson@ximian.com>
19207
19208         * TreeView.cs: There are no expand/collapse boxes if the node has
19209         no children.
19210
19211 2005-10-05  Jackson Harper  <jackson@ximian.com>
19212
19213         * X11DesktopColors.cs: Get menu colours for the gtk theme.
19214
19215 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
19216
19217         * FileDialog.cs: Fix InitialDirectory
19218
19219 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
19220
19221         * ComboBox.cs:
19222                 - Fixes changing between styles
19223                 - Fixes simple mode
19224                 - Fixes last item crashing when navigating with keyboard
19225
19226 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
19227
19228         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
19229
19230 2005-10-05  Jackson Harper  <jackson@ximian.com>
19231
19232         * TreeView.cs: If updating the root node do a full refresh.
19233         * TreeNode.cs: The root node should be expanded by default. Also
19234         added a utility prop to tell if we are the root node.
19235         * TreeNodeCollection.cs: Only refresh if the node we are being
19236         added to is expanded. Also added a comment on a potential
19237         optimization.
19238         
19239 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
19240
19241         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
19242           in dispose method. Fixes #76330
19243
19244 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
19245
19246         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
19247
19248                 - Implements vertical and horizontal scrolling using XplatUI
19249                 - Fixes keyboard navagation
19250                 - Fixes EnsureVisible
19251                 - Drawing fixes
19252                 - Handles and draws focus properly
19253
19254
19255 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
19256
19257         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
19258           Create handle. NET_2_0: Destroy handle when value is null.
19259
19260 2005-10-03  Jackson Harper  <jackson@ximian.com>
19261
19262         * ScrollBar.cs: My last scrollbar patch was broken. This is a
19263         revert and a new patch to prevent the thumb from refreshing so
19264         much.
19265
19266 2005-10-02  Jackson Harper  <jackson@ximian.com>
19267
19268         * ScrollBar.cs: Don't update position if it hasn't actually
19269         changed. This occurs when you hold down the increment/decrement
19270         buttons and the thumb gets to the max/min.
19271
19272 2005-10-01  Jackson Harper  <jackson@ximian.com>
19273
19274         * Form.cs:
19275         * MdiChildContext.cs:
19276         * MdiClient.cs: Implement ActiveMdiChild in Form.
19277
19278 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
19279
19280         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
19281
19282 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
19283
19284         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
19285           be found
19286
19287 2005-09-30  Jackson Harper  <jackson@ximian.com>
19288
19289         * ListBox.cs: Don't do a full refresh unless some data has
19290         actually changed.
19291
19292 2005-09-30  Jackson Harper  <jackson@ximian.com>
19293
19294         * TreeView.cs: Make sure that the checkboxes size is factored in
19295         even when not visible.
19296
19297 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
19298
19299         * FileDialog.cs: Fix Jordi's build break
19300
19301 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
19302
19303         * FileDialog.cs: 
19304                 - Use standard the Windows colours for the combobox as espected
19305                 - Dispose objects that use resouces when no longer need them
19306
19307 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
19308
19309         * X11DesktopColors.cs: Initial incomplete implementation
19310         * XplatUIX11.cs: Added call to initialize X11DesktopColors
19311
19312 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
19313
19314         * Theme.cs: 
19315           - Switched Theme color names to match the names defined in 
19316             System.Drawing.KnownColors. Life's hard enough, no need to make 
19317             it harder.
19318           - Added setters to all theme color properties so themes can set
19319             their color schemes. The setters also propagate the color changes
19320             to System.Drawing.KnownColors via reflection
19321         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
19322           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
19323           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
19324           use the new, more logical theme color names
19325         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
19326           post-NT colors
19327         * ThemeWin32Classic.cs:
19328           - Removed code to set the old classic Windows colors. Instead it
19329             now relies on the colors returned by System.Drawing.KnownColors
19330             which will be either modern static colors (Unix) or colors
19331             read from the user's configuration (Win32)
19332           - Updated to use the new, more logical theme color names
19333           - Switched DataGrid drawing code to use only Theme colors instead of
19334             a mix of System.Drawing.KnownColors and Theme colors
19335           - DrawFrameControl(): Removed code that fills the button area, the
19336             fill would overwrite any previous fill done by a control. This
19337             fixes bug #75338 
19338           - Added DrawReversibleRectangle() stub
19339         * ScrollableControl.cs: Set visible state to false when scrollbars
19340           are removed (pdn fix)
19341         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
19342           DrawReversibleRectangle() method to allow drawing primitive 
19343           'rubber bands'
19344         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
19345
19346 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19347
19348         * ImageList.cs: Add(Icon): Create handle.
19349
19350 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
19351
19352         * ListView.cs:
19353         * ThemeWin32Classic.cs:
19354                 - Fixes detail mode
19355                 - Sets clippings
19356                 - Issues with drawing
19357
19358 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19359
19360         * ImageList.cs: Moved RecreateHandle back to ImageList as event
19361           source has to be the ImageList.
19362
19363 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19364
19365         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
19366
19367 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19368
19369         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
19370
19371 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19372
19373         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
19374
19375 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
19376         * GridItem.cs: Fixed TODOs
19377         * GridItemCollection.cs: Added ICollection interface
19378
19379 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
19380
19381         * ImageList.cs: Resize icons when needed.
19382
19383 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
19384
19385         * ListViewItem.cs
19386                 - Fixes GetBounds and returns on screen rects
19387         * ListView.cs:
19388                 - Fixes vertical and horzintal scrolling of items
19389         * ThemeWin32Classic.cs:
19390                 - Fixes drawing
19391                 
19392 2005-09-29  Raja R Harinath  <harinath@gmail.com>
19393
19394         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
19395
19396 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
19397
19398         * ImageList.cs: Added comments about handle creation. Moved Handle,
19399           HandleCreated and OnRecreateHandle implementations to ImageCollection.
19400           Handle is created in Add methods.
19401
19402 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
19403          
19404         * DataGridDrawingLogic.cs: 
19405                 - Takes rows into account on Colum calculations
19406                 - Returns the column when clickig
19407         * DataGrid.cs:
19408                 - Fixes default HitTestInfo values
19409                 - Fixes HitTestInfo.ToString
19410                 - Fixes ResetBackColor          
19411         
19412 2005-09-28  Jackson Harper  <jackson@ximian.com>
19413
19414         * MdiChildContext.cs: Obey rules for fixed sized windows (no
19415         sizing or cursor changes). Also added some temp code to draw the
19416         titlebars text (Makes dev a little easier).
19417
19418 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
19419
19420         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
19421
19422 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
19423          
19424         * ListBox.cs: Fixes bug 76253
19425
19426 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
19427
19428         * ImageList.cs: Added comments about the current implementation. Added
19429           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
19430           Format32bppArgb to preserve transparency and can use Graphics.FromImage
19431           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
19432           with Bitmap.LockBits for better performance. Revised the whole file to
19433           match MS.NET behaviour and provide better performance. Non-public
19434           interface members are calling public members even when they throw
19435           NotSupportedException for better maintainability. Moved ColorDepth,
19436           ImageSize, ImageStream and TransparentColor implementations to
19437           ImageCollection for better performance as these properties are not used
19438           by ImageList.
19439         * ImageListStreamer.cs: Added a new internal constructor that takes an
19440           ImageList.ImageCollection and serializes Images based on
19441           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
19442           match ImageList property name.
19443
19444 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
19445
19446         * ListBox.cs: Fixes IndexFromPoint for last item
19447
19448 2005-09-27  Jackson Harper  <jackson@ximian.com>
19449
19450         * Form.cs: Set the position of new mdi children correctly.
19451
19452 2005-09-27  Jackson Harper  <jackson@ximian.com>
19453
19454         * MdiClient.cs: New mdi children need to be added to the back of
19455         the controls collection so the zorder is set correctly. Also add a
19456         count of all the child windows that have been created.
19457
19458 2005-09-27  Jackson Harper  <jackson@ximian.com>
19459
19460         * Form.cs (CreateParams): Setup MDI forms correctly.
19461
19462 2005-09-27  Jackson Harper  <jackson@ximian.com>
19463
19464         * MdiChildContext.cs:
19465         * MonthCalendar.cs:
19466         * UpDownBase.cs:
19467         * ListBox.cs:
19468         * ListView.cs:
19469         * TextBoxBase.cs:
19470         * TreeView.cs:
19471         * ScrollableControl.cs:
19472         * ComboBox.cs: Add implicit controls using the new implict control
19473         functionality in ControlCollection. Also try to block multiple
19474         control add in a suspend/resume layout to save some cycles.
19475         
19476 2005-09-27  Jackson Harper  <jackson@ximian.com>
19477
19478         * Control.cs: Add functionality to the controls collection to add
19479         'implicit controls' these are controls that are created by the
19480         containing control but should not be exposed to the user. Such as
19481         scrollbars in the treeview.
19482         * Form.cs: The list var of the ControlsCollection is no longer
19483         available because of the potential of implicit controls getting
19484         ignored by someone accessing the list directly.
19485
19486 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
19487
19488         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
19489           loose it's parent. (Fixed bug introduced in r49103 when we added
19490           setting the child parent to null on Remove)
19491
19492 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
19493
19494         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
19495         * Splitter.cs: Added missing attributes for BorderStyle property.
19496         * TextBoxBase.cs: Marked Calculate* methods internal.
19497         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
19498         MS.NET.
19499
19500 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
19501          
19502         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
19503
19504 2005-09-25  Jackson Harper  <jackson@ximian.com>
19505
19506         * TreeView.cs: Update the node bounds correctly regardless of
19507         whether the node is visible.
19508
19509 2005-09-25  Jackson Harper  <jackson@ximian.com>
19510
19511         * ImageList.cs: Don't dispose the image after it is added to the
19512         image list. Only reformat images that need to be resized.
19513
19514 2005-09-25  Jackson Harper  <jackson@ximian.com>
19515
19516         * ImageList.cs: Don't set the format when changing the image.
19517
19518 2005-09-25  Jackson Harper  <jackson@ximian.com>
19519
19520         * TreeView.cs: We can't just assume the node has a font. Use the
19521         treeviews font if no node font is available.
19522
19523 2005-09-25  Jackson Harper  <jackson@ximian.com>
19524
19525         * TreeView.cs: Allow the scrollbars to be reset with negative
19526         values.
19527         - Don't add scrollbars to negative sized windows.
19528
19529 2005-09-23  Jackson Harper  <jackson@ximian.com>
19530
19531         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
19532         old Mono.Posix. Also remove some stray code that shouldn't have
19533         been committed.
19534
19535 2005-09-23  Jackson Harper  <jackson@ximian.com>
19536
19537         * TreeView.cs: Attempt at proper sizing of the horizontal
19538         scrollbar. Also don't resize the scrollbars unless they are
19539         visible.
19540
19541 2005-09-23  Jackson Harper  <jackson@ximian.com>
19542
19543         * TreeView.cs: We don't need to expand the invalid area when the
19544         selection changes, as this is all drawn in the node's bounding
19545         box. The area needs to be expanded (previous typo was contracting
19546         it) when the focus rect moves.
19547
19548 2005-09-23  Jackson Harper  <jackson@ximian.com>
19549
19550         * TreeView.cs: Display the selection box under the correct
19551         circumstances. We were rendering white text with no selection box
19552         before.
19553
19554 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
19555
19556         * TextControl.cs(Split): Now updates selection start/end if it points 
19557           into a line that's being split. Fixes a FIXME and bug #75258
19558
19559 2005-09-23  Jackson Harper  <jackson@ximian.com>
19560
19561         * Binding.cs:
19562         * ListControl.cs: Don't use the path when retrieving binding
19563         managers from the binding context. My bat sense tells me that the
19564         path is only used on insertion.
19565
19566 2005-09-22  Jackson Harper  <jackson@ximian.com>
19567
19568         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
19569
19570 2005-09-22  Jackson Harper  <jackson@ximian.com>
19571
19572         * Splitter.cs: There are special cursors used for splitting.
19573         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
19574
19575 2005-09-22  Jackson Harper  <jackson@ximian.com>
19576
19577         * Splitter.cs: Change the cursor appropriately when the splitter
19578         is moused over, so the user actually knows there is a splitter
19579         there.
19580
19581 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
19582
19583        * Label.cs : Fix ToString method to give same output as MS.NET
19584
19585 2005-09-22  Jackson Harper  <jackson@ximian.com>
19586
19587         * TreeView.cs: Create the scrollbars when the handle is created
19588         and add them right away, just make them invisble. Also account for
19589         the window being shrunk vertically to the point that the vert
19590         scrollbar needs to be added.
19591         - Remove some 0.5 adjustments to get around anti aliasing issues.
19592         
19593 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
19594          
19595         * MainMenu.cs: Fixes default value
19596         * MenuItem.cs: Fixes default value
19597
19598 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
19599
19600         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
19601
19602 2005-09-21  Jackson Harper  <jackson@ximian.com>
19603
19604         * Control.cs: Don't try to set the border style on the window if
19605         it hasn't been created. When the window is created the border
19606         style will be used.
19607
19608 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
19609
19610         * Control.cs (Update): Don't call XplatUI if we don't have a
19611           window handle yet
19612
19613 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
19614
19615         * ContainerControl.cs: Instead of throwing an exception, print
19616           a one-time warning about Validate not being implemented
19617         * XplatUIWin32.cs: Removed debug output
19618
19619 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
19620
19621         * Control.cs: Only set XplatUI background if we expect the windowing
19622           system to handle the background. This stops controls that draw their
19623           own background from flickering
19624
19625         * XplatUIX11.cs: Support custom visuals and colormaps for window 
19626           creation. This allows, amongst other things, using MWF X11 windows 
19627           with OpenGL.
19628
19629 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
19630
19631         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
19632           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
19633           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
19634           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
19635           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
19636           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
19637           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
19638           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
19639           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
19640           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
19641           GridColumnStylesCollection.cs, 
19642           IDataGridColumnStyleEditingNotificationService.cs,
19643           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
19644           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
19645           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
19646           TreeNodeCollection.cs, AmbientProperties.cs, 
19647           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
19648           DataObject.cs, ErrorProvider.cs, Splitter.cs,
19649           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
19650           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
19651           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
19652           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
19653           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
19654           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
19655           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
19656           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
19657           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
19658           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
19659           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
19660           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
19661           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
19662           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
19663           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
19664           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
19665           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
19666           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
19667           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
19668           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
19669           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
19670           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
19671           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
19672           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
19673           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
19674           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
19675           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
19676           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
19677           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
19678           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
19679           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
19680           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
19681           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
19682           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
19683           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
19684
19685 2005-09-21  Jackson Harper  <jackson@ximian.com>
19686
19687         * TreeNode.cs: Call Before/After Expand not Collapse when
19688         expanding.
19689
19690 2005-09-20  Jackson Harper  <jackson@ximian.com>
19691         
19692         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
19693
19694 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
19695          
19696         * ListViewItem.cs:
19697                 - Fixes bug 76120
19698                 - Fixes proper storing of subitems
19699                 - Fixes not updated items
19700
19701 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
19702
19703         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
19704           things if our window handle isn't created yet. Also disabled 
19705           debug for TextBoxBase
19706
19707 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
19708
19709         * MenuAPI.cs: Remove filtering of events to allow menu usage
19710
19711 2005-09-20  Miguel de Icaza  <miguel@novell.com>
19712
19713         * Cursor.cs: Allow null to be passed to Cursor.Current.
19714
19715 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
19716
19717         * ThemeWin32Classic.cs:
19718           - Change some private methods/fields to protected virtual so that 
19719             they can be accessed and overriden in derived classes
19720           - First refactoring of some methods. Derived themes now don't 
19721             need to duplicate the complete code from ThemeWin32Classic
19722         * ThemeNice.cs:
19723           - Added nice StatusBar
19724           - Derive from ThemeWin32Classic and not Theme
19725           - Removed duplicate ThemeWin32Classic code
19726
19727 2005-09-20  Miguel de Icaza  <miguel@novell.com>
19728
19729         * Control.cs (ControlCollection.Add): If the value null is passed
19730         the control is ignored. 
19731
19732         Optimize this loop.
19733
19734 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
19735
19736         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
19737           PostQuitMessage state.
19738         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
19739
19740 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
19741
19742         * Application.cs: Our constructor will never get called, move 
19743           initialization to fields; fixes bug #75933
19744
19745 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
19746
19747         * FileDialog.cs :
19748                 - Allow files to be selected properly using file name
19749                 combo box.
19750                 - Add ability to change diretory (absolute / relative)
19751                 using file name combo box.
19752
19753 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
19754          
19755         * ListBox.cs: 
19756                 - Fixes Multicolumn listboxes item wrong calculations
19757                 - Allows to click when only one item is in the listbox
19758                 - Fixes crash when no items using keyboard navigation
19759
19760 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
19761
19762         * ComboBox.cs: Reverted almost everything from the latest patch which
19763           broke ComboBox
19764
19765 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
19766         
19767         * ToolTip.cs:
19768                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
19769         * ComboBox.cs:
19770                 - When DropDownStyle is Simple, it does not show scrollbar 
19771                 to the last item of the list.
19772                 - When DropDownStyle is Simple, it crashed when the list was 
19773                 scrolled down with the down cursor key.
19774                 - Fixed a bug that when DropDownStyle is DropDownList, the 
19775                 selected item was not shown.
19776                 - The position of the selected item was not preserved when 
19777                 the next dropdown happened.
19778         * ThemeWin32Classic.cs:
19779                 - Items were wrapped at the right end.
19780         * CheckedListBox.cs:
19781                 - Fixed Add method
19782         * ListBox.cs:
19783                 - Items should be fully shown.
19784                 - When resizing and vertical scrollbar disappeared, the item 
19785                 of index 0 should be on the top of the list.
19786                 - GetItemRectangle should consider the size of ver. scrollbar
19787         * StatusBar.cs:
19788                 - SizingGrip area should not be allocated when it is not 
19789                 displayed.
19790                 - Now it reflects MinWidth of the containing panel and 
19791                 fixed a crash that happens when its width becomes so small.
19792
19793 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
19794
19795         * CheckedListBox.cs: Fixes bug 76028
19796         * ListBox.cs: Fixes bug 76028
19797
19798 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
19799
19800         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
19801         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
19802
19803 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
19804
19805         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
19806
19807 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
19808
19809         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
19810
19811 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
19812
19813         * IRootGridEntry.cs: Added
19814         * PropertyGridCommands.cs: Added
19815         * PropertiesTab.cs: Added missing methods and property
19816         * PropertyGridView.cs: Made class internal
19817         * PropertyGridTextBox.cs: Made class internal
19818
19819 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19820
19821         * MimeIcon.cs: Try to check some other environment variables
19822           if "DESKTOP_SESSION" returns "default"
19823
19824 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19825
19826         * ThemeNice.cs: Corrected background colors (e.g. menus)
19827         * ColorDialog.cs: Use correct background colors for controls
19828
19829 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
19830
19831         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
19832
19833 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
19834
19835         * RichTextBox.cs: Added initial implementation
19836         * lang.cs: Removed. Was accidentally checked in long time ago
19837         * TODO: Removed. Contents were obsolete
19838
19839 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
19840                                                                                 
19841         * PropertiesTab.cs : Added
19842
19843 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
19844                                                                                 
19845         * PropertyGrid.cs : Update
19846         * PropertyGridView.cs : Update
19847         * System.Windows.Forms.resx : Added images and strings
19848
19849 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
19850
19851         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
19852  
19853 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
19854
19855         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
19856           a busy loop right after the Ungrab the X11 display is otherwise 
19857           blocked
19858
19859 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
19860
19861         * ThemeWin32Classic.cs: Optimise the use of clipping
19862
19863 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
19864
19865         * DataGrid.cs: fixes recursion bug
19866
19867 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
19868
19869         * ThemeNice.cs: 
19870           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
19871           - Cleanup
19872
19873 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
19874
19875         * ThemeNice.cs: Draw nice ProgressBars
19876
19877 2005-09-01  Miguel de Icaza  <miguel@novell.com>
19878
19879         * VScrollBar.cs: Another buglet found by Aaron's tool. 
19880
19881         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
19882         bug finder.
19883
19884 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
19885
19886         * ThemeNice.cs:
19887           - Added nicer menu drawing
19888           - Updated DrawTab
19889           - some refactoring
19890
19891 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
19892
19893         * CreateParams.cs (ToString): Made output match MS
19894         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
19895             handle is already created (to avoid forcing window creation)
19896         * XplatUIX11.cs: Set window text to caption after creating window,
19897           in case Text was set before window was created
19898         * Form.cs: Use this.Text instead of a static string as caption
19899
19900 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19901
19902         * NotifyIcon.cs: Don't set the window to visible; this screws
19903           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
19904           OnPaint without a bitmap)
19905         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
19906           happen very often anyway; we could add the check to the WM_PAINT 
19907           event generation code
19908
19909 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
19910
19911         * NotifyIcon.cs: Fill the icon area with a background color, to 
19912           avoid 'residue' when transparent icons are drawn
19913         * XplatUIX11.cs:
19914           - Handle whole_window == client_window when destroying windows
19915           - SystrayAdd(): Set client_window to whole_window value to
19916             get mouse and other events passed to NotifyIcon
19917
19918 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19919
19920         * Form.cs: Set proper default for Opacity property
19921         * NotifyIcon.cs:
19922           - ShowSystray(): Don't bother creating telling the OS
19923             about the systray item if no icon is provided
19924           - Now handles WM_NCPAINT message to deal with whole/client window
19925             split
19926           - Create window as visible to not get caught by Expose optimization
19927         * Hwnd.cs: Removed debug message
19928         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
19929           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
19930             PaintEventStart/End to use new client argument
19931         * TextBoxBase.cs:
19932           - Commented out debug messages
19933           - Switched PaintEventStart/End to use new client argument
19934         * XplatUI.cs: Added client window bool to PaintEventStart()/
19935           PaintEventEnd() calls, to support drawing in non-client areas
19936         * XplatUIDriver.cs: 
19937           - Added client window bool to PaintEventStart()/PaintEventEnd() 
19938             calls, to support drawing in non-client areas
19939           - Added conditional compile to allow using MWF BeginInvoke 
19940             on MS runtime
19941         * XplatUIX11.cs:
19942           - Added some conditional debug output
19943           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
19944             whole/client window split
19945           - Implemented handling of client argument to PaintEventStart()/End()
19946         * Control.cs:
19947           - Throw exception if BeginInvoke() is called and the window handle
19948             or one of the window's parent handles is not created
19949           - Added conditional compile to allow using MWF BeginInvoke on
19950             MS runtime
19951           - get_Parent(): Only sets parent if handle is created. This avoids
19952             forcing window handle creation when parent is set.
19953           - Now fires Layout and Parent changed events in proper order
19954           - Switched to use Handle instead of window.Handle for Z-Order setting,
19955             the get_Parent() patch above causes us to possibly get null for 'window'
19956           - Implemented handling of client argument to PaintEventStart()/End()
19957           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
19958             default handling)
19959           - Now sends a Refresh() to all child windows when Refresh() is called
19960
19961 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
19962
19963         * Form.cs: Added (non-functional) Opacity property
19964         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
19965
19966 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
19967         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
19968           use export MONO_THEME=nice to activate it.
19969           Currently supported controls:
19970           - Button
19971           - ComboBox
19972           - ScrollBar
19973           - TabControl (TabAlignment.Top only, other will follow)
19974         * ThemeEngine.cs: Add theme nice
19975         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
19976           if enabled
19977
19978 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
19979
19980         * Splitter.cs: Resize docked control and its neighbor.
19981
19982 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
19983         -- Making Windows with Menus layout correctly --
19984         * Form.cs : The first leg of the fix
19985                 Menu setter - adjust Client Size as needed to make space for the menu
19986                 SetClientSizeCore - doesn't call base version to be able to pass the 
19987                         menu handle to XplatUI.CalculateWindowRect
19988         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
19989         * XplatUIX11.cs: The critical second leg of the fix
19990                 GetWindowPos needs to use a recalculated client_rect
19991                 so that resizing the window doesn't break layout of child controls. 
19992                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
19993                 Lots of \t\n killed
19994
19995 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19996
19997         * Label.cs: Now properly recalculates width and height on Font and Text
19998           changes if AutoSize is set
19999
20000 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
20001         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
20002
20003 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
20004
20005         * ImageList.cs: Makes ToString method compatible with MS
20006
20007 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
20008
20009         * MenuAPI.cs: fixes bug 75716
20010
20011 2005-08-11 Umadevi S <sumadevi@novell.com>
20012         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
20013
20014 2005-08-11 Umadevi S <sumadevi@novell.com>
20015         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
20016
20017 2005-08-10  Umadevi S <sumadevi@novell.com>
20018         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
20019
20020 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
20021
20022         * Menu.cs: fixes bug 75700
20023         * MenuAPI.cs: fixes navigation issues
20024
20025 2005-08-09  Umadevi S <sumadevi@novell.com>
20026         * CheckedListBox.cs - simple fix for GetItemChecked.
20027
20028 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
20029
20030         * ComboBox.cs: Serveral fixes
20031         * ListBox.cs: Serveral fixes
20032
20033 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
20034
20035         * ComboBox.cs: Fixes FindString methods and GetItemHeight
20036         * ListBox.cs: Fixes FindString methods
20037
20038 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
20039
20040         * DataGrid.cs: fixes bugs exposed by new tests
20041
20042 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
20043
20044         * Mime.cs: Compile Mono assembly references only if compiling
20045           with Mono (Allows to build with VS.Net again)
20046
20047 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
20048
20049         * Control.cs (PaintControlBackground): Draw background image
20050         corrrectly.
20051         (CheckForIllegalCrossThreadCalls): Stubbed.
20052         
20053         * Form.cs (OnCreateControl): Center when should be centered.
20054         
20055         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
20056
20057 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
20058
20059         * Binding.cs: Binding to properties should be case unsensitive
20060
20061 2005-07-18 vlindos@nucleusys.com
20062
20063         * DataGrid.cs: fixes setmember order
20064
20065 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
20066
20067         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
20068         * FileDialog.cs: FileDialog is now resizable and uses the new
20069           MimeIconEngine
20070
20071 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
20072
20073         * DataGridTextBoxColumn.cs: default value
20074         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
20075         * GridTableStylesCollection.cs: fixes checking MappingName
20076         * DataGridDrawingLogic.cs: fixes drawing logic issues
20077         * DataSourceHelper.cs: rewritten to make compatible with more data sources
20078         * DataGrid.cs: fixes    
20079
20080 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
20081
20082         * MimeGenerated.cs: Use case sensitive comparer for
20083           NameValueCollections
20084
20085 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
20086
20087         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
20088         * ThemeWin32Classic.cs: bug fixes, code refactoring
20089         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
20090         * DataGrid.cs: bug fixes, code refactoring
20091         * DataGridTextBox.cs: bug fixes, code refactoring
20092         * DataGridColumnStyle.cs:  bug fixes, code refactoring
20093         * Theme.cs:  bug fixes, code refactoring
20094
20095 2005-07-01  Peter Bartok  <pbartok@novell.com> 
20096
20097         * TextControl.cs: Quick fix for the reported crash on ColorDialog
20098           and other text box usage
20099
20100 2005-07-01  Jackson Harper  <jackson@ximian.com>
20101
20102         * TabControl.cs: Make sure the bottom of the tab covers the pages
20103         border.
20104
20105 2005-06-30  Peter Bartok  <pbartok@novell.com> 
20106
20107         * Form.cs (ShowDialog): Assign owner of the dialog
20108         * TextBoxBase.cs: Always refresh caret size when deleting, caret
20109           might have been moved to a tag with different height
20110
20111 2005-06-30  Jackson Harper  <jackson@ximian.com>
20112
20113         * Form.cs: Don't create an infinite loop when setting focus
20114         * MenuItem.cs: Don't dirty the parents if we don't have any
20115
20116 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
20117
20118         * LibSupport.cs: Rename
20119
20120 2005-06-29  Peter Bartok  <pbartok@novell.com>
20121
20122         * TextBoxBase.cs: Re-align caret after deleting a character
20123         * TextControl.cs:
20124           - DeleteChars(): Ensure that tag covers the provided position
20125           - StreamLine(): Drop reference for dropped tag
20126
20127 2005-06-29  Peter Bartok  <pbartok@novell.com> 
20128
20129         * TextControl.cs: 
20130           - Selections now work properly, anchoring at the initial location
20131             and properly extending in either direction (SetSelectionToCaret(),
20132             SetSelectionStart() and SetSelectionEnd())
20133           - No longer redraws the whole control on selection change, now
20134             calculates delta between previous and new selection and only
20135             invalidates/redraws that area
20136           - Fixed FindPos() math off-by-one errors
20137           - Changed DeleteChars() to verify the provided tag covers the
20138             provided position, selections may have a tag that doesn't cover
20139             the position if the selection is at a tag border
20140           - Fixed off-by-one errors in DeleteChars()
20141           - Added missing streamlining check in DeleteChars() to remove
20142             zero-length tags
20143           - Implemented Invalidate() method, now properly calculates exposures
20144             between two given lines/positions
20145           - Implemented SetSelection()
20146           - Obsoleted and removed FixupSelection()
20147           - Improved RecalculateDocument() logic, removing code duplication
20148
20149 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20150
20151         * LibSupport.cs: changes to match different input/output arguments.
20152
20153 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20154
20155         * LibSupport.cs: added libsupport.so init routine.
20156
20157 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
20158         
20159         * ControlBindingsCollection.cs
20160                 - Throws an exception on null datasource when adding
20161                 - Checks for duplicated bindings when adding
20162
20163 2005-06-28  Jackson Harper  <jackson@ximian.com>
20164
20165         * TreeView.cs (OnKeyDown): Support left and right properly
20166         (navigates as well as expanding and collapsing.
20167         - Add support for Multiply, this expands all the selected nodes
20168         children.
20169         - Fix some tabbing.
20170
20171 2005-06-28  Jackson Harper  <jackson@ximian.com>
20172
20173         * TreeView.cs: Implement keyboard navigation, currently supports,
20174         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
20175         support for toggling checkboxes with the space bar.
20176
20177 2005-06-28  Jackson Harper  <jackson@ximian.com>
20178
20179         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
20180         tree.
20181
20182 2005-06-28  Jackson Harper  <jackson@ximian.com>
20183
20184         * TreeView.cs: Add missing event.
20185
20186 2005-06-27  Peter Bartok  <pbartok@novell.com> 
20187
20188         * TextControl.cs:
20189           - Made line ending size configurable (now allows for counting 
20190             lineendings as \n or \r\n)
20191           - Added margin to viewport to keep caret visible on right side
20192           - Fixed translation routines for line/pos to documentpos to consider
20193             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
20194           - Fixed some line-endings to be unix style
20195           - Fixed Document.FormatText to perform it's calculations 1-based
20196           - Added descriptions for a few methods that might otherwise get 
20197             used wrong
20198           - Added NOTE section with some basic conventions to remember at 
20199             the top of the file
20200           - Major fixup for RichTextBox selection drawing:
20201             * Fixed crashes when multiple tags on a single line were selected
20202             * fixed selection box drawing not overlaying text
20203             * fixed bogus offset calculation for tags not starting at index 1
20204             * Switched behaviour from using multiple Substrings of a 
20205               StringBuilder.ToString() to using multiple 
20206               StringBuilder.ToString(start, length) statements, hoping this is
20207               faster (kept original version commented out in the code, in case
20208               original version was faster)
20209         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
20210           alignment != Left
20211         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
20212           call it as well
20213
20214 2005-06-27  Jackson Harper  <jackson@ximian.com>
20215
20216         * TabControl.cs: Move to the left and right with the arrow
20217         keys. These keys don't cycle beyond first and last like
20218         tab. Refresh all the tabs when scrolling them to the left or
20219         right.
20220
20221 2005-06-27  Jackson Harper  <jackson@ximian.com>
20222
20223         * TabControl.cs:
20224           - ToString: Added method
20225           - CreateParams: Remove TODO and comment
20226           - OnKeyDown: Cycle through bounds properly.
20227           - SelectedIndex: Scroll to the right or left if we need to
20228           display the newly selected tab.
20229
20230 2005-06-23  Jackson Harper  <jackson@ximian.com>
20231
20232         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
20233         set.
20234
20235 2005-06-23  Jackson Harper  <jackson@ximian.com>
20236
20237         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
20238         CTRL-SHIFT-TAB, and HOME, END are there any others?
20239
20240 2005-06-23  Jackson Harper  <jackson@ximian.com>
20241
20242         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
20243
20244 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
20245         
20246         * DataGridTextBoxColumn.cs: fixes and enhancements
20247         * ThemeWin32Classic.cs: fixes and enhancements
20248         * DataGridBoolColumn.cs:  fixes and enhancements
20249         * DataGridDrawingLogic.cs:  fixes and enhancements
20250         * CurrencyManager.cs: fixes and enhancements
20251         * DataGrid.cs: fixes and enhancements
20252         * DataGridColumnStyle.cs:  fixes and enhancements
20253
20254 2005-06-22  Jackson Harper  <jackson@ximian.com>
20255
20256         * TabControl.cs: Add some missing methods that just call into the
20257         base. Make the TabPageCollection's IList interface behave in the
20258         same manner as the MS implementation.
20259
20260 2005-06-22  Peter Bartok  <pbartok@novell.com> 
20261
20262         * TextControl.cs: Added sanity check
20263         * TextBoxBase.cs: 
20264           - Fixed wrapping behaviour, don't set wrap on single line controls
20265             (this fixes the breakage of colordialog introduced in an earlier
20266              checkin)
20267           - Added rudimentary support for autoscrolling right-aligned controls
20268             (still needs fixing, also, center alignment scroll is missing)
20269
20270 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
20271         
20272         * ScrollBar.cs: Fixes thumbpos on Maximum values
20273
20274 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
20275         
20276         * PropertyGridView.cs: Pass context information to UITypeEditors 
20277
20278 2005-06-21  Peter Bartok  <pbartok@novell.com> 
20279
20280         * TextBoxBase.cs:
20281           - Now calling PositionCaret with absolute space coordinates
20282           - Enabled vertical scrolling
20283           - Better tracking of scrollbar changes, tied into WidthChange
20284             event
20285           - Improved cursor tracking
20286           - Removed debug output
20287         * TextControl.cs:
20288           - PositionCaret coordinates are now works in absolute space, not 
20289             the canvas
20290           - Improved tracking of document size
20291           - Added events for width and height changes
20292
20293 2005-06-21  Peter Bartok  <pbartok@novell.com>
20294
20295         * Form.cs: Set focus to active control when form is activated
20296         * TextControl.cs: 
20297           - Added word-wrap functionality to RecalculateLine() 
20298           - Added some short function descriptions for VS.Net to aid in
20299             writing dependent controls
20300           - Added Caret property, returning the current coords of the caret
20301           - Added ViewPortWidth and ViewPortHeight properties
20302           - Added Wrap property
20303           - Added CaretMoved event
20304           - Removed some old debug code
20305           - Split() can now create soft splits
20306           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
20307           - Added method to format existing text
20308           - Fixed size/alignment calculations to use viewport
20309           - RecalculateDocument now can handle changing line-numbers while
20310             calculating lines
20311
20312         * TextBox.cs:
20313           - Added some wrap logic, we don't wrap if alignment is not left
20314           - Added casts for scrollbar var, base class switched types to
20315             also support RichTextBoxA
20316           - Implemented handling of scrollbar visibility flags
20317
20318         * TextBoxBase.cs:
20319           - Switched scrollbars type to RichTextBoxScrollBars to support
20320             RichTextBox
20321           - Added tracking of canvas width/height
20322           - Switched scrollbars to be not selectable (to keep focus on text)
20323           - Added central CalculateDocument() method to handle all redraw
20324             requirements
20325           - Added ReadOnly support
20326           - Added WordWrap support
20327           - Fixed handling of Enter key (we now treat it as a DialogKey)
20328           - Fixed caret positioning when h or v scroll is not zero
20329           - Fixed placing/generation of vertical scrollbar
20330           - Added CalculateScrollBars() method to allow updating scrollbar
20331             limits and visibility
20332           - Fixed handling of horizontal scroll
20333           - Added handling of vertical scroll
20334           - Implemented auto-'jump' when caret moves to close to a left or
20335             right border and there is text to be scrolled into view (currently
20336             there's the potential for a stack overflow, until a bug in
20337             scrollbar is fixed)
20338
20339 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
20340         
20341         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
20342
20343 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
20344
20345         * Mime.cs:
20346         - added inodes.
20347         - return application/x-zerosize for files with size zero
20348           (if no extension pattern matches).
20349         - check matches collection for strings too.
20350         - return only the first mime type if the name value
20351           collection has more than one mime type.
20352
20353 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
20354         
20355         * PropertyGrid.cs: Cleaned up some TODOs
20356         * PropertyGridView.cs: Added support for UITypeEditors
20357
20358 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
20359         
20360         * DataGrid.cs: clears cached value
20361
20362 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
20363
20364         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
20365         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
20366         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
20367         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
20368         
20369 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
20370
20371         * ThemeWin32Classic.cs: fixes colour
20372
20373 2005-06-15  Peter Bartok  <pbartok@novell.com>
20374
20375         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
20376         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
20377         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
20378         * Control.cs: Added some MWFCategory and MWFDescription attributes
20379         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
20380
20381 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
20382
20383         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
20384         usage
20385
20386 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
20387
20388         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
20389         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
20390         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
20391         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
20392         * DataGrid.cs: default datagrid settings for Default Styles, fixes
20393         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
20394
20395 2005-06-13  Jackson Harper  <jackson@ximian.com>
20396
20397         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
20398         isn't printed when the user enables dropping. (X11 does accept
20399         drops).
20400         
20401 2005-06-13  Jackson Harper  <jackson@ximian.com>
20402
20403         * TreeView.cs: Remove some TODOS.
20404
20405 2005-06-13  Jackson Harper  <jackson@ximian.com>
20406
20407         * Form.cs: Hook into the mdi framework.
20408         * MdiClient.cs: Use the base control collections add method so
20409         parents get setup correctly. Set the default back colour and dock
20410         style.
20411         * MdiChildContext.cs: New class, this bad actor handles an
20412         instance of an MDI window. Right now there is only basic
20413         support. You can drag, close, and resize windows. Minimize and
20414         Maximize are partially implemented.
20415
20416 2005-06-13  Jackson Harper  <jackson@ximian.com>
20417
20418         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
20419         freaky when both vals are negative. NOTE: There are probably other
20420         places in XplatUIX11 that this needs to be done.
20421
20422 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
20423
20424         * DataGrid.cs: implement missing methods, move KeyboardNavigation
20425         * DataGridColumnStyle.cs: fixes signature
20426
20427 2005-06-12  Jackson Harper  <jackson@ximian.com>
20428
20429         * XplatUIX11.cs: Use sizing cursors similar to the ones on
20430         windows.
20431
20432 2005-06-11  Jackson Harper  <jackson@ximian.com>
20433
20434         * StatusBarPanel.cs: Signature cleanups. Implement
20435         BeginInit/EndInit.
20436
20437 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
20438
20439         * DataGridTextBoxColumn.cs: Honors aligment
20440         * GridColumnStylesCollection.cs: Contains is case unsensitive
20441         * GridTableStylesCollection.cs: several fixes
20442         * DataGridTableStyle.cs: default column creation
20443         * DataGridDrawingLogic.cs: fixes
20444         * CurrencyManager.cs: ListName property
20445         * DataGrid.cs: multiple styles support
20446         * DataGridColumnStyle.cs: fixes
20447         
20448
20449 2005-06-10  Peter Bartok  <pbartok@novell.com>
20450
20451         * Control.cs(Select): Moved SetFocus call to avoid potential
20452           loops if controls change the active control when getting focus
20453         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
20454           the up/down buttons
20455
20456 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
20457
20458         * ImageListConverter.cs: Implemented
20459
20460 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
20461
20462         * MonthCalendar.cs: Wired in NumericUpDown control for year
20463
20464 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
20465
20466         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
20467           DoubleClick events, since they are not meant to be fired.
20468
20469 2005-06-09  Peter Bartok  <pbartok@novell.com>
20470
20471         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
20472           Jonathan's standalone controls into MWF, implemented missing
20473           events, attributes and methods; added xxxAccessible classes
20474         * AccessibleObject.cs: Made fields internal so other classes
20475           can change them if needed
20476
20477 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
20478
20479         * UpDownBase.cs: Complete implementation
20480         * NumericUpDown.cs: Complete implementation
20481         * DomainUpDown.cs: Complete implementation
20482
20483 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
20484
20485         * DataGridTextBoxColumn.cs: drawing fixes
20486         * DataGridCell.cs: fixes ToString method to match MSNet
20487         * DataGridTableStyle.cs: fixes
20488         * DataGridBoolColumn.cs: fixes, drawing
20489         * DataGridDrawingLogic.cs: fixes, new methods
20490         * DataGridTextBox.cs: Keyboard and fixes
20491         * DataGrid.cs:
20492                 - Keyboard navigation
20493                 - Scrolling fixes
20494                 - Row selection (single, multiple, deletion, etc)
20495                 - Lots of fixes
20496         
20497 2005-06-07  Jackson Harper  <jackson@ximian.com>
20498
20499         * ThemeWin32Classic.cs: Clear the background area when drawing
20500         buttons.
20501
20502 2005-06-06  Peter Bartok  <pbartok@novell.com>
20503
20504         * ImageListStreamer.cs: Fixed signature for GetData
20505         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
20506         * ComboBox.cs:
20507           - Added missing ChildAccessibleObject class
20508           - Added missing OnXXXFocus overrides, switched to using those
20509             instead of the event handler
20510         * Control.cs:
20511           - Added Parent property for ControlAccessibleObject
20512           - Fixed signatures
20513           - Fixed attributes
20514           - Added ResetBindings()
20515         * ListBindingConverter.cs: Implemented some methods
20516         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
20517         * ImageList.cs: Implemented basic handle scheme, removed TODOs
20518         * ContainerControl.cs: Fixed signature, now subscribing to the
20519           ControlRemoved event instead of overriding the handler, LAMESPEC
20520         * CurrencyManager.cs: Added missing attribute
20521         * MonthCalendar.cs: Added missing properties
20522
20523 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
20524
20525         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
20526         
20527 2005-06-06  Gaurav Vaish and Ankit Jain
20528
20529         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
20530         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
20531         
20532 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
20533
20534         * Control.cs: fixes CreateParams Width / Height.
20535
20536 2005-06-05  Peter Bartok  <pbartok@novell.com>
20537
20538         * Win32DnD.cs: Removed compilation warnings
20539
20540 2005-06-05  Peter Bartok  <pbartok@novell.com>
20541
20542         * Control.cs (CreateParams): Since we don't know if one of the
20543           properties we use is overridden, lets make sure if we fail accessing
20544           we continue with a backup plan
20545
20546 2005-06-05  Peter Bartok  <pbartok@novell.com>
20547
20548         * Win32DnD.cs:
20549           - Removed debug output
20550           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
20551             struct
20552           - Plugged resource leak
20553         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
20554           MS size
20555
20556 2005-06-05  Peter Bartok  <pbartok@novell.com>
20557
20558         * XplatUIWin32.cs: Removed DnD code
20559         * Win32DnD.cs: Implemented drop source and drop target functionality
20560
20561 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20562
20563         * UpDownBase.cs: remove duplicate addition of event, enable some code
20564         that was commented out.
20565         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
20566         Validate input when a key is pressed. It works fine now for every
20567         combination of Hexadecimal. Only missing some drawing love when sharing
20568         space with other controls.
20569
20570 2005-06-04  Peter Bartok  <pbartok@novell.com>
20571
20572         * Control.cs:
20573           - We need to pass a window for DragDrop, so enable callback events
20574           - Added DnD callback events when being a DragSource
20575         * XplatUI.cs (StartDrag): Added window handle argument
20576         * XplatUIDriver.cs (StartDrag): Added window handle argument
20577         * QueryContinueDragEventArgs: Made fields internally accessible so
20578           drivers can set them
20579         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
20580           can set them
20581
20582 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
20583
20584         * DataGridTextBoxColumn.cs: column text editing
20585         * DataGridTableStyle.cs: Respect columns styles created by the user
20586         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
20587         * DataGridBoolColumn.cs: bool column editing
20588         * DataGrid.cs: fixes to scrolling, properties, etc
20589         * DataGridTextBox.cs: handle keyboard
20590         * DataGridColumnStyle.cs: fixes
20591
20592 2005-06-02  Jackson Harper  <jackson@ximian.com>
20593
20594         * ImageListStreamer.cs: Somewhat broken implementation of
20595         GetObjectData. The RLE needs some work to match MS properly.
20596
20597 2005-06-02  Jackson Harper  <jackson@ximian.com>
20598
20599         * X11Dnd.cs: Attempting to keep at least one file in MWF
20600         monostyled.
20601
20602 2005-06-02  Peter Bartok  <pbartok@novell.com>
20603
20604         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
20605           that way
20606
20607 2005-06-02  Peter Bartok  <pbartok@novell.com>
20608
20609         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
20610         * XplatUI.cs: Added DoDragDrop() method
20611         * XplatUIDriver.cs: Added DoDragDrop() method
20612
20613 2005-06-02  Jackson Harper  <jackson@ximian.com>
20614
20615         * Splitter.cs: Implement BorderStyle.
20616
20617 2005-06-02  Jackson Harper  <jackson@ximian.com>
20618
20619         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
20620         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
20621         X11 using XDND.
20622
20623 2005-06-02  Peter Bartok  <pbartok@novell.com>
20624
20625         * DataObject.cs:
20626           - Added Data setter
20627           - Fixed broken insertion code for SetData, now also
20628             overwrites any existing entry of the same format name
20629         * Hwnd.cs: Added list of pointers that automatically gets
20630           freed when the window is disposed
20631         * XplatUI.cs: Call driver initialization method when loading
20632           a driver
20633         * Control.cs:
20634           - OnDragLeave takes EventArgs, not DragEventArgs
20635           - Added setting of WS_EX_ACCEPTFILES style when dropping is
20636             supported
20637           - Forces style update when drop state changes
20638         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
20639           not perfect since we cannot (yet) call the IDataObject.GetData()
20640           method, we keep getting 0x80004005 error, dunno why)
20641
20642 2005-06-02  Peter Bartok  <pbartok@novell.com>
20643
20644         * DragEventArgs.cs: Make fields internal so we can cache the
20645           object and re-set the fields from XplatUI
20646
20647 2005-06-02  Jackson Harper  <jackson@ximian.com>
20648
20649         * Control.cs: Add some internal methods so the DnD subsystem can
20650         raise DnD events. Also call into the driver when AllowDrop is set.
20651         * XplatUI.cs:
20652         * XplatUIDriver.cs: New method for setting whether or not a window
20653         is allowed to accept drag and drop messages.
20654                 
20655 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
20656         
20657         * ScrollBar.cs: Make sure that values sent in Scroll events
20658         are always between Maximum and Minimum.
20659
20660 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
20661
20662         * Menu.cs: Call MenuChanged when menuitem visibility has been
20663         changed.
20664         * MenuItem.cs: Rebuild menu when item is (not) visible.
20665         * MainMenu.cs: MainMenu has special MenuChanged.
20666         * Theme.cs: Caption and FrameBorderSize are not fixed.
20667         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
20668         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
20669         * XplatUIX11.cs,
20670         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
20671         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
20672
20673 2005-05-30  Jackson Harper  <jackson@ximian.com>
20674
20675         * DataFormat.cs: We can't statically initialize this stuff because
20676         it calls into the xplatui and could create a loop. So we lazy init
20677         it.
20678
20679 2005-05-28  Jackson Harper  <jackson@ximian.com>
20680
20681         * Control.cs: Proper implementation of Product(Name/Version).
20682
20683 2005-05-27  Jackson Harper  <jackson@ximian.com>
20684
20685         * DataObject.cs: Dont crash if no data is found.
20686
20687 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
20688         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
20689                 as per status page, guessing it should be set to true
20690
20691 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
20692
20693         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
20694         * DataGridTableStyle.cs: set proper formatting text, def header text
20695         * ThemeWin32Classic.cs: new themable paramaters
20696         * DataGridBoolColumn.cs: paint check box, get data, fixes
20697         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
20698         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
20699         * DataGridColumnStyle.cs: fixes
20700         * Theme.cs: new themable paramaters
20701                 
20702 2005-05-26  Peter Bartok  <pbartok@novell.com>
20703
20704         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
20705
20706 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20707         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
20708
20709 2005-05-24  Peter Bartok  <pbartok@novell.com>
20710
20711         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
20712           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
20713           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
20714           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
20715           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
20716           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
20717           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
20718           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
20719           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
20720           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
20721           missing attributes, etc
20722         * DataGridPreferredColumnWidthTypeConverter.cs: Added
20723
20724 2005-05-24  Peter Bartok  <pbartok@novell.com>
20725
20726         * Help.cs: Added, implemented trivial functions, throws up MessageBox
20727           when user tries to get help
20728         * DataObject.cs, DataFormats.cs, LinkArea.cs,
20729           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
20730           to suppress warnings
20731         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
20732           avoid unreachable code warning
20733
20734 2005-05-20  Peter Bartok  <pbartok@novell.com>
20735
20736         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
20737
20738 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20739
20740         * DataGridTextBoxColumn.cs: Basic painting methods
20741         * DataGridTableStyle.cs: Set table style in the column
20742         * ThemeWin32Classic.cs: Use Theme for colors
20743         * DataGridDrawingLogic.cs: Implement more drawing
20744         * DataGrid.cs: drawing, theming, enhacements, fixes
20745         * DataGridColumnStyle.cs: fixes, drawing
20746         * Theme.cs: theming for Datagrid
20747
20748 2005-05-20  Peter Bartok  <pbartok@novell.com>
20749
20750         * Cursor.cs: Implemented GetObjectData() method
20751
20752 2005-05-20  Peter Bartok  <pbartok@novell.com>
20753
20754         * Cursors.cs: Added setting of cursor name
20755         * Cursor.cs:
20756           - Implemented constructors
20757           - Implemented Draw and DrawStretched
20758           - Implemented Current property
20759           - Implemented == and != operators
20760           - Implemented Dispose()
20761           - Implemented ToString
20762           - Added missing attributes
20763         * XplatUIX11.cs:
20764           - Added missing reset for OverrideCursor when DoEvents is called
20765           - Fixed creation of cursor, logic was wrong
20766         * XplatUIWin32.cs:
20767           - Added missing reset for OverrideCursor when DoEvents is called
20768           - Fixed creation of cursor, bit arrays were swapped
20769         * Clipboard.cs: Removed obsolete MonoTODO attribute
20770
20771 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20772
20773         * ComboBox.cs: fixes OnSelectedItemChanged
20774         * ControlBindingsCollection.cs: fixes item range check
20775
20776 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
20777
20778         * UpDownBase.cs:
20779                 - Calc preferred height properly
20780                 - Implement missing properties
20781                 
20782         * NumericUpDown.cs: Implement missing events
20783
20784 2005-05-19  Jackson Harper  <jackson@ximian.com>
20785
20786         * TabControl.cs: New method that resizes the tab pages before
20787         redrawing them. This as needed as the control is double buffered
20788         and sizing will not be recalculated unless ResizeTabPages is
20789         called.
20790         * TabPage.cs: Set base.Text instead of Text in the constructor so
20791         that UpdateOwner does not get called. Use the new Redraw method of
20792         TabControl instead of Refresh so the sizing is recalculated.
20793         * ThemeWin32Classic.cs: Draw the text for button tabs.
20794
20795 2005-05-19  Jackson Harper  <jackson@ximian.com>
20796
20797         * Control.cs: Paint control background images. Fix typo where
20798         PaintControlBackground was not getting called correctly.
20799
20800 2005-05-19  Peter Bartok  <pbartok@novell.com>
20801
20802         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
20803           I can investigate, apparently I broke FileDialog
20804
20805 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
20806
20807         * AxHost.cs: Some simple properties.
20808         * Control.cs: window must be accessible after ctor.
20809         * Form.cs: Added TransparencyKey property.
20810         * TextBoxBase.cs: Implemented Clear. Text property can be null.
20811         * XplatUIWin32.cs: SetBorderStyle implemented.
20812
20813 2005-05-18  Peter Bartok  <pbartok@novell.com>
20814
20815         * DataObject.cs: Entries are not global but particular to the
20816           DataObject, now it behaves that way
20817         * XplatUIWin32.cs: Implemented Clipboard methods
20818         * Clipboard.cs: Implemented
20819         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
20820         * XplatUIOSX.cs: Updated to final clipboard prototypes
20821         * XplatUIX11.cs: Implemented Clipboard methods
20822         * XplatUIDriver.cs: Updated to final clipboard prototypes
20823         * XplatUIStructs.cs:
20824           - Added BITMAPINFOHEADER struct
20825           - Added ClipboardFormats enum
20826         * X11Structs.cs:
20827           - Added ClipboardStruct
20828           - Added Atom enum items for clipboard types
20829           - Fixed atom types for Selection event structures
20830         * DataFormats.cs:
20831           - Added internal properties and methods for drivers to enumerate
20832             all known formats
20833           - Switched initialization method to allow drivers to assign their
20834             own IDs even for the MS predefined clipboard IDs
20835         * XplatUI.cs: Updated to final clipboard interface
20836
20837 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20838         * PropertyGridView.cs: Fixed compiler warnings.
20839
20840 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
20841         * PropertyGrid.cs: Added some event calls
20842         * PropertyGridView.cs: Change drawing code to use double buffering
20843         * PropertyGridTextBox.cs: Changed Text property name
20844         * GridItem.cs: Added Bounds property.
20845         * GridEntry.cs: Added Bounds property.
20846
20847 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
20848
20849         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
20850         since GetType() may not return the correct type if the object is
20851         a remoting proxy.
20852
20853 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
20854
20855         * TreeNodeCollection.cs: fixes get/set item ranges
20856         
20857 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
20858
20859         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
20860                 
20861 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
20862
20863         * ComboBox.cs: Fix item range comparation
20864         * ListView.cs: Fix item range comparation
20865
20866 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
20867
20868         * FontDialog.cs:
20869           - Clear example panel when OnPaint is called
20870           - Better solution for displaying the example panel text
20871           - Select default indexes in the ListBoxes
20872
20873 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
20874
20875         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
20876
20877 2005-05-11  Peter Bartok  <pbartok@novell.com>
20878
20879         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
20880         * SelectionRangeConverter.cs: Implemented
20881         * PropertyGrid.cs: Fixed attribute value
20882         * Control.cs:
20883           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
20884           - Added Sebastien Pouliot's CAS Stack Propagation fixes
20885         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
20886           that's common to all drivers. First methods to go there are
20887           Sebastien Pouliot's CAS Stack Propagation helper methods
20888         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
20889           Sebastien Pouliot for CAS Stack Propagation
20890
20891 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
20892
20893         * OSXStructs.cs:
20894           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
20895
20896 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
20897
20898         * DataGridTextBoxColumn.cs: fixed some members
20899         * GridColumnStylesCollection.cs: indexed column is case insensitive
20900         * DataGridTableStyle.cs: fixes
20901         * ThemeWin32Classic.cs: add new theme parameter
20902         * Theme.cs: add new theme parameter
20903         * DataGridDrawingLogic.cs: Datagrid's drawing logic
20904         * DataGrid.cs: fixes, new internal properties, etc.
20905         * DataGridColumnStyle.cs: allows to set grid value
20906         *
20907
20908 2005-05-10  Peter Bartok  <pbartok@novell.com>
20909
20910         * AccessibleObject.cs:
20911           - Removed MonoTODO attribute on help, method is correct
20912           - Fixed Bounds property
20913         * AxHost.cs: Moved MonoTODO
20914         * ButtonBase.cs: Now setting AccessibleObject properties
20915         * RadioButton.cs: Setting proper AccessibleObject role
20916         * CheckBox.cs: Setting proper AccessibleObject role
20917         * ControlBindingsCollection.cs: Added properties, methods and attributes
20918         * DataFormats.cs: Fixed awkward internal API, and changed to enable
20919           userdefined DataFormats.Format items as well
20920         * ListControl.cs: Removed data_member from the public eye
20921         * OpenFileDialog.cs:
20922           - Made class sealed
20923           - Added missing attributes
20924         * SaveFileDialog.cs: Added missing attributes
20925         * ImageListStreamer.cs: Fixed code that caused warnings
20926         * LinkLabel.cs: Removed unreachable code
20927         * TreeView.cs: Fixed code that caused warnings
20928         * PropertyGridView.cs: Fixed code that caused warnings
20929         * GridColumnStylesCollection.cs: Added missing attributes
20930         * GridTableStylesCollection: Added missing attribute
20931         * PropertyManager: Added .ctor
20932         * SecurityIDType: Added
20933         * DataObject.cs: Implemented class
20934         * LinkArea.cs: Added missing attribute
20935
20936 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
20937
20938         * RadioButton.cs: call base method to allow to fire OnClick event
20939         * UpDownBase.cs: OnMouseUp call base method
20940         * CheckedListBox.cs: call base method before returning
20941         * TrackBar.cs: call base method before returning
20942         
20943
20944 2005-05-10  Peter Bartok  <pbartok@novell.com>
20945
20946         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
20947           for messages
20948
20949 2005-05-10  Peter Bartok  <pbartok@novell.com>
20950
20951         * DataFormats.cs: Implemented
20952         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
20953           XplatUIX11.cs: Added Clipboard APIs
20954         * XplatUIWin32.cs: Implemented Clipboard APIs
20955         * FolderBrowserDialog.cs: Added missing event, attributes
20956
20957 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
20958
20959         * CheckBox.cs: call base method to allow to fire OnClick event
20960
20961 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
20962
20963         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
20964
20965 2005-05-06  Peter Bartok  <pbartok@novell.com>
20966
20967         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
20968         * Screen.cs: Implemented
20969         * HelpNavigator.cs: Added
20970         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
20971           property
20972         * HelpProvider.cs: Implemented all we can do until we have a CHM
20973           help library (which means that "What's This" does work now)
20974
20975 2005-05-06  Jackson Harper  <jackson@ximian.com>
20976
20977         * XplatUIX11.cs: Fix waking up the main loop.
20978                 
20979 2005-05-05  Peter Bartok  <pbartok@novell.com>
20980
20981         * XplatUI.cs: Updated revision
20982         * Form.cs: Removed enless loop
20983         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
20984         * Label.cs (OnPaint): Added call to base.OnPaint()
20985         * ToolTip.cs: Made ToolTipWindow reusable for other controls
20986         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
20987         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
20988         * AxHost.cs: Added
20989         * ButtonBase.cs: Moved base.OnPaint() call to end of method
20990         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
20991           to ToolTip.ToolTipWindow for drawing and size methods; this allows
20992           reuse of ToolTipWindow by other controls
20993         * SizeGrip.cs: Moved base.OnPaint() call to end of method
20994         * XplatUIX11.cs: Now clipping drawing area (experimental)
20995         * PictureBox.cs: Moved base.OnPaint() call to end of method
20996         * Theme.cs: Fixed ToolTip abstracts to match new format
20997         * ErrorProvider.cs: Implemented
20998
20999 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
21000
21001         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
21002         * LinkLabel.cs:
21003                 - Adds cursors
21004                 - Handles focus
21005                 - Implements LinkBehavior
21006                 - Fixes many issues
21007
21008 2005-05-03  Jackson Harper  <jackson@ximian.com>
21009
21010         * ListView.cs: Calculate the scrollbar positioning on resize and
21011         paint, so they get put in the correct place.
21012
21013 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
21014
21015         * ColorDialogs.cs: The small color panels are now handled by
21016           SmallColorControl. This fixes drawing of the focus rectangle
21017           and adds a 3D border.
21018
21019 2005-05-03  Peter Bartok  <pbartok@novell.com>
21020
21021         * Control.cs: Modified version of Jonathan Chamber's fix for
21022           double-buffering
21023
21024 2005-05-03  Jackson Harper  <jackson@ximian.com>
21025
21026         * ListView.cs: Remove redraw variable. Control now handles whether
21027         or not a redraw needs to be done, and will only raise the paint
21028         event if redrawing is needed.
21029
21030 2005-05-03  Jackson Harper  <jackson@ximian.com>
21031
21032         * Splitter.cs: No decorations for the splitter form. Cache the
21033         hatch brush.
21034
21035 2005-05-03  Jackson Harper  <jackson@ximian.com>
21036
21037         * TreeView.cs: Use dashed lines to connect nodes. Use the
21038         ControlPaint method for drawing the focus rect instead of doing
21039         that in treeview.
21040
21041 2005-05-02  Peter Bartok  <pbartok@novell.com>
21042
21043         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
21044
21045 2005-04-29  Jackson Harper  <jackson@ximian.com>
21046
21047         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
21048         entire image buffer. Just clear the clipping rectangle.
21049
21050 2005-04-29  Jackson Harper  <jackson@ximian.com>
21051
21052         * ThemeWin32Classic.cs: Don't draw list view items that are
21053         outside the clipping rectangle.
21054
21055 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
21056
21057         * ListBox.cs: added horizontal item scroll
21058
21059 2005-04-29  Jackson Harper  <jackson@ximian.com>
21060
21061         * ThemeWin32Classic.cs: Remove some old debug code that was
21062         causing flicker with the new double buffering code.
21063
21064 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
21065
21066         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
21067         behave like combobox and comboboxlist (still not sure if this is
21068         correct though).
21069
21070 2005-04-28  Jackson Harper  <jackson@ximian.com>
21071
21072         * ThemeWin32Classic.cs: Don't fill the middle of progress
21073         bars. This fills areas outside of the clip bounds that don't need
21074         to be filled.
21075
21076 2005-04-28  Jackson Harper  <jackson@ximian.com>
21077
21078         * Control.cs: Don't expose functionality to touch the image buffers.
21079         * ProgressBar.cs:
21080         * ListView.cs: We do not need to (and no longer can) manipulate
21081         the image buffers directly. All of this is handled by Control.
21082
21083 2005-04-28  Peter Bartok  <pbartok@novell.com>
21084
21085         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
21086           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
21087           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
21088
21089 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
21090
21091         * Combobox:
21092                 - Adjust control's height for non-simple comboboxes (bug fix)
21093                 - Remove dead code
21094         * MenuAPI.cs: remove unused var
21095         * ScrollBar.cs: remove unsed var
21096                  
21097         * ListBox.cs: unselect items when clearing
21098
21099 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
21100
21101         * ListControl.cs: honors OnPositionChanged and default Selected Item
21102         * ListBox.cs: unselect items when clearing
21103
21104 2005-04-27  Jackson Harper  <jackson@ximian.com>
21105
21106         * X11Keyboard.cs: Initialize a default keyboard and give a warning
21107         if a "correct" keyboard is not found. This will make us not crash,
21108         but might give some users bad keyboard layouts...seems to be the
21109         same thing rewind does.
21110
21111 2005-04-27  Jackson Harper  <jackson@ximian.com>
21112
21113         * BindingManagerBase.cs: Attach the current/position changed
21114         handlers to their respective events.
21115
21116 2005-04-27  Jackson Harper  <jackson@ximian.com>
21117
21118         * Control.cs: Make sure that the first WM_PAINT does a full draw,
21119         not just a blit.
21120         * ThemeWin32Classic.cs: Don't fill the background for picture
21121         boxes. This could overright user drawing.
21122         * ComboBox.cs: Just fill the clipping rect not the entire client
21123         rect when drawing the background. This prevents pieces of the
21124         image buffer from getting overwritten and is theoretically faster.
21125
21126 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
21127
21128         * ComboBox.cs: Databinding support fixes, fire missing events
21129         * ListControl.cs: implement missing methods and properties, fixes
21130         * ThemeWin32Classic.cs: Databiding support on Drawing
21131         * CheckedListBox.cs: Databinding support fixes, fire missing events
21132         * ListBox.cs: Databinding support fixes, fire missing events
21133         
21134 2005-04-25  Peter Bartok  <pbartok@novell.com>
21135
21136         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
21137
21138 2005-04-25  Jackson Harper  <jackson@ximian.com>
21139
21140         * TreeView.cs: Use the horizontal scrollbars height not width when
21141         determining how much of the client area is available.
21142
21143 2005-04-25  Jackson Harper  <jackson@ximian.com>
21144
21145         * Control.cs: Double buffering is handled differently now. As per
21146         the spec, the extra buffer is created in the WM_PAINT message and
21147         passed down to the control's drawing code.
21148         * GroupBox.cs:
21149         * Label.cs:
21150         * CheckBox.cs:
21151         * ProgressBar.cs:
21152         * RadioButton.cs:
21153         * ColorDialog.cs:
21154         * ComboBox.cs:
21155         * PropertyGridView.cs:
21156         * UpDownBase.cs:
21157         * MessageBox.cs:
21158         * MenuAPI.cs:
21159         * ListView.cs:
21160         * ButtonBase.cs:
21161         * SizeGrip.cs:
21162         * ScrollBar.cs:
21163         * ListBox.cs:
21164         * TrackBar.cs:
21165         * ToolBar.cs:
21166         * PictureBox.cs:
21167         * DateTimePicker.cs:
21168         * StatusBar.cs:
21169         * TreeView.cs: Update to new double buffering system.
21170         * MonthCalendar.cs: Uncomment block, as Capture is now
21171         working. Update to new double buffering
21172         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
21173         * PaintEventArgs.cs: New internal method allows us to set the
21174         graphics object. This is used for double buffering.
21175         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
21176         rectangle. The internal paint_area var has been removed from
21177         StatusBar. The clipping rect should be used instead.
21178         * Theme.cs: Give the PictureBox drawing method a clipping rect.
21179         * TabPage.cs: The RefreshTabs method was removed, so just call the
21180         tab controls Refresh method now.
21181         * TabControl.cs: Update to new double buffering. Make sure the
21182         handle is created before sizing the tab pages, otherwise we will
21183         get stuck in a loop.
21184
21185 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
21186
21187         * LinkLabel.cs: Fix typo, bug #74719; patch
21188           from Borja Sanchez Zamorano
21189
21190 2005-04-22  Jackson Harper  <jackson@ximian.com>
21191
21192         * TreeNode.cs: Implement Handle stuff.
21193         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
21194
21195 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
21196
21197         * DataGridTextBoxColumn.cs: call base constructors, fixes
21198         * GridColumnStylesCollection.cs: missing events, methods, and functionality
21199         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
21200         * DataGridTableStyle.cs: implements create default column styles
21201         * DataGridBoolColumn.cs: which types can handle
21202         * DataGrid.cs: missing methods, fixes, new functionality
21203         * DataGridColumnStyle.cs: fixes
21204
21205 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
21206         * FolderBrowserDialog.cs:
21207         - Use a thread to fill the TreeView
21208         - Adjusted some sizes
21209
21210 2005-04-19  Peter Bartok  <pbartok@novell.com>
21211
21212         * LinkLabel.cs: (Re-)create the pieces when setting the Text
21213           property. Fixes #74360.
21214
21215 2005-04-19  Jackson Harper  <jackson@ximian.com>
21216
21217         * XEventQueue.cs: Lock when getting the lockqueue size.
21218         * PictureBox.cs: Call base OnPaint
21219         
21220 2005-04-19  Peter Bartok  <pbartok@novell.com>
21221
21222         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
21223           messages were no longer being processed (this broke BeginInvoke)
21224
21225           
21226 2005-04-18  Jackson Harper  <jackson@ximian.com>
21227
21228         * TreeView.cs: buglet that caused node images to get drawn
21229         regardless of whether or not they were in the clipping rectangle.
21230
21231 2005-04-18  Jackson Harper  <jackson@ximian.com>
21232
21233         * CurrencyManager.cs: There are four rules for GetItemProperties:
21234         - If the type is an array use the element type of the array
21235         - If the type is a typed list, use the type
21236         - If the list contains an Item property that is not an object, use
21237         that property
21238         - use the first element of the list if there are any elements in
21239         the list.
21240         
21241 2005-04-17  Jackson Harper  <jackson@ximian.oom>
21242
21243         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
21244         click. This handles offsets for scrolling properly and reduces
21245         memory. Also fixed GetNode to not offset now that TopNode works
21246         properly.
21247         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
21248         
21249 2005-04-17  Jackson Harper  <jackson@ximian.com>
21250
21251         * CursorConverter.cs: Initial implementation.
21252
21253 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
21254
21255         * ListControl.cs: work towards complex data binding support on ListControl
21256         * CurrencyManager.cs: work towards complex data binding support on ListControl
21257         * ListBox.cs: work towards complex data binding support on ListControl
21258
21259
21260 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
21261
21262         * GridTableStylesCollection.cs: fixes name and constructor
21263         * DataGridTableStyle.cs: fixes
21264         * DataGridBoolColumn.cs: fixes names and constructors
21265         * DataGrid.cs: define methods and properties. Some init implementations
21266         * DataGridCell.cs: define methods and properties. Some init implementations
21267         * GridTablesFactory.cs: Define methods and properties
21268
21269 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
21270
21271         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
21272         graphics port changes.  We still want the coordinates in global screen
21273         coordinates.
21274
21275 2005-04-14  Jackson Harper  <jackson@ximian.com>
21276
21277         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
21278         check plus minus or checkbox clicks unless those features are enabled.
21279
21280 2005-04-14  Jackson Harper  <jackson@ximian.com>
21281
21282         * TreeView.cs: Add methods for setting the top and bottom visible
21283         nodes. TreeNode::EnsureVisible uses these methods.
21284         * TreeNode.cs: Implement EnsureVisible
21285
21286 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
21287
21288         * Form.cs: Pospone menu assignation if the window has not been created yet
21289         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
21290         size and position
21291
21292 2005-04-12  Jackson Harper  <jackson@ximian.com>
21293
21294         * TreeView.cs: Set the TopNode properly when scrolling
21295         occurs. This has the added benifit of reducing the amount of
21296         walking that needs to be done when drawing. Also removed an old
21297         misleading TODO.
21298         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
21299         
21300 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
21301
21302         * Timer.cs: fixes interval setting when the timer is already enabled
21303         
21304 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
21305
21306         * FolderBrowserDialog.cs: First approach
21307
21308 2005-04-09  Peter Bartok  <pbartok@novell.com>
21309
21310         * FolderBrowserDialog: Added
21311
21312 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
21313
21314         * LinkLabel.cs: move drawing code into the theme
21315         * ThemeWin32Classic.cs: drawing code and painting background bugfix
21316         * Theme.cs: define DrawLinkLabel method
21317
21318 2005-04-05  Jackson Harper  <jackson@ximian.com>
21319
21320         * BindingContext.cs: Use weak references so these bad actors don't
21321         stay alive longer then they need to.
21322
21323 2005-04-05  Jackson Harper  <jackson@ximian.com>
21324
21325         * ListControl.cs: Basic implementation of complex databinding.
21326         * ComboBox.cs:
21327         * ListBox.cs: Add calls to ListControl databinding methods.
21328
21329 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
21330
21331         * FileDialog.cs:
21332           - Don't change PopupButtonState to Normal when the
21333             PopupButton gets pressed several times.
21334           - Renamed ButtonPanel to PopupButtonPanel
21335
21336 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
21337
21338         * ColorDialog.cs: Use cached objects instead of creating them
21339         * LinkLabel.cs: Use cached objects instead of creating them
21340         * Splitter.cs: Use cached objects instead of creating them
21341         * FontDialog.cs: Use cached objects instead of creating them
21342         * PropertyGridView.cs: Use cached objects instead of creating them
21343         * MessageBox.cs: Use cached objects instead of creating them
21344         * FileDialog.cs: Use cached objects instead of creating them
21345         * ThemeWin32Classic.cs: Use cached objects instead of creating them
21346         * TreeView.cs: Use cached objects instead of creating them
21347         
21348 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
21349
21350         * Control.cs: use Equals to compare the font since no == op
21351         * ScrollBar.cs: use Equals to compare the font since no == op
21352
21353 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
21354
21355         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
21356
21357 2005-04-01  Jackson Harper  <jackson@ximian.com>
21358
21359         * Binding.cs: Implement IsBinding.
21360         * BindingManagerBase.cs:
21361         * PropertyManager.cs:
21362         * CurrencyManager.cs: Add IsSuspended property.
21363
21364 2005-04-01  Jackson Harper  <jackson@ximian.com>
21365
21366         * Binding.cs: Had some IsAssignableFrom calls backwards.
21367
21368 2005-04-01  Jackson Harper  <jackson@ximian.com>
21369
21370         * Binding.cs: Handle null data members when pulling data.
21371         * PropertyManager.cs: Handle the data member being a property that
21372         does not exist.
21373
21374 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
21375
21376         * DataGridTextBoxColumn.cs: fixes signature
21377         * DataGrid.cs: calls right constructor
21378
21379 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
21380
21381         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
21382         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
21383         * GridTableStylesCollection.cs: implements GridTableStylesCollection
21384         * DataGridTableStyle.cs: implements DataGridTableStyle
21385         * DataGridBoolColumn.cs: implements DataGridBoolColumn
21386         * DataGridTextBox.cs: implements DataGridTextBox
21387         * DataGridColumnStyle.cs: implements DataGridColumnStyle
21388
21389 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
21390
21391         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
21392
21393 2005-03-29  Peter Bartok  <pbartok@novell.com>
21394
21395         * Application.cs:
21396           - Properly implemented CompanyName property
21397           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
21398             returns a path that includes CompanyName, ProductName and
21399             Version (fixes bug #70330)
21400
21401 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
21402
21403         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
21404           fixes bug #72588.
21405
21406 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
21407
21408         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
21409         
21410           - Added ReadOnly CheckBox
21411           - Further refactoring: moved some code from Open-/SaveFileDialog
21412             to FileDialog
21413
21414 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
21415
21416         * OpenFileDialog.cs: Fixed CheckFileExists
21417         * FileDialog.cs:
21418           Moved FileView and DirComboBox outside FileDialog class.
21419           They can now be used outside FileDialog
21420
21421 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
21422
21423         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
21424         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
21425
21426 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
21427
21428         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
21429           - Added missing CreatePrompt property in SaveDialog
21430           - Overall SaveDialog handling should be better now
21431           - Added non standard ShowHiddenFiles property
21432           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
21433           - Added InitialDirectory and RestoreDirectory support
21434
21435 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
21436
21437         * FileDialog.cs: Made dirComboBox usable
21438
21439 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
21440
21441         * FileDialog.cs: Added Filter support (case sensitiv)
21442
21443 2005-03-24  Jackson Harper  <jackson@ximian.com>
21444
21445         * TabControl.cs: Need a couple more pixels for the lines.
21446
21447 2005-03-23  Jackson Harper  <jackson@ximian.com>
21448
21449         * TabControl.cs: Give the tab page focus when it is selected.
21450
21451 2005-03-23  Jackson Harper  <jackson@ximian.com>
21452
21453         * TabControl.cs: Account for the drawing of tabs borders when
21454         invalidating. If the slider was clicked dont do click detection on
21455         the tabs.
21456
21457 2005-03-23  Jackson Harper  <jackson@ximian.com>
21458
21459         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
21460
21461 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
21462
21463         * CategoryGridEntry.cs: Added
21464         * GridItem.cs: Added helper properties
21465         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
21466         * GridEntry.cs: Updated code for collection
21467         * PropertyGrid.cs: Cleaned up some formatting
21468         * PropertyGridView.cs: Added drop down functionality for enums.
21469         * GridItemCollection.cs: Added enumerator logic
21470         * PropertyGridEntry.cs: Added
21471
21472 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
21473
21474         * FileDialog.cs:
21475           - Removed unnecessary commented code
21476           - Fixed handling for entering the filename manually in the combobox
21477
21478 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
21479
21480         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
21481
21482 2005-03-18  Peter Bartok  <pbartok@novell.com>
21483
21484         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
21485           them being touching the border
21486
21487 2005-03-18  Peter Bartok  <pbartok@novell.com>
21488
21489         * TextControl.cs: Quick hack to center text better
21490
21491 2005-03-18  Peter Bartok  <pbartok@novell.com>
21492
21493         * ControlPaint.cs:
21494           - Don't throw NotImplemented exceptions, just print a notice once
21495             instead (requested by Miguel). This makes running existing SWF
21496             apps a bit easier
21497         * Control.cs:
21498           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
21499           - Added context menu trigger on right click
21500         * Panel.cs: Trigger invalidate on resize
21501         * StatusBar.cs:
21502           - Removed old double-buffer drawing
21503           - Added ResizeRedraw style to force proper update of statusbar
21504         * ListView.cs:
21505           - Removed debug output
21506         * ThemeWin32Classic.cs:
21507           - Fixed drawing of status bar, now draws Text property if there
21508             are no defined panels
21509
21510 2005-03-18  Jackson Harper  <jackson@ximian.com>
21511
21512         * ImageList.cs: When the image stream is set pull all the images
21513         from it.
21514         * ImageListStreamer.cs: Implement reading image list streams.
21515
21516 2005-03-18  Peter Bartok  <pbartok@novell.com>
21517
21518         * ThemeWin32Classic.cs (DrawPictureBox):
21519           - Fixed calculations for centered drawing
21520           - Fixed drawing for normal mode, not scaling the image on normal
21521
21522 2005-03-18  Peter Bartok  <pbartok@novell.com>
21523
21524         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
21525           textbox
21526         * FileDialog.cs:
21527           - Made Open/Save button the accept button for FileDialog
21528           - Tied the cancel button to the IButtonControl cancel button
21529           - Save/Open now properly builds the pathname
21530           - Now handles user-entered text
21531           - Preventing crash on right-click if no item is selected
21532           - Fixed Text property, now uses contents of textbox
21533           - Fixed SelectedText property, now just returns the text part that
21534             is selected in the text box
21535
21536 2005-03-18  Jackson Harper  <jackson@ximian.com>
21537
21538         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
21539         rect, make sure to de-adjust the interior rect after drawing the
21540         tab text.
21541
21542 2005-03-18  Peter Bartok  <pbartok@novell.com>
21543
21544         * MenuAPI.cs: Remove menu *before* executing selected action to
21545           prevent the menu from 'hanging around'
21546           
21547 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
21548
21549         * XplatUIOSX.cs: Implemented WorkingArea property
21550
21551 2005-03-17  Peter Bartok  <pbartok@novell.com>
21552
21553         * XplatUIX11.cs: Fixed menu coord calculations
21554         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
21555           for calculating offsets
21556
21557 2005-03-17  Peter Bartok  <pbartok@novell.com>
21558
21559         * Hwnd.cs: Do not consider menu presence for default client
21560           rectangle location/size
21561         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
21562           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
21563           translation functions
21564         * FileDialog.cs: Fixed (what I presume is a) typo
21565
21566 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
21567
21568         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
21569           X access (avoids X-Async errors)
21570
21571 2005-03-16  Jackson Harper  <jackson@ximian.com>
21572
21573         * TabControl.cs: Raise the SelectedIndexChanged event.
21574
21575 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
21576
21577         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
21578           - Removed vertical ToolBar and replaced it with a custom panel
21579             (desktop and home button already work)
21580           - Added Help button (some controls get resized or relocated then)
21581           - Draw correct text depending on Open or Save.
21582           - Fixed some typos...
21583
21584 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
21585
21586         * ScrollBar.cs:
21587           - Only change Maximum and Minimum when need it (bug fix)
21588
21589 2005-03-15  Peter Bartok  <pbartok@novell.com>
21590
21591         * Form.cs: Use Handle for icon, to trigger creation if
21592           the window does not yet exist
21593         * Control.cs:
21594           - CanSelect: Slight performance improvement
21595           - Focus(): Preventing possible recursion
21596           - Invalidate(): Removed ControlStyle based clear flag setting
21597           - WM_PAINT: fixed logic for calling OnPaintBackground
21598           - WM_ERASEBKGND: Fixed logic, added call to new driver method
21599             EraseWindowBackground if the control doesn't paint background
21600         * XplatUIWin32.cs:
21601           - Moved EraseWindowBackground() method to internal methods
21602           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
21603             is sent via SendMessage on BeginPaint call on Win32
21604         * XplatUIX11.cs:
21605           - Added EraseWindowBackground() method
21606           - No longer sends WM_ERASEBKGND on .Expose, but on call to
21607             PaintEventStart, which more closely matches Win32 behaviour
21608           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
21609           - Fixed SetFocus() to properly deal with client and whole windows
21610         * Hwnd.cs: Added ErasePending property
21611         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
21612         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
21613
21614 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
21615
21616         * XplatUIOSX.cs:
21617           - Fix hard loop when timers exist.
21618           - Fix bugs with middle and right click for 3 button mice.
21619
21620 2005-03-11  Peter Bartok  <pbartok@novell.com>
21621
21622         * XplatUIX11.cs:
21623           - get_WorkingArea: Need to call X directly, GetWindowPos only
21624             returns cached data now
21625           - Added sanity check to GetWindowPos hwnd usage
21626
21627 2005-03-11  Jackson Harper  <jackson@ximian.com>
21628
21629         * BindingManagerBase.cs: This method isn't used anymore as
21630         PullData now updates the data in the control.
21631
21632 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
21633
21634         * Form.cs: fixes menu drawing on X11
21635         * MenuAPI.cs:  fixes menu drawing on X11
21636
21637 2005-03-11  Peter Bartok  <pbartok@novell.com>
21638
21639         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
21640           from Jonathan Gilbert; should fix bug #73606
21641         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
21642           in Screen coordinates. Thanks, Jordi.
21643         * Form.cs: Added missing attribute
21644
21645 2005-03-11  Peter Bartok  <pbartok@novell.com>
21646
21647         * Form.cs:
21648           - Rudimentary Mdi support
21649           - Removed outdated FormParent code
21650           - Implemented lots of missing properties and methods, still missing
21651             transparency support
21652           - Added missing attributes
21653           - Implemented support for MaximumBounds
21654           - Added firing of various events
21655         * XplatUI.cs: Added SetIcon() method
21656         * XplatUIDriver.cs: Added SetIcon() abstract
21657         * XplatUIOSX.cs: Stubbed out SetIcon() method
21658         * XplatUIX11.cs:
21659           - Implemented SetIcon() support
21660           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
21661           - Switched to unix line endings
21662         * XplatUIWin32.cs:
21663           - Made POINT internal so for can access it as part of MINMAX
21664           - Implemented SetIcon() support
21665           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
21666             native Mdi support again, might have to go managed)
21667         * Control.cs: Now fires the StyleChanged event
21668         * MdiClient.cs: Added; still mostly empty
21669
21670 2005-03-10  Peter Bartok  <pbartok@novell.com>
21671
21672         * SaveFileDialog.cs: Added emtpy file
21673
21674 2005-03-08  Peter Bartok  <pbartok@novell.com>
21675
21676         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
21677           in turn triggers OnCreateContro) when creating a handle for the
21678           first time.
21679         * TextControl.cs: Fixed endless loop in certain cases when
21680           replacing the current selection
21681
21682 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
21683
21684         * ScrollBar.cs:
21685           - Honors NewValue changes in Scroll events allowing apps to change it
21686           - Adds First and Last Scroll events
21687           - Fixes Thumb events
21688
21689 2005-03-07  Peter Bartok  <pbartok@novell.com>
21690
21691         * Hwnd.cs: Added DefaultClientRectangle property
21692         * XplatUI.cs: Now using the X11 driver Where() method, which provides
21693           more detailed debug information
21694         * XplatUIX11.cs:
21695           - Fixed size-change feedback loop, where we would pull an old size
21696             off the queue and mistakenly change our window's size to an
21697             earlier value
21698           - Now compressing ConfigureNotify events, to reduce looping and
21699             redraw issues
21700         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
21701           is called
21702
21703 2005-03-07  Jackson Harper  <jackson@ximian.com>
21704
21705         * Binding.cs: Push data pushes from data -> property. Check if the
21706         property is readonly when attempting to set it.
21707
21708 2005-03-07  Jackson Harper  <jackson@ximian.com>
21709
21710         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
21711         instead of IsSubclassOf. Pulling data now sets the value on the
21712         control.
21713         * PropertyManager.cs:
21714         * CurrencyManager.cs: Just need to pull data when updating now,
21715         because PullData will set the value on the control.
21716
21717 2005-03-04  Jackson Harper  <jackson@ximian.com>
21718
21719         * Binding.cs: Implement data type parsing and converting on pulled
21720         data. TODO: Are there more ways the data can be converted?
21721
21722 2005-03-04  Jackson Harper  <jackson@ximian.com>
21723
21724         * Binding.cs: Support <Property>IsNull checks. Also bind to the
21725         controls Validating method so we can repull the data when the
21726         control loses focus.
21727
21728 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
21729
21730         * ColumnHeader.cs:
21731           - Fixes null string format
21732           
21733         * ListView.cs:
21734           - Adds enum type checks
21735           - Fixes redrawing and recalc need after changing some properties
21736           - Fixes on focus_item set after the event
21737           - Fixes adding columns after the control has been created
21738           
21739         * ThemeWin32Classic.cs:
21740           - Fixes CheckBox focus rectangle
21741           - Fixes ColumnHeader drawing
21742
21743
21744 2005-03-03  Jackson Harper  <jackson@ximian.com>
21745
21746         * Binding.cs: Bind to <Property>Changed events so we can detect
21747         when properties are changed and update the data.
21748
21749 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
21750
21751         * ImageList.cs:
21752           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
21753           - Fixes ImageList constructor with ImageList container
21754           - Fixes image scaling (wrong parameters at DrawImage)
21755
21756 2005-02-02  Jackson Harper  <jackson@ximian.com>
21757
21758         * Binding.cs: Make property searches case-insensitive. Eliminate
21759         some duplicated code.
21760
21761 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
21762
21763         * ComboBox.cs:
21764                 - Handle focus event
21765                 - Fix scrollbar events
21766                 - Discard highlighted item if remove it
21767                 - Fixes SelectedItem with strings
21768
21769 2005-03-01  Peter Bartok  <pbartok@novell.com>
21770
21771         * Control.cs:
21772           - Fixed Visible property, now follows (once again) parent chain
21773             to return false if any control in the chain is visible=false
21774           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
21775           - Fixed several places where is_visible instead of Visible was used
21776           - Implemented FIXME related to focus selection when setting focused
21777             control to be invisible
21778
21779         * XplatUIWin32.cs: Now using proper method to find out if window is
21780           visible. Thanks to Jordi for pointing it out
21781
21782 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
21783
21784         * ComboBox.cs: show/hide scrollbar instead of creating it
21785
21786 2005-02-27  Jackson Harper  <jackson@ximian.com>
21787
21788         * CurrencyManager.cs: Add PositionChanged stuff.
21789
21790 2005-02-27  Peter Bartok  <pbartok@novell.com>
21791
21792         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
21793         * XplatUIOSX.cs: Added GetMenuOrigin() stub
21794         * XplatUIWin32.cs: Implemented GetMenuOrigin()
21795         * XplatUIX11.cs:
21796           - Implemented GetMenuDC()
21797           - Implemented GetMenuOrigin()
21798           - Implemented ReleaseMenuDC()
21799           - Implemented generation of WM_NCPAINT message
21800           - Implemented generation and handling of WM_NCCALCSIZE message
21801         * Form.cs: Added debug helper message for Jordi's menu work
21802         * Hwnd.cs:
21803           - Modified ClientRect property; added setter, fixed getter to handle
21804             setting of ClientRect
21805           - Added MenuOrigin property
21806
21807 2005-02-26  Peter Bartok  <pbartok@novell.com>
21808
21809         * XplatUIX11.cs:
21810           - Destroys the caret if a window that's being destroyed contains it
21811           - Ignores expose events coming from the X11 queue for windows that
21812             already are destroyed
21813           - Now uses the proper variable for handling DestroyNotify, before we
21814             marked the wrong window as destroyed
21815           - Improved/added some debug output
21816
21817 2005-02-26  Peter Bartok  <pbartok@novell.com>
21818
21819         * X11Keyboard.cs: Fixes to work on 64bit systems
21820
21821 2005-02-26  Peter Bartok  <pbartok@novell.com>
21822
21823         * Control.cs:
21824           - Now calling OnHandleDestroyed from DestroyHandle()
21825             instead of Dispose()
21826           - Removed bogus call to controls.Remove() from DestroyHandle()
21827
21828 2005-02-26  Peter Bartok  <pbartok@novell.com>
21829
21830         * Control.cs: Properly destroy child windows when our handle is
21831           destroyed
21832
21833 2005-02-25  Peter Bartok  <pbartok@novell.com>
21834
21835         * XplatUI.cs:
21836           - Added 'DriverDebug' define to allow tracing XplatUI API calls
21837           - Alphabetized Static Methods and Subclasses
21838
21839         * XplatUIX11.cs:
21840           - Added XException class to allow custom handling of X11 exceptions
21841           - Created custom X11 error handler, tied into XException class
21842           - Added support for MONO_XEXCEPTIONS env var to allow the user
21843             to either throw an exception on X errors or continue running
21844             after displaying the error
21845           - Added handling of DestroyNotify message
21846           - Added handler for CreateNotify message (still disabled)
21847           - Improved (tried to at least) Where method to provide file and lineno
21848         * X11Structs.cs:
21849           - Added XErrorHandler delegate
21850           - Added XRequest enumeration (to suppor translation of errors)
21851
21852 2005-02-25  Jackson Harper  <jackson@ximian.com>
21853
21854         * PropertyManager.cs: Implement editing features
21855         * CurrencyManager.cs:
21856         * Binding.cs: First attempt at UpdateIsBinding
21857         * BindingManagerBase.cs: Call UpdateIsBinding before
21858         pushing/pulling data.
21859
21860 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
21861
21862         * MenuAPI.cs: Respect disabled items
21863         * ThemeWin32Classic.cs
21864                 - Caches ImageAttributes creation for DrawImageDisabled
21865                 - Fixes vertical menu line drawing
21866                 - Draws disabled arrows in disable menu items
21867
21868 2005-02-24  Peter Bartok  <pbartok@novell.com>
21869
21870         * Hwnd.cs:
21871           - Added UserData property to allow associating arbitrary objects
21872             with the handle
21873           - Fixed leak; now removing Hwnd references from static windows array
21874         * XplatUIWin32.cs:
21875           - Fixed Graphics leak in PaintEventEnd
21876           - Removed usage of HandleData, switched over to Hwnd class
21877         * HandleData.cs: Removed, obsoleted by Hwnd.cs
21878
21879 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
21880
21881         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
21882         * ScrollBar.cs: Fixes bug
21883         * TrackBar.cs: removes death code, clipping, mimize refreshes,
21884          keyboard navigation enhancements
21885
21886 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
21887
21888         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
21889         * GroupBox.cs: Add control styles
21890         * Label.cs: Add control styles
21891         * UpDownBase.cs: Add control styles
21892         * ListBox.cs: Add control styles
21893         * XplatUIWin32.cs: Fixes wrong parameter order
21894
21895
21896 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
21897
21898         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
21899
21900 2005-02-23  Jackson Harper  <jackson@ximian.com>
21901
21902         * PropertyManager.cs: Implement property binding. This doesn't
21903         seem to work yet though as (I think) there are some bugs in
21904         System.ComponentModel.PropertyDescriptor.
21905         * BindingContext.cs: Use new PropertyManager constructor.
21906
21907 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
21908
21909         * ProgressBar.cs: use clip region in ProgressBar
21910         * ThemeWin32Classic.cs: use clip region in ProgressBar
21911
21912 2004-02-22  Jackson Harper  <jackson@ximian.com>
21913
21914         * BindingsCollection.cs: Remove some debug code.
21915
21916 2005-02-22  Jackson Harper  <jackson@ximian.com>
21917
21918         * BindingContext.cs:
21919         * ControlBindingsCollection.cs:
21920         * CurrencyManager.cs:
21921         * Binding.cs:
21922         * BindingManagerBase.cs: Initial implementation
21923         * BindingsCollection.cs: Add an internal contains method that the
21924         BindingManagerBase uses to ensure bindings aren't added twice to
21925         the collection.
21926         * PropertyManager.cs: Stubbed out.
21927         * Control.cs:
21928         * ContainerControl.cs: Hook up databinding
21929         
21930 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
21931
21932         * XplatUIOSX.cs:
21933           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
21934           Fixed Invalidate/Update chain.
21935           Fixed tons of other minor bugs (this is almost a complete rewrite).
21936
21937 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
21938
21939         * ComboBox.cs: do subcontrol creation when the control is created
21940
21941 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
21942
21943         * Label.cs: fixes image drawing (image and imagelist)
21944         * ThemeWin32Classic.cs: cache brushes
21945         
21946 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
21947
21948         * Form.cs: Move menu drawing code to Theme class
21949         * ComboBox.cs: Move ComboBox drawing code to Theme class
21950         * MenuItem.cs: Move menu drawing code to Theme class
21951         * MenuAPI.cs: Move menu drawing code to Theme class
21952         * ThemeWin32Classic.cs: New methods
21953         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
21954         * ListBox.cs: Move Listbox drawing code to Theme class
21955         * Theme.cs: New methods
21956
21957 2005-02-20  Peter Bartok  <pbartok@novell.com>
21958
21959         * Control.cs:
21960           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
21961             only process mnemonics on those)
21962           - Fixed event sequence for key handling; first calling
21963             ProcessKeyEventArgs now
21964         * TextBoxBase.cs:
21965           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
21966             for processing non-character keys
21967           - Fixed WM_CHAR to generate proper event sequence before processing
21968         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
21969           generation
21970
21971 2005-02-19  Peter Bartok  <pbartok@novell.com>
21972
21973         * UserControl.cs: Added TextChanged event; added attributes
21974         * SizeGrip.cs: Implemented resizing and optional display of grip
21975         * Form.cs: Fixed attribute
21976         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
21977           Changed meaning of ScrollWindow bool argument; instead of the
21978           clear attribute (which will be true usually anyway), it gives the
21979           option of moving child controls as well.
21980         * XplatUIX11.cs:
21981           - Changed to match new ScrollWindow argument
21982           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
21983             now handles the implicit parent window a WM puts around us
21984         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
21985           to work)
21986         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
21987         * TreeView.cs: Adjusted to new ScrollWindow arguments
21988
21989 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
21990
21991         * Form.cs: Menu integration with non-client area
21992         * MenuItem.cs: Menu integration with non-client area
21993         * MenuAPI.cs: Menu integration with non-client area
21994
21995 2005-02-18  Peter Bartok  <pbartok@novell.com>
21996
21997         * MethodInvoker.cs: Added
21998         * MdiLayout.cs: Added
21999         * SendKeys.cs: Started implementation
22000         * ErrorIconAlignment.cs: Added
22001
22002 2005-02-18  Peter Bartok  <pbartok@novell.com>
22003
22004         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
22005         * Form.cs: Added handling for Menu-related Non-client messages
22006
22007 2005-02-17  Peter Bartok  <pbartok@novell.com>
22008
22009         * UpDownBase.cs: Fixed typo, compilation errors
22010         * DomainUpDown.cs: Fixed attribute value
22011
22012 2005-02-16  Miguel de Icaza  <miguel@novell.com>
22013
22014         * UpDownBase.cs: Attach entry events.
22015         Propagate events.
22016         Add ForeColor property, Focused, InterceptArrowKeys (interception
22017         does not work yet).
22018
22019 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
22020
22021         * Form.cs:
22022                 - Redraw non client are on Setmenu
22023                 - Calc proper menu starting point
22024
22025 2005-02-17  Peter Bartok  <pbartok@novell.com>
22026
22027         * Application.cs: Fixed message_filter check
22028
22029 2005-02-17  Peter Bartok  <pbartok@novell.com>
22030
22031         * Application.cs: Now calls registered message filters
22032         * DockStyle.cs: Fixed attribute
22033         * Form.cs: Fixed attribute
22034         * Menu.cs: Fixed attribute
22035         * ToolTip.cs: Fixed attribute
22036         * TreeNode.cs: Added missing attributes and arranged in regions
22037         * PropertyGrid.cs: Fixed signatures
22038         * TreeNodeCollection.cs: Added attributes
22039         * Splitter.cs: Added missing attributes; arranged into regions
22040         * TabPage.cs: Added missing attributes; arranged into regions
22041         * TextBoxBase.cs: Added missing attributes
22042         * TextBox.cs: Added missing attributes
22043         * ArrangeDirection.cs: Added missing attributes
22044         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
22045         * ToolBarButton.cs: Fixed attributes
22046         * AnchorStyles.cs: Fixed attribute
22047         * TrackBar.cs: Fixed attributes
22048         * TabControl.cs: Added missing attributes and arranged into regions
22049         * ToolBar.cs: Fixed attribute
22050         * StatusBar.cs: Fixed signature, organized into regions and added
22051           attributes
22052         * StatusBarPanel.cs: Fixed attributes
22053         * ContentsResizedEventArgs.cs: Implemented
22054         * ContentsResizedEventHandler.cs: Implemented
22055         * DateBoldEventArgs.cs: Implemented
22056         * DateBoldEventHandler.cs: Implemented
22057         * UpDownEventArgs.cs: Implemented
22058         * UpDownEventHandler.cs: Implemented
22059         
22060 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
22061
22062         * Form.cs: first Menu NC refactoring
22063         * MenuAPI.cs: first Menu NC refactoring
22064         
22065 2005-02-16  Peter Bartok  <pbartok@novell.com>
22066
22067         * ImeMode.cs: Added missing attributes
22068         * Menu.cs: Fixed attribute
22069         * GroupBox.cs: Fixed attribute
22070         * Label.cs: Fixed attribute
22071         * ColorDialog.cs (RunDialog): Removed TODO attribute
22072         * ComboBox.cs: Fixed attributes
22073         * ListControl.cs: Added missing attributes
22074         * PropertyGrid.cs: Fixed attributes
22075         * Control.cs: Fixed attributes
22076         * ListViewItem.cs: Added TypeConverter attribute
22077         * NotifyIcon.cs: Fixed attributes
22078         * ListView.cs: Fixed attributes
22079         * ButtonBase.cs: Fixed attribute
22080         * ImageList.cs: Added missing attributes
22081         * ContainerControl.cs: Fixed signature
22082         * CheckedListBox.cs: Fixed attribute; added missing attributes
22083         * Panel.cs: Fixed attributes
22084         * PropertyTabChangedEventArgs.cs: Added missing attribute
22085         * PropertyValueChangedEventArgs.cs: Added missing attribute
22086         * Binding.cs: Fixed attribute
22087         * ListViewItemConverter: Implemented ListViewSubItemConverter class
22088         * ListBox.cs: Fixed attribute; added missing attributes;
22089         * ScrollableControl.cs: Added missing attributes
22090         * PictureBox.cs: Added missing attributes; implemented missing property
22091         * DateTimePicker.cs: Added missing attributes
22092         * Theme.cs (ToolWindowCaptionHeight): Fixed type
22093         * MonthCalendar.cs: Fixed attributes
22094         * StatusBarPanel.cs: Added missing attributes
22095         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
22096
22097 2005-02-16  Peter Bartok  <pbartok@novell.com>
22098
22099         * TextBoxBase.cs: The previous method to enforce height yet remember
22100           the requested high was less than ideal, this is an attempt to do
22101           it better.
22102         * Control.cs: Added comment about possible problem
22103         * Copyright: Updated format
22104         * GridItemType.cs: Fixed swapped values
22105
22106 2005-02-15  Jackson Harper  <jackson@ximian.com>
22107
22108         * BaseCollection.cs: Use property so we never access an
22109         uninitialized list. Also initialize the list in the property.
22110
22111 2005-02-15  Peter Bartok  <pbartok@novell.com>
22112
22113         * GroupBox.cs (ProcessMnemonic): Implemented
22114         * Label.cs (ProcessMnemonic): Implemented
22115         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
22116           hotkeys
22117
22118 2005-02-15  Peter Bartok  <pbartok@novell.com>
22119
22120         * RadioButton.cs (ProcessMnemonic): Implemented
22121         * CheckBox.cs (ProcessMnemonic): Implemented
22122         * Control.cs:
22123           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
22124             handling
22125           - Added internal method to allow calling ProcessMnemonic from other
22126             controls
22127         * ContainerControl.cs:
22128           - Started support for handling validation chain handling
22129           - Implemented ProcessMnemonic support
22130           - Added Select() call to Active, to make sure the active control
22131             receives focus
22132         * Form.cs: Setting toplevel flag for Forms (this was lost in the
22133           FormParent rewrite)
22134         * ThemeWin32Classic.cs:
22135           - DrawCheckBox(): Fixed stringformat to show hotkeys
22136           - DrawRadioButton(): Fixed stringformat to show hotkeys
22137         * CommonDialog.cs: Removed WndProc override, not needed
22138
22139 2005-02-14  Peter Bartok  <pbartok@novell.com>
22140
22141         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
22142           missed those in the rewrite
22143
22144 2005-02-14  Miguel de Icaza  <miguel@novell.com>
22145
22146         * NumericUpDown.cs (Increment, ToString): Add.
22147         (DecimalPlaces): implement.
22148         
22149         Add attributes.
22150         
22151         * UpDownBase.cs: Add the designer attributes.
22152
22153 2005-02-13  Peter Bartok  <pbartok@novell.com>
22154
22155         * Panel.cs: Removed border_style, now in Control
22156         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
22157           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
22158
22159 2005-02-13  Peter Bartok  <pbartok@novell.com>
22160
22161         * MouseButtons.cs: Added missing attributes
22162         * XplatUIStructs.cs: Added enumeration for title styles
22163         * LeftRightAlignment.cs: Added missing attributes
22164         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
22165           it compatible with Graphics.FromHwnd()
22166         * SelectedGridItemChangedEventArgs.cs: Fixed property type
22167         * Keys.cs: Added missing attributes
22168         * SelectionRange.cs: Added missing attributes
22169         * SelectionRangeConverter.cs: Added
22170         * XplatUI.cs:
22171           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
22172             ReleaseMenuDC methods
22173           - Renamed ReleaseWindow to UngrabWindow
22174           - Added proper startup notice to allow version identification
22175         * Form.cs:
22176           - Added missing attributes
22177           - Removed FormParent concept
22178         * Label.cs: Removed border_style field, now in Control
22179         * RadioButton.cs: Now properly selects RadioButton when focus is
22180           received
22181         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
22182         * Control.cs:
22183           - Added missing attributes
22184           - Added borderstyle handling
22185           - Removed FormParent concept support
22186           - Fixed calls to XplatUI to match changed APIs
22187           - Fixed bug that would case us to use disposed Graphics objects
22188           - Removed unneeded internal methods
22189           - PerformLayout(): Fixed to handle DockStyle.Fill properly
22190           - SelectNextControl(): Fixed to properly check common parents
22191         * TextBoxBase.cs: Removed border_style field (now in Control)
22192         * MessageBox.cs:
22193           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
22194             fixed calculations for form size
22195           - Added support for localized strings and icons
22196           - Improved form size calculations, added border
22197         * ListView.cs: Removed border_style field (now in Control)
22198         * X11Structs.cs: Moved several structs from X11 driver here
22199         * X11Keyboard.cs: Changed debug message
22200         * Application.cs: Removed FormParent concept support
22201         * CommonDialog.cs:
22202           - Resetting end_modal flag
22203           - Removed FormParent concept support
22204         * NativeWindow.cs: Removed FormParent concept support
22205         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
22206           Client area and Non-Client whole window to allow support for WM_NC
22207           messages
22208         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
22209           prevent using it until it supports Hwnd as per Geoff Norton's request
22210         * ToolBar.cs: Fixed drawing, was not doing proper drawing
22211         * PictureBox.cs: Removed border_style field, now in Control
22212         * XplatUIWin32.cs: Added new driver methods
22213
22214 2005-02-12  Peter Bartok  <pbartok@novell.com>
22215
22216         * OpacityConverter.cs: Implemented
22217         * Hwnd.cs: Internal class to support drivers that need to emulate
22218           client area/non-client area window behaviour
22219
22220 2005-02-11  Peter Bartok  <pbartok@novell.com>
22221
22222         * KeysConverter.cs: Implemented
22223
22224 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
22225
22226         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
22227         * LinkLabel: Added missing attributes
22228         * MainMenu.cs: fixes ToString
22229         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
22230         * ListBox.cs: fixes event position
22231         * TrackBar.cs: adds missing attributes and events
22232         
22233 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
22234
22235         * MenuItem.cs: Use SystemInformation and bug fixes
22236         * MenuAPI.cs: Use SystemInformation and bug fixes
22237
22238 2005-02-09  Jackson Harper  <jackson@ximian.com>
22239
22240         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
22241         their keystate otherwise things like VK_MENU get stuck "on".
22242
22243 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
22244
22245         * ListBox.cs: Fixes AddRange bug
22246         
22247 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
22248
22249         * ProgressBar.cs
22250                 - Add missing attributes
22251                 - Add missing method
22252                 
22253         * CheckedListBox.cs: Added missing attributes
22254                 - Add missing attributes
22255                 - Remove extra method
22256         
22257         * ComboBox.cs: Added missing attributes
22258         * VScrollBar.cs: Added missing attributes
22259         * ScrollBar.cs:  Added missing attributes
22260         * ListBox.cs: Fixes signature, add missing consts
22261         * LinkArea.cs:   Added missing attributes
22262         
22263
22264 2005-02-08  Peter Bartok  <pbartok@novell.com>
22265
22266         * Menu.cs: Added missing attributes
22267         * MainMenu.cs: Added missing attributes
22268         * GroupBox.cs: Added missing attributes
22269         * Label.cs: Added missing attributes
22270         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
22271         * ColorDialog.cs:
22272           - Added Instance and Options properties
22273           - Added missing attributes
22274         * Cursor.cs: Made Serializable
22275         * NotifyIcon: Added missing attributes
22276         * MenuItem.cs: Added missing attributes
22277         * TextBoxBase.cs: Implemented AppendText() and Select() methods
22278         * Panel.cs: Added Missing attributes
22279         * MonthCalendar.cs: Fixed CreateParams
22280
22281 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
22282         
22283         * LinkLabel.cs:
22284                 - Fixes signature
22285                 - Fixes issues with links
22286                 - Adds the class attributes
22287
22288 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
22289         
22290         * ComboBox.cs:
22291                 - Fixes button when no items available in dropdown
22292                 - Fixes repainting problems
22293                 - Adds the class attributes
22294                 
22295 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22296
22297         * XplatUIOSX.cs: Detect the menu bar and title bar height from
22298         the current theme.  Cache these on startup.
22299
22300 2005-02-07  Jackson Harper  <jackson@ximian.com>
22301
22302         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
22303         the scrollbar buttons when they are depressed.
22304
22305 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22306
22307         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
22308         Get the display size from the main displayid.  We currently dont
22309         support multiple display configurations.
22310
22311 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
22312
22313         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
22314
22315 2005-02-07  Miguel de Icaza  <miguel@novell.com>
22316
22317         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
22318
22319 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
22320
22321         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
22322
22323 2005-02-04  Jackson Harper  <jackson@ximian.com>
22324
22325         * ThemeWin32Classic.cs: Respect the clipping rect when
22326         drawing. Only fill the intersection of clips and rects so there
22327         isn't a lot of large fills.
22328         * ScrollBar.cs: Pass the correct clipping rect to the theme
22329         engine. Remove some debug code.
22330
22331 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
22332         
22333         * DateTimePicker.cs:
22334                 - Fixed crash on DateTime.Parse, use Constructor instead
22335
22336 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
22337         
22338         * MenuItem.cs:
22339         * MenuAPI.cs:
22340                 - Owner draw support (MeasureItem and DrawItem)
22341
22342 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
22343         
22344         *  Menu.cs:
22345                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
22346                 - Fixes MenuItems.Add range
22347         * MenuItem.cs:
22348                 - MergeMenu and Clone and CloneMenu functions
22349
22350 2005-02-03  Jackson Harper  <jackson@ximian.com>
22351
22352         * ScrollBar.cs: Make abstract
22353         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
22354         is abstract.
22355
22356 2005-02-03  Jackson Harper  <jackson@ximian.com>
22357
22358         * ScrollBar.cs: First part of my scrollbar fixups. This removes
22359         all the unneeded refreshes and uses invalidates with properly
22360         computed rects.
22361
22362 2005-02-03  Peter Bartok  <pbartok@novell.com>
22363
22364         * ComponentModel.cs: Added
22365         * IDataGridEditingService.cs: Added
22366         * Timer.cs: Added missing attributes
22367         * ToolTip.cs: Added missing attributes
22368
22369 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22370
22371         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
22372
22373 2005-02-03  Peter Bartok  <pbartok@novell.com>
22374
22375         * ListBox.cs: Added missing attributes
22376
22377 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
22378         
22379         * ListBox.cs:
22380                 - Fixes font height after font change
22381                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
22382                 
22383 2005-02-02  Peter Bartok  <pbartok@novell.com>
22384
22385         * HandleData.cs: Introduced static methods to allow class
22386           to be more self-contained and track it's own HandleData objects
22387         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
22388           HandleData to use new static methods
22389
22390 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
22391
22392         * Combobox.cs:
22393                 - Fixes default size and PreferredHeight
22394                 - Missing events
22395                 - ObjectCollection.Insert implementation
22396                 
22397         * ListControl.cs
22398                 - Fixes signature
22399         * ListBox.cs:
22400                 - Several fixes
22401                 - ObjectCollection.Insert implementation
22402                 - No selection after clean
22403                 - Small fixes
22404
22405 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
22406
22407         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
22408
22409 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
22410
22411         * Combobox.cs:
22412                 - Caches ItemHeight calculation for OwnerDrawVariable
22413                 - Handles dropdown properly
22414                 - Fixes several minor bugs
22415
22416 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
22417
22418         * ListBox.cs:
22419                 - Fixes 71946 and 71950
22420                 - Fixes changing Multicolumn on the fly
22421                 - Fixes keyboard navigation on Multicolumn listboxes
22422
22423 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22424         
22425         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
22426         crash reporter log.
22427
22428 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22429
22430         * XplatUIOSX.cs: Allow applications to actually exit.
22431
22432 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
22433
22434         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
22435         their parent at creation time rather than lazily later.  Fixes a major
22436         regression we were experiencing.
22437
22438 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
22439
22440         * ThemeWin32Classic.cs: more date time picker painting fixes
22441         * DateTimePicker.cs: more monthcalendar drop down fixes
22442         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
22443
22444 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
22445
22446         * ScrollBar.cs:
22447                 - When moving the thumb going outside the control should stop the moving
22448                 - Adds the firing of missing events
22449                 - Fixes no button show if Size is not specified
22450                 - End / Home keys for keyboard navigation
22451
22452 2005-01-30  Peter Bartok  <pbartok@novell.com>
22453
22454         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
22455           sanity check to prevent theoretical loop
22456         * XplatUIWin32.cs (SetVisible): Removed debug output
22457         * XplatUIX11.cs (SystrayChange): Added sanity check
22458         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
22459         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
22460           behaviour, valid until the X11 client window rewrite is done
22461         * TextBox.cs (ctor): Setting proper default foreground and background
22462           colors
22463
22464 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
22465
22466         * Theme: Added DrawDateTimePicker to interface
22467         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
22468         * DateTimePicker.cs: Created (still needs keys and painting code)
22469         * DateTimePickerFormat.cs: added
22470         * MonthCalendar.cs: fixed CreateParams for popup window mode
22471           
22472 2005-01-29  Peter Bartok  <pbartok@novell.com>
22473
22474         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
22475           this should also the calculations for ligher/darker
22476         * Theme.cs: Fixed defaults for ScrollBar widths/heights
22477
22478 2005-01-29  Peter Bartok  <pbartok@novell.com>
22479
22480         * ArrangeDirection.cs: Added
22481         * ArrangeStartingPositon.cs: Added
22482         * SystemInformation.cs: Implemented
22483         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22484           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
22485           used by SystemInformation class
22486         * X11Strucs.cs: Added XSizeHints structure
22487         * MenuAPI.cs:
22488           - Fixed CreateParams to make sure the menu window is always visible
22489           - TrackPopupMenu: Added check to make sure we don't draw the
22490             menu offscreen
22491
22492 2005-01-29  Peter Bartok  <pbartok@novell.com>
22493
22494         * HandleData.cs: Added method for altering invalid area
22495         * TextBoxBase.cs: Implemented TextLength
22496
22497 2005-01-28  Peter Bartok  <pbartok@novell.com>
22498
22499         * XplatUIX11.cs: Improvement over last patch, not sending
22500           the WM_PAINT directly anymore, instead we scroll any pending
22501           exposed areas and let the system pick out the WM_PAINT later
22502
22503 2005-01-28  Peter Bartok  <pbartok@novell.com>
22504
22505         * SWF.csproj: Deleted, no longer used. Instead,
22506           Managed.Windows.Forms/SWF.csproj should be used
22507         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
22508           directly, to avoid a potential race condition with the next
22509           scroll
22510
22511 2005-01-28  Peter Bartok  <pbartok@novell.com>
22512
22513         * XplatUI.cs: Made class internal
22514
22515 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
22516
22517         * CheckedListBox.cs:
22518                 - Draw focus
22519                 - Fixed Drawing
22520                 - Missing methods and events
22521
22522 2005-01-27  Peter Bartok  <pbartok@novell.com>
22523
22524         * Application.cs (Run): Don't use form if we don't have one
22525
22526 2005-01-27  Peter Bartok  <pbartok@novell.com>
22527
22528         * TextBoxBase.cs (get_Lines): Fixed index off by one error
22529
22530 2005-01-27  Peter Bartok  <pbartok@novell.com>
22531
22532         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
22533         * GridItem.cs: Added; Patch by Jonathan S. Chambers
22534         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
22535         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
22536         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
22537         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
22538         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22539         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
22540         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22541         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22542         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
22543         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
22544
22545 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
22546
22547         * Combobox.cs:
22548                 - Draw focus on Simple Combobox
22549                 - Fixes drawing issues
22550                 - fixes 71834
22551
22552 2005-01-27  Peter Bartok  <pbartok@novell.com>
22553
22554         * Form.cs:
22555           - Place window in default location, instead of hardcoded 0/0
22556           - Send initial LocationChanged event
22557         * Control.cs:
22558           - UpdateBounds after creation to find out where the WM placed us
22559           - Make sure that if the ParentForm changes location the Form
22560             is notified
22561         * XplatUIX11.cs: XGetGeometry will not return the coords relative
22562             to the root, but to whatever the WM placed around us.
22563             Translate to root coordinates before returning toplevel
22564             coordinates
22565         * XplatUIWin32.cs: Removed debug output
22566         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
22567           flag to GetWindowPos, to allow translation of coordinates on X11
22568
22569 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
22570
22571         * ListBox.cs: connect LostFocus Event
22572
22573 2005-01-27  Peter Bartok  <pbartok@novell.com>
22574
22575         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
22576           XplatUIX11.cs: Extended the Systray API
22577         * Form.cs: Removed debug output
22578         * Application.cs: Fixed focus assignment, always need to call
22579           XplatUI.Activate() since Form.Activate() has rules that may
22580           prevent activation
22581         * NotifyIcon.cs: Should be complete now
22582         * ToolTip.cs: Worked around possible timer bug
22583
22584 2005-01-27  Jackson Harper  <jackson@ximian.com>
22585
22586         * TabControl.cs:
22587         - Only invalidate the effected tabs when the
22588         selected index changes. This reduces drawing and gets rid of some
22589         flicker.
22590         - Only refresh if the tabs need to be shifted, otherwise only
22591         invalidate the slider button.
22592         - On windows the tabs are not filled to right if the slider is
22593         visible.
22594         
22595 2005-01-27  Jackson Harper  <jackson@ximian.com>
22596
22597         * TabControl.cs: Only refresh on mouseup if we are showing the
22598         slider. Also only invalidate the button whose state has changed.
22599
22600 2005-01-26  Peter Bartok  <pbartok@novell.com>
22601
22602         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
22603         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
22604           and SystrayRemove() methods
22605         * XplatUIOSX.cs: Stubbed Systray methods
22606         * XplatUIX11.cs:
22607           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
22608             methods
22609           - Fixed broken XChangeProperty calls (marshalling messed up things)
22610         * X11Structs.cs: Added enums and structs required for Size hinting
22611         * NotifyIcon.cs: Added & implemented
22612
22613 2005-01-26  Jackson Harper  <jackson@ximian.com>
22614
22615         * TabControl.cs: Space vertically layed out tabs properly.
22616
22617 2005-01-26  Peter Bartok  <pbartok@novell.com>
22618
22619         * Form.cs (CreateClientParams): Always set the location to 0,0
22620           since we're a child window.
22621
22622         * Control.cs (SetVisibleCore): Always explicitly setting the location
22623           of a toplevel window, apparently X11 doesn't like to move windows
22624           while they're not mapped.
22625
22626 2005-01-26  Jackson Harper  <jackson@ximian.com>
22627
22628         * TabControl.cs: Implement FillToRight size mode with vertically
22629         rendered tabs.
22630
22631 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
22632
22633         * ControlPaint.cs, ThemeWin32Classic.cs
22634                 - Fixes DrawFocusRectangle
22635
22636 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
22637
22638         * MenuAPI.cs:
22639                 - MenuBar tracking only starts when item is first clicked
22640                 - Fixes menu hidding for multiple subitems
22641                 - Unselect item in MenuBar when item Executed
22642                 - Fixes bug 71495
22643
22644 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
22645
22646         * ListControl.cs:
22647                 - IsInputKey for ListBox
22648         * ListBox.cs:
22649                 - Focus item
22650                 - Shift and Control item selection
22651                 - Implement SelectionMode.MultiExtended
22652                 - Fixes RightToLeft
22653         * ComboBox.cs:
22654                 - IsInputKey implemented
22655                 - Do not generate OnTextChangedEdit on internal txt changes
22656                 
22657 2005-01-23  Peter Bartok  <pbartok@novell.com>
22658
22659         * AccessibleObject.cs: Partially implemented Select()
22660         * MonthCalendar.cs: Added missing attributes and events
22661         * Form.cs: Fixed CreateParams behaviour, now controls derived from
22662           form can properly override CreateParams.
22663         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22664           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
22665           Control performs Invalidate & Update
22666         * NativeWindow (CreateHandle): Added special handling for Form
22667           and Form.FormParent classes to allow overriding of From.CreateParams
22668         * Control.cs:
22669           - ControlNativeWindow: Renamed 'control' variable to more intuitive
22670             name 'owner'
22671           - ControlNativeWindow: Added Owner property
22672           - Removed usage of Refresh() on property changes, changed into
22673             Invalidate(), we need to wait until the queue is processed for
22674             updates, direct calls might cause problems if not all vars for
22675             Paint are initialized
22676           - Added call to UpdateStyles() when creating the window, to set any
22677             styles that CreateWindow might have ignored.
22678           - Added support for Form CreateParent overrides to UpdateStyles()
22679         * MessageBox.cs: Removed no longer needed FormParent override stuff,
22680           CreateParams are now properly overridable
22681         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
22682           CreateParams are now properly overridable
22683
22684 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
22685
22686         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
22687         OnTextBoxChanged.
22688
22689         Capture LostFocus and OnTextBoxChanged.  The later introduces a
22690         recursive invocation that I have not figured out yet.
22691
22692         Reset the timer when not using (it was accumulating).
22693
22694
22695         (OnTextBoxChanged): Set UserEdit to true here to track whether the
22696         user has made changes that require validation.
22697
22698         Reset changing to avoid loops.
22699
22700 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
22701
22702         * NumericUpDown.cs: Display value at startup.
22703
22704         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
22705         ValidateEditText.
22706
22707         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
22708         filled in.  Added some basic parsing of text.
22709
22710         Still missing the OnXXX method overrides, and figuring out the
22711         events that must be emitted.
22712
22713         * UpDownBase.cs: Handle UserEdit on the Text property.
22714         
22715 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
22716
22717         * ComboBox.cs:
22718           - Fixes IntegralHeight
22719           - ToString method
22720
22721 2005-01-21  Jackson Harper  <jackson@ximian.com>
22722
22723         * TabControl.cs: Set the SelectedIndex property when SelectedTab
22724         is set so that the page visibility is updated and the tabs are
22725         sized correctly.
22726
22727 2005-01-21  Jackson Harper  <jackson@ximian.com>
22728
22729         * TabControl.cs: Use cliping rectangle for blitting. Give the
22730         theme the clipping rect so we can do clipping while
22731         drawing. Remove some debug code.
22732
22733 2005-01-21  Jackson Harper  <jackson@ximian.com>
22734
22735         * TabPage.cs: Add a new method so tab pages can force the tab
22736         control to recalculate the tab page sizes.
22737         * TabControl.cs: UpdateOwner needs to make the tab control recalc
22738         sizes.
22739
22740 2005-01-20  Jackson Harper  <jackson@ximian.com>
22741
22742         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
22743
22744 2005-01-20  Jackson Harper  <jackson@ximian.com>
22745
22746         * TreeView.cs: Set the bounds for nodes properly. They were
22747         getting screwed up when checkboxes were not enabled, but images
22748         were.
22749
22750 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
22751
22752         * ListBox.cs:
22753                 - Owner draw support
22754                 - Fixes
22755                 
22756 2005-01-20  Jackson Harper  <jackson@ximian.com>
22757
22758         * XplatUIStructs.cs: More misc keys
22759         * X11Keyboard.cs: Ignore some control keys.
22760
22761 2005-01-20  Jackson Harper  <jackson@ximian.com>
22762
22763         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
22764         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
22765
22766 2005-01-19  Peter Bartok  <pbartok@novell.com>
22767
22768         * Control.cs: Un-selecting the control when it is loosing focus
22769
22770 2005-01-19  Jackson Harper  <jackson@ximian.com>
22771
22772         * TreeView.cs: Hook up to the text controls leave event so we can
22773         end editing when the users clicks outside the text box.
22774         
22775 2005-01-19  Jackson Harper  <jackson@ximian.com>
22776
22777         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
22778         get set in the conversion array.
22779
22780 2005-01-19  Peter Bartok  <pbartok@novell.com>
22781
22782         * Application.cs (ModalRun): Added a call to CreateControl to ensure
22783           focus is properly set
22784         * Button.cs:
22785           - Added missing attributes
22786           - removed styles, those are already set in the base class
22787         * ButtonBase.cs:
22788           - Added missing attributes
22789           - Added clip window styles
22790         * CheckBox.cs: Added missing attributes
22791         * CommonDialog.cs:
22792           - FormParentWindow.CreateParams: Added required clip styles
22793         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
22794           also filters modifier keys
22795         * MessageBox.cs:
22796           - Added assignment of Accept and Cancel button to enable Enter
22797             and Esc keys in MessageBox dialogs
22798           - FormParentWindow.CreateParams: Added required clip styles
22799         * RadioButton.cs: Added missing attributes
22800         * TextControl.cs: No longer draws selection if control does not
22801           have focus
22802         * TextBoxBase.cs:
22803           - Now draws simple rectangle around test area to make it obvious
22804             there's a control. This is a hack until we properly support borders
22805           - A few simple fixes to support selections better, now erases selected
22806             text when typing, and resets selection when using movement keys
22807
22808 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
22809
22810         * UpDownBase.cs: Added some new properties.
22811
22812         * DomainUpDown.cs: Implement a lot to get my test working.
22813
22814 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22815
22816         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
22817
22818 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22819
22820         * OSXStructs (WindowAttributes): Fixed csc complaints
22821
22822 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22823
22824         * XplayUIOSX.cs:
22825           OSXStructs.cs: Initial refactor to move enums and consts into
22826           OSXStructs and use them in the driver for greater readability.
22827
22828 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
22829
22830         * XplatUIOSX.cs: Initial support for Standard Cursors.
22831         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
22832
22833 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
22834
22835         * ComboBox.cs: ability to change style when the ctrl is already
22836         created, missing methods and events, bug fixes, signature fixes
22837
22838 2005-01-19  Peter Bartok  <pbartok@novell.com>
22839
22840         * Cursors.cs (ctor): Added ctor to fix signature
22841
22842 2005-01-18  Peter Bartok  <pbartok@novell.com>
22843
22844         * Button.cs: Implemented DoubleClick event
22845         * ButtonBase.cs:
22846           - Fixed keyboard handling to behave like MS, where the press of
22847             Spacebar is equivalent to a mousedown, and the key release is
22848             equivalent to mouseup. Now a spacebar push will give the same
22849             visual feedback like a mouse click.
22850           - Added missing attributes
22851           - Added ImeModeChanged event
22852           - Added support for generating DoubleClick event for derived classes
22853         * CheckBox.cs:
22854           - Implemented DoubleClick event
22855           - Added missing attributes
22856         * CommonDialog.cs: Added missing attribute
22857         * ContextMenu.cs: Added missing attributes
22858         * RadioButton.cs:
22859           - AutoChecked buttons do not allow to be unselected when clicked
22860             (otherwise we might end up with no selected buttons in a group)
22861           - Added missing attributes
22862           - Implemented DoubleClickEvent
22863         * ThreadExceptionDialog.cs: Enabled TextBox code
22864
22865 2005-01-18  Peter Bartok  <pbartok@novell.com>
22866
22867         * Form.cs: Removed debug output
22868         * Button.cs: Added support for DoubleClick method
22869
22870 2005-01-18  Peter Bartok  <pbartok@novell.com>
22871
22872         * Form.cs:
22873           - Added method to parent window that allows triggering size
22874             calculations when a menu is added/removed
22875           - set_Menu: Cleaned up mess from early days of Form and Control,
22876             now properly triggers a recalc when a menu is added/removed
22877           - Added case to select form itself as focused form if no child
22878             controls exist
22879           - Added PerformLayout call when showing dialog, to ensure properly
22880             placed controls
22881         * Control.cs:
22882           - Select(): Made internal so Form can access it
22883           - Focus(): Only call Xplat layer if required (avoids loop), and sets
22884             status
22885         * Application.cs (Run): Removed hack and calls PerformLayout instead
22886           to trigger calculation when Form becomes visible
22887
22888 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
22889
22890         * ComboBox.cs: fixes for ownerdraw
22891
22892 2005-01-18  Peter Bartok  <pbartok@novell.com>
22893
22894         * TextControl.cs:
22895           - Sentinel is no longer static, each Document gets it's own, this
22896             avoids locking or alternatively overwrite problems when more
22897             than one text control is used simultaneously.
22898           - Switched to use Hilight and HilightText brushes for text selection
22899
22900         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
22901
22902 2005-01-18  Peter Bartok  <pbartok@novell.com>
22903
22904         * Control.cs:
22905           - Hooked up the following events:
22906                 o ControlAdded
22907                 o ControlRemoved
22908                 o HandleDestroyed
22909                 o ImeModeChanged
22910                 o ParentChanged
22911                 o TabStopChanged
22912                 o Invalidated
22913                 o SystemColorsChanged
22914                 o ParentFontChanged
22915                 o Move
22916           - Removed debug output
22917           - Added a call to the current theme's ResetDefaults when a color change
22918             is detected
22919         * Form.cs: Now setting the proper ImeMode
22920         * Theme.cs: Defined a method to force recreation of cached resources
22921           and rereading of system defaults (ResetDefaults())
22922         * ThemeWin32Classic.cs: Added ResetDefaults() stub
22923
22924 2005-01-17  Peter Bartok  <pbartok@novell.com>
22925
22926         * Control.cs: Added missing attributes
22927
22928 2005-01-17  Jackson Harper  <jackson@ximian.com>
22929
22930         * TreeNode.cs: Implement editing. Add missing properties selected
22931         and visible.
22932         * TreeView.cs: Implement node editing. Also some fixes to use
22933         Invalidate (invalid area) instead of Refresh when selecting.
22934
22935 2005-01-17  Peter Bartok  <pbartok@novell.com>
22936
22937         * Control.cs:
22938           - Implemented InvokeGotFocus() method
22939           - Implemented InvokeLostFocus() method
22940           - Implemented InvokePaint() method
22941           - Implemented InvokePaintBackground() method
22942           - Implemented InvokeClick() method
22943           - Implemented FindForm() method
22944           - Implemented RectangleToClient() method
22945           - Implemented ClientToRectangle() method
22946           - Implemented ResetBackColor() method
22947           - Implemented ResetCursor() method
22948           - Implemented ResetFont() method
22949           - Implemented ResteForeColor() method
22950           - Implemented ResetImeMode() method
22951           - Implemented ResetLeftToRight() method
22952           - Implemented ResetText() method
22953           - Implemented Scale() methods
22954           - Implemented ScaleCore() method
22955           - Implemented Update() method
22956           - Removed unused variables
22957           - Stubbed AccessibilityNotifyClients and
22958             ControlAccessibleObject.NotifyClients() methods (dunno what to do
22959             with those yet)
22960           - Now setting proper default for RightToLeft property
22961           - Fixed bug in SetClientSizeCore that would cause windows to get
22962             really big
22963           - Now sending Click/DoubleClick events
22964           - Now selecting controls when left mouse button is clicked on
22965             selectable control
22966         * AccessibleEvents.cs: Added
22967         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
22968         * XplatUIOSX.cs: Stubbed UpdateWindow() method
22969         * XplatUIWin32.cs: Implemented UpdateWindow() method
22970         * XplatUIX11.cs: Implemented UpdateWindow() method
22971         * Form.cs: Removed stray semicolon causing CS0162 warning
22972         * ThemeWin32Classic.cs: Fixed unused variable warnings
22973         * ScrollableControl.cs: Now calls base method for ScaleCore
22974         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
22975           style to avoid interference with internal click handler (which is
22976           different than standard Control click handling)
22977         * RadioButton.cs:
22978           - Now unchecks all sibling radio buttons when control is
22979             selected (Fixes #68756)
22980           - Removed internal tabstop variable, using the one inherited from
22981             Control
22982
22983 2005-01-17  Jackson Harper  <jackson@ximian.com>
22984
22985         * NavigateEventArgs.cs: Fix base type.
22986         * LinkLabel.cs: Sig fix
22987         
22988 2005-01-17  Jackson Harper  <jackson@ximian.com>
22989
22990         * TreeView.cs: Only invalidate the effected nodes bounds when
22991         selecting nodes.
22992
22993 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
22994
22995         * XplatUIWin32.cs: fixes Win32 marshaling
22996         * XplatUIX11.cs: fixes method signature
22997
22998 2005-01-17  Peter Bartok  <pbartok@novell.com>
22999
23000         * XplatUIX11.cs: Clean up resources when we no longer need them
23001
23002 2005-01-17  Peter Bartok  <pbartok@novell.com>
23003
23004         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
23005           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
23006           and DestroyCursor() methods.
23007         * Cursor.cs: Partially implemented, now supports standard cursors;
23008           still contains some debug code
23009         * Cursors.cs: Implemented class
23010         * Control.cs:
23011           - WndProc(): Added handling of WM_SETCURSOR message, setting the
23012             appropriate cursor
23013           - Implemented Cursor property
23014           - Replaced break; with return; more straightforwar and possibly
23015             faster
23016           - Now properly setting the result for WM_HELP
23017         * X11Structs.cs: Added CursorFontShape enum
23018         * XplatUIStructs.cs:
23019           - Added StdCursor enum (to support DefineStdCursor() method)
23020           - Added HitTest enum (to support sending WM_SETCURSOR message)
23021         * XplatUIX11.cs:
23022           - Now sends the WM_SETCURSOR message
23023           - Implemented new cursor methods
23024         * XplatUIOSX.cs: Stubbed new cursor methods
23025         * XplatUIWin32.cs:
23026           - Implemented new cursor methods
23027           - Added GetSystemMetrics function and associated enumeration
23028
23029 2005-01-15  Peter Bartok  <pbartok@novell.com>
23030
23031         * Control.cs:
23032           - WndProc(): Now handles EnableNotifyMessage
23033           - SelectNextControl(): Fixed bug where if no child or sibling
23034             controls exist we looped endlessly
23035
23036 2005-01-14  Jackson Harper  <jackson@ximian.com>
23037
23038         * TreeView.cs: Recalculate the tab pages when a new one is added
23039         so that the proper bounding rects are created.
23040
23041 2005-01-14  Jackson Harper  <jackson@ximian.com>
23042
23043         * TreeView.cs: Draw a gray box instead of a grip in the lower
23044         right hand corner when there are both horizontal and vertical
23045         scroll bars.
23046
23047 2005-01-14  Jackson Harper  <jackson@ximian.com>
23048
23049         * Control.cs: When erasing backgrounds use FromHwnd instead of
23050         FromHdc when there is a NULL wparam. This occurs on the X driver.
23051         * XplatUIX11.cs: Set the wparam to NULL.
23052
23053 2005-01-13  Jackson Harper  <jackson@ximian.com>
23054
23055         * PictureBox.cs: Implement missing methods (except ToString, need
23056         to test that on windows) and events. When visibility is changed we
23057         need to redraw the image because the buffers are killed. When size
23058         is changed refresh if the sizemode needs it.
23059
23060 2005-01-13  Peter Bartok  <pbartok@novell.com>
23061
23062         * Control.cs (SelectNextControl): Was using wrong method to select
23063           a control
23064
23065 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
23066
23067         * ComboBox.cs: fixes dropstyle
23068
23069 2005-01-13  Peter Bartok  <pbartok@novell.com>
23070
23071         * Form.cs:
23072           - Implemented Select() override
23073           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
23074           - Now sets keyboard focus on startup
23075         * Control.cs (SelectNextControl): Now properly handles directed=true
23076         * TextBoxBase.cs:
23077           - WndProc: Now passes tab key on to base if AcceptTabChar=false
23078           - Added (really bad) focus rectangle (mostly for testing)
23079         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
23080           to enforce redraw on focus changes
23081         * ContainerControl.cs:
23082           - Fixed detection of Shift-Tab key presses
23083           - Fixed traversal with arrow keys
23084         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
23085           gonna keep this or if it's complete yet
23086         
23087 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
23088
23089         * ComboBox.cs: missing properties, fixes
23090
23091 2005-01-13  Peter Bartok  <pbartok@novell.com>
23092
23093         * Panel.cs (ctor): Setting Selectable window style to off
23094         * Splitter.cs (ctor): Setting Selectable window style to off
23095         * GroupBox.cs (ctor): Setting Selectable window style to off
23096         * Label.cs (ctor): Setting Selectable window style to off
23097
23098 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
23099
23100         * UpDownBase.cs (InitTimer): If the timer has been already
23101         created, enable it.
23102
23103         Use a TextBox instead of a Label.
23104
23105 2005-01-12  Jackson Harper  <jackson@ximian.com>
23106
23107         * TreeView.cs: Refresh the tree after sorting the nodes. Always
23108         draw the connecting node lines (when ShowLines is true).
23109         * TreeNode.cs: The nodes index can now be updated. This is used
23110         when a node collection is sorted.
23111         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
23112         insert or an existing unsorted node collection can be sorted.
23113         
23114 2005-01-12  Peter Bartok  <pbartok@novell.com>
23115
23116         * ContainerControl.cs: Implemented ProcessDialogKeys()
23117
23118 2005-01-12  Peter Bartok  <pbartok@novell.com>
23119
23120         * Control.cs:
23121           - Implemented SelectNextControl() method
23122           - Several focus related bug fixes
23123           - Fixed Docking calculations to match MS documentation and
23124             behaviour
23125
23126 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
23127
23128         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
23129         bug fixes
23130
23131 2005-01-12  Peter Bartok  <pbartok@novell.com>
23132
23133         * Control.cs:
23134           - Fixed broken Contains() method
23135           - Implemented GetNextControl() method. Finally. This is the pre-
23136             requisite for focus handling.
23137
23138 2005-01-12  Peter Bartok  <pbartok@novell.com>
23139
23140         * OSXStrucs.cs: Added
23141
23142 2005-01-12  Peter Bartok  <pbartok@novell.com>
23143
23144         * XplatUIWin32.cs:
23145           - Removed PeekMessageFlags
23146           - Implemented SetWindowStyle() method
23147         * XplatUIStructs.cs: Added PeekMessageFlags
23148         * X11Structs: Added missing border_width field to XWindowChanges struct
23149         * XplatUIX11.cs:
23150           - PeekMessage: Now throws exception if flags which are not yet
23151             supported are passed
23152           - Implemented SetWindowStyle() method
23153           - Fixed SetZOrder to handle AfterHwnd properly
23154         * XplatUI.cs: Added SetWindowStyle() method
23155         * XplatUIDriver.cs: Added SetWindowStyle() abstract
23156         * Control.cs:
23157           - Implemented UpdateStyles() method
23158           - Implemented UpdateZOrder() method
23159         * XplatUIOSX.cs: Added SetWindowStyle() stub
23160
23161 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
23162
23163         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
23164         button mouse).
23165
23166
23167 2005-01-11  Jackson Harper  <jackson@ximian.com>
23168
23169         * TreeView.cs: Still need to draw lines to siblings even if out of
23170         the current node is out of the clip.
23171
23172 2005-01-11  Jackson Harper  <jackson@ximian.com>
23173
23174         * TreeView.cs: When setting the hbar/vbar/grip position use
23175         SetBounds so that perform layout is only called once. Also suspend
23176         and resume layout so layout is only done once for all controls.
23177         - Removed some debug fluff
23178         * SizeGrip.cs: Call base implmentation in overriding methods.
23179         - When visibility is changed the drawing buffers are killed so we
23180         need to redraw.
23181
23182 2005-01-11  Jackson Harper  <jackson@ximian.com>
23183
23184         * TreeView.cs: Calculate the open node count while drawing. This
23185         saves us an entire tree traversal for every paint operation. Use
23186         a member var for the open node count so less vars are passed around.
23187
23188 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
23189
23190         * MonthCalendar.cs:
23191         - fixed selection to use mousemove, not mouse polling on timer
23192         * ThemeWin32Classic.cs
23193         - removed redundant unused variable "no_more_content"
23194         
23195 2005-01-11  Peter Bartok  <pbartok@novell.com>
23196
23197         * XplatUIX11.cs (DoEvents): Needs to return when no more events
23198           are pending, so it now calls PeekMessage instead of GetMessage;
23199           implemented a incomplete version of PeekMessage
23200         
23201 2005-01-11  Peter Bartok  <pbartok@novell.com>
23202
23203         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
23204           I18n issues
23205         * TextBoxBase.cs: Added sending of TextChanged event
23206
23207 2005-01-10  Jackson Harper  <jackson@ximian.com>
23208
23209         * TreeView.cs: Try not to draw outside the clipping rectangle on
23210         each node element.
23211
23212 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
23213
23214         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
23215
23216 2005-01-10  Jackson Harper  <jackson@ximian.com>
23217
23218         * TreeView.cs:
23219         - Implement fast scrolling. Now only the newly
23220         exposed nodes are drawn and the old image is moved using the
23221         XplatUI::ScrollWindow method.
23222         - Factor in height of nodes when calculating whether or not the
23223         node is in the clipping rect.
23224
23225 2005-01-10  Jackson Harper  <jackson@ximian.com>
23226
23227         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
23228
23229 2005-01-10  Peter Bartok  <pbartok@novell.com>
23230
23231         * Application.cs: Added temporary hack to resolve all our resize
23232           required issues on startup. This will get fixed properly at
23233           some point in the future
23234
23235 2005-01-10  Jackson Harper  <jackson@ximian.com>
23236
23237         * SizeGrip.cs: New internal class that is used as a sizing
23238         grip control...hence the name.
23239
23240 2005-01-10  Peter Bartok  <pbartok@novell.com>
23241
23242         * Control.cs: Implemented proper TabIndex handling, now assigning
23243           a tabindex when a control is added to a container
23244         * GroupBox.cs (ctor): Now sets the Container style bit, required
23245           for Control.GetNextControl()
23246
23247 2005-01-09  Jackson Harper  <jackson@ximian.com>
23248
23249         * TextBoxBase.cs: Clear window when scrolling (fixes build).
23250
23251 2005-01-09  Peter Bartok <pbartok@novell.com>
23252
23253         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
23254           XplatUIX11.cs: Added ability to control ScrollWindow expose and
23255           an overload for ScrollWindow to allow only scrolling a rectangle
23256
23257 2005-01-09  Peter Bartok <pbartok@novell.com>
23258
23259         * Form.cs:
23260           - Implemented SetDesktopBounds method
23261           - Implemented SetDesktopLocation method
23262
23263 2005-01-08  Jackson Harper  <jackson@ximian.com>
23264
23265         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
23266         the node count has changed, this removes to VScroll::Refresh calls
23267         when drawing.
23268
23269 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
23270
23271         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
23272
23273 2005-01-07  Jackson Harper  <jackson@ximian.com>
23274
23275         * TreeNode.cs: Just update the single node when it is
23276         checked. Don't refresh after toggling, the Expand/Collapse already
23277         handles this.
23278         * TreeView.cs: Respect clipping a little more when drawing. Try
23279         not to redraw things that don't need to be redrawn. Just hide the
23280         scrollbars when they are no longer needed instead of removing
23281         them, so they don't have to be created again and again.
23282         
23283 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
23284
23285         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
23286         coordinates to window space to place the caret properly, FIXED.
23287         Implement GetWindowState & SetWindowState
23288
23289 2005-01-06  Peter Bartok <pbartok@novell.com>
23290
23291         * Form.cs:
23292           - Implemented ClientSize property
23293           - Implemented DesktopBounds property
23294           - Implemented DesktopLocation property
23295           - Implemented IsRestrictedWindow property
23296           - Implemented Size property
23297           - Implemented TopLevel property
23298           - Implemented FormWindowState property
23299         * Control.cs:
23300           - Implemented GetTopLevel() method
23301           - Implemented SetTopLevel() method
23302         * X11Structs.cs (Atom):
23303           - Added AnyPropertyType definition
23304           - Added MapState definiton and updated XWindowAttribute struct
23305         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
23306         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
23307         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
23308         * XplatUIWin32.cs:
23309           - Implemented GetWindowState() and SetWindowState() methods
23310           - Fixed Win32GetWindowLong return type
23311         * XplatUIX11.cs:
23312           - Introduced central function for sending NET_WM messages
23313           - Implemented GetWindowState() and SetWindowState() methods
23314         * TextBoxBase.cs (set_Lines):
23315           - Now uses Foreground color for text added via Text property (Duh!)
23316           - Added code to remember programmatically requested size (fixes
23317             behaviour when Multiline is set after Size)
23318           - Added AutoSize logic
23319
23320 2005-01-06  Jackson Harper  <jackson@ximian.com>
23321
23322         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
23323
23324 2005-01-06  Jackson Harper  <jackson@ximian.com>
23325
23326         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
23327         set to less then 0.
23328
23329 2005-01-06  Jackson Harper  <jackson@ximian.com>
23330
23331         * ScrollableControl.cs: Lazy init the scrollbars.
23332         
23333 2005-01-06  Jackson Harper  <jackson@ximian.com>
23334
23335         * Theme.cs: Speed up getting pens and solid brushes, by using
23336         their ARGB as a hash instead of tostring and not calling Contains.
23337
23338 2005-01-06  Peter Bartok <pbartok@novell.com>
23339
23340         * Form.cs:
23341           - Implemented OnActivated and OnDeactivate event trigger
23342           - Implemented Activate() method
23343           - Fixed ShowDialog() to activate the form that was active before
23344             the dialog was shown
23345         * XplatUIX11.cs:
23346           - Added global active_window var that tracks the currently active
23347             X11 window
23348           - Now always grabs Property changes from the root window to always
23349             catch changes on the active window property
23350           - Added code to PropertyNotify handler to send Active/Inactive
23351             messages when state changes. This puts X11 and Win32 en par on
23352             WM_ACTIVATE notifications (except for double notifications when
23353             the user clicks away from our modal window to another one of our
23354             windows)
23355
23356 2005-01-05  Jackson Harper  <jackson@ximian.com>
23357
23358         * ImageList.cs: Implment ctor
23359
23360 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23361
23362         * XplatUIOSX.cs: Implement Activate/SetTopmost
23363
23364 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23365
23366         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
23367
23368 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
23369
23370         * XplatUIOSX.cs: Implement GetActive/SetFocus.
23371
23372 2005-01-05  Peter Bartok <pbartok@novell.com>
23373
23374         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
23375           XplatUIOSX.cs: Added GetActive method to return the currently
23376           active window for the application (or null, if none is active)
23377         * Form.cs:
23378           - Implemented ActiveForm
23379           - Commented out owner assignment for modal dialogs (causes problems
23380             on Win32, since the owner will be disabled)
23381           - Reworked some Active/Focus handling (still incomplete)
23382         * CommonDialog.cs: Commented out owner assignment for modal dialogs
23383           (causes problems on Win32, since the owner will be disabled)
23384         * IWin32Window: Added ComVisible attribute
23385
23386 2005-01-05  Peter Bartok <pbartok@novell.com>
23387
23388         * ToolTip.cs (WndProc): Enable setting focus now that we have the
23389           required XplatUI functions.
23390
23391 2005-01-05  Peter Bartok <pbartok@novell.com>
23392
23393         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
23394           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
23395           to implement focus and activation handling; still incomplete and
23396           with debug output
23397
23398 2005-01-04  Peter Bartok <pbartok@novell.com>
23399
23400         * TextBoxBase.cs: Changed access level for Document property to
23401           match switch to internal for TextControl
23402
23403 2005-01-04  Peter Bartok <pbartok@novell.com>
23404
23405         * AccessibleObject: Added ComVisible attribute
23406
23407 2005-01-04  Jackson Harper  <jackson@ximian.com>
23408
23409         * X11Keyboard.cs: Remove unneeded var.
23410
23411 2005-01-04  Jackson Harper  <jackson@ximian.com>
23412
23413         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
23414         but PAINT.
23415         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
23416         ClientMessage. This makes apps exit cleanly (more often).
23417         
23418 2005-01-04  Jackson Harper  <jackson@ximian.com>
23419
23420         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
23421         handling focus, return correct colors and fonts,
23422         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
23423         handle selection, horizontal scrolling, and mouse interaction.
23424
23425 2005-01-04  Peter Bartok <pbartok@novell.com>
23426
23427         * ICommandExecutor.cs: Added
23428         * IDataGridColumnStyleEditingNotificationService.cs: Added
23429         * IFeatureSupport.cs: Added
23430         * IFileReaderService.cs: Added
23431         * IDataObject.cs: Added ComVisible attribute
23432         * AmbientProperties.cs: Added
23433         * BaseCollection.cs: Added missing attributes
23434         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
23435         * BaseCollection.cs: Added missing attributes
23436         * Binding.cs: Added TypeConverter attribute
23437         * BindingContext.cs: Added DefaultEvent attribute
23438         * BindingsCollection.cs: Added DefaultEvent attribute
23439         * Button.cs: Added DefaultValue attribute
23440         * DragEventArgs.cs: Added ComVisible attribute
23441         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
23442         * KeyEventArgs.cs: Added ComVisible attribute
23443         * KeyPressEventArgs.cs: Added ComVisible attribute
23444         * MouseEventArgs.cs: Added ComVisible attribute
23445         * NavigateEventArgs.cs: Added
23446         * NavigateEventHandler.cs: Added
23447         * FeatureSupport.cs: Added
23448         * OSFeature.cs: Added
23449         * Theme.cs: Added abstract Version property to support OSFeature
23450         * ThemeWin32Classic.cs: Added Version property to
23451           support OSFeature.Themes
23452         * ProgressBar.cs: Removed OnPaintBackground override, not required since
23453           the proper styles to avoid background drawing are set, also doesn't
23454           match MS signature
23455         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
23456         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
23457         * ScrollEventArgs.cs: Added ComVisible attribute
23458         * SplitterEventArgs.cs: Added ComVisible attribute
23459         * AccessibleSelection.cs: Added Flags attribute
23460         * Appearance.cs: Added ComVisible attribute
23461         * Border3DSide.cs: Added ComVisible attribute
23462         * Border3DStyle.cs: Added ComVisible attribute
23463         * BorderStyle.cs: Added ComVisible attribute
23464         * DragAction.cs: Added ComVisible attribute
23465         * ErrorBlinkStyle.cs: Added
23466         * ScrollEventType.cs: Added ComVisible attribute
23467         * AnchorStyles.cs: Added Editor attribute
23468         * DockStyle.cs: Added Editor attribute
23469         * HorizontalAlignment.cs: Added ComVisible attribute
23470         * HelpEventArgs.cs: Added ComVisible attribute
23471         * PaintEventArgs.cs: Added IDisposable
23472
23473 2005-01-04  Peter Bartok <pbartok@novell.com>
23474
23475         * TextControl.cs: Switched Line, LineTag and Document classes to
23476           internal
23477
23478 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
23479
23480         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
23481         Simple mode, fixes, IntegralHeight, etc.
23482
23483 2005-01-04  Peter Bartok <pbartok@novell.com>
23484
23485         * TextBoxBase.cs: Using proper font variable now
23486
23487 2005-01-04  Peter Bartok <pbartok@novell.com>
23488
23489         * Form.cs (ShowDialog): Set parent to owner, if provided
23490         * GroupBox.cs: Removed unused vars
23491         * TextControl.cs:
23492           - Added GetHashCode() for Document and LineTag classes
23493           - Removed unused variables
23494           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
23495             to allow translation between continuous char position and line/pos
23496         * CheckBox.cs: Removed vars that are provided by base class
23497         * RadioButton.cs: Removed vars that are provided by base class, added
23498           new keyword where required
23499         * LinkLabel.cs: Added new keyword where required
23500         * Control.cs (WndProc): Removed unused variable
23501         * TextBoxBase.cs:
23502           - Finished SelectionLength property
23503           - Implemented SelectionStart property
23504           - Implemented Text property
23505           - Removed unused vars
23506         * MessageBox.cs: Added new keyword where required
23507         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
23508           WndProc signature
23509         * MenuAPI.cs: Added new keyword where required
23510         * ButtonBase.cs: Removed vars that are provided by base class, added
23511           new keyword where required
23512         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
23513           argument to double, to allow compiling with csc 2.0 (Atsushi ran
23514           into this)
23515         * Application.cs (Run): Now triggers the ThreadExit event
23516         * CommonDialog.cs: Added new keyword where required; now properly sets
23517           parent (owner) for dialog
23518         * XplatUIX11.cs: Commented out unused vars
23519         * StatusBar.cs: Fixed signature for Text property
23520         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
23521
23522 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
23523
23524         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
23525         TrackBar.cs, MonthCalendar.cs: remove unused vars
23526
23527 2005-01-03  Jackson Harper  <jackson@ximian.com>
23528
23529         * ThemeWin32Classic.cs:
23530         * X11Keyboard.cs: Remove unused vars.
23531
23532 2005-01-03  Peter Bartok  <pbartok@novell.com>
23533
23534         * TextBox.cs:
23535           - set_Text: Tied into TextControl
23536           - set_TextAlignment: Tied into TextControl
23537         * TextControl.cs:
23538           - Added alignment properties and implemented alignment handling
23539             and drawing (still has a bug, not generating proper expose events)
23540           - Added new Line() constructor to allow passing the line alignment
23541           - Fixed selection setting, properly handling end<start now
23542           - Added aligment considerations to RecalculateDocument()
23543         * TextBoxBase.cs:
23544           - Now properly enforces control height for single line controls
23545           - Added support for CharacterCasing
23546           - Added IsInputKey override
23547           - Fixed Keys.Enter logic
23548           - Added SetBoundsCore override
23549           - Fixed mouse selection handling
23550
23551 2005-01-03  Jackson Harper  <jackson@ximian.com>
23552
23553         * TreeView.cs:
23554           - Collapse and uncheck all nodes when CheckBoxes is disabled.
23555           - Checkboxes are always aligned to the bottom of the node,
23556           regardless of item height.
23557           - Use the node bounds to draw the text so we can center it when
23558           the item height is greater then the font height.
23559           - Node::Bounds are only the text part of the node.
23560         * TreeNode.cs: New method to combine collapsing and unchecking all
23561           nodes recursively.
23562
23563 2005-01-02  Jackson Harper  <jackson@ximian.com>
23564
23565         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
23566         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
23567         tree when a check is changed. TODO: Only refresh the checked node.
23568
23569 2004-12-30  Jackson Harper  <jackson@ximian.com>
23570
23571         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
23572         * TreeNode.cs: When collapsing make sure to never collapse the
23573         root node.
23574
23575 2004-12-29  Jackson Harper  <jackson@ximian.com>
23576
23577         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
23578         
23579 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
23580
23581         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
23582
23583 2004-12-28  Peter Bartok  <pbartok@novell.com>
23584
23585         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
23586           not yet assigned
23587
23588 2004-12-28  Peter Bartok  <pbartok@novell.com>
23589
23590         * Control.cs (WndProc): Added WM_HELP handler, now generates
23591           HelpRequested event
23592         * Form.cs: Added HelpButton property and required support code
23593         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
23594
23595 2004-12-28  Peter Bartok  <pbartok@novell.com>
23596
23597         * CommonDialog.cs:
23598           - Made DialogForm.owner variable internal
23599           - Added check to ensure owner form is set before setting
23600             owner properties in CreateParams
23601
23602 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
23603
23604         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
23605           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
23606           GetCursorPos.  Fix major visibility issues.  Rework the windowing
23607           system to support borderless/titleless windows (implements menus).
23608           Fix GetWindowPos.  Implement initial background color support for
23609           views.
23610
23611 2004-12-28  Peter Bartok  <pbartok@novell.com>
23612
23613         * Form.cs (get_CreateParams): Make sure we have an owner before using
23614           the owner variable. Implement proper default if no owner exists
23615
23616 2004-12-28  Peter Bartok  <pbartok@novell.com>
23617
23618         * In preparation for making Managed.Windows.Forms the default build target
23619           for System.Windows.Forms, the following stubbed files were added.
23620           Dialogs are currently being implemented by contributors and are only
23621           short-term place holders.
23622         * ColorDialog.cs: Initial check-in (minmal stub)
23623         * DataGrid.cs: Initial check-in (minimal stub)
23624         * DataGridLineStyle.cs: Initial check-in (minimal stub)
23625         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
23626         * DataGridTableStyle.cs: Initial check-in (minimal stub)
23627         * FontDialog.cs: Initial check-in (minimal stub)
23628         * FileDialog.cs: Initial check-in (minimal stub)
23629         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
23630         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
23631         * OpenFileDialog: Initial check-in (minimal stub)
23632         * IComponentEditorPageSite.cs: Initial check-in
23633         * Splitter.cs: Initial check-in (for Jackson)
23634         * SplitterEventArgs.cs: Initial check-in (for Jackson)
23635         * SplitterEventHandler.cs: Initial check-in (for Jackson)
23636         * TextBox.cs: Initial check-in; still needs some wiring to
23637           TextControl backend
23638         * Form.cs: Implemented ControlBox property
23639         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
23640         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
23641         * TextControl.cs: Added selection functionality; added todo header
23642         * TextBoxBase.cs:
23643           - Implemented Lines property
23644           - Implemented TextHeight property
23645           - Implemented SelectedText property
23646           - Implemented SelectionLength property
23647           - Implemented SelectAll method
23648           - Implemented ToString method
23649           - Removed and cleaned up some debug code
23650           - Implemented (still buggy) mouse text selection
23651
23652 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
23653
23654         * ComboBox.cs: Complete DropDownList implementation, fixes.
23655
23656 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
23657
23658         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
23659         * ComboBoxStyle.cs: ComboBoxStyle enum
23660         * ComboBox.cs: Initial work on ComboBox control
23661
23662 2004-12-21  Peter Bartok  <pbartok@novell.com>
23663
23664         * Control.cs (ctor, CreateParams): Moved setting of is_visible
23665           forward so that anything that creates a window gets the default,
23666           also no longer uses Visible property in CreateParams to avoid
23667           walking up the parent chain and possibly get the wrong visible
23668           status. Fixed IsVisible to no longer walk up to the parent.
23669
23670 2004-12-21  Peter Bartok  <pbartok@novell.com>
23671
23672         * Form.cs (ShowDialog): Unset modality for the proper window
23673  
23674 2004-12-20  Peter Bartok  <pbartok@novell.com>
23675
23676         * CommonDialog.cs: Initial check-in
23677
23678 2004-12-20  Peter Bartok  <pbartok@novell.com>
23679
23680         * Control.cs (Visible): Now uses the parent window instead of the
23681           client area window for the property
23682
23683         * Form.cs
23684           - ShowDialog(): Now uses the proper window for modality
23685           - The default visibility state for the form parent is now false. This
23686             will prevent the user from seeing all the changes to the form and
23687             its controls before the application hits Application.Run()
23688           - Removed some stale commented out code
23689
23690         * NativeWindow.cs:
23691           - Added FindWindow() method to have a method to check for existence
23692             of a window handle
23693           - Added ability to override default exception handling (for example
23694             when debugging with VS.Net; to do this the ExternalExceptionHandler
23695             define must be set
23696           - Removed some useless debug output
23697
23698         * XplatUIX11.cs:
23699           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
23700             not working as expected
23701           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
23702             property to allow switching back to the modal window if focus is
23703             given to another one of our windows (Application Modal)
23704           - Now only sets override_redirect if we create a window
23705             without WS_CAPTION
23706           - Moved EventMask selection before mapping of newly created window
23707             so we can catch the map event as well
23708           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
23709           - Added various Atom related DllImports
23710           - Implemented Exit() method
23711           - .ctor() : No longer shows window if WS_VISIBLE is not defined
23712             in the CreateParams
23713
23714         * MessageBox.cs: Now properly deals with the FormParent window by
23715           providing an override the FormParent CreateParams property to
23716           set as POPUP instead of OVERLAPPED window.
23717
23718 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
23719
23720         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
23721         Minor code cleanup.
23722
23723 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
23724         
23725         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
23726
23727 2004-12-18  Peter Bartok  <pbartok@novell.com>
23728
23729         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
23730           implementing SetModal() method
23731
23732 2004-12-18  Peter Bartok  <pbartok@novell.com>
23733
23734         * X11Structs.cs (XGCValues): Fixed type of function element
23735         * XplatUI.cs: Added ScrollWindow() method
23736         * XplatUIDriver.cs: Added ScrollWindow() abstract
23737         * XplatUIWin32.cs: Implemented ScrollWindow() method
23738         * XplatUIX11.cs: Implemented ScrollWindow() method
23739         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
23740
23741 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23742
23743         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
23744         Some more keyboard support (INCOMPLETE)
23745
23746 2004-12-17  Peter Bartok  <pbartok@novell.com>
23747
23748         * TextControl.cs:
23749         - Added color attribute to line tags.
23750         - Added color argument to all functions dealing with tags
23751         - Added color argument support to various functions
23752         - Fixed miss-calculation of baseline/shift in certain circumstances
23753
23754         * TextBoxBase.cs: Added new color option to test code
23755
23756 2004-12-17  Jackson Harper  <jackson@ximian.com>
23757
23758         * TreeNode.cs:
23759         * MonthCalendar.cs: Signature fixes
23760
23761 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23762
23763         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
23764         keyboard event moved it.  Create a new graphics context for each paint resolves this
23765
23766 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
23767
23768         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
23769         Make caret exist and go blink blink.  Initial keyboard support.
23770         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
23771         works.
23772
23773 2004-12-17  Jackson Harper  <jackson@ximian.com>
23774
23775         * XplatUIStructs.cs: Updated set of virtual keycodes.
23776         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
23777
23778 2004-12-17  Jackson Harper  <jackson@ximian.com>
23779
23780         * XplatUIX11.cs: Prune old keyboard code.
23781
23782 2004-12-17  Jackson Harper  <jackson@ximian.com>
23783
23784         * XplatUIX11.cs: When generating mouse wparams get the modifier
23785         keys from the ModifierKeys property.
23786
23787 2004-12-17  Jackson Harper  <jackson@ximian.com>
23788
23789         * X11Keyboard.cs: Send up/down input when generating
23790         messages. Remove some unused vars.
23791
23792 2004-12-17  Jackson Harper  <jackson@ximian.com>
23793
23794         * TabControl.cs:
23795         * TreeView.cs: get rid of warnings.
23796
23797 2004-12-17  Jackson Harper  <jackson@ximian.com>
23798
23799         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
23800
23801 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
23802
23803         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
23804           CheckedListBox.cs: Implementation
23805
23806 2004-12-17  Peter Bartok  <pbartok@novell.com>
23807
23808         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
23809
23810 2004-12-16  Peter Bartok  <pbartok@novell.com>
23811
23812         * TextControl.cs:
23813           - InsertCharAtCaret(): Fixed start pos fixup
23814           - CaretLine_get: No longer derives the line from the tag, the tag
23815             could be stale if lines in the document have been added or deleted
23816           - RebalanceAfterDelete(): Fixed bug in balancing code
23817           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
23818           - Line.Streamline(): Now can also elminate leading empty tags
23819           - DumpTree(): Added a few more tests and prevented exception on
23820             uninitialized data
23821           - Added Debug section for Combining lines
23822           - Delete(): Now copies all remaining properties of a line
23823           
23824         * TextBoxBase.cs:
23825           - Left mousebutton now sets the caret (and middle button still acts
23826             as formatting tester, which must go away soon)
23827           - Added Debug section for Deleting/Combining lines
23828           - Fixed calculations for UpdateView after Combining lines
23829
23830 2004-12-16  Peter Bartok  <pbartok@novell.com>
23831
23832         * TextControl.cs: Now properly aligns text on a baseline, using the
23833           new XplatUI.GetFontMetrics() method. Simplified several calculations
23834         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
23835           defined
23836
23837 2004-12-16  Peter Bartok  <pbartok@novell.com>
23838
23839         * XplatUI.cs: Added GetFontMetrics() method
23840         * XplatUIDriver.cs: Added GetFontMetrics() abstract
23841         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
23842           into libgdiplus, our private GetFontMetrics function
23843         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
23844         * XplatUIWin32.cs: Implemented GetFontMetrics() method
23845
23846 2004-12-16  Jackson Harper  <jackson@ximain.com>
23847
23848         * XplatUIStruct.cs: Add enum for dead keys
23849         * X11Keyboard.cs: Map and unmap dead keys.
23850
23851 2004-12-16  Jackson Harper  <jackson@ximian.com>
23852
23853         * X11Keyboard.cs: Detect and use the num lock mask.
23854
23855 2004-12-16  Peter Bartok  <pbartok@novell.com>
23856
23857         * Control.cs (CreateGraphics): Added check to make sure the
23858           handle of the window exists before calling Graphics.FromHwnd()
23859
23860 2004-12-16  Peter Bartok  <pbartok@novell.com>
23861
23862         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
23863           contains a lot of code that's not supposed to be there for the
23864           real thing, but required for developing/testing the textbox
23865           backend.
23866
23867 2004-12-16  Peter Bartok  <pbartok@novell.com>
23868
23869         * TextControl.cs:
23870         - Fixed Streamline method
23871         - Added FindTag method to Line
23872         - Added DumpTree method for debugging
23873         - Added DecrementLines() method for deleting lines
23874         - Fixed UpdateView to update the cursor to end-of-line on single-line
23875           updates
23876         - Added PositionCaret() method
23877         - Fixed MoveCaret(LineDown) to move into the last line, too
23878         - Added InsertChar overload
23879         - Fixed InsertChar tag offset calculations
23880         - Added DeleteChar() method
23881         - Added Combine() method for folding lines
23882         - Fixed Delete() method, no longer allocates wasted Line object and
23883           now copies all properties when swapping nodes
23884         - Delete() method now updates document line counter
23885
23886 2004-12-15  Jackson Harper  <jackson@ximian.com>
23887
23888         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
23889         * X11Keyboard.cs: Expose the currently selected modifier keys
23890         through a property.
23891
23892 2004-12-15  Peter Bartok  <pbartok@novell.com>
23893
23894         * TextControl.cs: Initial check-in. Still incomplete
23895
23896 2004-12-15  Jackson Harper  <jackson@ximian.com>
23897
23898         * TreeNode.cs:
23899         * TreeView.cs: Fix build on csc (second time today ;-))
23900
23901 2004-12-15  Jackson Harper  <jackson@ximian.com>
23902
23903         * TreeView.cs: Store the treenodes plus/minus box bounds when it
23904         is calculated and use this for click testing.
23905         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
23906
23907 2004-12-15  Jackson Harper  <jackson@ximian.com>
23908
23909         * TreeView.cs: Pass the nodes image index to the image list when
23910         drawing that image.
23911
23912 2004-12-15  Jackson Harper  <jackson@ximian.com>
23913
23914         * X11Keyboard.cs: Set messages hwnd.
23915         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
23916         post_message calls.
23917
23918 2004-12-15  Jackson Harper  <jackson@ximian.com>
23919
23920         * X11Keyboard.cs: Fix to compile with csc.
23921         
23922 2004-12-15  Jackson Harper  <jackson@ximian.com>
23923
23924         * X11Structs.cs: Add key mask values
23925         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
23926         * X11Keyboard.cs: New file - Extrapolates and interpolates key
23927         down/up foo into WM_CHAR foo
23928         * KeyboardLayouts.cs: Common keyboard layouts
23929         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
23930         post messages into the main queue.
23931
23932 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
23933
23934         * Button.cs: implement ProcessMnemonic
23935         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
23936           brushes everytime
23937         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
23938         * ButtonBase.cs: Show HotkeyPrefix (not the &)
23939
23940 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
23941         
23942         * MonthCalendar.cs: Implemented click-hold for next/previous month
23943           and date selection
23944           
23945 2004-12-11  Peter Bartok  <pbartok@novell.com>
23946
23947         * X11Structs.cs:
23948           - Added XKeyboardState (moved from XplatUIX11.cs)
23949           - Added XCreateGC related enums and structures
23950           - Added GXFunction for XSetFunction
23951
23952         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
23953
23954         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
23955           CaretVisible() calls
23956
23957         * ToolTip.cs: Added code to prevent stealing focus from app windows
23958
23959         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
23960           DestroyCaret, SetCaretPos and CaretVisible)
23961
23962         * XplatUIX11.cs:
23963           - Added implementation for caret functions
23964           - Moved hover variables into a struct, to make it a bit easier
23965             on the eyes and to debug
23966           - Removed XKeyboardState (moved to XplatUIX11.cs)
23967           - Moved Keyboard properties into the properties region
23968
23969         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
23970           call to get a graphics context for our control
23971
23972         * XplatUIOSX.cs: Added empty overrides for the new caret functions
23973
23974         * TreeView.cs: Fixed bug. No matter what color was set it would always
23975           return SystemColors.Window
23976
23977         * XplatUIWin32.cs: Implemented caret overrides
23978
23979 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
23980
23981         * ListBox.cs: fire events, implement missing methods and properties,
23982         sorting.
23983
23984 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
23985
23986         * MonthCalendar.cs: invalidation bug fixing
23987         * ThemeWin32Classic.cs: paint fixing
23988
23989 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
23990
23991         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
23992         prepare the CGContextRef there now.
23993
23994 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
23995
23996         * MonthCalendar.cs:
23997           - optimisationL only invalidate areas that have changed
23998         * ThemeWin32Classic.cs:
23999           - only paint parts that intersect with clip_area
24000
24001 2004-12-09  Peter Bartok  <pbartok@novell.com>
24002
24003         * Application.cs: Undid changes from r37004 which cause problems
24004         on X11
24005
24006 2004-12-09  Ravindra  <rkumar@novell.com>
24007
24008         * ToolBar.cs: Added support for displaying ContextMenu
24009         attached to a button on ToolBar.
24010         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
24011         property.
24012
24013 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
24014
24015         * Label.cs: autosize works in text change and removes unnecessary
24016         invalidate
24017
24018 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
24019
24020         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
24021         remove warnings
24022
24023 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
24024
24025         * XplatUIOSX.cs: Added mouse move/click/grab support
24026         Remove some debugging WriteLines not needed anymore.
24027         Add window resizing/positioning.
24028         Fix visibility on reparenting.
24029
24030 2004-12-08  Peter Bartok  <pbartok@novell.com>
24031
24032         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
24033
24034 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
24035
24036         * XplatUIOSX.cs: Initial checkin
24037         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
24038
24039 2004-12-03  Ravindra <rkumar@novell.com>
24040
24041         * ListView.cs: Added some keybindings and fixed scrolling.
24042         ScrollBars listen to ValueChanged event instead of Scroll
24043         Event. This would let us take care of all changes being
24044         done in the scrollbars' values programmatically or manually.
24045         * ListView.cs (CanMultiselect): Added a check for shift key.
24046         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
24047         * ListViewItem.cs (Clone): Fixed. We need to make a copy
24048         of ListViewSubItemCollection as well.
24049
24050 2004-12-06  Peter Bartok <pbartok@novell.com>
24051
24052         * Control.cs (Parent): Added check and exception to prevent
24053         circular parenting
24054
24055 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
24056
24057         * ListBox.cs: implemented clipping, selection single and multiple,
24058         bug fixing
24059
24060 2004-12-03  Ravindra <rkumar@novell.com>
24061
24062         * ListView.cs (ListView_KeyDown):
24063         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
24064         when CTRL key is pressed.
24065         * ListViewItem.cs (Selected): Fixed setting the property.
24066
24067 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
24068
24069         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
24070
24071         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
24072         MinimizeBox, ShowInTaskbar, TopMost properties.
24073
24074         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
24075         will be implemented).
24076
24077 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
24078
24079         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
24080
24081         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
24082         tests.
24083         
24084         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
24085         
24086         * TreeView.cs: BackColor is Colors.Window.
24087
24088 2004-12-01  Jackson Harper  <jackson@ximian.com>
24089
24090         * TreeView.cs: When resizing the tree if the user is making it
24091         smaller we don't get expose events, so we need to handle adding
24092         the horizontal scrollbar in the size changed handler as well as
24093         the expose handler.
24094
24095 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
24096
24097         * DrawItemState.cs: fixes wrong enum values
24098
24099 2004-12-01  Jackson Harper  <jackson@ximian.com>
24100
24101         * TreeView.cs: Resize the hbar as well as the vbar on resize.
24102
24103 2004-12-01  Jackson Harper  <jackson@ximian.com>
24104
24105         * NodeLabelEditEventArgs.cs:
24106         * NodeLabelEditEventHandler.cs:
24107         * OpenTreeNodeEnumerator.cs:
24108         * TreeNode.cs:
24109         * TreeNodeCollection.cs:
24110         * TreeView.cs:
24111         * TreeViewAction.cs:
24112         * TreeViewCancelEventArgs.cs:
24113         * TreeViewCancelEventHandler.cs:
24114         * TreeViewEventArgs.cs:
24115         * TreeViewEventHandler.cs: Initial implementation.
24116
24117 2004-12-01  Ravindra <rkumar@novell.com>
24118
24119         * ListView.cs (CalculateListView): Fixed scrolling related
24120         calculations. Also, removed some debug statements from other
24121         places.
24122         * ListViewItem.cs: Changed access to 'selected' instance variable
24123         from private to internal.
24124         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
24125
24126 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
24127
24128         * ThemeWin32Classic.cs: remove cache of brush and pens for
24129         specific controls and use the global system, fixes scrollbutton
24130         bugs (for small sizes, disabled, etc)
24131         
24132         * ScrollBar.cs: does not show the thumb for very small controls
24133         (as MS) and allow smaller buttons that the regular size
24134
24135 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
24136
24137         * UpDownBase.cs: Add abstract methods for the interface.
24138         Add new virtual methods (need to be hooked up to TextEntry when it
24139         exists).
24140         Add override methods for most features.
24141         Computes the size, forces the height of the text entry.
24142
24143         * NumericUpDown.cs: Put here the current testing code.
24144
24145         * Set eol-style property on all files that do not have mixed line
24146         endings, to minimize the future problems.  There are still a few
24147         files with mixed endings, and someone should choose whether they
24148         want to move it or not.
24149
24150 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
24151
24152         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
24153         System.Colors
24154         
24155 2004-11-30  Ravindra <rkumar@novell.com>
24156
24157         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
24158         drawing and replaced use of SystemColors by theme colors.
24159         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
24160         * ListView.cs (ListViewItemCollection.Add): Throw exception when
24161         same ListViewItem is being added more than once.
24162
24163 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
24164
24165         * MonthCalendar.cs:
24166           - ControlStyles love to make the control not flicker
24167           
24168 2004-11-30  Peter Bartok  <pbartok@novell.com>
24169
24170         * CharacterCasing.cs: Added
24171
24172 2004-11-29  Peter Bartok  <pbartok@novell.com>
24173
24174         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
24175           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
24176           I am removing these files as they conflict with already completed
24177           work. While it is fantastic to get contributions to MWF, I
24178           respectfully ask that everyone please coordinate their contributions
24179           through mono-winforms-list or #mono-winforms at this time. We're
24180           explicitly avoiding stubbing and don't want controls that don't have
24181           their basic functionality implemented in svn. Please also see
24182           http://www.mono-project.com/contributing/winforms.html
24183
24184
24185 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
24186
24187         * Application.cs (ModalRun): Don't hang after exit.
24188
24189         * Theme.cs: New TreeViewDefaultSize property.
24190
24191         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
24192         with less hardcoded SystemColors constant.
24193         Implemented TreeViewDefaultSize.
24194
24195         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
24196         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
24197
24198
24199 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
24200
24201         * MonthCalendar.cs:
24202           - Fix NextMonthDate and PrevMonthDate click moving calendar
24203
24204 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
24205
24206         * MonthCalendar.cs:
24207           - Fix usage of ScrollChange Property when scrolling months
24208
24209 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
24210
24211         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
24212          - Fixes menu destroying
24213          - Support adding and removing items on already created menus
24214
24215 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
24216
24217         * MonthCalendar.cs:
24218           - Re-worked all bolded dates handling to match win32
24219         * ThemeWin32Classic.cs:
24220           - Fixed rendering with bolded dates
24221
24222 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
24223
24224         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
24225         - Horizontal scroolbar
24226         - Multicolumn
24227         - Fixes
24228
24229
24230 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
24231
24232         * MonthCalendar.cs:
24233           - Fix Usage of MaxSelectionCount from SelectionRange
24234           - Fixed Shift + Cursor Selection
24235           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
24236           - Fixed normal cursor selection to be compat with win32
24237           - Fixed Shift + Mouse Click selection
24238
24239 2004-11-24  Peter Bartok <pbartok@novell.com>
24240
24241         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
24242         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
24243         * XplatUIX11.cs:
24244           - CreatedKeyBoardMsg now updates keystate with Alt key
24245           - Added workaround for timer crash to CheckTimers, Jackson will
24246             develop a proper fix and check in later
24247           - Implemented DispatchMessage
24248           - Removed calling the native window proc from GetMessage (call
24249             now moved to DispatchMessage)
24250
24251         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
24252           the keydata (Fixes bug #69831)
24253
24254         * XplatUIWin32.cs:
24255           - (DispatchMessage): Switched to return IntPtr
24256           - Added DllImport for SetFocus
24257
24258 2004-11-24  Ravindra <rkumar@novell.com>
24259
24260         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
24261         background drawing.
24262         * ListViewItem.cs: Fixed various properties, calculations
24263         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
24264         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
24265         and some internal properties. Fixed MouseDown handler and Paint
24266         method.
24267
24268 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24269
24270         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
24271
24272 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24273
24274         * ContainerControl.cs: correct accidental check in of local changes
24275
24276 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
24277
24278         * ThemeWin32Classic.cs:
24279                 - Fixed Drawing Last month in grid (sometimes not showing)
24280         * MonthCalendar.cs:
24281                 - Fixed title width calculation bug (makeing title small)
24282
24283 2004-11-23  Peter Bartok <pbartok@novell.com>
24284
24285         * XplatUIX11.cs:
24286           - Added generation of WM_MOUSEHOVER event
24287           - Added missing assignment of async_method atom
24288           - Fixed WM_ERASEBKGND; now only redraws the exposed area
24289
24290 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
24291
24292         * ThemeWin32Classic.cs:
24293                 - Fixed Drawing of today circle when showtodaycircle not set
24294                 - fixed drawing of first and last month in the grid (gay dates)
24295         * MonthCalendar.cs:
24296                 - Fixed Drawing of today circle
24297                 - Fixed drawing of grady dates
24298                 - Fixed HitTest for today link when ShowToday set to false
24299                 - Fixed DefaultSize to obey ShowToday
24300
24301 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
24302
24303         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
24304         * System.Windows.Forms/Theme.cs
24305         * MonthCalendar.cs: added for MonthCalendar
24306         * SelectionRange.cs: added for MonthCalendar
24307         * Day.cs: added for MonthCalendar: added for MonthCalendar
24308         * DateRangeEventArgs.cs: added for MonthCalendar
24309         * DateRangeEventHandler.cs: added for MonthCalendar
24310
24311 2004-11-22  Ravindra <rkumar@novell.com>
24312
24313         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
24314         property.
24315
24316 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
24317
24318         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
24319         event handler.
24320         
24321         * NumericUpDown.cs: Added new implementation.
24322         * UpDownBase.cs: Added new implementation.
24323
24324         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
24325         implementations.
24326         
24327         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
24328         implementations.
24329
24330         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
24331         methods.
24332
24333 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
24334
24335         * Timer.cs  (Dispose): Should call the base dispose when
24336         overriding.
24337
24338 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
24339
24340         * ScrollBar.cs: updates thumb position when max, min or increment
24341         is changed
24342
24343 2004-11-21  Ravindra <rkumar@novell.com>
24344
24345         * ListView.cs: Implemented item selection, activation and
24346         column header style. Fixed properties to do a redraw, if
24347         required. Added support for MouseHover, DoubleClick, KeyDown
24348         and KeyUp event handling and some minor fixes.
24349         * ListViewItem.cs: Fixed constructor.
24350         * ThemeWin32Classic.cs: Improved drawing for ListView.
24351
24352 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
24353
24354         * ThemeWin32Classic.cs: initial listbox drawing code
24355         * DrawMode.cs: new enumerator
24356         * ListControl.cs: stubbed class
24357         * ListBox.cs: initial implementation
24358         * Theme.cs: new methods definitions
24359         * SelectionMode.cs: new enumerator
24360
24361 2004-11-17  Peter Bartok  <pbartok@novell.com>
24362
24363         * XplatUIWin32.cs: Added double-click events to the class style
24364         * Control.cs (WndProc):
24365           - Added handling of click-count to MouseDown/ MouseUp events.
24366           - Added handling of middle and right mouse buttons
24367           - Removed old debug code
24368
24369 2004-11-17  Jackson Harper  <jackson@ximian.com>
24370
24371         * XplatUIX11.cs: Use the new Mono.Unix namespace.
24372
24373 2004-11-17  Ravindra <rkumar@novell.com>
24374
24375         * ListView.cs: Added event handling for MouseMove/Up/Down.
24376         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
24377         * ThemeWin32Classic.cs: We need to clear the graphics context and
24378         draw column header in a proper state.
24379
24380
24381 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
24382
24383         *  Menu.cs: fixes signature
24384
24385 2004-11-16  Peter Bartok  <pbartok@novell.com>
24386
24387         * XplatUIX11.cs (GetMessage): Implemented generation of
24388           double click mouse messages
24389
24390 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
24391
24392         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
24393         not by menu
24394
24395 2004-11-11  Peter Bartok  <pbartok@novell.com>
24396
24397         * HandleData.cs: Added Visible property
24398         * XplatUIX11.cs (IsVisible): Now uses Visible property from
24399           HandleData
24400         * XplatUIX11.cs: Removed old debug leftovers
24401         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
24402         * Control.cs (WndProc): Removed old debug leftovers,
24403           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
24404           needed WM_SIZE handling
24405
24406 2004-11-11  Jackson Harper  <jackson@ximian.com>
24407
24408         * OwnerDrawPropertyBag.cs:
24409         * TreeViewImageIndexConverter.cs: Initial implementation
24410
24411 2004-11-10  Jackson Harper  <jackson@ximian.com>
24412
24413         * ThemeWin32Classic.cs:
24414         * TabControl.cs: instead of moving tabs by the slider pos just
24415         start drawing at the tab that is offset by the slider. This way
24416         scrolling always moves by exactly one tab.
24417
24418 2004-11-10  Jackson Harper  <jackson@ximian.com>
24419
24420         * TabControl.cs: You can only scroll left when the slider has
24421         already ben moved right.
24422         
24423 2004-11-10  Jackson Harper  <jackson@ximian.com>
24424
24425         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
24426         the clip area.
24427         
24428 2004-11-10  Jackson Harper  <jackson@ximian.com>
24429
24430         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
24431         clip area.
24432         
24433 2004-11-09  Jackson Harper  <jackson@ximian.com>
24434
24435         * TabControl.cs (CalcXPos): New helper method so we can determine
24436         the proper place to start drawing vertical tabs.
24437         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
24438         
24439 2004-11-09  Jackson Harper  <jackson@ximian.com>
24440
24441         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
24442         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
24443         and Bottom, left and right are illegal values for this and
24444         multiline is enabled when the alignment is set to left or right.
24445         (DrawTab): Each alignment block should draw the text itself now
24446         because Left requires special love. Also add rendering for Left
24447         aligned tabs.
24448         
24449 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
24450
24451         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
24452         does not destroy the windows, removes debugging messages
24453
24454 2004-11-09  jba  <jba-mono@optusnet.com.au>
24455
24456         * ThemeWin32Classic.cs
24457         (DrawButtonBase): Fix verticle text rect clipping in windows
24458         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
24459         rendering and incorrect text rect clipping
24460         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
24461         rendering and incorrect text rect clipping
24462         
24463 2004-11-08  Jackson Harper  <jackson@ximian.com>
24464
24465         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
24466         bottom when they are bottom aligned so the bottoms of the tabs get
24467         displayed.
24468         * TabControl.cs (DropRow): Move rows up instead of down when the
24469         tab control is bottom aligned.
24470
24471 2004-11-08 13:59  pbartok
24472
24473         * XplatUIX11.cs:
24474           - Added handling for various window styles
24475           - Added handling for popup windows
24476           - Added SetTopmost handling
24477
24478 2004-11-08 13:55  pbartok
24479
24480         * XplatUIWin32.cs:
24481           - Added argument to SetTopmost method
24482           - Fixed broken ClientToScreen function
24483
24484 2004-11-08 13:53  pbartok
24485
24486         * XplatUIStructs.cs:
24487           - Added missing WS_EX styles
24488
24489 2004-11-08 13:53  pbartok
24490
24491         * XplatUI.cs, XplatUIDriver.cs:
24492           - Added argument to SetTopmost
24493
24494 2004-11-08 13:52  pbartok
24495
24496         * X11Structs.cs:
24497           - Added XSetWindowAttributes structure
24498           - Improved XWindowAttributes structure
24499           - Added SetWindowValuemask enum
24500           - Added window creation arguments enum
24501           - Added gravity enum
24502           - Added Motif hints structure
24503           - Added various Motif flags and enums
24504           - Added PropertyMode enum for property functions
24505
24506 2004-11-08 13:50  pbartok
24507
24508         * Form.cs:
24509           - Fixed arguments for updated SetTopmost method
24510
24511 2004-11-08 13:49  pbartok
24512
24513         * ToolTip.cs:
24514           - Fixed arguments for updated SetTopmost function
24515           - Fixed usage of PointToClient
24516
24517 2004-11-08 13:44  pbartok
24518
24519         * MenuAPI.cs:
24520           - Added Clipping of children and siblings
24521
24522 2004-11-08 13:41  pbartok
24523
24524         * MainMenu.cs:
24525           - Removed SetMenuBarWindow call. We do this in Form.cs
24526
24527 2004-11-08 13:40  jackson
24528
24529         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
24530           scrolling jimmi in the correct location with bottom aligned tabs
24531
24532 2004-11-08 13:36  pbartok
24533
24534         * ContainerControl.cs:
24535           - Implemented BindingContext
24536           - Implemented ParentForm
24537
24538 2004-11-08 12:46  jackson
24539
24540         * TabControl.cs: Put bottom rendered tabs in the right location
24541
24542 2004-11-08 07:15  jordi
24543
24544         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
24545           removes dead code
24546
24547 2004-11-05 17:30  jackson
24548
24549         * TabControl.cs: When selected tabs are expanded make sure they
24550           don't go beyond the edges of the tab control
24551
24552 2004-11-05 14:57  jackson
24553
24554         * TabControl.cs: Reset show_slider so if the control is resized to
24555           a size where it is no longer needed it's not displayed anymore
24556
24557 2004-11-05 13:16  jackson
24558
24559         * TabControl.cs: Make tab pages non visible when added to the
24560           control
24561
24562 2004-11-05 12:42  jackson
24563
24564         * TabControl.cs: Implement SizeMode.FillToRight
24565
24566 2004-11-05 12:16  jackson
24567
24568         * Control.cs: Do not call CreateHandle if the handle is already
24569           created
24570
24571 2004-11-05 11:46  jackson
24572
24573         * TabControl.cs: Remove superflous call to CalcTabRows
24574
24575 2004-11-05 09:07  jackson
24576
24577         * XplatUIX11.cs: Update for Mono.Posix changes
24578
24579 2004-11-05 07:00  ravindra
24580
24581         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
24582           scrolling.
24583
24584 2004-11-04 22:47  jba
24585
24586         * ThemeWin32Classic.cs:
24587           - Fix Button rendering for FlatStyle = Flat or Popup
24588           - Fix RadioButton and CheckBox rendering when Appearance = Button
24589             (normal and flatstyle).
24590           - Correct outer rectangle color when drawing focus rectangle
24591           - Adjust button bounds to be 1 px smaller when focused
24592           - Make button not draw sunken 3d border when pushed (windows compat)
24593           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
24594           - Offset the text in RadioButton and Checkbox when being rendered as
24595           a button.
24596           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
24597           radiobuttons
24598           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
24599           - Fixed disabled text rendering for normally rendered radiobuttons
24600
24601 2004-11-04 10:26  jackson
24602
24603         * TabControl.cs: Recalculate tab rows when resizing
24604
24605 2004-11-04 07:47  jordi
24606
24607         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
24608           collection completion, drawing issues, missing features
24609
24610 2004-11-04 05:03  ravindra
24611
24612         * ScrollBar.cs:
24613                 - We need to recalculate the Thumb area when
24614                 LargeChange/maximum/minimum values are changed.
24615           - We set the 'pos' in UpdatePos() method to minimum, if it's less
24616                 than minimum. This is required to handle the case if large_change is
24617                 more than max, and use LargeChange property instead of large_change
24618                 variable.
24619           - We return max+1 when large_change is more than max, like MS does.
24620
24621 2004-11-04 04:29  ravindra
24622
24623         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
24624                 - Changed default value signatures (prefixed all with ListView).
24625                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
24626                 ListView.
24627           - Fixed calculations for ListViewItem and implemented Clone()
24628           method.
24629
24630 2004-11-04 04:26  ravindra
24631
24632         * Theme.cs, ThemeWin32Classic.cs:
24633                 - Changed default ListView values signatures (prefixed all with
24634                 ListView).
24635           - Fixed default size values for VScrollBar and HScrollBar.
24636                 - Fixed DrawListViewItem method.
24637
24638 2004-11-04 04:05  ravindra
24639
24640         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
24641
24642 2004-11-04 04:04  ravindra
24643
24644         * ImageList.cs: Implemented the missing overload for Draw method.
24645
24646 2004-11-03 19:29  jackson
24647
24648         * TabControl.cs: Handle dropping rows on selection properly
24649
24650 2004-11-03 11:59  jackson
24651
24652         * TabControl.cs: remove debug code
24653
24654 2004-11-03 11:52  jackson
24655
24656         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
24657           the scrolly widgerywoo
24658
24659 2004-11-02 13:52  jackson
24660
24661         * TabControl.cs: Resize the tab pages and tabs when the tab control
24662           is resized
24663
24664 2004-11-02 13:40  jackson
24665
24666         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
24667           selected tab to the bottom
24668
24669 2004-11-02 13:39  jackson
24670
24671         * TabPage.cs: Store the tab pages row
24672
24673 2004-11-02 12:33  jordi
24674
24675         * MenuItem.cs: fixes handle creation
24676
24677 2004-11-02 11:42  jackson
24678
24679         * TabControl.cs: signature fix
24680
24681 2004-11-02 08:56  jackson
24682
24683         * TabControl.cs: Calculate whether the tab is on an edge properly.
24684           Remove top secret debugging code
24685
24686 2004-11-01 19:57  jackson
24687
24688         * TabControl.cs: Add click handling, and proper sizing
24689
24690 2004-11-01 19:47  jackson
24691
24692         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
24693           tab controls
24694
24695 2004-11-01 19:39  jackson
24696
24697         * TabPage.cs: add internal property to store the bounds of a tab
24698           page
24699
24700 2004-10-30 04:23  ravindra
24701
24702         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
24703           values.
24704
24705 2004-10-30 04:21  ravindra
24706
24707         * ListView.cs, ListViewItem.cs: Added support for scrolling and
24708           fixed calculations.
24709
24710 2004-10-30 03:06  pbartok
24711
24712         * XplatUIX11.cs:
24713           - Removed extension of DllImported libs
24714
24715 2004-10-29 09:55  jordi
24716
24717         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
24718           navigation, itemcollection completion, menu fixes
24719
24720 2004-10-27 22:58  pbartok
24721
24722         * XplatUIX11.cs:
24723           - Now throws a nice error message when no X display could be opened
24724
24725 2004-10-26 13:51  jordi
24726
24727         * ListView.cs: removes warning
24728
24729 2004-10-26 03:55  ravindra
24730
24731         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
24732           ThemeWin32Classic.cs: Some formatting for my last checkins.
24733
24734 2004-10-26 03:36  ravindra
24735
24736         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
24737           control and default values.
24738
24739 2004-10-26 03:35  ravindra
24740
24741         * Theme.cs: Added some default values for ListView control.
24742
24743 2004-10-26 03:33  ravindra
24744
24745         * ToolBar.cs: ToolBar should use the user specified button size, if
24746           there is any. Added a size_specified flag for the same.
24747
24748 2004-10-26 03:33  ravindra
24749
24750         * ColumnHeader.cs: Added some internal members and calculations for
24751           ColumnHeader.
24752
24753 2004-10-26 03:32  ravindra
24754
24755         * ListViewItem.cs: Calculations for ListViewItem.
24756
24757 2004-10-26 03:31  ravindra
24758
24759         * ListView.cs: Added some internal members and calculations for
24760           ListView.
24761
24762 2004-10-22 13:31  jordi
24763
24764         * MenuAPI.cs: speedup menus drawing
24765
24766 2004-10-22 13:16  jackson
24767
24768         * XplatUIX11.cs: Make sure to update exposed regions when adding an
24769           expose event
24770
24771 2004-10-22 11:49  jackson
24772
24773         * Control.cs: oops
24774
24775 2004-10-22 11:41  jackson
24776
24777         * Control.cs: Check to see if the window should have its background
24778           repainted by X when drawing.
24779
24780 2004-10-22 11:31  jackson
24781
24782         * XplatUIX11.cs: When invalidating areas only use XClearArea if
24783           clear is true, this way we do not get flicker from X repainting the
24784           background
24785
24786 2004-10-22 11:28  jackson
24787
24788         * XEventQueue.cs: Queue properly
24789
24790 2004-10-21 09:38  jackson
24791
24792         * XEventQueue.cs: Fix access modifier
24793
24794 2004-10-21 09:36  jackson
24795
24796         * XEventQueue.cs: Don't loose messages
24797
24798 2004-10-21 09:22  jackson
24799
24800         * XEventQueue.cs: Don't loose messages
24801
24802 2004-10-20 04:15  jordi
24803
24804         * BootMode.cs: enum need it by SystemInfo
24805
24806 2004-10-19 21:58  pbartok
24807
24808         * XplatUIWin32.cs:
24809           - Small sanity check
24810
24811 2004-10-19 21:56  pbartok
24812
24813         * Form.cs:
24814           - Added private FormParentWindow class which acts as the container
24815             for our form and as the non-client area where menus are drawn
24816           - Added/Moved required tie-ins to Jordi's menus
24817           - Fixed/Implemented the FormStartPosition functionality
24818
24819 2004-10-19 21:52  pbartok
24820
24821         * Control.cs:
24822           - Removed unneeded locals
24823           - Added code to all size and location properties to understand and
24824             deal with the parent container of Form
24825
24826 2004-10-19 21:33  pbartok
24827
24828         * Application.cs:
24829           - Fixed to deal with new Form subclasses for menus
24830
24831 2004-10-19 17:48  jackson
24832
24833         * XEventQueue.cs: commit correct version of file
24834
24835 2004-10-19 16:50  jackson
24836
24837         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
24838
24839 2004-10-19 16:15  jordi
24840
24841         * MenuAPI.cs: MenuBarCalcSize returns the height
24842
24843 2004-10-19 08:31  pbartok
24844
24845         * Control.cs:
24846           - Added missing call to PreProcessMessage before calling OnXXXKey
24847           methods
24848
24849 2004-10-19 00:04  ravindra
24850
24851         * ToolTip.cs: Fixed constructor.
24852
24853 2004-10-18 09:31  jordi
24854
24855         * MenuAPI.cs: menuitems in menubars do not have shortcuts
24856
24857 2004-10-18 09:26  jordi
24858
24859         * MenuItem.cs: fixes MenuItem class signature
24860
24861 2004-10-18 08:56  jordi
24862
24863         * MenuAPI.cs: prevents windows from showing in the taskbar
24864
24865 2004-10-18 00:28  ravindra
24866
24867         * ToolTip.cs: Suppressed a warning message.
24868
24869 2004-10-18 00:27  ravindra
24870
24871         * Control.cs: Default value of visible property must be true.
24872
24873 2004-10-17 23:19  pbartok
24874
24875         * ToolTip.cs:
24876           - Complete implementation
24877
24878 2004-10-17 23:19  pbartok
24879
24880         * XplatUIX11.cs:
24881           - Added EnableWindow method
24882           - Added SetModal stub
24883           - Added generation of WM_ACTIVATE message (still needs testing)
24884           - Added SetTopMost stub
24885           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
24886
24887 2004-10-17 23:17  pbartok
24888
24889         * XplatUIWin32.cs:
24890           - Removed VirtualKeys to XplatUIStructs
24891           - Implemented SetTopMost method
24892           - Implemented EnableWindow method
24893           - Bugfix in ScreenToClient()
24894           - Bugfixes in ClientToScreen()
24895
24896 2004-10-17 22:51  pbartok
24897
24898         * XplatUIStructs.cs:
24899           - Added WS_EX styles to WindowStyles enumeration
24900
24901 2004-10-17 22:50  pbartok
24902
24903         * XplatUI.cs, XplatUIDriver.cs:
24904           - Added method for enabling/disabling windows
24905           - Added method for setting window modality
24906           - Added method for setting topmost window
24907
24908 2004-10-17 22:49  pbartok
24909
24910         * ThemeWin32Classic.cs:
24911           - Added ToolTip drawing code
24912
24913 2004-10-17 22:49  pbartok
24914
24915         * Theme.cs:
24916           - Added ToolTip abstracts
24917
24918 2004-10-17 22:47  pbartok
24919
24920         * Form.cs:
24921           - Fixed Form.ControlCollection to handle owner relations
24922           - Added Owner/OwnedForms handling
24923           - Implemented Z-Ordering for owned forms
24924           - Removed unneeded private overload of ShowDialog
24925           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
24926             so I hope)
24927           - Fixed Close(), had wrong default
24928           - Added firing of OnLoad event
24929           - Added some commented out debug code for Ownership handling
24930
24931 2004-10-17 22:16  pbartok
24932
24933         * Control.cs:
24934           - Fixed/implemented flat list of controls
24935
24936 2004-10-17 22:14  pbartok
24937
24938         * Application.cs:
24939           - Added code to simulate modal dialogs on Win32
24940
24941 2004-10-17 16:11  jordi
24942
24943         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
24944           mouse event
24945
24946 2004-10-17 13:39  jordi
24947
24948         * MenuAPI.cs: menu drawing fixes
24949
24950 2004-10-15 09:10  ravindra
24951
24952         * StructFormat.cs: General Enum.
24953
24954 2004-10-15 09:09  ravindra
24955
24956         * SizeGripStyle.cs: Enum for Form.
24957
24958 2004-10-15 09:08  ravindra
24959
24960         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
24961           in Theme for ListView.
24962
24963 2004-10-15 09:06  ravindra
24964
24965         * ColumnHeader.cs: Flushing some formatting changes.
24966
24967 2004-10-15 09:05  ravindra
24968
24969         * ListViewItem.cs: Implemented GetBounds method and fixed coding
24970           style.
24971
24972 2004-10-15 09:03  ravindra
24973
24974         * ListView.cs: Implemented Paint method and fixed coding style.
24975
24976 2004-10-15 07:34  jordi
24977
24978         * MenuAPI.cs: fix for X11
24979
24980 2004-10-15 07:32  ravindra
24981
24982         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
24983                 - Renamed Paint() method to Draw() for clarity. Also, moved
24984                 DrawImage() to OnPaint().
24985
24986 2004-10-15 07:25  ravindra
24987
24988         * CheckBox.cs, RadioButton.cs:
24989                 - Removed Redraw (), we get it from ButtonBase.
24990                 - Implemented Paint (), to do class specific painting.
24991
24992 2004-10-15 07:16  ravindra
24993
24994         * ButtonBase.cs:
24995                 - Redraw () is not virtual now.
24996                 - Added an internal virtual method Paint (), so that
24997                 derived classes can do their painting on their own.
24998                 - Modified OnPaint () to call Paint ().
24999
25000 2004-10-15 06:43  jordi
25001
25002         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
25003           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
25004
25005 2004-10-15 00:30  ravindra
25006
25007         * MessageBox.cs:
25008                 - MessageBox on windows does not have min/max buttons.
25009                 This change in CreateParams fixes this on Windows. We
25010                 still need to implement this windowstyle behavior in
25011                 our X11 driver.
25012
25013 2004-10-14 05:14  ravindra
25014
25015         * ToolBar.cs:
25016                 - Changed Redraw () to do a Refresh () always.
25017                 - Fixed the MouseMove event handling when mouse is pressed,
25018                 ie drag event handling.
25019                 - Replaced the usage of ToolBarButton.Pressed property to
25020                 ToolBarButton.pressed internal variable.
25021
25022 2004-10-14 05:10  ravindra
25023
25024         * ToolBarButton.cs:
25025                 - Added an internal member 'inside' to handle mouse move
25026                 with mouse pressed ie mouse drag event.
25027                 - Changed 'Pressed' property to return true only when
25028                 'inside' and 'pressed' are both true.
25029                 - Some coding style love.
25030
25031 2004-10-14 00:17  ravindra
25032
25033         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
25034           public method.
25035
25036 2004-10-14 00:15  ravindra
25037
25038         * ButtonBase.cs: Redraw () related improvements.
25039
25040 2004-10-14 00:14  ravindra
25041
25042         * MessageBox.cs: Moved InitFormSize () out of Paint method and
25043           removed unnecessary calls to Button.Show () method.
25044
25045 2004-10-13 17:50  pbartok
25046
25047         * XplatUIX11.cs:
25048           - Formatting fix
25049           - Removed destroying of window until we solve the problem of X
25050             destroying the window before us on shutdown
25051
25052 2004-10-13 16:32  pbartok
25053
25054         * ButtonBase.cs:
25055           - Now Redraws on MouseUp for FlatStyle Flat and Popup
25056
25057 2004-10-13 14:18  pbartok
25058
25059         * XplatUIX11.cs:
25060           - Added code to destroy the X window
25061
25062 2004-10-13 14:18  pbartok
25063
25064         * XplatUIWin32.cs:
25065           - Added code to destroy a window
25066
25067 2004-10-13 14:12  pbartok
25068
25069         * ButtonBase.cs:
25070           - Added the Redraw on Resize that got dropped in the last rev
25071
25072 2004-10-13 09:06  pbartok
25073
25074         * ThemeWin32Classic.cs:
25075           - Path from John BouAntoun:
25076             * Fix check rendering (centre correctly for normal style, offset
25077               correctly for FlatStyle).
25078             * Fix border color usage (use backcolor) for FlatStyle.Popup
25079             * Use checkbox.Capture instead of checkbox.is_pressed when
25080               rendering flatstyle states.
25081
25082 2004-10-12 21:48  pbartok
25083
25084         * ThemeWin32Classic.cs:
25085           - Removed all occurences of SystemColors and replaced them with the
25086             matching theme color
25087
25088 2004-10-12 21:41  pbartok
25089
25090         * ThemeWin32Classic.cs:
25091           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
25092             him using the function for flatstyle drawing
25093           - Changed functions to use the new version of CPDrawBorder3D
25094
25095 2004-10-12 21:15  pbartok
25096
25097         * ControlPaint.cs:
25098           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
25099             match MS documentation. They need to return defined colors if the
25100             passed color matches the configured control color. Thanks to John
25101             BouAntoun for pointing this out.
25102
25103 2004-10-12 20:57  pbartok
25104
25105         * Control.cs:
25106           - Fix from John BouAntoun: Raise ForeColorChanged event when text
25107             color is changed
25108
25109 2004-10-12 20:46  pbartok
25110
25111         * CheckBox.cs:
25112           - Fix from John BouAntoun: Now properly sets the Appearance property
25113
25114 2004-10-12 20:45  pbartok
25115
25116         * ThemeWin32Classic.cs:
25117           - Fixes from John BouAntoun: now handles forecolors and backcolors
25118             for flatstyle rendered controls much better; It also fixes normal
25119             checkbox rendering when pushed or disabled.
25120
25121 2004-10-08 02:50  jordi
25122
25123         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
25124           work
25125
25126 2004-10-07 08:56  jordi
25127
25128         * ThemeWin32Classic.cs: Removes deletion of cached brushes
25129
25130 2004-10-06 03:59  jordi
25131
25132         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
25133           XplatUIWin32.cs: removes warnings from compilation
25134
25135 2004-10-05 12:23  jackson
25136
25137         * RadioButton.cs: Fix ctor
25138
25139 2004-10-05 11:10  pbartok
25140
25141         * MessageBox.cs:
25142           - Partial implementation by Benjamin Dasnois
25143
25144 2004-10-05 10:15  jackson
25145
25146         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
25147           by John BouAntoun
25148
25149 2004-10-05 03:07  ravindra
25150
25151         * ToolBar.cs:
25152                 - Removed a private method, Draw ().
25153                 - Fixed the ButtonDropDown event handling.
25154                 - Fixed MouseMove event handling.
25155
25156 2004-10-05 03:04  ravindra
25157
25158         * ThemeWin32Classic.cs:
25159                 - Added DrawListView method and ListViewDefaultSize property.
25160                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
25161                 - Changed DOS style CRLF to Unix format (dos2unix).
25162
25163 2004-10-05 03:03  ravindra
25164
25165         * Theme.cs:
25166                 - Added DrawListView method and ListViewDefaultSize property.
25167
25168 2004-10-05 02:42  ravindra
25169
25170         * ToolBarButton.cs: Added an internal member dd_pressed to handle
25171           clicks on DropDown arrow.
25172
25173 2004-10-04 22:56  jackson
25174
25175         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
25176           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
25177           Control handle the buffers, derived classes should not have to
25178           CreateBuffers themselves.
25179
25180 2004-10-04 21:20  jackson
25181
25182         * StatusBar.cs: The control handles resizing the buffers now.
25183
25184 2004-10-04 21:18  jackson
25185
25186         * Control.cs: When resizing the buffers should be invalidated. This
25187           should be handled in Control not in derived classes.
25188
25189 2004-10-04 14:45  jackson
25190
25191         * TabPage.cs: oops
25192
25193 2004-10-04 02:14  pbartok
25194
25195         * LeftRightAlignment.cs:
25196           - Initial check-in
25197
25198 2004-10-04 01:09  jordi
25199
25200         * ThemeWin32Classic.cs: fixes right button position causing right
25201           button not showing on horizontal scrollbars
25202
25203 2004-10-02 13:12  pbartok
25204
25205         * XplatUIX11.cs:
25206           - Simplified the Invalidate method by using an X call instead of
25207             generating the expose ourselves
25208           - Added an expose when the window background is changed
25209           - Implemented ClientToScreen method
25210
25211 2004-10-02 13:08  pbartok
25212
25213         * XplatUIWin32.cs:
25214           - Added Win32EnableWindow method (test for implementing modal
25215           dialogs)
25216           - Added ClientToScreen method and imports
25217
25218 2004-10-02 13:07  pbartok
25219
25220         * XplatUI.cs, XplatUIDriver.cs:
25221           - Added ClientToScreen coordinate translation method
25222
25223 2004-10-02 13:06  pbartok
25224
25225         * KeyPressEventArgs.cs:
25226           - Fixed access level for constructor
25227
25228 2004-10-02 13:06  pbartok
25229
25230         * NativeWindow.cs:
25231           - Changed access level for the window_collection hash table
25232
25233 2004-10-02 13:05  pbartok
25234
25235         * Form.cs:
25236           - Added KeyPreview property
25237           - Added Menu property (still incomplete, pending Jordi's menu work)
25238           - Implemented ProcessCmdKey
25239           - Implemented ProcessDialogKey
25240           - Implemented ProcessKeyPreview
25241
25242 2004-10-02 13:02  pbartok
25243
25244         * Control.cs:
25245           - Added private method to get the Control object from the window
25246           handle
25247           - Implemented ContextMenu property
25248           - Implemented PointToScreen
25249           - Implemented PreProcessMessage
25250           - Implemented IsInputChar
25251           - Implemented IsInputKey
25252           - Implemented ProcessCmdKey
25253           - Completed ProcessKeyEventArgs
25254           - Fixed message loop to call the proper chain of functions on key
25255           events
25256           - Implemented ProcessDialogChar
25257           - Implemented ProcessDialogKey
25258           - Implemented ProcessKeyMessage
25259           - Implemented ProcessKeyPreview
25260           - Added RaiseDragEvent stub (MS internal method)
25261           - Added RaiseKeyEvent stub (MS internal method)
25262           - Added RaiseMouseEvent stub (MS Internal method)
25263           - Added RaisePaintEvent stub (MS Internal method)
25264           - Added ResetMouseEventArgs stub (MS Internal method)
25265           - Implemented RtlTranslateAlignment
25266           - Implemented RtlTranslateContent
25267           - Implemented RtlTranslateHorizontal
25268           - Implemented RtlTranslateLeftRight
25269           - Added generation of KeyPress event
25270
25271 2004-10-02 05:57  ravindra
25272
25273         * ListViewItem.cs: Added attributes.
25274
25275 2004-10-02 05:32  ravindra
25276
25277         * ListView.cs: Added attributes.
25278
25279 2004-10-01 11:53  jackson
25280
25281         * Form.cs: Implement the Close method so work on MessageBox can
25282           continue.
25283
25284 2004-09-30 14:06  pbartok
25285
25286         * XplatUIX11.cs:
25287           - Bug fixes
25288
25289 2004-09-30 11:34  jackson
25290
25291         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
25292
25293 2004-09-30 07:26  ravindra
25294
25295         * ListViewItemConverter.cs: Converter for ListViewItem.
25296
25297 2004-09-30 07:26  ravindra
25298
25299         * SortOrder.cs: Enum for ListView control.
25300
25301 2004-09-30 07:25  ravindra
25302
25303         * ColumnHeader.cs: Supporting class for ListView control.
25304
25305 2004-09-30 07:24  ravindra
25306
25307         * ListView.cs, ListViewItem.cs: Initial implementation.
25308
25309 2004-09-30 07:20  ravindra
25310
25311         * ItemActivation.cs: Enum for ListView Control.
25312
25313 2004-09-29 20:29  pbartok
25314
25315         * XplatUIX11.cs:
25316           - Added lookup of pixel value for background color; tries to get a
25317             color 'close' to the requested color, it avoids having to create a
25318             colormap.  Depending on the display this could mean the used color
25319             is slightly off the desired color. Might have to change it to a more
25320             resource intensive colormap approach, but it will work as a
25321           workaround to avoid red screens.
25322
25323 2004-09-29 14:27  jackson
25324
25325         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
25326
25327 2004-09-28 12:44  pbartok
25328
25329         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
25330           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
25331           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
25332           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
25333           TrackBar.cs, VScrollBar.cs:
25334           - Streamlined Theme interfaces:
25335             * Each DrawXXX method for a control now is passed the object for
25336               the control to be drawn in order to allow accessing any state the
25337               theme might require
25338
25339             * ControlPaint methods for the theme now have a CP prefix to avoid
25340               name clashes with the Draw methods for controls
25341
25342             * Every control now retrieves it's DefaultSize from the current
25343             theme
25344
25345 2004-09-28 12:17  jackson
25346
25347         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
25348           drawing
25349
25350 2004-09-24 14:57  jackson
25351
25352         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
25353           Gives us a nice little performance boost.
25354
25355 2004-09-24 12:02  jackson
25356
25357         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
25358           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
25359           Control and supporting classes. Initial checkin
25360
25361 2004-09-23 13:08  jackson
25362
25363         * Form.cs: Temp build fixage
25364
25365 2004-09-23 01:39  ravindra
25366
25367         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
25368           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
25369           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
25370           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
25371           EventHandlers needed by ListView Control.
25372
25373 2004-09-22 14:12  pbartok
25374
25375         * ScrollableControl.cs:
25376           - Implemented DockPadding property
25377           - Implemented AutoScroll property
25378           - Implemented AutoScrollMargin property
25379           - Implemented AutoScrollMinSize property
25380           - Implemented AutoScrollPosition property
25381           - Implemented DisplayRectangle property (still incomplete)
25382           - Implemented CreateParams property
25383           - Implemented HScroll property
25384           - Implemented VScroll property
25385           - Implemented OnVisibleChanged property
25386
25387 2004-09-22 14:09  pbartok
25388
25389         * Form.cs:
25390           - Added Form.ControllCollection class
25391           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
25392             RemoveOwnedForm (still incomplete, missing on-top and common
25393             minimize/maximize behaviour)
25394           - Added StartPosition property (still incomplete, does not use when
25395             creating the form)
25396           - Added ShowDialog() methods (still incomplete, missing forcing the
25397             dialog modal)
25398
25399 2004-09-22 14:05  pbartok
25400
25401         * Application.cs:
25402           - Added message loop for modal dialogs
25403
25404 2004-09-22 14:02  pbartok
25405
25406         * GroupBox.cs:
25407           - Fixed wrong types for events
25408
25409 2004-09-22 14:00  pbartok
25410
25411         * Shortcut.cs, FormWindowState.cs:
25412           - Fixed wrong values
25413
25414 2004-09-22 12:01  jackson
25415
25416         * Control.cs: Text is never null
25417
25418 2004-09-20 22:14  pbartok
25419
25420         * XplatUIWin32.cs:
25421           - Fixed accessibility level for Idle handler
25422
25423 2004-09-20 18:54  jackson
25424
25425         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25426           XplatUIX11.cs: New message loop that uses poll so we don't get a
25427           busy loop
25428
25429 2004-09-17 10:43  pbartok
25430
25431         * ScrollBar.cs:
25432           - Fixed behaviour of arrow buttons. Now properly behaves like
25433             Buttons (and like Microsoft's scrollbar arrow buttons)
25434
25435 2004-09-17 10:14  pbartok
25436
25437         * ScrollBar.cs:
25438           - Added missing release of keyboard/mouse capture
25439
25440 2004-09-17 06:18  jordi
25441
25442         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
25443           Theme.cs: Very early menu support
25444
25445 2004-09-16 17:45  pbartok
25446
25447         * XplatUIWin32.cs:
25448           - Fixed sending a window to the front
25449           - Added overload for SetWindowPos to avoid casting
25450
25451 2004-09-16 17:44  pbartok
25452
25453         * Control.cs:
25454           - Added SendToBack and BringToFront methods
25455
25456 2004-09-16 07:00  ravindra
25457
25458         * Copyright: Added Novell URL.
25459
25460 2004-09-16 07:00  ravindra
25461
25462         * ToolBar.cs: Invalidate should be done before redrawing.
25463
25464 2004-09-15 21:19  ravindra
25465
25466         * ColumnHeaderStyle.cs: Enum for ListView Control.
25467
25468 2004-09-15 21:18  ravindra
25469
25470         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
25471           ListView Control.
25472
25473 2004-09-13 18:26  jackson
25474
25475         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
25476           properly
25477
25478 2004-09-13 18:13  jackson
25479
25480         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
25481           a second thread and post messages into the main threads message
25482           queue. This makes timing much more consistent. Both win2K and XP
25483           have a minimum timer value of 15 milliseconds, so we now do this
25484           too.
25485
25486 2004-09-13 15:18  pbartok
25487
25488         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25489           XplatUIX11.cs:
25490           - Added Z-Ordering methods
25491
25492 2004-09-13 10:56  pbartok
25493
25494         * Form.cs:
25495           - Fixed #region names
25496           - Moved properties and methods into their proper #regions
25497
25498 2004-09-13 10:51  pbartok
25499
25500         * Form.cs:
25501           - Added Accept and CancelButton properties
25502           - Added ProcessDialogKey() method
25503
25504 2004-09-13 08:18  pbartok
25505
25506         * IWindowTarget.cs:
25507           - Initial check-in
25508
25509 2004-09-10 21:50  pbartok
25510
25511         * Control.cs:
25512           - Added DoDragDrop() [incomplete]
25513           - Properly implemented 'Visible' handling
25514           - Added SetVisibleCore()
25515           - Implemented FindChildAtPoint()
25516           - Implemented GetContainerControl()
25517           - Implemented Hide()
25518
25519 2004-09-10 19:28  pbartok
25520
25521         * Control.cs:
25522           - Moved methods into their appropriate #regions
25523           - Reordered methods within regions alphabetically
25524
25525 2004-09-10 18:57  pbartok
25526
25527         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
25528           - Added method to retrieve text from window
25529
25530 2004-09-10 18:56  pbartok
25531
25532         * Control.cs:
25533           - Moved some internal functions into the internal region
25534           - Implemented FontHeight
25535           - Implemented RenderRightToLeft
25536           - Implemented ResizeRedraw
25537           - Implemented ShowFocusCues
25538           - Implemented ShowKeyboardCues
25539           - Implemented FromChildHandle
25540           - Implemented FromHandle
25541           - Implemented IsMnemonic
25542           - Implemented ReflectMessage
25543           - All public and protected Static Methods are now complete
25544
25545 2004-09-10 16:54  pbartok
25546
25547         * Control.cs:
25548           - Implemented remaining missing public instance properties
25549           - Alphabetized some out of order properties
25550
25551 2004-09-10 05:51  ravindra
25552
25553         * PictureBox.cs: Added a check for null image.
25554
25555 2004-09-10 00:59  jordi
25556
25557         * GroupBox.cs: remove cvs tag
25558
25559 2004-09-09 05:25  ravindra
25560
25561         * ToolBar.cs: Make redraw accessible from ToolBarButton.
25562
25563 2004-09-09 05:23  ravindra
25564
25565         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
25566           parent redraw.
25567
25568 2004-09-09 02:28  pbartok
25569
25570         * ThemeWin32Classic.cs:
25571           - Improve disabled string look
25572
25573 2004-09-09 01:15  jordi
25574
25575         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
25576           args and handler
25577
25578 2004-09-08 23:56  ravindra
25579
25580         * ItemBoundsPortion.cs: It's enum, not a class!
25581
25582 2004-09-08 23:47  ravindra
25583
25584         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
25585           Enums for Form.
25586
25587 2004-09-08 21:13  ravindra
25588
25589         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
25590           ListView control.
25591
25592 2004-09-08 21:03  ravindra
25593
25594         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
25595           avoid crash.
25596
25597 2004-09-08 21:01  ravindra
25598
25599         * ScrollableControl.cs: Removed unreachable code.
25600
25601 2004-09-08 06:45  jordi
25602
25603         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
25604
25605 2004-09-08 01:00  jackson
25606
25607         * XplatUIX11.cs: Only run the timers when updating the message
25608           queue. This effectively gives X messages a higher priority then
25609           timer messages. Timers still need love though
25610
25611 2004-09-07 14:01  jackson
25612
25613         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
25614           this for us and the handle is no longer valid.
25615
25616 2004-09-07 13:59  jackson
25617
25618         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
25619           loop that manages to not crash. TODO: Add poll and cleanup timers
25620
25621 2004-09-07 11:12  jordi
25622
25623         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
25624
25625 2004-09-07 03:40  jordi
25626
25627         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
25628           fixes, methods, multiple links
25629
25630 2004-09-06 06:55  jordi
25631
25632         * Control.cs: Caches ClientRectangle rectangle value
25633
25634 2004-09-05 02:03  jordi
25635
25636         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
25637           certain situations
25638
25639 2004-09-04 11:10  jordi
25640
25641         * Label.cs: Refresh when font changed
25642
25643 2004-09-02 16:24  pbartok
25644
25645         * Control.cs:
25646           - Added sanity check to creation of double buffer bitmap
25647
25648 2004-09-02 16:24  pbartok
25649
25650         * ButtonBase.cs:
25651           - Fixed selection of text color
25652           - Fixed handling of resize event; now properly recreates double
25653             buffering bitmap
25654           - Added missing assignment of TextAlignment
25655           - Added proper default for TextAlignment
25656
25657 2004-09-02 14:26  pbartok
25658
25659         * RadioButton.cs:
25660           - Added missing RadioButton.RadioButtonAccessibleObject class
25661
25662 2004-09-02 14:26  pbartok
25663
25664         * Control.cs:
25665           - Added missing Control.ControlAccessibleObject class
25666           - Started to implement Select()ion mechanisms, still very incomplete
25667
25668 2004-09-02 14:25  pbartok
25669
25670         * AccessibleObject.cs:
25671           - Added missing methods
25672
25673 2004-09-02 14:23  pbartok
25674
25675         * AccessibleNavigation.cs, AccessibleSelection.cs:
25676           - Initial check-in
25677
25678 2004-09-02 10:32  jordi
25679
25680         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
25681           pool for pens, brushes, and hatchbruses
25682
25683 2004-09-01 15:30  jackson
25684
25685         * StatusBar.cs: Fix typo
25686
25687 2004-09-01 14:44  pbartok
25688
25689         * RadioButton.cs:
25690           - Fixed state
25691
25692 2004-09-01 14:39  pbartok
25693
25694         * Button.cs, RadioButton.cs:
25695           - Functional initial check-in
25696
25697 2004-09-01 14:01  pbartok
25698
25699         * CheckBox.cs:
25700           - Added missing default
25701           - Added missing region mark
25702
25703 2004-09-01 09:10  jordi
25704
25705         * Label.cs: fixes method signatures, new methods, events, fixes
25706           autosize
25707
25708 2004-09-01 07:19  jordi
25709
25710         * Control.cs: Init string variables with an empty object
25711
25712 2004-09-01 04:20  jordi
25713
25714         * Control.cs: fires OnFontChanged event
25715
25716 2004-08-31 20:07  pbartok
25717
25718         * ButtonBase.cs:
25719           - Enabled display of strings
25720
25721 2004-08-31 20:05  pbartok
25722
25723         * Form.cs:
25724           - Added (partial) implementation of DialogResult; rest needs to be
25725             implemented when the modal loop code is done
25726
25727 2004-08-31 19:55  pbartok
25728
25729         * CheckBox.cs:
25730           - Fixed to match the removal of the needs_redraw concept
25731
25732 2004-08-31 19:55  pbartok
25733
25734         * ButtonBase.cs:
25735           - Removed the rather odd split between 'needs redraw' and redrawing
25736           - Now handles the events that require regeneration (ambient
25737             properties and size)
25738
25739 2004-08-31 19:41  pbartok
25740
25741         * Control.cs:
25742           - Added firing of BackColorChanged event
25743           - Added TopLevelControl property
25744           - Fixed handling of WM_ERASEBKGRND message
25745
25746 2004-08-31 12:49  pbartok
25747
25748         * ButtonBase.cs:
25749           - Removed debug
25750           - Minor fixes
25751
25752 2004-08-31 12:48  pbartok
25753
25754         * CheckBox.cs:
25755           - Finished (famous last words)
25756
25757 2004-08-31 04:35  jordi
25758
25759         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
25760           scrolling bugs, adds new methods
25761
25762 2004-08-30 14:42  pbartok
25763
25764         * CheckBox.cs:
25765           - Implemented CheckBox drawing code
25766
25767 2004-08-30 14:42  pbartok
25768
25769         * ButtonBase.cs:
25770           - Made Redraw() and CheckRedraw() virtual
25771           - Improved mouse up/down/move logic to properly track buttons
25772
25773 2004-08-30 09:44  pbartok
25774
25775         * CheckBox.cs:
25776           - Updated to fix broken build. Not complete yet.
25777
25778 2004-08-30 09:28  pbartok
25779
25780         * CheckState.cs:
25781           - Initial checkin
25782
25783 2004-08-30 09:17  pbartok
25784
25785         * Appearance.cs:
25786           - Initial check-in
25787
25788 2004-08-27 16:12  ravindra
25789
25790         * ToolBarButton.cs: Added TypeConverter attribute.
25791
25792 2004-08-27 16:07  ravindra
25793
25794         * ImageIndexConverter.cs: Implemented.
25795
25796 2004-08-27 14:17  pbartok
25797
25798         * Control.cs:
25799           - Removed unneeded stack vars
25800           - First attempt to fix sizing issues when layout is suspended
25801
25802 2004-08-25 15:35  jordi
25803
25804         * ScrollBar.cs: more fixes to scrollbar
25805
25806 2004-08-25 14:04  ravindra
25807
25808         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
25809           Added the missing divider code and grip for ToolBar Control.
25810
25811 2004-08-25 13:20  pbartok
25812
25813         * Control.cs:
25814           - Control now properly passes the ambient background color to child
25815             controls
25816
25817 2004-08-25 13:20  jordi
25818
25819         * ScrollBar.cs: small bug fix regarding bar position
25820
25821 2004-08-25 12:33  pbartok
25822
25823         * Timer.cs:
25824           - Now only calls SetTimer or KillTimer if the enabled state has
25825           changed
25826
25827 2004-08-25 12:33  pbartok
25828
25829         * XplatUIWin32.cs:
25830           - Fixed timer handling, now seems to work
25831           - Improved error message for window creation
25832
25833 2004-08-25 12:32  pbartok
25834
25835         * Control.cs:
25836           - Fixed generation of MouseUp message
25837
25838 2004-08-25 12:29  jordi
25839
25840         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
25841           and fixes for progressbar
25842
25843 2004-08-24 18:43  ravindra
25844
25845         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
25846           in ToolBar control.
25847
25848 2004-08-24 17:15  pbartok
25849
25850         * Panel.cs:
25851           - Added #region
25852           - Added missing events
25853           - Alphabetized
25854
25855 2004-08-24 17:14  pbartok
25856
25857         * StatusBar.cs, PictureBox.cs:
25858           - Now uses Control's CreateParams
25859
25860 2004-08-24 16:36  pbartok
25861
25862         * XplatUIX11.cs:
25863           - Fixed background color handling
25864           - Fixed sending of enter/leave events on a grab
25865
25866 2004-08-24 16:35  pbartok
25867
25868         * X11Structs.cs:
25869           - Refined definitions for CrossingEvent
25870
25871 2004-08-24 12:37  jordi
25872
25873         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
25874           formmating, methods signature, and adds missing events
25875
25876 2004-08-24 12:24  jordi
25877
25878         * Control.cs: fire OnEnabledChanged event
25879
25880 2004-08-24 11:17  pbartok
25881
25882         * XplatUIWin32.cs:
25883           - Implemented SetTimer() and KillTimer()
25884
25885 2004-08-24 11:16  pbartok
25886
25887         * XplatUIX11.cs:
25888           - Now uses Remove instead of Add to kill the timer
25889
25890 2004-08-24 10:16  jackson
25891
25892         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
25893           picture boxes in the theme now. Draw picture box borders and obey
25894           sizing modes
25895
25896 2004-08-24 05:49  jackson
25897
25898         * Timer.cs: Remove top secret debugging code
25899
25900 2004-08-24 05:34  jackson
25901
25902         * PictureBox.cs: Temp hack to make picture boxes draw their full
25903           image
25904
25905 2004-08-24 05:29  jackson
25906
25907         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
25908           XplatUIX11.cs: Move timers to the driver level. On X they are
25909           queued by the driver and checked on idle.
25910
25911 2004-08-24 01:07  jackson
25912
25913         * XplatUIX11.cs: Use a queue for async messages instead of passing
25914           them as ClientMessages since that was totally broken. Also simply
25915           check for events and return an idle message if none are found. This
25916           gives us an idle handler, and prevents deadlocking when no messages
25917           are in the queue.
25918
25919 2004-08-23 18:19  ravindra
25920
25921         * XplatUIWin32.cs: Removed the unwanted destructor.
25922
25923 2004-08-23 17:27  pbartok
25924
25925         * ButtonBase.cs:
25926           - Finishing touches. Works now, just needs some optimizations.
25927
25928 2004-08-23 16:53  jordi
25929
25930         * ScrollBar.cs: small fix
25931
25932 2004-08-23 16:45  pbartok
25933
25934         * Application.cs:
25935           - Removed debug output
25936           - Simplifications
25937
25938 2004-08-23 16:43  jordi
25939
25940         * ScrollBar.cs: [no log message]
25941
25942 2004-08-23 16:10  pbartok
25943
25944         * Form.cs:
25945           - Fixed handling of WM_CLOSE message
25946           - Removed debug output
25947
25948 2004-08-23 16:09  pbartok
25949
25950         * Application.cs:
25951           - Added handling of Idle event
25952           - Added handling of form closing
25953           - Fixed reporting of MessageLoop property
25954           - Removed some unneeded code, should provide a bit of a speedup
25955
25956 2004-08-23 15:22  pbartok
25957
25958         * Control.cs:
25959           - Added InitLayout() method
25960           - Added code to properly perform layout when Anchor or Dock property
25961             is changed
25962           - Changed 'interpretation' of ResumeLayout. MS seems to have a
25963             LAMESPEC, tried to do it in a way that makes sense
25964
25965 2004-08-23 14:10  jordi
25966
25967         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
25968           properties and methods
25969
25970 2004-08-23 13:55  pbartok
25971
25972         * Control.cs:
25973           - Properly fixed Jordi's last fix
25974           - Now uses Cursor's Position property instead of calling XplatUI
25975           directly
25976
25977 2004-08-23 13:44  jordi
25978
25979         * PaintEventHandler.cs: Adding missing attribute
25980
25981 2004-08-23 13:39  pbartok
25982
25983         * Cursor.cs:
25984           - Implemented Position property
25985
25986 2004-08-23 13:39  pbartok
25987
25988         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
25989           - Added method to move mouse cursor
25990
25991 2004-08-23 13:39  pbartok
25992
25993         * XplatUIX11.cs:
25994           - Fixed setting of background color
25995           - Added method to move mouse cursor
25996
25997 2004-08-23 13:16  jordi
25998
25999         * Control.cs: avoids null exception
26000
26001 2004-08-22 17:46  jackson
26002
26003         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
26004           PictureBox
26005
26006 2004-08-22 17:40  jackson
26007
26008         * XplatUIX11.cs: Add some missing locks
26009
26010 2004-08-22 15:10  pbartok
26011
26012         * Control.cs, Form.cs:
26013           - Removed OverlappedWindow style from Control, instead it's default
26014             now is child
26015           - Made form windows OverlappedWindow by default
26016
26017 2004-08-22 13:34  jackson
26018
26019         * ScrollBar.cs: Update the position through the Value property so
26020           the OnValueChanged event is raised.
26021
26022 2004-08-22 12:04  pbartok
26023
26024         * SWF.csproj:
26025           - Added Cursor.cs and UserControl.cs
26026
26027 2004-08-22 12:03  pbartok
26028
26029         * Cursor.cs:
26030           - Started implementation, not usable yet
26031
26032 2004-08-22 12:00  pbartok
26033
26034         * UserControl.cs:
26035           - Implemented UserControl (complete)
26036
26037 2004-08-21 19:20  ravindra
26038
26039         * ToolBar.cs: Correcting the formatting mess of VS.NET.
26040
26041 2004-08-21 18:49  ravindra
26042
26043         * ToolBar.cs: Probably this completes the missing attributes in
26044           toolbar control.
26045
26046 2004-08-21 18:03  ravindra
26047
26048         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
26049           Fixed toolbar control signatures.
26050
26051 2004-08-21 16:32  pbartok
26052
26053         * LinkLabel.cs:
26054           - Signature Fixes
26055
26056 2004-08-21 16:30  pbartok
26057
26058         * Label.cs:
26059           - Signature fixes
26060
26061 2004-08-21 16:19  pbartok
26062
26063         * Control.cs, Label.cs:
26064           - Signature fixes
26065
26066 2004-08-21 15:57  pbartok
26067
26068         * ButtonBase.cs:
26069           - Added loads of debug output for development
26070           - Fixed typo in method name
26071
26072 2004-08-21 15:52  pbartok
26073
26074         * ToolBarButtonClickEventArgs.cs:
26075           - Added missing base class
26076
26077 2004-08-21 14:53  pbartok
26078
26079         * Control.cs:
26080           - Updated to match new GrabWindow signature
26081
26082 2004-08-21 14:51  pbartok
26083
26084         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26085           - Added method to get default display size
26086
26087 2004-08-21 14:23  pbartok
26088
26089         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26090           - Added method to query current grab state
26091           - Added argument to allow confining a grab to a window
26092
26093 2004-08-21 14:22  pbartok
26094
26095         * Keys.cs:
26096           - Added [Flags] attribute so that modifiers can be used in bitwise
26097           ops
26098
26099 2004-08-21 14:21  pbartok
26100
26101         * TrackBar.cs, ScrollBar.cs:
26102           - Replaced direct XplatUI calls with their Control counterpart
26103
26104 2004-08-21 13:32  pbartok
26105
26106         * Control.cs:
26107           - Implemented Created property
26108
26109 2004-08-21 13:28  pbartok
26110
26111         * Control.cs:
26112           - Implemented ContainsFocus
26113
26114 2004-08-21 13:26  pbartok
26115
26116         * Control.cs:
26117           - Implemented CausesValidation
26118
26119 2004-08-21 13:21  pbartok
26120
26121         * Control.cs:
26122           - Implemented CanFocus
26123           - Implemented CanSelect
26124           - Implemented Capture
26125
26126 2004-08-21 12:35  pbartok
26127
26128         * XplatUIWin32.cs:
26129           - Fixed bug with Async message handling
26130           - Implemented getting the ModifierKeys
26131
26132 2004-08-21 12:32  jackson
26133
26134         * AsyncMethodResult.cs: Make sure we have the mutex before we
26135           release it. Fixes BeginInvoke on windows
26136
26137 2004-08-21 11:31  pbartok
26138
26139         * XplatUIWin32.cs, XplatUIX11.cs:
26140           - Drivers now return proper mouse state
26141
26142 2004-08-21 10:54  jackson
26143
26144         * Control.cs: Implement EndInvoke
26145
26146 2004-08-21 10:48  jackson
26147
26148         * Timer.cs: Remove unneeded finalizer
26149
26150 2004-08-20 19:52  ravindra
26151
26152         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
26153           in mouse event handling in the ToolBar control.
26154
26155 2004-08-20 19:50  ravindra
26156
26157         * ImageList.cs: Changed draw method to use the arguments passed in
26158           to draw the image.
26159
26160 2004-08-20 18:58  pbartok
26161
26162         * XplatUIStructs.cs:
26163           - Added private message for async communication
26164
26165 2004-08-20 17:38  ravindra
26166
26167         * Control.cs: Made RightToLeft property virtual and removed a
26168           Console.WriteLine.
26169
26170 2004-08-20 14:39  jordi
26171
26172         * ThemeGtk.cs: use style_attach
26173
26174 2004-08-20 14:39  pbartok
26175
26176         * XplatUIWin32.cs:
26177           - Added jackson's Async code from X11 to Win32
26178
26179 2004-08-20 14:09  pbartok
26180
26181         * SWF.csproj:
26182           - Added all new files
26183
26184 2004-08-20 14:09  pbartok
26185
26186         * Control.cs:
26187           - Added call to set window background color
26188
26189 2004-08-20 14:03  pbartok
26190
26191         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
26192           - Added method for setting the window background
26193
26194 2004-08-20 14:02  pbartok
26195
26196         * XplatUIWin32.cs:
26197           - Added method for setting the background color
26198           - Added handling for erasing the window background
26199
26200 2004-08-20 13:45  jordi
26201
26202         * TrackBar.cs: fixes timer, new properties and methods
26203
26204 2004-08-20 13:34  jackson
26205
26206         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
26207           correct thread
26208
26209 2004-08-20 13:22  jackson
26210
26211         * Timer.cs: Timer Tick events are now handed through Controls Async
26212           mechanism so the callbacks are executed in the same thread as X
26213
26214 2004-08-20 13:19  jackson
26215
26216         * XplatUIDriver.cs: Expose functionality to send async messages
26217           through the driver
26218
26219 2004-08-20 13:18  jackson
26220
26221         * Control.cs: Implement Begininvoke
26222
26223 2004-08-20 13:14  jackson
26224
26225         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
26226           messages through the driver
26227
26228 2004-08-20 13:12  jackson
26229
26230         * XplatUIX11.cs: Lock before all X operations. Also added Async
26231           method functionality through XSendEvent
26232
26233 2004-08-20 13:11  jackson
26234
26235         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
26236           This will screw up on 64 bit systems)
26237
26238 2004-08-20 13:10  jackson
26239
26240         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
26241           Async messages through X/Win32
26242
26243 2004-08-19 19:39  pbartok
26244
26245         * XplatUIX11.cs:
26246           - Updated code to match new HandleData.DeviceContext type
26247
26248 2004-08-19 19:38  pbartok
26249
26250         * HandleData.cs:
26251           - Made DeviceContext a generic object to allow usage from various
26252           drivers
26253           - Added support for queueing Windows messages
26254
26255 2004-08-19 19:37  pbartok
26256
26257         * XplatUIWin32.cs:
26258           - Added generation of MouseEnter, MouseLeave and MouseHover events
26259           - Added cleanup on EndPaint
26260
26261 2004-08-19 19:17  pbartok
26262
26263         * Control.cs:
26264           - Added handling of WM_MOUSEHOVER
26265           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
26266           code
26267
26268 2004-08-19 18:55  jordi
26269
26270         * ThemeGtk.cs: fixes button order
26271
26272 2004-08-19 18:12  jordi
26273
26274         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
26275
26276 2004-08-19 17:09  pbartok
26277
26278         * Control.cs:
26279           - Added Right property
26280           - Added RightToLeft property
26281
26282 2004-08-19 16:27  jordi
26283
26284         * ThemeGtk.cs: experimental GTK theme support
26285
26286 2004-08-19 16:26  jordi
26287
26288         * ITheme.cs, Theme.cs: move themes from an interface to a class
26289
26290 2004-08-19 16:25  jordi
26291
26292         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
26293           theme enhancaments
26294
26295 2004-08-19 16:04  pbartok
26296
26297         * XplatUIX11.cs:
26298           - Added colormap basics
26299           - Added a way to re-initialize with a different display handle
26300           - Fixed setting of the window background color
26301           - Added various X11 imports related to colors and colormaps
26302
26303 2004-08-19 15:51  pbartok
26304
26305         * X11Structs.cs:
26306           - Removed packing hints (Paolo suggested this a while back)
26307           - fixed colormap type
26308           - Added default Atom types
26309           - Added Screen and color structs and enums
26310
26311 2004-08-19 15:39  pbartok
26312
26313         * ImageList.cs:
26314           - Added missing Draw() method
26315           - Added missing RecreateHandle event
26316
26317 2004-08-19 15:30  pbartok
26318
26319         * Form.cs:
26320           - Added handling of WM_CLOSE
26321
26322 2004-08-18 13:16  jordi
26323
26324         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
26325           a table
26326
26327 2004-08-18 09:56  jordi
26328
26329         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
26330
26331 2004-08-17 15:31  ravindra
26332
26333         * SWF.csproj: Updated project.
26334
26335 2004-08-17 15:25  pbartok
26336
26337         * Control.cs:
26338           - Drawing improvement; don't call UpdateBounds if we are not visible
26339             (or have been minimized)
26340
26341 2004-08-17 15:24  pbartok
26342
26343         * XplatUIWin32.cs:
26344           - Finished IsVisible
26345           - Added Win32GetWindowPlacement
26346
26347 2004-08-17 15:08  jackson
26348
26349         * Panel.cs: Initial checkin of the Panel
26350
26351 2004-08-17 14:25  pbartok
26352
26353         * Control.cs:
26354           - Fixed broken handling of default window sizes
26355
26356 2004-08-17 13:29  jackson
26357
26358         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
26359           has a large startup time.
26360
26361 2004-08-17 10:25  jackson
26362
26363         * HandleData.cs: union areas properly
26364
26365 2004-08-17 10:12  jackson
26366
26367         * HandleData.cs: union areas properly
26368
26369 2004-08-16 20:00  ravindra
26370
26371         * ToolBar.cs, ToolBarButton.cs: Added attributes.
26372
26373 2004-08-16 18:48  ravindra
26374
26375         * ToolBar.cs: Added attributes.
26376
26377 2004-08-16 17:17  ravindra
26378
26379         * SWF.csproj: Updated project.
26380
26381 2004-08-16 17:16  jackson
26382
26383         * XplatUIX11.cs: Check for more expose events before sending a
26384           WM_PAINT so they can all be grouped together. This makes dragging a
26385           window across another window redraw in a sane way.
26386
26387 2004-08-16 15:47  pbartok
26388
26389         * Control.cs:
26390           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
26391             support OnMouseEnter/Leave()
26392           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
26393             exposure handling
26394
26395 2004-08-16 15:46  pbartok
26396
26397         * XplatUIStructs.cs, XplatUIX11.cs:
26398           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
26399           OnMouseEnter/Leave()
26400
26401 2004-08-16 15:34  jackson
26402
26403         * XplatUIX11.cs: Group multiple expose events in HandleData, make
26404           sure messages get the message field set to WM_NULL if they are not
26405           handled.
26406
26407 2004-08-16 15:24  jackson
26408
26409         * HandleData.cs: HandleData is used for storing message information
26410           for window handles
26411
26412 2004-08-15 17:23  ravindra
26413
26414         * ColorDepth.cs: Added attribute.
26415
26416 2004-08-15 17:23  ravindra
26417
26418         * SWF.csproj: Updated project for ToolBar Control.
26419
26420 2004-08-15 17:20  ravindra
26421
26422         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
26423           control and also dos2unix format.
26424
26425 2004-08-15 17:13  ravindra
26426
26427         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
26428           ToolBarButtonClickEventArgs.cs,
26429           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
26430           ToolBarTextAlign.cs: First Implementation of ToolBar control.
26431
26432 2004-08-15 15:31  pbartok
26433
26434         * ButtonBase.cs:
26435           - First (mostly) working version
26436
26437 2004-08-13 16:15  pbartok
26438
26439         * Control.cs:
26440           - Fixed Anchor default
26441
26442 2004-08-13 15:43  pbartok
26443
26444         * Control.cs:
26445           - Changed GetCursorPos signature
26446
26447 2004-08-13 15:42  pbartok
26448
26449         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
26450           - Changed signature for GetCursorPos
26451
26452 2004-08-13 15:25  pbartok
26453
26454         * XplatUIX11.cs:
26455           - Cleanup
26456           - Fixed resizing/exposure handling
26457
26458 2004-08-13 15:22  jordi
26459
26460         * ThemeWin32Classic.cs: removes redundant code and fixes issues
26461           with tickposition
26462
26463 2004-08-13 14:55  jordi
26464
26465         * TrackBar.cs: change from wndproc to events
26466
26467 2004-08-13 13:00  jordi
26468
26469         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26470           XplatUIX11.cs: implements PointToClient (ScreenToClient)
26471
26472 2004-08-13 12:53  pbartok
26473
26474         * XplatUIWin32.cs:
26475           - Changed GetWindowPos to also provide client area size
26476           - Fixed broken prototypes for several win32 functions
26477
26478 2004-08-13 12:53  pbartok
26479
26480         * XplatUI.cs, XplatUIDriver.cs:
26481           - Changed GetWindowPos to also provide client area size
26482
26483 2004-08-13 12:52  pbartok
26484
26485         * XplatUIX11.cs:
26486           - Added generation of WM_POSCHANGED
26487           - Changed GetWindowPos to also provide client area size
26488
26489 2004-08-13 12:52  pbartok
26490
26491         * Control.cs:
26492           - Added Dispose() and destructor
26493           - Fixed resizing and bounds calculation
26494           - Fixed Layout
26495           - Added memory savings for invisible windows
26496
26497 2004-08-13 12:46  jordi
26498
26499         * TrackBar.cs: adds timer and grap window
26500
26501 2004-08-13 10:25  jackson
26502
26503         * Timer.cs: SWF Timer
26504
26505 2004-08-12 16:59  pbartok
26506
26507         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26508           - Implemented method to get current mouse position
26509
26510 2004-08-12 14:29  jordi
26511
26512         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
26513           enhancement, fix mouse problems, highli thumb, etc
26514
26515 2004-08-12 13:31  pbartok
26516
26517         * Control.cs:
26518           - Fixed Anchoring bugs
26519
26520 2004-08-12 13:01  jackson
26521
26522         * StatusBar.cs: Don't forget things
26523
26524 2004-08-12 12:54  jackson
26525
26526         * ThemeWin32Classic.cs: Handle owner draw status bars
26527
26528 2004-08-12 12:54  jackson
26529
26530         * StatusBar.cs: Implement missing properties, events, and methods.
26531           Handle mouse clicking
26532
26533 2004-08-12 10:19  jackson
26534
26535         * StatusBarPanelClickEventArgs.cs,
26536           StatusBarPanelClickEventHandler.cs: Classes for handling status
26537           bar panel click events
26538
26539 2004-08-12 10:10  jackson
26540
26541         * Control.cs: Add missing properties
26542
26543 2004-08-12 09:46  pbartok
26544
26545         * BindingsManagerBase.cs:
26546           - Name changed to BindingManagerBase.cs
26547
26548 2004-08-12 09:25  jordi
26549
26550         * ScrollableControl.cs: calls ctrlbase instead of exeception
26551
26552 2004-08-11 16:28  pbartok
26553
26554         * InputLanguageChangingEventArgs.cs:
26555           - Never check in before compiling. Fixes the last check-in
26556
26557 2004-08-11 16:26  pbartok
26558
26559         * InputLanguageChangingEventArgs.cs:
26560           - More signature fixes
26561
26562 2004-08-11 16:20  pbartok
26563
26564         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
26565           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
26566           ImageListStreamer.cs, InputLanguage.cs,
26567           InputLanguageChangedEventArgs.cs,
26568           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
26569           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
26570           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
26571           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26572           - Signature fixes
26573
26574 2004-08-11 16:16  pbartok
26575
26576         * Application.cs:
26577           - Fixed Signature
26578           - Added .Net 1.1 method
26579
26580 2004-08-11 15:25  pbartok
26581
26582         * SWF.csproj:
26583           - Fixed BindingManagerBase.cs filename
26584
26585 2004-08-11 15:22  pbartok
26586
26587         * BindingManagerBase.cs:
26588           - Was checked in with wrong filename
26589
26590 2004-08-11 14:50  pbartok
26591
26592         * SWF.csproj:
26593           - Updated
26594
26595 2004-08-11 13:41  jordi
26596
26597         * XplatUIWin32.cs: Fixes ClientRect
26598
26599 2004-08-11 13:19  pbartok
26600
26601         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26602           XplatUIX11.cs:
26603           - We had SetWindowPos and MoveWindow to set window positions and
26604             size, removed MoveWindow. We have GetWindowPos, so it made sense to
26605             keep SetWindowPos as matching counterpart
26606           - Added some X11 sanity checking
26607
26608 2004-08-11 12:59  pbartok
26609
26610         * Control.cs:
26611           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
26612             (It seems that SetBounds is just a front for SetBoundsCore and
26613              SetBoundsCore updates the underlying window system and
26614              UpdateBounds is responsible for updating the variables associated
26615              with the Control and sending the events)
26616           - Major cleanup of Size handling; we now have two sizes, client_size
26617             and bounds. Bounds defines the window with decorations, client_size
26618             without them.
26619
26620 2004-08-11 12:55  pbartok
26621
26622         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26623           - Added method to calculate difference between decorated window and
26624             raw client area
26625
26626 2004-08-11 12:54  pbartok
26627
26628         * Label.cs:
26629           - Forcing redraw on resize
26630
26631 2004-08-11 11:43  pbartok
26632
26633         * ImageList.cs:
26634           - Removed disposing of the actual images when the list is disposed
26635
26636 2004-08-11 09:13  pbartok
26637
26638         * Control.cs:
26639           - Now properly reparents windows
26640
26641 2004-08-11 08:37  pbartok
26642
26643         * Control.cs:
26644           - Duh!
26645
26646 2004-08-11 07:47  pbartok
26647
26648         * Control.cs:
26649           - Rewrote the collection stuff. Might not be as fast now, not
26650             keeping the number of children around and accessible directly, but
26651             it's more straightforward
26652
26653 2004-08-11 07:44  pbartok
26654
26655         * AccessibleObject.cs:
26656           - Fixed to match ControlCollection rewrite
26657
26658 2004-08-11 07:43  pbartok
26659
26660         * ImageList.cs:
26661           - Added missing creation of the collection list
26662
26663 2004-08-10 20:08  jackson
26664
26665         * StatusBar.cs: Get the paint message from WndProc
26666
26667 2004-08-10 19:31  jackson
26668
26669         * ThemeWin32Classic.cs: Create Brushes as little as possible
26670
26671 2004-08-10 19:20  jackson
26672
26673         * UICues.cs: Add Flags attribute
26674
26675 2004-08-10 19:19  jackson
26676
26677         * StatusBarPanel.cs: Signature cleanup
26678
26679 2004-08-10 19:10  jackson
26680
26681         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
26682           Initial implementation of status bar item drawing
26683
26684 2004-08-10 17:27  jordi
26685
26686         * TrackBar.cs: add missing methods, properties, and restructure to
26687           hide extra ones
26688
26689 2004-08-10 16:24  jackson
26690
26691         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
26692           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
26693           attribute
26694
26695 2004-08-10 13:21  jordi
26696
26697         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
26698           enhancements and standarize on win colors defaults
26699
26700 2004-08-10 12:52  jackson
26701
26702         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
26703           ThemeWin32Classic.cs: Implement DrawItem functionality
26704
26705 2004-08-10 12:47  jordi
26706
26707         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
26708
26709 2004-08-10 12:32  jordi
26710
26711         * Control.cs: throw ontextchange event
26712
26713 2004-08-10 11:43  pbartok
26714
26715         * Control.cs:
26716           - Added more to the still unfinished Dock/Anchor layout code
26717
26718 2004-08-10 11:39  pbartok
26719
26720         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
26721           - Added GetWindowPos method
26722
26723 2004-08-10 11:36  pbartok
26724
26725         * XplatUIWin32.cs:
26726           - Implemented several methods
26727
26728 2004-08-10 09:47  jackson
26729
26730         * TrackBar.cs: Allow control to handle buffering
26731
26732 2004-08-10 09:41  jackson
26733
26734         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
26735
26736 2004-08-10 09:24  jackson
26737
26738         * Label.cs, LinkLabel.cs: Let Control handle buffering.
26739
26740 2004-08-10 09:09  jackson
26741
26742         * StatusBar.cs: Let Control handle all the buffering.
26743
26744 2004-08-10 09:08  jackson
26745
26746         * Control.cs: Control will now handle the buffering code, so each
26747           control does not have to implement this.
26748
26749 2004-08-10 08:34  jackson
26750
26751         * XplatUIDriver.cs: Use default colors from the theme
26752
26753 2004-08-09 17:12  pbartok
26754
26755         * ImageList.cs:
26756           - Fixed several bugs Ravindra pointed out
26757
26758 2004-08-09 16:11  pbartok
26759
26760         * Control.cs:
26761           - Added incomplete dock layout code
26762           - Added support for mouse wheel
26763
26764 2004-08-09 16:09  pbartok
26765
26766         * XplatUIX11.cs:
26767           - Added handling for middle and right mousebutton
26768           - Added handling for mouse wheel
26769           - Added handling for key state and mouse state and position
26770           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
26771           messages
26772
26773 2004-08-09 15:40  jackson
26774
26775         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
26776           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
26777           checkin
26778
26779 2004-08-09 15:37  jackson
26780
26781         * StatusBar.cs: Initial implementation of StatusBar
26782
26783 2004-08-09 15:36  jackson
26784
26785         * ITheme.cs: Add support for drawing status bar and getting status
26786           bar item sizes
26787
26788 2004-08-09 15:35  pbartok
26789
26790         * MouseButtons.cs:
26791           - Fixed values
26792
26793 2004-08-09 15:34  jackson
26794
26795         * ThemeWin32Classic.cs: Add support for drawing status bar and get
26796           status bar item sizes
26797
26798 2004-08-09 15:21  jackson
26799
26800         * ThemeWin32Classic.cs: Use known colors for default control
26801           colours
26802
26803 2004-08-09 15:12  jackson
26804
26805         * ThemeWin32Classic.cs: Make the default font static, it is static
26806           in control so this doesn't change functionality and creating fonts
26807           is sloooooow.
26808
26809 2004-08-09 14:56  pbartok
26810
26811         * X11Structs.cs:
26812           - Added GrabMode enum
26813
26814 2004-08-09 14:55  pbartok
26815
26816         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26817           - Removed Run method, was only required for initial development
26818
26819 2004-08-09 14:51  pbartok
26820
26821         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
26822           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
26823           capture
26824
26825 2004-08-09 13:48  pbartok
26826
26827         * XplatUIX11.cs:
26828           - Fixed default sizing for child windows
26829
26830 2004-08-09 12:56  pbartok
26831
26832         * XplatUIX11.cs:
26833           - Added generation of WM_DESTROY message
26834           - Added handling of window manager induced shutdown
26835
26836 2004-08-09 11:31  jackson
26837
26838         * ThemeWin32Classic.cs: New names for control properties
26839
26840 2004-08-09 11:25  jackson
26841
26842         * Control.cs: Use new color names
26843
26844 2004-08-09 11:02  jackson
26845
26846         * XplatUI.cs: Get default window properties from the theme
26847
26848 2004-08-09 11:01  jackson
26849
26850         * ITheme.cs: The theme engine now controls default window
26851           properties
26852
26853 2004-08-09 11:00  jackson
26854
26855         * ThemeWin32Classic.cs: Add default window color properties
26856
26857 2004-08-09 10:17  jackson
26858
26859         * ThemeWin32Classic.cs: Use correct default back color
26860
26861 2004-08-09 10:05  jackson
26862
26863         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
26864           the theme now.
26865
26866 2004-08-09 09:56  jackson
26867
26868         * XplatUI.cs: Remove defaults, these are handled by the theme now.
26869
26870 2004-08-09 09:54  jackson
26871
26872         * Control.cs: Get default properties from the theme.
26873
26874 2004-08-09 09:53  jackson
26875
26876         * ITheme.cs: Themes now handle default control properties
26877
26878 2004-08-09 09:53  jackson
26879
26880         * ThemeWin32Classic.cs: Themes now handle default control
26881           properties so coloring will be consistent
26882
26883 2004-08-08 16:54  jordi
26884
26885         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
26886
26887 2004-08-08 15:08  jordi
26888
26889         * XplatUIX11.cs: fixes keyboard crash
26890
26891 2004-08-08 13:47  jordi
26892
26893         * Label.cs: add cvs header info
26894
26895 2004-08-08 12:09  jackson
26896
26897         * ThemeWin32Classic.cs: Add pen_buttonface
26898
26899 2004-08-08 11:52  jordi
26900
26901         * Label.cs, LinkLabel.cs: [no log message]
26902
26903 2004-08-08 11:34  jordi
26904
26905         * ThemeWin32Classic.cs: Use Windows Standard Colours
26906
26907 2004-08-07 17:32  jordi
26908
26909         * TrackBar.cs: throw exceptions of invalid enums values
26910
26911 2004-08-07 17:31  jordi
26912
26913         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
26914           draw method name
26915
26916 2004-08-07 16:56  jackson
26917
26918         * HorizontalAlignment.cs: Initial checkin
26919
26920 2004-08-07 13:16  jordi
26921
26922         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
26923           methods
26924
26925 2004-08-07 13:05  jordi
26926
26927         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
26928           GetSysColor defines
26929
26930 2004-08-06 18:01  pbartok
26931
26932         * ThemeWin32Classic.cs:
26933           - Fixed some rounding issues with float/int
26934
26935 2004-08-06 18:00  jackson
26936
26937         * DockStyle.cs, AnchorStyles.cs:
26938
26939                   Add flags and serializable attributes.
26940
26941 2004-08-06 17:46  pbartok
26942
26943         * XplatUIX11.cs:
26944           - Implemented GetParent
26945
26946 2004-08-06 17:18  pbartok
26947
26948         * TrackBar.cs:
26949           - Fixed some rounding issues with float/int
26950
26951 2004-08-06 17:17  pbartok
26952
26953         * X11Structs.cs, XplatUIX11.cs:
26954           - Fixed Refresh and Invalidate
26955
26956 2004-08-06 15:30  pbartok
26957
26958         * Control.cs, X11Structs.cs, XplatUIX11.cs:
26959           - Fixed recursive loop when resizing
26960           - Improved/fixed redrawing on expose messages
26961
26962 2004-08-06 09:53  jordi
26963
26964         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
26965           keyboard navigation
26966
26967 2004-08-06 08:02  pbartok
26968
26969         * X11Structs.cs, XplatUIX11.cs:
26970           - Fixed reparenting
26971           - Fixed window border creation
26972
26973 2004-08-05 15:38  pbartok
26974
26975         * XplatUIX11.cs:
26976           - Attempted fix for reparenting problems
26977
26978 2004-08-04 15:14  pbartok
26979
26980         * Control.cs:
26981           - Fixed Invalidation bug (calculated wrong client area)
26982           - Added ClientSize setter
26983
26984 2004-08-04 15:13  pbartok
26985
26986         * Form.cs:
26987           - Added AutoScale properties
26988
26989 2004-08-04 15:13  pbartok
26990
26991         * SWF.csproj:
26992           - Added latest files
26993
26994 2004-08-04 14:11  pbartok
26995
26996         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
26997           XplatUIX11.cs:
26998           - Added Invalidate handling
26999
27000 2004-08-03 17:09  jordi
27001
27002         * XplatUIDriver.cs: fixes spelling mistake
27003
27004 2004-07-27 09:53  jordi
27005
27006         * TrackBar.cs: fixes trackbar events, def classname, methods
27007           signature
27008
27009 2004-07-27 09:29  jordi
27010
27011         * ScrollBar.cs: fixes scrollbar events
27012
27013 2004-07-27 04:38  jordi
27014
27015         * Control.cs: changes to be able to run winforms samples
27016
27017 2004-07-26 11:42  jordi
27018
27019         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
27020           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
27021
27022 2004-07-26 05:41  jordi
27023
27024         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
27025           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
27026           implementation
27027
27028 2004-07-22 09:22  jordi
27029
27030         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
27031           check link overlapping, implement events, and fixes
27032
27033 2004-07-21 10:28  jordi
27034
27035         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
27036
27037 2004-07-21 10:19  jordi
27038
27039         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
27040           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
27041           LinkLabelLinkClickedEventArgs.cs,
27042           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
27043           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
27044           implementation
27045
27046 2004-07-19 13:09  jordi
27047
27048         * Control.cs, Label.cs: label control re-written: added missing
27049           functionlity, events, and properties
27050
27051 2004-07-19 10:49  jordi
27052
27053         * Control.cs: fixes SetBounds logic
27054
27055 2004-07-19 01:29  jordi
27056
27057         * Control.cs: Call RefreshWindow only if the window has created
27058
27059 2004-07-15 14:05  pbartok
27060
27061         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
27062           - Implemented ImageList and ImageList.ImageCollection classes
27063           - Added ColorDepth enumeration
27064           - Updated SWF VS.Net project
27065
27066 2004-07-15 11:06  jordi
27067
27068         * XplatUIStructs.cs: added MsgButons enum
27069
27070 2004-07-15 11:03  jordi
27071
27072         * Control.cs: added basic mouse handeling events
27073
27074 2004-07-15 03:38  jordi
27075
27076         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
27077           Vertical TrackBar control implementation
27078
27079 2004-07-13 09:33  jordi
27080
27081         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
27082
27083 2004-07-13 09:31  jordi
27084
27085         * Control.cs, Form.cs: commit: new properties and fixes form size
27086           problems
27087
27088 2004-07-09 14:13  miguel
27089
27090         * ProgressBar.cs: Spelling
27091
27092 2004-07-09 11:25  pbartok
27093
27094         * ProgressBar.cs:
27095           - Removed usage of Rectangle for drawing. Miguel pointed out it's
27096           faster
27097
27098 2004-07-09 11:17  miguel
27099
27100         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
27101
27102                 * ProgressBar.cs: Fixed spelling for `block'
27103
27104                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
27105                 style guidelines.
27106
27107                 Avoid using the += on rect.X, that exposed a bug in the compiler.
27108
27109 2004-07-08 23:21  pbartok
27110
27111         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
27112           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
27113           BaseCollection.cs, Binding.cs, BindingContext.cs,
27114           BindingMemberInfo.cs, BindingsCollection.cs,
27115           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
27116           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
27117           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
27118           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
27119           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
27120           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
27121           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
27122           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
27123           FrameStyle.cs, GiveFeedbackEventArgs.cs,
27124           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
27125           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
27126           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
27127           InputLanguageChangedEventArgs.cs,
27128           InputLanguageChangedEventHandler.cs,
27129           InputLanguageChangingEventArgs.cs,
27130           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
27131           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
27132           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
27133           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
27134           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
27135           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
27136           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
27137           QueryAccessibilityHelpEventArgs.cs,
27138           QueryAccessibilityHelpEventHandler.cs,
27139           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
27140           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
27141           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
27142           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
27143           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
27144           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
27145           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
27146           XplatUIX11.cs, lang.cs:
27147           - Initial check-in
27148
27149